Ansible playbook failing
Hi all, I have ran the OSA playbooks to completion on more than one occasion but recently I'm having an issue I can't figure out so if anyone could shed some light on it it would be much appreciated. When running "openstack-ansible setup-openstack.yml" I get to the task named "TASK [python_venv_build : Create wheel directory on the build host]" and I get the following error: fatal: [infra1_gnocchi_container-7c40503c -> infra1_repo_container-017aea8f(xx.xx.xx.xx)]: FAILED! => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "msg": "chown failed: failed to look up user nginx", "owner": "root", "path": "/var/www", "size": 4096, "state": "directory", "uid": 0} I cannot seem to find anything about this and didn't see this error when running the playbooks previously. Thanks in advance for any suggestions. Regards,Derek
I don’t know this code, but the error message implies that the `nginx` user doesn’t exist on that box. is it visible (e.g in `/etc/passwd`). Assuming that is the case, the question is ‘what changed’ since the ansible code was last run (if anything - it could be a race condition that happens randomly). I’d guess that nginx installation failed/was removed.
On 29 Jul 2022, at 08:42, Derek O keeffe <derekokeeffe85@yahoo.ie> wrote:
Hi all,
I have ran the OSA playbooks to completion on more than one occasion but recently I'm having an issue I can't figure out so if anyone could shed some light on it it would be much appreciated.
When running "openstack-ansible setup-openstack.yml" I get to the task named "TASK [python_venv_build : Create wheel directory on the build host]" and I get the following error:
fatal: [infra1_gnocchi_container-7c40503c -> infra1_repo_container-017aea8f(xx.xx.xx.xx)]: FAILED! => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "msg": "chown failed: failed to look up user nginx", "owner": "root", "path": "/var/www", "size": 4096, "state": "directory", "uid": 0}
I cannot seem to find anything about this and didn't see this error when running the playbooks previously. Thanks in advance for any suggestions.
Regards, Derek
Hey,
From the error it looks like that previous role, that deploys stuff into repo_container has failed. It should be performed as part of setup-infra.yml. I would suggest re-running repo-install.yml playbook and see if it works and not failing somewhere before further investigation.
пт, 29 июл. 2022 г. в 10:55, <tim+openstack.org@coote.org>:
I don’t know this code, but the error message implies that the `nginx` user doesn’t exist on that box. is it visible (e.g in `/etc/passwd`).
Assuming that is the case, the question is ‘what changed’ since the ansible code was last run (if anything - it could be a race condition that happens randomly). I’d guess that nginx installation failed/was removed.
On 29 Jul 2022, at 08:42, Derek O keeffe <derekokeeffe85@yahoo.ie> wrote:
Hi all,
I have ran the OSA playbooks to completion on more than one occasion but recently I'm having an issue I can't figure out so if anyone could shed some light on it it would be much appreciated.
When running "openstack-ansible setup-openstack.yml" I get to the task named "TASK [python_venv_build : Create wheel directory on the build host]" and I get the following error:
fatal: [infra1_gnocchi_container-7c40503c -> infra1_repo_container-017aea8f(xx.xx.xx.xx)]: FAILED! => {"changed": false, "gid": 0, "group": "root", "mode": "0755", "msg": "chown failed: failed to look up user nginx", "owner": "root", "path": "/var/www", "size": 4096, "state": "directory", "uid": 0}
I cannot seem to find anything about this and didn't see this error when running the playbooks previously. Thanks in advance for any suggestions.
Regards, Derek
participants (3)
-
Derek O keeffe
-
Dmitriy Rabotyagov
-
tim+openstack.org@coote.org