Wrong filename of "os_horizon : Enable the neutron-fwaas-dashboard Horizon panel"

Bug #1735644 reported by ByungYeol Woo
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack-Ansible
Expired
High
Unassigned

Bug Description

I use 16.0.4 of osa aio.
Part of my user_vaiables.yml is as below:

neutron_plugin_base:
  - router
  - firewall
  - metering
  - neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2
  - vpnaas
  - qos

When I excuted setup-openstack.yml, an error was occured.

TASK [os_horizon : Enable the neutron-fwaas-dashboard Horizon panel] ***********
Friday 01 December 2017 04:13:56 +0000 (0:00:00.440) 0:58:29.985 *******
fatal: [aio1_horizon_container-e01e6da4]: FAILED! => {"changed": false, "failed": true, "msg": "src file does not exist, use \"force=yes\" if you really want to create the link: /openstack/ve
nvs/horizon-master/lib/python2.7/dist-packages/neutron_fwaas_dashboard/enabled/_7010_project_firewalls_panel.py", "path": "/openstack/venvs/horizon-master/lib/python2.7/dist-packages/openstac
k_dashboard/local/enabled/_7010_project_firewalls_panel.py", "src": "/openstack/venvs/horizon-master/lib/python2.7/dist-packages/neutron_fwaas_dashboard/enabled/_7010_project_firewalls_panel.
py", "state": "absent"}

root@woo-aio-vpn:/opt/openstack-ansible/playbooks# lxc-attach -n aio1_horizon_container-e01e6da4
root@aio1-horizon-container-e01e6da4:/# ll /openstack/venvs/horizon-master/lib/python2.7/dist-packages/neutron_fwaas_dashboard/enabled/
total 12
drwxr-xr-x 1 root root 222 Dec 1 02:55 ./
drwxr-xr-x 1 root root 114 Dec 1 02:55 ../
-rw-r--r-- 1 root root 872 Dec 1 02:53 _7010_project_firewalls_common.py
-rw-r--r-- 1 root root 983 Dec 1 02:53 _7011_project_firewalls_panel.py
-rw-r--r-- 1 root root 992 Dec 1 02:53 _7012_project_firewalls_v2_panel.py
-rw-r--r-- 1 root root 0 Dec 1 02:53 __init__.py

/etc/ansible/roles/os_horizon/tasks/horizon_post_install.yml
...............
- name: Enable the neutron-fwaas-dashboard Horizon panel
  file:
    src: "{{ horizon_lib_dir }}/neutron_fwaas_dashboard/enabled/_7010_project_firewalls_panel.py"
    path: "{{ horizon_lib_dir }}/openstack_dashboard/local/enabled/_7010_project_firewalls_panel.py"
    state: "{{ (horizon_enable_neutron_fwaas | bool) | ternary('link', 'absent') }}"
  notify: Restart apache2

I think this error need to be fixed by rename _7010_project_firewalls_panel.py to _7011_project_firewalls_panel.py of /etc/ansible/roles/os_horizon/tasks/horizon_post_install.yml

Revision history for this message
Jean-Philippe Evrard (jean-philippe-evrard) wrote :

Could you give us the exact version of your openstack-ansible repository?
We'd need that to triage the bug: We'll have to compare what version of horizon and the plugins are available for that version, and if the files have changed. We would also need that to know what to backport, if required.

Changed in openstack-ansible:
status: New → Confirmed
importance: Undecided → Critical
importance: Critical → High
status: Confirmed → Incomplete
Revision history for this message
ByungYeol Woo (wby1089) wrote :

Hi Evrard,

I guess version of openstack-ansible repository was 16.0.4 because I excuted commands as below:

# git clone https://git.openstack.org/openstack/openstack-ansible /opt/openstack-ansible
# cd /opt/openstack-ansible
# git tag -l
# git checkout -b 16.0.4
# scripts/bootstrap-ansible.sh
# scripts/bootstrap-aio.sh
# cd /opt/openstack-ansible/
# cp etc/openstack_deploy/conf.d/{aodh,gnocchi,ceilometer}.yml.aio /etc/openstack_deploy/conf.d/
# for f in $(ls -1 /etc/openstack_deploy/conf.d/*.aio); do mv -v ${f} ${f%.*}; done
# vi /etc/openstack_deploy/user_variables.yml
neutron_plugin_base:
  - router
  - firewall
  - metering
  - neutron_lbaas.services.loadbalancer.plugin.LoadBalancerPluginv2
  - vpnaas
  - qos
# cd /opt/openstack-ansible/playbooks
# openstack-ansible setup-everything.yml

Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for openstack-ansible because there has been no activity for 60 days.]

Changed in openstack-ansible:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.