Skip to content

Instantly share code, notes, and snippets.

@venkataanil
Created November 25, 2019 08:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save venkataanil/90c7b58d3cc2d512ddefbad677ff8b20 to your computer and use it in GitHub Desktop.
Save venkataanil/90c7b58d3cc2d512ddefbad677ff8b20 to your computer and use it in GitHub Desktop.
TASK [vbmc : allow access to port vbmc ports from undercloud external network] ******************************************************************************************
fatal: [undercloud-0]: FAILED! => {"msg": "The conditional check 'hostvars['hypervisor'][ansible_external_name] is defined' failed. The error was: error while evaluating conditional (hostvars['hypervisor'][ansible_external_name] is defined): \"hostvars['hypervisor']\" is undefined\n\nThe error appears to have been in '/root/infrared/.venv/lib/python2.7/site-packages/infrared/common/roles/vbmc/tasks/iptables.yml': line 62, column 11, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n - block:\n - name: allow access to port vbmc ports from undercloud external network\n ^ here\n"}
@venkataanil
Copy link
Author

changed that to vbmc like below

  •  when: hostvars['hypervisor'][ansible_external_name] is defined
    
  •  when: hostvars[groups.hypervisor|first][ansible_external_name] is defined
    

@venkataanil
Copy link
Author

Getting the below error
TASK [fail] *************************************************************************************************************************************************************
fatal: [undercloud-0]: FAILED! => {"changed": false, "msg": "The provision network cannot be discovered. Please rerun infrared command with -e provison_virsh_network_name=<net_name>"}

It is expecting address on the bridge to wich which all control plane interfaces of vms are connected.
[root@f05-h26-000-1029p ~]# brctl show
bridge name bridge id STP enabled interfaces
data 8000.ac1f6b2d19e4 no enp94s0f0
vnet0
vnet3

So adding the ip address now to fix that.
sudo ip a a 192.168.24.254/24 brd 192.168.24.255 dev data

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment