Bug 1578478
Summary: | Manila Horizon UI Plugin is not Loading in Horizon | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Dustin Schoenbrun <dschoenb> |
Component: | openstack-manila-ui | Assignee: | Victoria Martinez de la Cruz <vimartin> |
Status: | CLOSED DUPLICATE | QA Contact: | Dustin Schoenbrun <dschoenb> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 13.0 (Queens) | CC: | apevec, beth.white, cschwede, hguemar, jschluet, lhh, rdopiera, rhos-maint, scohen, thiago, vgreen, vimartin |
Target Milestone: | z2 | Keywords: | Triaged, ZStream |
Target Release: | 13.0 (Queens) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openstack-manila-ui-2.13.0-4.el7ost | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-07-20 18:56:50 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1554935 |
Description
Dustin Schoenbrun
2018-05-15 16:47:59 UTC
The problem appears to be missing files in the Horizon container/image on the controller. There are broken sym links in /etc/openstack-dashboard/enabled/ that point to /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/, which don't have any _80_manila* and _90??_manila* files. The manila-ui plugin can be loaded as a work-around by: 1) Copy the files from the controller to the horizon docker overlay directory, 2) restart the horizon container, 3) ssh/forward to the server and load horizon =================== Help commands for work-around above: On the controller: docker inspect horizon | grep overlay "MergedDir": "/var/lib/docker/overlay2/36bf3b5286d6e15763b818c5328b2d20e3ea461a93ba32fbd6f85daa43904b87/merged In the container overlay directory that didn’t have the correct files /var/lib/docker/overlay2/36bf3b5286d6e15763b818c5328b2d20e3ea461a93ba32fbd6f85daa43904b87/merged/usr/share/openstack-dashboard/openstack_dashboard/local/enabled cp /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_80* . cp /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/_90* . docker restart horizon ================== We need to get the horizon images updated with the missing files. openstack-manila-ui-2.13.0-3.el7ost is most recent build Victoria Martinez de la Cruz <victoria> did last tweak to the package to resolve issue where it would not install standalone From Radek Dopieralski, "the files are not missing. They are intentionally deleted by Kolla to disable the plugin by this script: https://github.com/openstack/kolla/tree/master/docker/horizon — and they are only put back if the plugin has been enabled in the heat templates — in our case, in this file: https://github.com/openstack/tripleo-heat-templates/blob/master/docker/services/horizon.yaml#L152" When looking at the undercloud horizon.yaml file for this deployment, though, we see that it is enabled. [stack@undercloud-0 services]$ cat horizon.yaml | grep ENABLE_MANILA - ENABLE_MANILA=yes [stack@undercloud-0 services]$ pwd /usr/share/openstack-tripleo-heat-templates/docker/services Kolla always deletes all the enabled files, and then, if a plugin is enabled in the configuration, puts them back. Looking at the code that is supposed to put those files back: https://github.com/openstack/kolla/blob/master/docker/horizon/extend_start.sh#L136-L142 It looks for them in /usr/lib/python2.7/site-packages/manila_ui/local/enabled/ — that's where the files are in the repository, but they are missing from our RPM package, probably because they have been moved to /usr/share/openstack-dashboard/openstack_dashboard/local/enabled/ One possible solution is to copy those files instead of moving them when creating the RPM, so that they are included in the RPM where Kolla expects them. Another way would be to add a line similar to https://github.com/openstack/kolla/blob/master/docker/horizon/Dockerfile.j2#L44 that works around this problem for the Sahara plugin. *** This bug has been marked as a duplicate of bug 1554935 *** |