Browse Source

Instack.json for undercloud VM image

Do not try to copy the instackenv.json configuration
file to the undercloud VM image, if it wasn't generated
in the overcloud setup role.

This may be the case if there are no overcloud nodes
defined and the overcloud setup role is missing in
the play, f.e. the containerized undercloud use case.

Partial-bug: #1676373
Change-Id: I7a5a564aacdfa2153ad727baf0b5259cb723ec69
Signed-off-by: Bogdan Dobrelya <bdobreli@redhat.com>
tags/2.1.0
Bogdan Dobrelya 2 years ago
parent
commit
34bd210a55

+ 0
- 1
roles/libvirt/setup/overcloud/tasks/main.yml View File

@@ -115,4 +115,3 @@
115 115
   template:
116 116
     src: "{{ undercloud_instackenv_template }}"
117 117
     dest: "{{ working_dir }}/instackenv.json"
118
-

+ 1
- 0
roles/libvirt/setup/undercloud/tasks/main.yml View File

@@ -78,6 +78,7 @@
78 78
     environment:
79 79
       LIBGUESTFS_BACKEND: direct
80 80
       LIBVIRT_DEFAULT_URI: "{{ libvirt_uri }}"
81
+    when: overcloud_nodes
81 82
 
82 83
   # Copy the undercloud public key to the virthost, because we're going
83 84
   # to inject it into the undercloud image in the next task.

Loading…
Cancel
Save