Restarting daemons before db synchronization fails

Bug #984959 reported by Marco CONSONNI
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openstack-manuals
Fix Released
Medium
Anne Gentle

Bug Description

At the end of http://docs.openstack.org/trunk/openstack-compute/install/content/compute-minimum-configuration-settings.html, the instructions say to restart the daemons.

If you do that before migrating/synchronizing the DB, all the services stop with errors due to tables unavailability.
In fact, the DB has been created in MySQL but it doesn't contain any table and the daemons fail because they look for tables.

Consider the following sequence:

-- Stop all the services with command "sudo stop <serviceName>"
-- Synchronize db with command "sudo nova-manage db sync"
-- Restart all the services with command "sudo start <serviceName>"

Also, check the list of services: nova-cert and nova-consoleauth should be there (I submitted another bug on this matter).

Revision history for this message
Virabhadra Ratnasabapathi (virabhadra-ratnasabapathi) wrote :

Strange! In my environnment it works.

Revision history for this message
Marco CONSONNI (marco-consonni) wrote :

Well, the sequence described in the document doesn't give any apparent problem but if you examine the daemon's log file, you find out that all the services fail.

This is due to the fact that when they start they try to access tables that are not yet created in MySQL.

As a matter of fact, they are created when you synch the DB.

For this reason, I think that the right sequence is the one I suggested.

Just out of curiosity: what did you do for restarting services?

"service <serviceName> restart" or "service <serviceName> start"?

Changed in openstack-manuals:
assignee: nobody → Razique Mahroua (razique)
Anne Gentle (annegentle)
Changed in openstack-manuals:
status: New → Triaged
importance: Undecided → Medium
Anne Gentle (annegentle)
Changed in openstack-manuals:
assignee: Razique Mahroua (razique) → Anne Gentle (annegentle)
Anne Gentle (annegentle)
Changed in openstack-manuals:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (stable/essex)

Fix proposed to branch: stable/essex
Review: https://review.openstack.org/8684

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to openstack-manuals (master)

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

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (stable/essex)

Reviewed: https://review.openstack.org/8684
Committed: http://github.com/openstack/openstack-manuals/commit/fac4698982944bd4093671aaf079096d6a81b400
Submitter: Jenkins
Branch: stable/essex

commit fac4698982944bd4093671aaf079096d6a81b400
Author: annegentle <email address hidden>
Date: Mon Jun 18 22:52:28 2012 -0500

    Clean up on install guide especially Fedora related.

    Fix PDF link problem on essex file related to pom.xml using wrong variable.

    Starting on the essex branch but will port to trunk as all apply.

    Fix bug 967778, bug 984959, bug 1002294, bug 1010163.

    Change-Id: Iac5a63493313cf1242c8261893852dcb82f94118

tags: added: in-stable-essex
Changed in openstack-manuals:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to openstack-manuals (master)

Reviewed: https://review.openstack.org/8685
Committed: http://github.com/openstack/openstack-manuals/commit/3a33f8ae7e33bb9fa612d0fcc155d25f2e6619f6
Submitter: Jenkins
Branch: master

commit 3a33f8ae7e33bb9fa612d0fcc155d25f2e6619f6
Author: annegentle <email address hidden>
Date: Mon Jun 18 22:52:28 2012 -0500

    Clean up on install guide especially Fedora related.

    Fix PDF link problem on essex file related to pom.xml using wrong variable.

    Starting on the essex branch but will port to trunk as all apply.

    Fix bug 967778, bug 984959, bug 1002294, bug 1010163.

    Change-Id: Iac5a63493313cf1242c8261893852dcb82f94118

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.