User credentials not set, after running initial ansible-playbook on controller-0
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
New
|
Undecided
|
Unassigned |
Bug Description
Brief description
-------
I have problem with initialization of Starlingx system. I have tried to install All in one installation according to deployment guide in documentation. Unfortunatelly ansible-playbook failed at task "Delete old registry secrets in Barbican". After examination of log file (ansible.log) I noticed, that fail happened when it source /etc/platform/
Severity
-------
Critical
Steps to reproduce
-------
1. I set up minimal configuration in localhost.yml in HOME folder.
Configured parameters:
system_mode: simplex
dns_servers:
- 8.8.8.8
external_
external_
external_
admin_username: ...
admin_password: ...
ansible_
2. Then I tried to copy default values file (default.yml) to localhost.yml with custom parameters above but this did not work too.
System configuration
-------
All in one simplex installation on XEN VM
Failed ansible tasks
#ansible.log
-------
TASK [bootstrap/
task path: /usr/share/
<localhost> ESTABLISH LOCAL CONNECTION FOR USER: sysadmin
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /tmp/.ansible-
Using module file /usr/lib/
<localhost> PUT /home/sysadmin/
<localhost> EXEC /bin/sh -c 'chmod u+x /tmp/.ansible-
<localhost> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=pupjaqfurth
<localhost> EXEC /bin/sh -c 'rm -f -r /tmp/.ansible-
failed: [localhost] (item=Openstack Admin credentials can only be loaded from the active controller.) => {
"changed": true,
"cmd": "source /etc/platform/
"delta": "0:00:00.897788",
"end": "2022-02-17 09:54:43.575125",
"invocation": {
"argv": null,
"warn": true
}
},
"item": "Openstack Admin credentials can only be loaded from the active controller.",
"msg": "non-zero return code",
"rc": 1,
"start": "2022-02-17 09:54:42.677337",
"stderr": "No password entered, or found via --os-password or OS_PASSWORD",
"stderr_lines": [
"No password entered, or found via --os-password or OS_PASSWORD"
],
"stdout": "Openstack Admin credentials can only be loaded from the active controller.",
"stdout_lines": [
"Openstack Admin credentials can only be loaded from the active controller."
]
}
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /tmp/.ansible-
Using module file /usr/lib/
<localhost> PUT /home/sysadmin/
<localhost> EXEC /bin/sh -c 'chmod u+x /tmp/.ansible-
<localhost> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=lpiryiubqpq
<localhost> EXEC /bin/sh -c 'rm -f -r /tmp/.ansible-
failed: [localhost] (item=Openstack Admin credentials can only be loaded from the active controller.) => {
"changed": true,
"cmd": "source /etc/platform/
"delta": "0:00:00.801855",
"end": "2022-02-17 09:54:44.530658",
"invocation": {
"argv": null,
"warn": true
}
},
"item": "Openstack Admin credentials can only be loaded from the active controller.",
"msg": "non-zero return code",
"rc": 1,
"start": "2022-02-17 09:54:43.728803",
"stderr": "No password entered, or found via --os-password or OS_PASSWORD",
"stderr_lines": [
"No password entered, or found via --os-password or OS_PASSWORD"
],
"stdout": "Openstack Admin credentials can only be loaded from the active controller.",
"stdout_lines": [
"Openstack Admin credentials can only be loaded from the active controller."
]
}
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /tmp/.ansible-
Using module file /usr/lib/
<localhost> PUT /home/sysadmin/
<localhost> EXEC /bin/sh -c 'chmod u+x /tmp/.ansible-
<localhost> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=vatrtkdeyba
<localhost> EXEC /bin/sh -c 'rm -f -r /tmp/.ansible-
failed: [localhost] (item=Openstack Admin credentials can only be loaded from the active controller.) => {
"changed": true,
"cmd": "source /etc/platform/
"delta": "0:00:00.840146",
"end": "2022-02-17 09:54:45.527956",
"invocation": {
"argv": null,
"warn": true
}
},
"item": "Openstack Admin credentials can only be loaded from the active controller.",
"msg": "non-zero return code",
"rc": 1,
"start": "2022-02-17 09:54:44.687810",
"stderr": "No password entered, or found via --os-password or OS_PASSWORD",
"stderr_lines": [
"No password entered, or found via --os-password or OS_PASSWORD"
],
"stdout": "Openstack Admin credentials can only be loaded from the active controller.",
"stdout_lines": [
"Openstack Admin credentials can only be loaded from the active controller."
]
}
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /tmp/.ansible-
Using module file /usr/lib/
<localhost> PUT /home/sysadmin/
<localhost> EXEC /bin/sh -c 'chmod u+x /tmp/.ansible-
<localhost> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=fwvtseukspv
<localhost> EXEC /bin/sh -c 'rm -f -r /tmp/.ansible-
failed: [localhost] (item=Openstack Admin credentials can only be loaded from the active controller.) => {
"changed": true,
"cmd": "source /etc/platform/
"delta": "0:00:00.812724",
"end": "2022-02-17 09:54:46.499730",
"invocation": {
"argv": null,
"warn": true
}
},
"item": "Openstack Admin credentials can only be loaded from the active controller.",
"msg": "non-zero return code",
"rc": 1,
"start": "2022-02-17 09:54:45.687006",
"stderr": "No password entered, or found via --os-password or OS_PASSWORD",
"stderr_lines": [
"No password entered, or found via --os-password or OS_PASSWORD"
],
"stdout": "Openstack Admin credentials can only be loaded from the active controller.",
"stdout_lines": [
"Openstack Admin credentials can only be loaded from the active controller."
]
}
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /tmp/.ansible-
Using module file /usr/lib/
<localhost> PUT /home/sysadmin/
<localhost> EXEC /bin/sh -c 'chmod u+x /tmp/.ansible-
<localhost> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=exxkcjtmmef
<localhost> EXEC /bin/sh -c 'rm -f -r /tmp/.ansible-
failed: [localhost] (item=Openstack Admin credentials can only be loaded from the active controller.) => {
"changed": true,
"cmd": "source /etc/platform/
"delta": "0:00:00.850181",
"end": "2022-02-17 09:54:47.501918",
"invocation": {
"argv": null,
"warn": true
}
},
"item": "Openstack Admin credentials can only be loaded from the active controller.",
"msg": "non-zero return code",
"rc": 1,
"start": "2022-02-17 09:54:46.651737",
"stderr": "No password entered, or found via --os-password or OS_PASSWORD",
"stderr_lines": [
"No password entered, or found via --os-password or OS_PASSWORD"
],
"stdout": "Openstack Admin credentials can only be loaded from the active controller.",
"stdout_lines": [
"Openstack Admin credentials can only be loaded from the active controller."
]
}
<localhost> EXEC /bin/sh -c '( umask 77 && mkdir -p "` echo /tmp/.ansible-
Using module file /usr/lib/
<localhost> PUT /home/sysadmin/
<localhost> EXEC /bin/sh -c 'chmod u+x /tmp/.ansible-
<localhost> EXEC /bin/sh -c 'sudo -H -S -p "[sudo via ansible, key=xnwhunpxtaq
<localhost> EXEC /bin/sh -c 'rm -f -r /tmp/.ansible-
failed: [localhost] (item=Openstack Admin credentials can only be loaded from the active controller.) => {
"changed": true,
"cmd": "source /etc/platform/
"delta": "0:00:00.848439",
"end": "2022-02-17 09:54:48.501680",
"invocation": {
"argv": null,
"warn": true
}
},
"item": "Openstack Admin credentials can only be loaded from the active controller.",
"msg": "non-zero return code",
"rc": 1,
"start": "2022-02-17 09:54:47.653241",
"stderr": "No password entered, or found via --os-password or OS_PASSWORD",
"stderr_lines": [
"No password entered, or found via --os-password or OS_PASSWORD"
],
"stdout": "Openstack Admin credentials can only be loaded from the active controller.",
"stdout_lines": [
"Openstack Admin credentials can only be loaded from the active controller."
]
}
PLAY RECAP *******
localhost : ok=144 changed=42 unreachable=0 failed=1
#/var/log/
...
2022-02-