Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Problems building Rocky from Ansible (Horizon Error)

Hi All,

So I am in the process of building Rocky openstack using openstack-ansible (Latest HEAD revision from stable/rocky branch), with the openstack RDO repo, and following the openstack ansible docs.

I have set the config to match my system setup, and am using "distro" packages rather than the source ones. The first two builds (setup-hosts, and setup-infrastructure) go fine, but the final ansible file (setup-openstack) fails with these errors:

failed: [infra1_horizon_container-8f3a8a28] (item={u'src': u'/usr/share/openstack-dashboard/heat_dashboard/local_settings.d/_1699_orchestration_settings.py', u'state': u'file', u'path': u'/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d/_1699_orchestration_settings.py'}) => {"changed": false, "item": {"path": "/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d/_1699_orchestration_settings.py", "src": "/usr/share/openstack-dashboard/heat_dashboard/local_settings.d/_1699_orchestration_settings.py", "state": "file"}, "msg": "file (/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d/_1699_orchestration_settings.py) is absent, cannot continue", "path": "/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d/_1699_orchestration_settings.py", "state": "absent"}
failed: [infra2_horizon_container-7cc6f760] (item={u'src': u'/usr/share/openstack-dashboard/heat_dashboard/local_settings.d/_1699_orchestration_settings.py', u'state': u'file', u'path': u'/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d/_1699_orchestration_settings.py'}) => {"changed": false, "item": {"path": "/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d/_1699_orchestration_settings.py", "src": "/usr/share/openstack-dashboard/heat_dashboard/local_settings.d/_1699_orchestration_settings.py", "state": "file"}, "msg": "file (/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d/_1699_orchestration_settings.py) is absent, cannot continue", "path": "/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d/_1699_orchestration_settings.py", "state": "absent"}
failed: [infra3_horizon_container-c0c76f85] (item={u'src': u'/usr/share/openstack-dashboard/heat_dashboard/local_settings.d/_1699_orchestration_settings.py', u'state': u'file', u'path': u'/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d/_1699_orchestration_settings.py'}) => {"changed": false, "item": {"path": "/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d/_1699_orchestration_settings.py", "src": "/usr/share/openstack-dashboard/heat_dashboard/local_settings.d/_1699_orchestration_settings.py", "state": "file"}, "msg": "file (/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d/_1699_orchestration_settings.py) is absent, cannot continue", "path": "/usr/share/openstack-dashboard/openstack_dashboard/local/local_settings.d/_1699_orchestration_settings.py", "state": "absent"}
failed: [infra1_horizon_container-8f3a8a28] (item={u'src': u'/usr/share/openstack-dashboard/heat_dashboard/conf/heat_policy.json', u'state': u'file', u'path': u'/usr/share/openstack-dashboard/openstack_dashboard/conf/heat_policy.json'}) => {"changed": false, "item": {"path": "/usr/share/openstack-dashboard/openstack_dashboard/conf/heat_policy.json", "src": "/usr/share/openstack-dashboard/heat_dashboard/conf/heat_policy.json", "state": "file"}, "msg": "file (/usr/share/openstack-dashboard/openstack_dashboard/conf/heat_policy.json) is absent, cannot continue", "path": "/usr/share/openstack-dashboard/openstack_dashboard/conf/heat_policy.json", "state": "absent"}
failed: [infra3_horizon_container-c0c76f85] (item={u'src': u'/usr/share/openstack-dashboard/heat_dashboard/conf/heat_policy.json', u'state': u'file', u'path': u'/usr/share/openstack-dashboard/openstack_dashboard/conf/heat_policy.json'}) => {"changed": false, "item": {"path": "/usr/share/openstack-dashboard/openstack_dashboard/conf/heat_policy.json", "src": "/usr/share/openstack-dashboard/heat_dashboard/conf/heat_policy.json", "state": "file"}, "msg": "file (/usr/share/openstack-dashboard/openstack_dashboard/conf/heat_policy.json) is absent, cannot continue", "path": "/usr/share/openstack-dashboard/openstack_dashboard/conf/heat_policy.json", "state": "absent"}
failed: [infra2_horizon_container-7cc6f760] (item={u'src': u'/usr/share/openstack-dashboard/heat_dashboard/conf/heat_policy.json', u'state': u'file', u'path': u'/usr/share/openstack-dashboard/openstack_dashboard/conf/heat_policy.json'}) => {"changed": false, "item": {"path": "/usr/share/openstack-dashboard/openstack_dashboard/conf/heat_policy.json", "src": "/usr/share/openstack-dashboard/heat_dashboard/conf/heat_policy.json", "state": "file"}, "msg": "file (/usr/share/openstack-dashboard/openstack_dashboard/conf/heat_policy.json) is absent, cannot continue", "path": "/usr/share/openstack-dashboard/openstack_dashboard/conf/heat_policy.json", "state": "absent"}

I have logged into the lxc-containers, and /usr/share/openstack-dashboard/ exists, and heat_policy.json and _1699_orchestration_settings.py are indeed absent. I can find them in different paths though:

/usr/lib/python2.7/site-packages/heat_dashboard/local_settings.d/_1699_orchestration_settings.py

/usr/lib/python2.7/site-packages/heat_dashboard/conf/heat_policy.json

Can anyone shed any light on what the problem may be? I am not sure where things have gone wrong.

Thank you