From 9f91d6f2e6c5d552f12f6e64ecc81661123415a9 Mon Sep 17 00:00:00 2001 From: Hunt Xu Date: Tue, 20 Mar 2018 11:52:55 +0800 Subject: [PATCH] zuul: create Neutron config dir for the devstack job With [1] the devstack zuul job will try to update Neutron's configuration, even though we don't use Neutron for Qinling at all. This commit is a workaround to create a Neutron config dir to satisfy devstack when the Neutron service is actually disabled. [1] I2dcbd9bdb401860820e655d97aa3c4775af2827f Change-Id: I6ecc7d631c7deccf7d5011ec68a08759441a0318 --- .zuul.yaml | 2 ++ playbooks/post.yaml | 8 ++++++++ playbooks/pre.yaml | 10 ++++++++++ 3 files changed, 20 insertions(+) create mode 100644 playbooks/post.yaml create mode 100644 playbooks/pre.yaml diff --git a/.zuul.yaml b/.zuul.yaml index 0a413301..1a16e233 100644 --- a/.zuul.yaml +++ b/.zuul.yaml @@ -12,6 +12,8 @@ - ^doc/.* - ^qinling/tests/unit/.*$ - ^releasenotes/.*$ + pre-run: playbooks/pre.yaml + post-run: playbooks/post.yaml vars: devstack_services: # Disable unneeded services. diff --git a/playbooks/post.yaml b/playbooks/post.yaml new file mode 100644 index 00000000..0a77fe74 --- /dev/null +++ b/playbooks/post.yaml @@ -0,0 +1,8 @@ +- hosts: all + tasks: + - name: cleanup the Neutron config dir + become: true + file: + path: /etc/neutron + state: absent + diff --git a/playbooks/pre.yaml b/playbooks/pre.yaml new file mode 100644 index 00000000..35f77559 --- /dev/null +++ b/playbooks/pre.yaml @@ -0,0 +1,10 @@ +- hosts: all + tasks: + - name: create Neutron config dir for devstack job + become: true + file: + path: /etc/neutron + owner: stack + recurse: yes + state: directory +