diff -Nru nova-15.0.6/debian/changelog nova-15.0.6/debian/changelog --- nova-15.0.6/debian/changelog 2017-07-25 11:39:30.000000000 -0400 +++ nova-15.0.6/debian/changelog 2017-08-29 15:40:07.000000000 -0300 @@ -1,3 +1,10 @@ +nova (2:15.0.6-0ubuntu1.1) zesty; urgency=medium + + * d/nova-common.postinst: Don't sync database if connection is not defined + in /etc/nova/nova.conf (LP: #1713059). + + -- Felipe Reyes Tue, 29 Aug 2017 15:40:07 -0300 + nova (2:15.0.6-0ubuntu1) zesty; urgency=medium * New stable point release for OpenStack Ocata (LP: #1706297). diff -Nru nova-15.0.6/debian/nova-common.postinst nova-15.0.6/debian/nova-common.postinst --- nova-15.0.6/debian/nova-common.postinst 2017-07-25 11:39:30.000000000 -0400 +++ nova-15.0.6/debian/nova-common.postinst 2017-08-29 15:40:04.000000000 -0300 @@ -47,8 +47,7 @@ chown root:root /etc/nova/rootwrap.d chmod 0755 /etc/nova/rootwrap.d - if ! grep -qE "^(sql_)?connection( )?=.*" /etc/nova/nova.conf || \ - grep -qE "^(sql_)?connection.*sqlite.*" /etc/nova/nova.conf + if grep -qE "^(sql_)?connection.*sqlite.*" /etc/nova/nova.conf then su -s /bin/sh -c 'nova-manage db sync' nova fi