TASK [python_venv_build : include_tasks] *************************************************************************************************************
included: /etc/ansible/roles/python_venv_build/tasks/python_venv_set_facts.yml for aio1_adjutant_container-bc4ddf57

TASK [python_venv_build : Ensure local facts folder exists] ******************************************************************************************
ok: [aio1_adjutant_container-bc4ddf57]

TASK [python_venv_build : Record the necessary facts] ************************************************************************************************
changed: [aio1_adjutant_container-bc4ddf57] => (item={'section': 'adjutant', 'option': 'venv_tag', 'value': '27.0.2.dev13'})

TASK [os_adjutant : Install distro packages for extra package build] *********************************************************************************
changed: [aio1_adjutant_container-bc4ddf57]

TASK [os_adjutant : Install extra pip packages into build venv] **************************************************************************************
fatal: [aio1_adjutant_container-bc4ddf57]: FAILED! => {"changed": false, "cmd": ["/openstack/venvs/adjutant-27.0.2.dev13/bin/pip3", "install", "--constraint", "http://172.29.236.101:8181/constraints/upper_constraints_cached.txt", "mysqlclient"], "msg": "stdout: Collecting mysqlclient\n  Downloading mysqlclient-2.2.0.tar.gz (89 kB)\n     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 89.5/89.5 kB 394.4 kB/s eta 0:00:00\n  Installing build dependencies: started\n  Installing build dependencies: finished with status 'done'\n  Getting requirements to build wheel: started\n  Getting requirements to build wheel: finished with status 'error'\n\n:stderr:   error: subprocess-exited-with-error\n  \n  × Getting requirements to build wheel did not run successfully.\n  │ exit code: 1\n  ╰─> [24 lines of output]\n      /bin/sh: 1: pkg-config: not found\n      /bin/sh: 1: pkg-config: not found\n      Trying pkg-config --exists mysqlclient\n      Command 'pkg-config --exists mysqlclient' returned non-zero exit status 127.\n      Trying pkg-config --exists mariadb\n      Command 'pkg-config --exists mariadb' returned non-zero exit status 127.\n      Traceback (most recent call last):\n        File \"/openstack/venvs/adjutant-27.0.2.dev13/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py\", line 351, in <module>\n          main()\n        File \"/openstack/venvs/adjutant-27.0.2.dev13/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py\", line 333, in main\n          json_out['return_val'] = hook(**hook_input['kwargs'])\n        File \"/openstack/venvs/adjutant-27.0.2.dev13/lib/python3.10/site-packages/pip/_vendor/pep517/in_process/_in_process.py\", line 118, in get_requires_for_build_wheel\n          return hook(config_settings)\n        File \"/tmp/pip-build-env-4k304800/overlay/lib/python3.10/site-packages/setuptools/build_meta.py\", line 355, in get_requires_for_build_wheel\n          return self._get_build_requires(config_settings, requirements=['wheel'])\n        File \"/tmp/pip-build-env-4k304800/overlay/lib/python3.10/site-packages/setuptools/build_meta.py\", line 325, in _get_build_requires\n          self.run_setup()\n        File \"/tmp/pip-build-env-4k304800/overlay/lib/python3.10/site-packages/setuptools/build_meta.py\", line 341, in run_setup\n          exec(code, locals())\n        File \"<string>\", line 154, in <module>\n        File \"<string>\", line 48, in get_config_posix\n        File \"<string>\", line 27, in find_package_name\n      Exception: Can not find valid pkg-config name.\n      Specify MYSQLCLIENT_CFLAGS and MYSQLCLIENT_LDFLAGS env vars manually\n      [end of output]\n  \n  note: This error originates from a subprocess, and is likely not a problem with pip.\nerror: subprocess-exited-with-error\n\n× Getting requirements to build wheel did not run successfully.\n│ exit code: 1\n╰─> See above for output.\n\nnote: This error originates from a subprocess, and is likely not a problem with pip.\n\n[notice] A new release of pip available: 22.3.1 -> 23.2.1\n[notice] To update, run: pip install --upgrade pip\n"}

RUNNING HANDLER [python_venv_build : venv changed] ***************************************************************************************************
skipping: [aio1_adjutant_container-bc4ddf57]

RUNNING HANDLER [uwsgi : Execute service restart] ****************************************************************************************************
FAILED - RETRYING: [aio1_adjutant_container-bc4ddf57]: Execute service restart (5 retries left).
FAILED - RETRYING: [aio1_adjutant_container-bc4ddf57]: Execute service restart (4 retries left).
FAILED - RETRYING: [aio1_adjutant_container-bc4ddf57]: Execute service restart (3 retries left).
FAILED - RETRYING: [aio1_adjutant_container-bc4ddf57]: Execute service restart (2 retries left).
FAILED - RETRYING: [aio1_adjutant_container-bc4ddf57]: Execute service restart (1 retries left).
failed: [aio1_adjutant_container-bc4ddf57] (item={'key': 'adjutant-api', 'value': {'group': 'adjutant_api', 'service_name': 'adjutant-api', 'service_enabled': True, 'init_config_overrides': {}, 'execstarts': '/openstack/venvs/adjutant-27.0.2.dev13/bin/adjutant-api', 'wsgi_app': True, 'wsgi_name': 'adjutant-api-wsgi', 'uwsgi_overrides': {}, 'uwsgi_bind_address': '172.29.237.81', 'uwsgi_port': 5050, 'uwsgi_tls': {}, 'wsgi_path': '/openstack/venvs/adjutant-27.0.2.dev13/bin/adjutant-api-wsgi', 'wsgi_venv': '/openstack/venvs/adjutant-27.0.2.dev13', 'uwsgi_uid': 'adjutant', 'uwsgi_guid': 'adjutant', 'uwsgi_processes': '16', 'uwsgi_threads': 1}}) => {"ansible_loop_var": "service", "attempts": 5, "changed": false, "msg": "Could not find the requested service adjutant-api: host", "service": {"key": "adjutant-api", "value": {"execstarts": "/openstack/venvs/adjutant-27.0.2.dev13/bin/adjutant-api", "group": "adjutant_api", "init_config_overrides": {}, "service_enabled": true, "service_name": "adjutant-api", "uwsgi_bind_address": "172.29.237.81", "uwsgi_guid": "adjutant", "uwsgi_overrides": {}, "uwsgi_port": 5050, "uwsgi_processes": "16", "uwsgi_threads": 1, "uwsgi_tls": {}, "uwsgi_uid": "adjutant", "wsgi_app": true, "wsgi_name": "adjutant-api-wsgi", "wsgi_path": "/openstack/venvs/adjutant-27.0.2.dev13/bin/adjutant-api-wsgi", "wsgi_venv": "/openstack/venvs/adjutant-27.0.2.dev13"}}}

PLAY RECAP *******************************************************************************************************************************************
aio1                       : ok=5    changed=0    unreachable=0    failed=0    skipped=4    rescued=0    ignored=0   
aio1_adjutant_container-bc4ddf57 : ok=30   changed=14   unreachable=0    failed=2    skipped=15   rescued=0    ignored=0
Edit
Pub: 23 Aug 2023 11:25 UTC
Views: 22