drop db sync commands from OpenStack packages
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Cloud Archive |
Fix Released
|
High
|
Unassigned | ||
Mitaka |
Fix Released
|
High
|
Unassigned | ||
Newton |
Fix Released
|
High
|
Unassigned | ||
Ocata |
Fix Released
|
High
|
Unassigned | ||
Pike |
Fix Released
|
High
|
Unassigned | ||
aodh (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Invalid
|
Undecided
|
Unassigned | ||
Zesty |
Invalid
|
Undecided
|
Unassigned | ||
Artful |
Fix Released
|
Medium
|
Unassigned | ||
ceilometer (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Invalid
|
Undecided
|
Unassigned | ||
Zesty |
Invalid
|
Undecided
|
Unassigned | ||
Artful |
Fix Released
|
Medium
|
Unassigned | ||
cinder (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Invalid
|
Undecided
|
Unassigned | ||
Zesty |
Invalid
|
Undecided
|
Unassigned | ||
Artful |
Fix Released
|
Medium
|
Unassigned | ||
glance (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Invalid
|
Undecided
|
Unassigned | ||
Zesty |
Invalid
|
Undecided
|
Unassigned | ||
Artful |
Fix Released
|
Medium
|
Unassigned | ||
ironic (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Invalid
|
Undecided
|
Unassigned | ||
Zesty |
Invalid
|
Undecided
|
Unassigned | ||
Artful |
Fix Released
|
Medium
|
Unassigned | ||
keystone (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Invalid
|
Undecided
|
Unassigned | ||
Zesty |
Invalid
|
Undecided
|
Unassigned | ||
Artful |
Fix Released
|
Medium
|
Unassigned | ||
manila (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Invalid
|
Undecided
|
Unassigned | ||
Zesty |
Invalid
|
Undecided
|
Unassigned | ||
Artful |
Fix Released
|
Medium
|
Unassigned | ||
nova (Ubuntu) |
Fix Released
|
High
|
Unassigned | ||
Xenial |
Fix Released
|
High
|
Felipe Reyes | ||
Zesty |
Fix Released
|
High
|
Felipe Reyes | ||
Artful |
Fix Released
|
High
|
Unassigned | ||
openstack-trove (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Invalid
|
Undecided
|
Unassigned | ||
Zesty |
Invalid
|
Undecided
|
Unassigned | ||
Artful |
Fix Released
|
Medium
|
Unassigned | ||
panko (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Xenial |
Invalid
|
Undecided
|
Unassigned | ||
Zesty |
Invalid
|
Undecided
|
Unassigned | ||
Artful |
Fix Released
|
Medium
|
Unassigned |
Bug Description
[Impact]
nova-compute service does not need access to the database, systems where nova.conf is configured without a database connection the nova-common package will fail to get configured
[Test Case]
Using this deployer bundle -> http://
juju-deployer -c bundle.yaml -d -v -s 10 xenial-mitaka
# once everything is installed
git clone https:/
cd openstack-
./os-upgrade.py -o cloud:xenial-newton
Expected result:
nova-compute units upgrade their packages to newton without errors
Actual result:
nova-common fails to configure itself in the nova-compute units
[Regression Potential]
This change was tested in a staging environment and no regressions were detected, but any possible regression will express itself as a failure running "nova-manage db sync".
[Other Info]
The original reason this bug was opened is that nova db sync is executed when the 'connection' is not defined. Let's fix that and at the same time drop all db syncs from OpenStack packages in Pike.
More on the nova issue:
When the 'connection' configuration key is NOT defined in /etc/nova/nova.conf the nova-common.
root@juju-
root@juju-
Option "logdir" from group "DEFAULT" is deprecated. Use option "log-dir" from group "DEFAULT".
Option "verbose" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future.
ERROR: could not access cell mapping database - has api db been created?
An error has occurred:
Traceback (most recent call last):
File "/usr/lib/
ret = fn(*fn_args, **fn_kwargs)
File "/usr/lib/
return migration.
File "/usr/lib/
return IMPL.db_
File "/usr/lib/
repository, version)
File "/usr/lib/
return _migrate(url, repository, version, upgrade=True, err=err, **opts)
File "<decorator-
File "/usr/lib/
return f(*a, **kw)
File "/usr/lib/
schema.
File "/usr/lib/
change.
File "/usr/lib/
script_
File "/usr/lib/
raise exception.
ValidationError: Migration cannot continue until all these have been migrated to the api database. Please run `nova-manage db online_migrations' on Newton code before continuing.There are still 5 unmigrated flavors.
Running the postinst script manually with -x
root@juju-
+ '[' configure = configure ']'
+ getent group nova
+ getent passwd nova
+ '[' -z '' ']'
+ chown -R nova:nova /var/lib/nova/
+ chown -R nova:nova /etc/nova
+ chown -R nova:adm /var/log/nova
+ '[' -z '' ']'
+ chown -R nova:nova /var/lib/nova/
+ chmod 0640 /etc/nova/nova.conf
+ chmod 0640 /etc/nova/
+ chmod 0750 /etc/nova
+ chmod 0750 /var/log/nova
+ chown root:root /etc/nova/
+ chown root:root /etc/nova/
+ chmod 0755 /etc/nova/
+ grep -qE '^(sql_
+ su -s /bin/sh -c 'nova-manage db sync' nova
Option "logdir" from group "DEFAULT" is deprecated. Use option "log-dir" from group "DEFAULT".
Option "verbose" from group "DEFAULT" is deprecated for removal. Its value may be silently ignored in the future.
ERROR: could not access cell mapping database - has api db been created?
An error has occurred:
Traceback (most recent call last):
...
ValidationError: Migration cannot continue until all these have been migrated to the api database. Please run `nova-manage db online_migrations' on Newton code before continuing.There are still 5 unmigrated flavors.
The condition to run the sync operation should be that the connection config key is defined in nova.conf
# diff -u /var/lib/
--- /var/lib/
+++ ./nova-
@@ -47,8 +47,8 @@
chown root:root /etc/nova/
chmod 0755 /etc/nova/
- if ! grep -qE "^(sql_
- grep -qE "^(sql_
+ if grep -qE "^(sql_
+ grep -qE "^(sql_
then
su -s /bin/sh -c 'nova-manage db sync' nova
fi
Changed in ironic (Ubuntu Zesty): | |
status: | New → Invalid |
Changed in ironic (Ubuntu Xenial): | |
status: | New → Invalid |
Changed in ironic (Ubuntu Artful): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Changed in nova (Ubuntu Artful): | |
importance: | Undecided → High |
Changed in nova (Ubuntu Zesty): | |
status: | New → Triaged |
Changed in nova (Ubuntu Xenial): | |
status: | New → Triaged |
importance: | Undecided → Critical |
importance: | Critical → High |
Changed in nova (Ubuntu Zesty): | |
importance: | Undecided → High |
Changed in ceilometer (Ubuntu Artful): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in ceilometer (Ubuntu Zesty): | |
status: | New → Invalid |
Changed in ceilometer (Ubuntu Xenial): | |
status: | New → Invalid |
Changed in cinder (Ubuntu Xenial): | |
status: | New → Invalid |
Changed in cinder (Ubuntu Zesty): | |
status: | New → Invalid |
Changed in cinder (Ubuntu Artful): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in panko (Ubuntu Xenial): | |
status: | New → Invalid |
Changed in panko (Ubuntu Zesty): | |
status: | New → Invalid |
Changed in panko (Ubuntu Artful): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in openstack-trove (Ubuntu Xenial): | |
status: | New → Invalid |
Changed in openstack-trove (Ubuntu Zesty): | |
status: | New → Invalid |
Changed in openstack-trove (Ubuntu Artful): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in glance (Ubuntu Xenial): | |
status: | New → Invalid |
Changed in glance (Ubuntu Zesty): | |
status: | New → Invalid |
Changed in glance (Ubuntu Artful): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in aodh (Ubuntu Xenial): | |
status: | New → Invalid |
Changed in aodh (Ubuntu Zesty): | |
status: | New → Invalid |
Changed in aodh (Ubuntu Artful): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in manila (Ubuntu Xenial): | |
status: | New → Invalid |
Changed in manila (Ubuntu Zesty): | |
status: | New → Invalid |
Changed in manila (Ubuntu Artful): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in keystone (Ubuntu Xenial): | |
status: | New → Invalid |
Changed in keystone (Ubuntu Zesty): | |
status: | New → Invalid |
Changed in keystone (Ubuntu Artful): | |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in nova (Ubuntu Zesty): | |
assignee: | nobody → Felipe Reyes (freyes) |
Changed in nova (Ubuntu Xenial): | |
assignee: | nobody → Felipe Reyes (freyes) |
description: | updated |
Here I'm attaching a debdiff for artful, if this is OK, I will work on the SRUs.
Note: This package is not synced from debian -> https:/ /github. com/openstack/ deb-nova/ blob/debian/ ocata/debian/ nova-common. postinst. in#L105