Ceilometer charm can fail to start apache when using ssl

Bug #1632287 reported by Liam Young
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
ceilometer (Juju Charms Collection)
Fix Released
High
Liam Young

Bug Description

When using SSL the ceilometer charm can fail to start apache. Juju status shows:

ceilometer/0 blocked executing 1.25.6 1 8777/tcp 10.5.28.171 Services not running that should be: apache2

The unit logs show:

2016-10-11 10:33:46 INFO identity-service-relation-changed * Restarting web server apache2
2016-10-11 10:33:46 INFO identity-service-relation-changed (98)Address already in use: AH00072: make_sock: could not bind to address [::]:8767
2016-10-11 10:33:46 INFO identity-service-relation-changed (98)Address already in use: AH00072: make_sock: could not bind to address 0.0.0.0:8767

The problem appears to be down to apache trying to bind to port 8767 when the ceilometer service is bound to it.

Liam Young (gnuoy)
Changed in ceilometer (Juju Charms Collection):
status: New → Confirmed
importance: Undecided → Critical
importance: Critical → High
assignee: nobody → Liam Young (gnuoy)
milestone: none → 16.10
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to charm-ceilometer (master)

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

Changed in ceilometer (Juju Charms Collection):
status: Confirmed → In Progress
Revision history for this message
Ryan Beisner (1chb1n) wrote :

Without SSL, on bare metal, I'm seeing this randomly but noticeably. Do you think it is related?

ceilometer/0 blocked idle 1.25.6.1 4/lxc/0 8777/tcp 10.245.169.186 Services not running that should be: ceilometer-api

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to charm-ceilometer (master)

Reviewed: https://review.openstack.org/384935
Committed: https://git.openstack.org/cgit/openstack/charm-ceilometer/commit/?id=f289429ed66138f1786bb89d02cf6a4aec476241
Submitter: Jenkins
Branch: master

commit f289429ed66138f1786bb89d02cf6a4aec476241
Author: Liam Young <email address hidden>
Date: Tue Oct 11 10:59:19 2016 +0000

    Stop/Start ceilometer-api if Apache has changed

    If the charm enables https then apache is used to terminate ssl. As
    part of this Apache listens on the port that the ceilometer API port
    was listening on and the API service shuffles down to a lower port. If
    the services are restarted one at a time and Apache goes first then
    Apache will try and bind to the port the API service is listening on
    because the API service has not yet been restarted to pick up its
    new port.

    Change-Id: Ied3224660948a9775c8000369cba0c287944cde5
    Closes-Bug: 1632287

Changed in ceilometer (Juju Charms Collection):
status: In Progress → Fix Committed
James Page (james-page)
Changed in ceilometer (Juju Charms Collection):
status: Fix Committed → Fix Released
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.