Open ch-stark opened 4 years ago
upgraded ansible from 2.8 to 2.9 and retried helped a lot
TASK [installer-configuration : Set Fact for the ssh key of {{ ansible_user }}] *** fatal: [localhost]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'content'\n\nThe error appears to be in '/home/kni/openshift-upi-virtualmedia-deploy/roles/installer-configuration/tasks/10_configure_install_config.yml': line 13, 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: Set Fact for the ssh key of {{ ansible_user }}\n ^ here\nWe could be wrong, but this one looks like it might be an issue with\nmissing quotes. Always quote template expression brackets when they\nstart a value. For instance:\n\n with_items:\n - {{ foo }}\n\nShould be written as:\n\n with_items:\n - \"{{ foo }}\"\n"}
PLAY RECAP **** localhost : ok=90 changed=31 unreachable=0 failed=1 skipped=12 rescued=0 ignored=0
TASK [installer : Create default baremetal network] *** [DEPRECATION WARNING]: evaluating 'virtualized_install' as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. fatal: [localhost]: FAILED! => {"msg": "An unhandled exception occurred while running the lookup plugin 'template'. Error was a <class 'ansible.errors.AnsibleFilterError'>, original message: The next_nth_usable filter requires python's netaddr be installed on the ansible controller"}
sudo pip3 install netaddr was necessary to fix above now I'm stuck at: TASK [installer : Create default baremetal network] *** [DEPRECATION WARNING]: evaluating 'virtualized_install' as a bare variable, this behaviour will go away and you might need to add |bool to the expression in the future. Also see CONDITIONAL_BARE_VARS configuration toggle. This feature will be removed in version 2.12. Deprecation warnings can be disabled by setting deprecation_warnings=False in ansible.cfg. fatal: [localhost]: FAILED! => {"changed": false, "msg": "internal error: bridge name 'virbr0' already in use."}
I fixed the last issue by putting this:
now the script is running but getting: TASK [installer : include_tasks] ** included: /home/kni/openshift-upi-virtualmedia-deploy/roles/installer/tasks/60_wait_for_bootstrap.yml for localhost
TASK [installer : Wait for bootstrap to complete] ***** FAILED - RETRYING: Wait for bootstrap to complete (5 retries left).
happy to review this together
reporting here some issues I face and I try to fix them.
I needed to hardcode this, even if the curl works
2; TASK [installer-prep : Generate an OpenSSL CSR] *** fatal: [localhost -> cstarkbmhost.e2e.bos.redhat.com]: FAILED! => {"changed": false, "msg": "Unsupported parameters for (openssl_csr) module: create_subject_key_identifier Supported parameters include: attributes, backup, basic_constraints, basic_constraints_critical, common_name, content, country_name, delimiter, digest, directory_mode, email_address, extended_key_usage, extended_key_usage_critical, follow, force, group, key_usage, key_usage_critical, locality_name, mode, ocsp_must_staple, ocsp_must_staple_critical, organization_name, organizational_unit_name, owner, path, privatekey_passphrase, privatekey_path, regexp, remote_src, select_crypto_backend, selevel, serole, setype, seuser, src, state, state_or_province_name, subject, subject_alt_name, subject_alt_name_critical, unsafe_writes, use_common_name_for_san, version"}
needed to install sudo dnf install python3-lxml
needed to set ansible_ssh_pass
host that will contain the registry for disconnected installs. Can be the same as provisioner
cstarkbmhost.e2e.bos.redhat.com ansible_ssh_pass=kni ansible_ssh_user=kni