summaryrefslogtreecommitdiff
path: root/playbooks
diff options
context:
space:
mode:
authorMatt Riedemann <mriedem.os@gmail.com>2018-05-11 09:36:10 -0400
committerMatt Riedemann <mriedem.os@gmail.com>2019-02-28 10:54:01 -0500
commit00d9a3a2e6b4fbbffca359bf36480d902ae608cd (patch)
treefbafb322c2082336d1dad8bacec11af8e5ce8cc0 /playbooks
parent23444c26f82e34787c5d2fa91450d6c2b5bb2dad (diff)
downloadnova-00d9a3a2e6b4fbbffca359bf36480d902ae608cd.tar.gz
Test live migration with config drive
Tempest live migration tests do not create the server with config drive so we do not, by default, have test coverage of live migrating an instance with a config drive. This change forces nova to create a config drive for all instances in the nova-live-migration job which will also run evacuate tests with a config drive attached. Change-Id: I8157b9e6e9da492a225cbb50a20f434f83a5fecb Related-Bug: #1770640
Diffstat (limited to 'playbooks')
-rw-r--r--playbooks/legacy/nova-live-migration/run.yaml15
1 files changed, 15 insertions, 0 deletions
diff --git a/playbooks/legacy/nova-live-migration/run.yaml b/playbooks/legacy/nova-live-migration/run.yaml
index 6e5d3a46d5..5101b0d6e1 100644
--- a/playbooks/legacy/nova-live-migration/run.yaml
+++ b/playbooks/legacy/nova-live-migration/run.yaml
@@ -23,6 +23,21 @@
chdir: '{{ ansible_user_dir }}/workspace'
environment: '{{ zuul | zuul_legacy_vars }}'
+ - name: Configure devstack
+ shell:
+ # Force config drive.
+ cmd: |
+ set -e
+ set -x
+ cat << 'EOF' >>"/tmp/dg-local.conf"
+ [[local|localrc]]
+ FORCE_CONFIG_DRIVE=True
+
+ EOF
+ executable: /bin/bash
+ chdir: '{{ ansible_user_dir }}/workspace'
+ environment: '{{ zuul | zuul_legacy_vars }}'
+
- shell:
cmd: |
set -e