yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #60831
[Bug 1656276] Re: Error running nova-manage cell_v2 simple_cell_setup when configuring nova with puppet-nova
Reviewed: https://review.openstack.org/422248
Committed: https://git.openstack.org/cgit/openstack/puppet-nova/commit/?id=dc2f3a358663c0fb97795666b16dec63cfcc3872
Submitter: Jenkins
Branch: master
commit dc2f3a358663c0fb97795666b16dec63cfcc3872
Author: Oliver Walsh <owalsh@xxxxxxxxxx>
Date: Wed Jan 18 21:26:43 2017 +0000
Implement a proper cell_v2 setup
Rather than use simple_cell_setup which expects that there are already
existing computes, this change uses map_cell0 & create_cell to setup
cell_v2. Once the computes are configured, the cell_v2 discover_hosts
should be used to finalized the installation.
In addition, the db syncs need to be reordered as the api db sync
should run before the the cell_v2 setup. The main db sync should run
after.
map_cell0/simple_cell_setup now uses main nova DB connection instead
of the api DB connection.
Change-Id: I591b451197dc3bd0783978f5e3d2b1c830afe54e
Closes-Bug: #1656276
Related-Bug: #1656673
Co-Authored-By: Alex Schultz <aschultz@xxxxxxxxxx>
** Changed in: puppet-nova
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1656276
Title:
Error running nova-manage cell_v2 simple_cell_setup when configuring
nova with puppet-nova
Status in OpenStack Compute (nova):
In Progress
Status in OpenStack Compute (nova) newton series:
New
Status in Packstack:
New
Status in puppet-nova:
Fix Released
Status in tripleo:
Triaged
Bug description:
When installing and configuring nova with puppet-nova (with either
tripleo, packstack or puppet-openstack-integration), we are getting
following errors:
Debug: Executing: '/usr/bin/nova-manage cell_v2 simple_cell_setup --transport-url=rabbit://guest:guest@172.19.2.159:5672/?ssl=0'
Debug: /Stage[main]/Nova::Db::Sync_cell_v2/Exec[nova-cell_v2-simple-cell-setup]/returns: Sleeping for 5 seconds between tries
Notice: /Stage[main]/Nova::Db::Sync_cell_v2/Exec[nova-cell_v2-simple-cell-setup]/returns: Cell0 is already setup.
Notice: /Stage[main]/Nova::Db::Sync_cell_v2/Exec[nova-cell_v2-simple-cell-setup]/returns: No hosts found to map to cell, exiting.
The issue seems to be that it's running "nova-manage cell_v2
simple_cell_setup" as part of the nova database initialization when no
compute nodes have been created but it returns 1 in that case [1].
However, note that the previous steps (Cell0 mapping and schema
migration) were successfully run.
I think for nova bootstrap a reasonable orchestrated workflow would
be:
1. Create required databases (including the one for cell0).
2. Nova db sync
3. nova cell0 mapping and schema creation.
4. Adding compute nodes
5. mapping compute nodes (by running nova-manage cell_v2 discover_hosts)
For step 3 we'd need to get simple_cell_setup to return 0 when not
having compute nodes, or having a different command.
With current behavior of nova-manage the only working workflow we can
do is:
1. Create required databases (including the one for cell0).
2. Nova db sync
3. Adding all compute nodes
4. nova cell0 mapping and schema creation with "nova-manage cell_v2 simple_cell_setup".
Am I right?, Is there any better alternative?
[1] https://github.com/openstack/nova/blob/master/nova/cmd/manage.py#L1112-L1114
To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1656276/+subscriptions
References