TASK [cdn_registery : Check if Satellite server] ******************************************************************************************************************************************************************
fatal: [undercloud-0]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'server_hostname'\n\nThe error appears to have been in '/home/mmethot/.venv_infrared/lib/python2.7/site-packages/infrared/common/roles/cdn_registery/tasks/register_cdn.yml': line 8, 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: Check if Satellite server\n ^ here\n"}
NO MORE HOSTS LEFT ****
to retry, use: --limit @/home/mmethot/.infrared/plugins/tripleo-undercloud/main.retry
Description
Using the "tripleo-undercloud" plugin with "--cdn" it forces to use a server_hostname.
Command used:
The "rh-subscription.yaml" file:
Which does not require a "server_hostname" when using org+activation_key.
Solution
Need to change the conditionals on "Check if Satellite server" and the block right after it. What I did to fix it (just changed the two "when"):
ERROR:
NO MORE HOSTS LEFT **** to retry, use: --limit @/home/mmethot/.infrared/plugins/tripleo-undercloud/main.retry
PLAY RECAP **** hypervisor : ok=6 changed=3 unreachable=0 failed=0
localhost : ok=3 changed=2 unreachable=0 failed=0
undercloud-0 : ok=19 changed=10 unreachable=0 failed=1
ERROR Playbook "/home/mmethot/.infrared/plugins/tripleo-undercloud/main.yml" failed!