Skip to content

Commit 4b04f1e

Browse files
author
Asma Syed Hameed
committed
option for virtual_uc on instack firstnode
1 parent 33e9b11 commit 4b04f1e

3 files changed

Lines changed: 11 additions & 7 deletions

File tree

group_vars/all.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,10 @@ force_reprovision: false
117117
#do not enable this while running from your desktop
118118
virtual_uc: false
119119
undercloud_host: 172.16.0.2
120+
undercloud_hypervisor: redhat.com
120121
vm_external_interface: eth0
121122
undercloud_local_interface: eth0
122-
virtual_uc_ctlplane_interface: em1
123+
virtual_uc_ctlplane_interface: em2
123124
# RHEL 7 image url
124125
vm_image_url: https://url.corp.redhat.com/rhel-guest-image-7-6-210-x86-64-qcow2
125126
# RHEL 8 image url

tasks/load_instackenv.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,16 @@
4949
- name: set undercloud hostname
5050
set_fact:
5151
undercloud_hostname: "{{ undercloud_host }}"
52+
53+
- name: first node in instackenv
54+
set_fact:
5255
instack_firstnode: "{{ (instackenv_content.nodes[0].pm_addr | replace('mgmt-','') | replace('-drac', '')) }}"
56+
when: lab_name in ['scale', 'alias']
57+
58+
- name: undercloud hypervisor
59+
set_fact:
60+
instack_firstnode: "{{ undercloud_hypervisor }}"
61+
when: lab_name not in ['scale', 'alias']
5362

5463
- name: set overcloud_instackenv content
5564
set_fact:

virtual_undercloud.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,6 @@
8484
ansible_ssh_private_key_file: "{{ ansible_ssh_key }}"
8585
ansible_python_interpreter: "{{ python_interpreter }}"
8686

87-
- name: ignore errors for the task waiting for the undercloud to be available
88-
lineinfile:
89-
path: "{{ ansible_user_dir }}/.infrared/plugins/tripleo-undercloud/tasks/update_and_reboot.yml"
90-
insertafter: "uc_reachable is succeeded"
91-
line: " ignore_errors: true "
92-
9387
- hosts: undercloud
9488
vars:
9589
user: "stack"

0 commit comments

Comments
 (0)