Skip to content

Instantly share code, notes, and snippets.

@a1git
Created June 20, 2020 23:44
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 a1git/b1b692d99e7e22823111b5dd31638705 to your computer and use it in GitHub Desktop.
Save a1git/b1b692d99e7e22823111b5dd31638705 to your computer and use it in GitHub Desktop.
== multinode ==
[control]
172.29.236.11
172.29.236.12
172.29.236.13
[network]
172.29.236.41
[compute]
172.29.236.31
172.29.236.32
172.29.236.33
[monitoring]
172.29.236.42
[storage]
172.29.236.43
[deployment]
localhost ansible_connection=local
== globals ==
---
kolla_base_distro: "ubuntu"
kolla_install_type: "source"
openstack_release: "train"
kolla_internal_vip_address: "172.29.236.10"
kolla_external_vip_address: "10.11.12.10"
kolla_external_fqdn: "mero.cloud" ## this resolves to 10.11.12.10 from local dns
docker_client_timeout: 300
network_interface: "enp2s0"
api_interface: "{{ network_interface }}"
storage_interface: "enp4s0"
tunnel_interface: "enp3s0"
neutron_external_interface: "enp6s0"
neutron_plugin_agent: "openvswitch"
neutron_ipam_driver: "internal"
neutron_enable_rolling_upgrade: "yes"
keepalived_virtual_router_id: "51"
openstack_region_name: "AMS"
enable_openstack_core: "yes"
enable_cinder: "yes"
enable_cinder_backend_lvm: "yes"
enable_designate: "yes"
enable_magnum: "yes"
enable_neutron_vpnaas: "yes"
enable_neutron_fwaas: "yes"
designate_backend: "bind9"
nova_compute_virt_type: "kvm"
### SSH works from the deploy to any listed machines there ###
root@deploy-kolla:/etc/kolla# ssh 172.29.236.11
Warning: Permanently added '172.29.236.11' (ECDSA) to the list of known hosts.
Welcome to Ubuntu 18.04.4 LTS (GNU/Linux 4.15.0-106-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Sat Jun 20 23:37:25 UTC 2020
System load: 0.0 IP address for enp1s0: 10.11.12.11 ## ssh/mgmt/default gateway
Usage of /: 1.5% of 79.50GB IP address for enp2s0: 172.29.236.11 ## api/network interface
Memory usage: 0% IP address for enp3s0: 172.29.240.11
Swap usage: 0% IP address for enp4s0: 172.29.244.11
Processes: 118 IP address for enp5s0: 172.29.248.11
Users logged in: 0
0 packages can be updated.
0 updates are security updates.
root@a1:~# hostname
a1.mero.cloud
root@a1:~# hostname -f
a1.mero.cloud
root@a1:~# ping a1.mero.cloud
PING a1.mero.cloud (10.11.12.11) 56(84) bytes of data. ## works due to local dns
64 bytes from a1.mero.cloud (10.11.12.11): icmp_seq=1 ttl=64 time=0.025 ms
64 bytes from a1.mero.cloud (10.11.12.11): icmp_seq=2 ttl=64 time=0.041 ms
^C
--- a1.mero.cloud ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1016ms
rtt min/avg/max/mdev = 0.025/0.033/0.041/0.008 ms
root@a1:~# more /etc/hosts
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
root@a1:~#
root@deploy-kolla:/etc/kolla# kolla-ansible -i multinode bootstrap-servers
Bootstrapping servers : ansible-playbook -i multinode -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla -e kolla_action=bootstrap-servers /usr/local/share/kolla-ansible/ansible/kolla-host.yml
PLAY [Gather facts for all hosts] *******************************************************************************
TASK [Gather facts] *********************************************************************************************
ok: [172.29.236.11]
ok: [172.29.236.31]
ok: [172.29.236.41]
ok: [172.29.236.33]
ok: [172.29.236.13]
ok: [172.29.236.42]
ok: [172.29.236.12]
ok: [172.29.236.32]
ok: [172.29.236.43]
ok: [localhost]
TASK [Group hosts to determine when using --limit] **************************************************************
ok: [172.29.236.41]
ok: [172.29.236.11]
ok: [172.29.236.12]
ok: [172.29.236.13]
^Bok: [localhost]
ok: [172.29.236.42]
ok: [172.29.236.43]
ok: [172.29.236.31]
ok: [172.29.236.32]
ok: [172.29.236.33]
[WARNING]: Could not match supplied host pattern, ignoring: all_using_limit_True
PLAY [Gather facts for all hosts (if using --limit)] ************************************************************
skipping: no hosts matched
PLAY [Apply role baremetal] *************************************************************************************
TASK [baremetal : include_tasks] ********************************************************************************
"included: /usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/bootstrap-servers.yml for 172.29.236.31, 172.29.236.32, 172.29.236.33, 172.29.236.11, 172.29.236.12, 172.29.236.13, 172.29.236.42, 172.29.236.41, 172.29.236.43
TASK [baremetal : include_tasks] ********************************************************************************
included: /usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml for 172.29.236.31, 172.29.236.32, 172.29.236.33, 172.29.236.11, 172.29.236.12, 172.29.236.13, 172.29.236.42, 172.29.236.41, 172.29.236.43
TASK [baremetal : Ensure localhost in /etc/hosts] ***************************************************************
"ok: [172.29.236.31]
ok: [172.29.236.33]
ok: [172.29.236.11]
ok: [172.29.236.32]
ok: [172.29.236.12]
ok: [172.29.236.13]
ok: [172.29.236.42]
ok: [172.29.236.41]
sok: [172.29.236.43]
TASK [baremetal : Ensure hostname does not point to 127.0.1.1 in /etc/hosts] ************************************
sok: [172.29.236.31]
ok: [172.29.236.32]
ok: [172.29.236.33]
ok: [172.29.236.11]
ok: [172.29.236.12]
ok: [172.29.236.13]
ok: [172.29.236.42]
ok: [172.29.236.41]
ok: [172.29.236.43]
TASK [baremetal : Generate /etc/hosts for all of the nodes] *****************************************************
fatal: [172.29.236.31]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVars object' has no attribute u'172.29.236.31'\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate /etc/hosts for all of the nodes\n ^ here\n"}
fatal: [172.29.236.32]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVars object' has no attribute u'172.29.236.31'\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate /etc/hosts for all of the nodes\n ^ here\n"}
fatal: [172.29.236.33]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVars object' has no attribute u'172.29.236.31'\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate /etc/hosts for all of the nodes\n ^ here\n"}
fatal: [172.29.236.11]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVars object' has no attribute u'172.29.236.31'\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate /etc/hosts for all of the nodes\n ^ here\n"}
fatal: [172.29.236.12]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVars object' has no attribute u'172.29.236.31'\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate /etc/hosts for all of the nodes\n ^ here\n"}
fatal: [172.29.236.13]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVars object' has no attribute u'172.29.236.31'\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate /etc/hosts for all of the nodes\n ^ here\n"}
fatal: [172.29.236.42]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVars object' has no attribute u'172.29.236.31'\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate /etc/hosts for all of the nodes\n ^ here\n"}
fatal: [172.29.236.41]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVars object' has no attribute u'172.29.236.31'\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate /etc/hosts for all of the nodes\n ^ here\n"}
fatal: [172.29.236.43]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVars object' has no attribute u'172.29.236.31'\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate /etc/hosts for all of the nodes\n ^ here\n"}
to retry, use: --limit @/usr/local/share/kolla-ansible/ansible/kolla-host.retry
PLAY RECAP ******************************************************************************************************
172.29.236.11 : ok=6 changed=0 unreachable=0 failed=1
172.29.236.12 : ok=6 changed=0 unreachable=0 failed=1
172.29.236.13 : ok=6 changed=0 unreachable=0 failed=1
172.29.236.31 : ok=6 changed=0 unreachable=0 failed=1
172.29.236.32 : ok=6 changed=0 unreachable=0 failed=1
172.29.236.33 : ok=6 changed=0 unreachable=0 failed=1
172.29.236.41 : ok=6 changed=0 unreachable=0 failed=1
172.29.236.42 : ok=6 changed=0 unreachable=0 failed=1
172.29.236.43 : ok=6 changed=0 unreachable=0 failed=1
localhost : ok=2 changed=0 unreachable=0 failed=0
@a1git
Copy link
Author

a1git commented Jun 21, 2020

TASK [baremetal : Generate /etc/hosts for all of the nodes] *****************************************************
fatal: [172.29.236.32]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVars object' has no attribute u'172.29.236.32'\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate /etc/hosts for all of the nodes\n  ^ here\n"}
fatal: [172.29.236.33]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVars object' has no attribute u'172.29.236.32'\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate /etc/hosts for all of the nodes\n  ^ here\n"}
fatal: [172.29.236.41]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVars object' has no attribute u'172.29.236.32'\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate /etc/hosts for all of the nodes\n  ^ here\n"}
fatal: [172.29.236.42]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVars object' has no attribute u'172.29.236.32'\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate /etc/hosts for all of the nodes\n  ^ here\n"}
fatal: [172.29.236.11]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVars object' has no attribute u'172.29.236.32'\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate /etc/hosts for all of the nodes\n  ^ here\n"}
fatal: [172.29.236.12]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVars object' has no attribute u'172.29.236.32'\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate /etc/hosts for all of the nodes\n  ^ here\n"}
fatal: [172.29.236.13]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVars object' has no attribute u'172.29.236.32'\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate /etc/hosts for all of the nodes\n  ^ here\n"}
fatal: [172.29.236.43]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'ansible.vars.hostvars.HostVars object' has no attribute u'172.29.236.32'\n\nThe error appears to have been in '/usr/local/share/kolla-ansible/ansible/roles/baremetal/tasks/pre-install.yml': line 25, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Generate /etc/hosts for all of the nodes\n  ^ here\n"}
ssh 172.29.236.11

root@a1:~# hostname 
a1

root@a1:~# hostname -f
a1.mero.cloud

root@a1:~# more /etc/hosts
127.0.0.1 localhost
172.29.236.11  a1.mero.cloud a1
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

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