diff options
author | Markos Chandras <mchandras@suse.de> | 2018-08-10 13:14:38 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2018-08-10 13:14:38 +0000 |
commit | 8d00a12b591028e57037dee8a7d598f8f155d421 (patch) | |
tree | 5b4206fe686424cc637620707abd6d5eebb8957b /xci/playbooks/roles/create-vm-nodes/tasks | |
parent | 46be526924d71cf4acc0531e7c0f052fec0bd4f9 (diff) | |
parent | 37c164735db1e84e1b228c15c94ff165d67c201b (diff) |
Merge changes from topic 'extend-suse-support-id-skip-verify'
* changes:
xci: xci-destroy-env.sh: Update virtualbmc path
xci: create-vm-nodes: Install virtualbmc in the XCI virtualenv
xci: osa: Drop openSUSE mirror variables
Diffstat (limited to 'xci/playbooks/roles/create-vm-nodes/tasks')
-rw-r--r-- | xci/playbooks/roles/create-vm-nodes/tasks/create_vm.yml | 8 | ||||
-rw-r--r-- | xci/playbooks/roles/create-vm-nodes/tasks/prepare_libvirt.yml | 1 |
2 files changed, 9 insertions, 0 deletions
diff --git a/xci/playbooks/roles/create-vm-nodes/tasks/create_vm.yml b/xci/playbooks/roles/create-vm-nodes/tasks/create_vm.yml index ab427c69..008e5531 100644 --- a/xci/playbooks/roles/create-vm-nodes/tasks/create_vm.yml +++ b/xci/playbooks/roles/create-vm-nodes/tasks/create_vm.yml @@ -103,11 +103,15 @@ # with a custom Ansible module using vbmc Python API - name: get list of nodes from virtualbmc command: vbmc list + environment: + PATH: "{{ lookup('env', 'XCI_VENV') }}/bin" register: vbmc_list # NOTE(NobodyCam): Space at the end of the find clause is required for proper matching. - name: delete vm from virtualbmc if it is there command: vbmc delete {{ vm_name }} + environment: + PATH: "{{ lookup('env', 'XCI_VENV') }}/bin" when: vbmc_list.stdout.find(vm_name) != -1 - set_fact: @@ -115,9 +119,13 @@ - name: plug vm into vbmc command: vbmc add {{ vm_name }} --libvirt-uri {{ vm_libvirt_uri }} --port {{ virtual_ipmi_port }} + environment: + PATH: "{{ lookup('env', 'XCI_VENV') }}/bin" - name: start virtualbmc command: vbmc start {{ vm_name }} + environment: + PATH: "{{ lookup('env', 'XCI_VENV') }}/bin" - name: get XML of the vm virt: diff --git a/xci/playbooks/roles/create-vm-nodes/tasks/prepare_libvirt.yml b/xci/playbooks/roles/create-vm-nodes/tasks/prepare_libvirt.yml index e09e2d6b..a4fef469 100644 --- a/xci/playbooks/roles/create-vm-nodes/tasks/prepare_libvirt.yml +++ b/xci/playbooks/roles/create-vm-nodes/tasks/prepare_libvirt.yml @@ -117,3 +117,4 @@ - name: install virtualbmc pip: name: virtualbmc + virtualenv: "{{ lookup('env', 'XCI_VENV') }}" |