Ask Your Question

obz's profile - activity

2019-04-17 00:44:52 -0500 received badge  Popular Question (source)
2019-04-17 00:44:52 -0500 received badge  Notable Question (source)
2019-02-27 07:41:15 -0500 asked a question 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 ...
(more)
2019-02-27 07:41:11 -0500 asked a question Templating error when using openstack-ansible

Hi All,

I am attempting to build an openstack instance using openstack-ansible and the documentation at: https://docs.openstack.org/project-deploy-guide/openstack-ansible/rocky/ (https://docs.openstack.org/project-de...) with "source" based installation, using LXC as the container technology.

The first two playbooks have run fine and set everything up ok. However the third playbook (setup-openstack.yml), fails with the following error:

TASK [os_nova : Install distro packages] *****************************************************************************************************************************************************
fatal: [infra1_nova_api_container-cc64bac5]: FAILED! => {"msg": "An unhandled exception occurred while templating '{% set packages = nova_distro_packages %}\n{% if nova_services['nova-novncproxy']['group'] in group_names or\n    nova_services['nova-spicehtml5proxy']['group'] in group_names or\n    nova_services['nova-serialconsole-proxy']['group'] in group_names %}\n{%   if nova_console_type == 'novnc' %}\n{%     set _ = packages.extend(nova_novnc_distro_packages) %}\n{%   endif %}\n{% endif %}\n{% if nova_services['nova-compute']['group'] in group_names %}\n{%   if nova_virt_type in ['kvm', 'qemu'] %}\n{%     set _ = packages.extend(nova_compute_kvm_distro_packages) %}\n{%     if nova_compute_ksm_enabled %}\n{%       set _ = packages.extend(nova_compute_ksm_packages) %}\n{%     endif %}\n{%   elif nova_virt_type == 'lxd' %}\n{%     set _ = packages.extend(nova_compute_lxd_distro_packages) %}\n{%   elif nova_virt_type == 'powervm' %}\n{%     set _ = packages.extend(nova_compute_powervm_distro_packages) %}\n{%   endif %}\n{%   if nova_barbican_enabled | bool %}\n{%     set _ = packages.extend(nova_compute_barbican_distro_packages) %}\n{%   endif %}\n{% endif %}\n{% if nova_oslomsg_amqp1_enabled | bool %}\n{%   set _ = packages.extend(nova_compute_oslomsg_amqp1_distro_packages) %}\n{% endif %}\n{% set _ = packages.extend(nova_devel_distro_packages) %}\n{{ packages }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: An unhandled exception occurred while templating '{{ hostvars['localhost']['nova_barbican_enabled'] }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: template error while templating string: unexpected '|'. String: SC|screen.rxvt|VT 100/ANSI X3.64 virtual terminal:\\\n\t:DO=\\E[%dB:LE=\\E[%dD:RI=\\E[%dC:UP=\\E[%dA:bs:bt=\\E[Z:\\\n\t:cd=\\E[J:ce=\\E[K:cl=\\E[H\\E[J:cm=\\E[%i%d;%dH:ct=\\E[3g:\\\n\t:do=^J:nd=\\E[C:pt:rc=\\E8:rs=\\Ec:sc=\\E7:st=\\EH:up=\\EM:\\\n\t:le=^H:bl=^G:cr=^M:it#8:ho=\\E[H:nw=\\EE:ta=^I:is=\\E)0:\\\n\t:li#51:co#99:am:xn:xv:LP:sr=\\EM:al=\\E[L:AL=\\E[%dL:\\\n\t:cs=\\E[%i%d;%dr:dl=\\E[M:DL=\\E[%dM:im=\\E[4h:ei=\\E[4l:mi:\\\n\t:IC=\\E[%d@:ks=\\E[?1h\\E=:ke=\\E[?1l\\E>:vi=\\E[?25l:\\\n\t:ve=\\E[34h\\E[?25h:vs=\\E[34l:ti=\\E[?1049h:te=\\E[?1049l:\\\n\t:us=\\E[4m:ue=\\E[24m:so=\\E[3m:se=\\E[23m:mb=\\E[5m:\\\n\t:md=\\E[1m:mr=\\E[7m:me=\\E[m:ms:\\\n\t:Co#8:pa#64:AF=\\E[3%dm:AB=\\E[4%dm:op=\\E[39;49m:AX:\\\n\t:vb=\\Eg:G0:as=\\E(0:ae=\\E(B:\\\n\t:ac=\\140\\140aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~..--++,,hhII00:\\\n\t:Km=\\E[M:k0=\\E[10~:k1=\\EOP:k2=\\EOQ:k3=\\EOR:k4=\\EOS:\\\n\t:k5=\\E[15~:k6=\\E[17~:k7=\\E[18~:k8=\\E[19~:k9=\\E[20~:\\\n\t:k;=\\E[21~:F1=\\E[23~:F2=\\E[24 ...
(more)