order of nova syncdb fix
Change-Id: I986039675a030ad344de11e5583a17c6fbc3748a
diff --git a/nova/controller.sls b/nova/controller.sls
index 2b2fe0f..0a8ac8f 100644
--- a/nova/controller.sls
+++ b/nova/controller.sls
@@ -95,31 +95,27 @@
{%- if not grains.get('noservices', False) %}
-nova_controller_syncdb:
- cmd.run:
- - names:
- - nova-manage db sync
- - require:
- - file: /etc/nova/nova.conf
-
{%- if controller.version in ["mitaka", "newton", "ocata"] %}
nova_controller_sync_apidb:
cmd.run:
- name: nova-manage api_db sync
- require:
- file: /etc/nova/nova.conf
- - require_in:
- - cmd: nova_controller_syncdb
{%- endif %}
{%- if controller.version in ["newton", "ocata"] %}
nova_controller_online_data_migrations:
cmd.run:
- name: nova-manage db online_data_migrations
- - require:
- - cmd: nova_controller_syncdb
{%- endif %}
+nova_controller_syncdb:
+ cmd.run:
+ - names:
+ - nova-manage db sync
+ - require:
+ - file: /etc/nova/nova.conf
+
{%- if controller.version in ["ocata"] %}
nova_controller_map_cell0: