haproxy and mysql and other OCF agents don't write their own logs

Bug #1487083 reported by Bogdan Dobrelya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Bogdan Dobrelya
6.1.x
Won't Fix
High
Fuel Sustaining
7.0.x
Won't Fix
High
Fuel Sustaining
8.0.x
Won't Fix
High
Fuel Sustaining
Mitaka
Fix Released
High
Bogdan Dobrelya

Bug Description

HAProxy, MySQL and the rest of the OCF agents should configure:
: ${HA_LOGTAG="lrmd"} (or its own tag instead)
: ${HA_LOGFACILITY="daemon"}

in order to log its own messages to syslog.
Otherwise it is nearly to impossible to troubleshoot HAproxy issues, like https://bugs.launchpad.net/fuel/+bug/1487056
Hence, the UX of this bug is high.

Changed in fuel:
assignee: nobody → Bogdan Dobrelya (bogdando)
milestone: none → 7.0
importance: Undecided → High
status: New → Confirmed
tags: added: haproxy pacemaker
summary: - haproxy OCF doesn't write its own logs
+ haproxy and mysql OCF aren't write their own logs
description: updated
summary: - haproxy and mysql OCF aren't write their own logs
+ haproxy and mysql and other OCF agents aren't write their own logs
description: updated
description: updated
Changed in fuel:
status: Confirmed → In Progress
summary: - haproxy and mysql and other OCF agents aren't write their own logs
+ haproxy and mysql and other OCF agents don't write their own logs
Revision history for this message
Alex Schultz (alex-schultz) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/215199
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=6d90814c5675353aaf97946a40eb92d55cb9bdb4
Submitter: Jenkins
Branch: master

commit 6d90814c5675353aaf97946a40eb92d55cb9bdb4
Author: Bogdan Dobrelya <email address hidden>
Date: Thu Aug 20 17:31:53 2015 +0200

    Fix missing OCF logging

    W/o this patch, the most of the OCF agents
    sending their own logs to nothere.

    This is a major issue, because we want to
    be able troubleshoot and keep OCF events
    in syslog and collected at remote logs
    server(s) as well.

    The solution is to enable HA_LOGTAG and
    HA_LOGFACILITY for each OCF script shipped
    with the Fuel.

    DocImpact: Ops guide. Logging events from
    Fuel OCF agents will be collected both
    locally in the /var/log/daemon.log and remotely,
    with the file names based on the agent "foo-agent"
    name as the "ocf-foo-agent.log". Note, that the
    RabbitMQ will continue to log its OCF events
    to the lrmd.log due to backwards compatibility reasons.

    Closes-bug: #1487083
    Change-Id: Ida2d5fe31de42d31131e0f3a3e7b1a771caf8dfd
    Signed-off-by: Bogdan Dobrelya <email address hidden>

Changed in fuel:
status: In Progress → Fix Committed
tags: added: on-verification
Revision history for this message
Oleksiy Molchanov (omolchanov) wrote :

Verified

VERSION:
  feature_groups:
    - mirantis
  production: "docker"
  release: "7.0"
  openstack_version: "2015.1.0-7.0"
  api: "1.0"
  build_number: "284"
  build_id: "284"
  nailgun_sha: "5c33995a2e6d9b1b8cdddfa2630689da5084506f"
  python-fuelclient_sha: "1ce8ecd8beb640f2f62f73435f4e18d1469979ac"
  fuel-agent_sha: "082a47bf014002e515001be05f99040437281a2d"
  fuel-nailgun-agent_sha: "d7027952870a35db8dc52f185bb1158cdd3d1ebd"
  astute_sha: "8283dc2932c24caab852ae9de15f94605cc350c6"
  fuel-library_sha: "f81fdabe6c05be7a3d11d88a7c3a8f3931921c73"
  fuel-ostf_sha: "1f08e6e71021179b9881a824d9c999957fcc7045"
  fuelmain_sha: "9ab01caf960013dc882825dc9b0e11ccf0b81cb0"

Changed in fuel:
status: Fix Committed → Fix Released
tags: removed: on-verification
no longer affects: fuel/7.0.x
Maciej Relewicz (rlu)
tags: added: area-library
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/6.1)

Fix proposed to branch: stable/6.1
Review: https://review.openstack.org/316085

Revision history for this message
Matthew Mosesohn (raytrac3r) wrote :

Bogdan, please propose 9.0 backport

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/7.0)

Fix proposed to branch: stable/7.0
Review: https://review.openstack.org/316803

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/8.0)

Fix proposed to branch: stable/8.0
Review: https://review.openstack.org/317979

Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

There is no 9.0 backport required, the patch https://review.openstack.org/#/c/215199/ had closed it in the 9.0 scope

Revision history for this message
Ksenia Svechnikova (kdemina) wrote :

Verify on ISO

Remote logs:
[root@nailgun ~]# less /var/log/remote/node-2.test.domain.local/o
ocf-heat-engine.log ocf-neutron-metadata-agent.log ocf-ns_haproxy.log ocf-ns_IPaddr2.log.3.gz os-prober.log
ocf-mysql-wss.log ocf-neutron-ovs-agent.log ocf-ns_IPaddr2.log ocf-ns_IPaddr2.log.4.gz ovs-ofctl.log
ocf-neutron-dhcp-agent.log ocf-ns_conntrackd.log ocf-ns_IPaddr2.log.1.gz ocf-ns_ntp.log ovs-vsctl.log
ocf-neutron-l3-agent.log ocf-ns_dns.log ocf-ns_IPaddr2.log.2.gz ocf-ns_vrouter.log

This logs are also present locally on the node in daemon.log file

Revision history for this message
Ksenia Svechnikova (kdemina) wrote :
no longer affects: fuel/newton
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-library (stable/8.0)

Change abandoned by Bogdan Dobrelya (<email address hidden>) on branch: stable/8.0
Review: https://review.openstack.org/317979

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-library (stable/7.0)

Change abandoned by Bogdan Dobrelya (<email address hidden>) on branch: stable/7.0
Review: https://review.openstack.org/316803

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on fuel-library (stable/6.1)

Change abandoned by Bogdan Dobrelya (<email address hidden>) on branch: stable/6.1
Review: https://review.openstack.org/316085

Revision history for this message
Denis Meltsaykin (dmeltsaykin) wrote :

Won't fix for 6.x series as they are unsupported.

Revision history for this message
Vitaly Sedelnik (vsedelnik) wrote :

Won't Fix for 7.0- and 8.0-updates as this is too large change to be accepted to stable branch

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.