Dear all,
after a complete and successfully installed "stable/xena" with just the minimum services for operating some experiments (just nova, neutron, ceph, ceilometer, aodh, keystone, cinder, glance, heat, horizon) I have decided to upgrade the installation including some new services, such as masakari, barbican, octavia, mistral, zun.
Just because I am still in a pre-production environment, I have executed successfully
openstack-ansible setup-hosts.yml
openstack-ansible setup-infrastructure-yml
but when I execute openstack-ansible setup-openstack.yml, I received an error at os-zun-install.yml
Here the ansible error log:
2022-06-19 19:24:58,963 p=248021 u=root n=ansible | TASK [os_zun : Generate zun config] **************************************************************************************************************
2022-06-19 19:24:59,443 p=248021 u=root n=ansible | fatal: [infra1_zun_api_container-ca03ba7a]: FAILED! => {"msg": "{{ [[(ansible_facts['processor_vcpus']//ansible_facts['processor_threads_per_core'])|default(1), 1] | max * 2, zun_api_threads_max] | min }}: 'dict object' has no attribute 'processor_vcpus'"}
2022-06-19 19:24:59,445 p=248021 u=root n=ansible | RUNNING HANDLER [os_zun : Stop services] *********************************************************************************************************
2022-06-19 19:25:12,996 p=248021 u=root n=ansible | failed: [infra1_zun_api_container-ca03ba7a] (item={'group': 'zun_api', 'service_name': 'zun-wsproxy', 'start_order': 2, 'execstarts': '/openstack/venvs/zun-24.3.1.dev1/bin/zun-wsproxy --config-dir /etc/zun', 'enabled': 'yes', 'state': 'started', 'config_overrides': {}}) => {"ansible_loop_var": "item", "attempts": 5, "changed": false, "item": {"config_overrides": {}, "enabled": "yes", "execstarts": "/openstack/venvs/zun-24.3.1.dev1/bin/zun-wsproxy --config-dir /etc/zun", "group": "zun_api", "service_name": "zun-wsproxy", "start_order": 2, "state": "started"}, "msg": "Could not find the requested service zun-wsproxy: host"}
2022-06-19 19:25:12,999 p=248021 u=root n=ansible | RUNNING HANDLER [os_zun : Start services] ********************************************************************************************************
2022-06-19 19:25:26,162 p=248021 u=root n=ansible | failed: [infra1_zun_api_container-ca03ba7a] (item={'group': 'zun_api', 'service_name': 'zun-wsproxy', 'start_order': 2, 'execstarts': '/openstack/venvs/zun-24.3.1.dev1/bin/zun-wsproxy --config-dir /etc/zun', 'enabled': 'yes', 'state': 'started', 'config_overrides': {}}) => {"ansible_loop_var": "item", "attempts": 5, "changed": false, "item": {"config_overrides": {}, "enabled": "yes", "execstarts": "/openstack/venvs/zun-24.3.1.dev1/bin/zun-wsproxy --config-dir /etc/zun", "group": "zun_api", "service_name": "zun-wsproxy", "start_order": 2, "state": "started"}, "msg": "Could not find the requested service zun-wsproxy: host"}
2022-06-19 19:25:26,165 p=248021 u=root n=ansible | RUNNING HANDLER [python_venv_build : venv changed] ***********************************************************************************************
2022-06-19 19:25:26,260 p=248021 u=root n=ansible | RUNNING HANDLER [uwsgi : Execute service restart] ************************************************************************************************
2022-06-19 19:25:39,089 p=248021 u=root n=ansible | failed: [infra1_zun_api_container-ca03ba7a] (item={'key': 'zun-api', 'value': {'group': 'zun_api', 'service_name': 'zun-api', 'init_config_overrides': {}, 'start_order': 1, 'wsgi_app': True, 'wsgi_path': '/openstack/venvs/zun-24.3.1.dev1/bin/zun-api-wsgi', 'uwsgi_bind_address': '172.29.236.200', 'uwsgi_port': 9517, 'uwsgi_overrides': {}, 'uwsgi_uid': 'zun', 'uwsgi_guid': 'zun', 'wsgi_venv': '/openstack/venvs/zun-24.3.1.dev1', 'uwsgi_processes': '2', 'uwsgi_threads': 1}}) => {"ansible_loop_var": "service", "attempts": 5, "changed": false, "msg": "Could not find the requested service zun-api: host", "service": {"key": "zun-api", "value": {"group": "zun_api", "init_config_overrides": {}, "service_name": "zun-api", "start_order": 1, "uwsgi_bind_address": "172.29.236.200", "uwsgi_guid": "zun", "uwsgi_overrides": {}, "uwsgi_port": 9517, "uwsgi_processes": "2", "uwsgi_threads": 1, "uwsgi_uid": "zun", "wsgi_app": true, "wsgi_path": "/openstack/venvs/zun-24.3.1.dev1/bin/zun-api-wsgi", "wsgi_venv": "/openstack/venvs/zun-24.3.1.dev1"}}}
2022-06-19 19:25:39,094 p=248021 u=root n=ansible | PLAY RECAP ***************************************************************************************************************************************
2022-06-19 19:25:39,094 p=248021 u=root n=ansible | infra1_zun_api_container-ca03ba7a : ok=56 changed=34 unreachable=0 failed=4 skipped=16 rescued=0 ignored=0
any suggestion is very welcome.
Regards,
Davide
Fix proposed to branch: master /review. opendev. org/c/openstack /openstack- ansible/ +/846799
Review: https:/