Old container started during the fuel update

Bug #1354465 reported by Alexander Kislitsky
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Committed
High
Alexander Kislitsky

Bug Description

Upgrading Fuel from 5.0 to 5.1.
Set of containers are not started due to rabbitmq container is not started.
In the 'supervisorctl' console we have BACKOFF error for rabbitmq container, but in 'docker ps' output we have rabbitmq container of 5.0 version. This bug can be with any container.

By the logs we can restore workflow:

1. all containers are stopped by supervisord api call
2. all containers are stopped by docker api call (due to supervisord bugs)
3. supervisord starts one of stopped containers
4. upgrading workflow
5. new container can't be started with error: Error: Cannot start container fuel-core-5.0-rabbitmq: listen tcp 0.0.0.0:15672: bind: address already in use

For fix this bug we should switch configs of containers to new version after db is dumped, cobbler configs are saved and before stopping services by supervisord api call.

Tags: upgrade
Revision history for this message
Alexander Kislitsky (akislitsky) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-web (master)

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

Changed in fuel:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-web (master)

Reviewed: https://review.openstack.org/112892
Committed: https://git.openstack.org/cgit/stackforge/fuel-web/commit/?id=fbfac1215500515ed0e7ea2648cb5b5067b3db3d
Submitter: Jenkins
Branch: master

commit fbfac1215500515ed0e7ea2648cb5b5067b3db3d
Author: Alexander Kislitsky <email address hidden>
Date: Fri Aug 8 18:23:16 2014 +0400

    Supervisord can start already stopped container

    We stop containers via supervisord api call.
    Also we try to stop containers via docker api call due to
    supervisord bugs. Sometimes supervisord starts stopped
    container again. And new container can't be run due to
    old one container already run. For workaround this supervisord
    bug we switch configs before upgrade.

    Change-Id: I595ac1cdd2c1d6fef02f6a7650d65cf968a7b850
    Closes-Bug: #1354465

Changed in fuel:
status: In Progress → Fix Committed
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.