Upstart starts services on Ubuntu before config file is created

Bug #1348185 reported by Sergii Golovatiuk
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Bogdan Dobrelya
5.0.x
Fix Committed
High
Bogdan Dobrelya

Bug Description

Openstack logs are bloated of the following messages

nova-consoleauth.log:2014-07-24 13:02:13.626 23717 ERROR oslo.messaging._drivers.impl_rabbit [req-635850ab-bc86-4eac-b1bf-c22a34a6eaaf ] AMQP server on localhost:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 30 seconds.
nova-consoleauth.log:2014-07-24 13:02:44.652 23717 ERROR oslo.messaging._drivers.impl_rabbit [req-635850ab-bc86-4eac-b1bf-c22a34a6eaaf ] AMQP server on localhost:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 30 seconds.
nova-consoleauth.log:2014-07-24 13:03:16.941 23717 ERROR oslo.messaging._drivers.impl_rabbit [req-635850ab-bc86-4eac-b1bf-c22a34a6eaaf ] AMQP server on localhost:5672 is unreachable: [Errno 111] ECONNREFUSED. Trying again in 30 seconds.

cinder-scheduler.log:2014-07-24 12:57:41.989 27250 ERROR oslo.messaging._drivers.impl_rabbit [req-db7b34b4-59ae-4be4-8fa4-037bf9baba20 - - - - -] AMQP server on localhost:5672 is
 unreachable: [Errno 111] ECONNREFUSED. Trying again in 23 seconds.
cinder-scheduler.log:2014-07-24 12:58:06.017 27250 ERROR oslo.messaging._drivers.impl_rabbit [req-db7b34b4-59ae-4be4-8fa4-037bf9baba20 - - - - -] AMQP server on localhost:5672 is
 unreachable: [Errno 111] ECONNREFUSED. Trying again in 25 seconds.
cinder-scheduler.log:2014-07-24 12:58:32.045 27250 ERROR oslo.messaging._drivers.impl_rabbit [req-db7b34b4-59ae-4be4-8fa4-037bf9baba20 - - - - -] AMQP server on localhost:5672 is
 unreachable: [Errno 111] ECONNREFUSED. Trying again in 27 seconds.

This issue happens on ubuntu as puppet installs packages so upstart starts it immediately though config for service was not created.
Normally we should apply tweaks::ubuntu_service_override for every openstack package that have a service

Changed in fuel:
importance: Undecided → Low
importance: Low → Medium
Changed in fuel:
importance: Medium → High
milestone: next → 5.1
status: New → Confirmed
assignee: Fuel Library Team (fuel-library) → Bogdan Dobrelya (bogdando)
Changed in fuel:
status: Confirmed → Triaged
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (master)

Fix proposed to branch: master
Review: https://review.openstack.org/109321

Changed in fuel:
status: Triaged → In Progress
tags: removed: low-hanging-fruit
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-library (master)

Reviewed: https://review.openstack.org/109321
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=099dceefd267ad6f20b67a17ec95df01c223e673
Submitter: Jenkins
Branch: master

commit 099dceefd267ad6f20b67a17ec95df01c223e673
Author: Bogdan Dobrelya <email address hidden>
Date: Thu Jul 24 18:24:26 2014 +0300

    Disable Openstack services startup on install

    Upstart makes services went off once installed.
    We're wanting them started only then configured.
    If ceph is used volumes, leave cinder-volume override
    on its own (rbd.pp will configure it).

    Closes-bug: #1348185

    Change-Id: I50ff5b0f5bc3d80bfef917116a620bd9386e8e56
    Signed-off-by: Bogdan Dobrelya <email address hidden>

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

Additional fix is required: puppet have to ensure upstart tweaks *before* related packages

Changed in fuel:
status: Fix Committed → In Progress
Revision history for this message
Bogdan Dobrelya (bogdando) wrote :

False alert :) It already does File[$file_name] -> Package <| title == $package_name |> -> Exec[$exec_name]

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-library (stable/5.0)

Fix proposed to branch: stable/5.0
Review: https://review.openstack.org/117194

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

Reviewed: https://review.openstack.org/117194
Committed: https://git.openstack.org/cgit/stackforge/fuel-library/commit/?id=4073deae506edb5803a7e35edc51acfcc4acde30
Submitter: Jenkins
Branch: stable/5.0

commit 4073deae506edb5803a7e35edc51acfcc4acde30
Author: Bogdan Dobrelya <email address hidden>
Date: Thu Jul 24 18:24:26 2014 +0300

    Disable Openstack services startup on install

    Upstart makes services went off once installed.
    We're wanting them started only then configured.
    If ceph is used volumes, leave cinder-volume override
    on its own (rbd.pp will configure it).

    Closes-bug: #1348185
    Closes-bug: #1335804

    Change-Id: I50ff5b0f5bc3d80bfef917116a620bd9386e8e56
    Signed-off-by: Bogdan Dobrelya <email address hidden>

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.