Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Director role, Read subnet info task, doesn't have access to environment #12

Open
ascerra opened this issue Aug 22, 2020 · 0 comments
Open

Comments

@ascerra
Copy link
Contributor

ascerra commented Aug 22, 2020

The following task fails due to an error with Missing value auth-url:
- name: Read subnet info
.. become: true
.. become_user: stack
.. shell: |
.... set -o pipefail
.... openstack subnet list | grep ctlplane-subnet | awk '{print $2}' | xargs
.. register: _osp_director_read_subnet_info

I believe this task is missing environment: "{{ osp_director_os_env_data }}"

The output of the task is here:
TASK [oasis_roles.osp.director : Read subnet info] ***************************** 2020-08-21 13:40:36,130 INFO [carbon.ansible_helpers.exec_local_cmd_pipe:549] fatal: [10.0.114.58]: FAILED! => {"changed": true, "cmd": "set -o pipefail\nopenstack subnet list | grep ctlplane-subnet | awk '{print $2}' | xargs\n", "delta": "0:00:00.809389", "end": "2020-08-21 13:40:36.564147", "msg": "non-zero return code", "rc": 1, "start": "2020-08-21 13:40:35.754758", "stderr": "Missing value auth-url required for auth plugin password", "stderr_lines": ["Missing value auth-url required for auth plugin password"], "stdout": "", "stdout_lines": []}

I was able to get this to work by manually adding environment: "{{ osp_director_os_env_data }}" to the task. This was included in the task above and below this task in the play. I'm not sure if there was a reason for leaving it out, but adding it seemed to do the trick. The following is what I had working depending on the reason that it was left out we should add this.

- name: Read subnet info
.. become: true
.. become_user: stack
.. shell: |
.... set -o pipefail
.... openstack subnet list | grep ctlplane-subnet | awk '{print $2}' | xargs
.. environment: "{{ osp_director_os_env_data }}"
.. register: _osp_director_read_subnet_info

Currently this is blocking the PSI Customer Zero pipeline build from running.

ascerra added a commit to ascerra/ansible_collection_osp that referenced this issue Aug 22, 2020
…ronment for the

openstack cli command to reference for the task 'Read subnet info'.

Without this is place we were seeing a msg 'missing value auth-url'
greg-hellings added a commit that referenced this issue Aug 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant