You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
…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'
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.
The text was updated successfully, but these errors were encountered: