From b46349bf6b8cbc1a2def860499fa5ca207717513 Mon Sep 17 00:00:00 2001 From: Sergey Reshetnyak Date: Wed, 15 Feb 2017 20:25:56 +0300 Subject: [PATCH] Add DB sync action It's needed for manual upgrade database schema Change-Id: I327872b904ad3fb0679d384f3e4862446c29e987 Depends-on: I425e028fcabf326d582a1d2e8fd45f761cd1a66c --- service/actions/db-sync.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 service/actions/db-sync.yaml diff --git a/service/actions/db-sync.yaml b/service/actions/db-sync.yaml new file mode 100644 index 0000000..81fdee3 --- /dev/null +++ b/service/actions/db-sync.yaml @@ -0,0 +1,17 @@ +actions: + - name: nova-db-sync + image: nova-base + dependencies: + - nova-db-create + command: nova-manage db sync + files: + - path: /etc/nova/nova.conf + content: nova.conf.j2 + - name: nova-api-db-sync + image: nova-base + dependencies: + - nova-db-create + command: nova-manage api_db sync + files: + - path: /etc/nova/nova.conf + content: nova.conf.j2