[Starlingx-discuss] Fault Containerization: Enable FM panels in Openstack Dashboard

Smith, Tyler tyler.smith at windriver.com
Thu May 14 20:04:41 UTC 2020


Hi Ambarish & Sanjay



There were two approaches that were being looked at.  The first was to use the same GUI plugin for both the platform horizon and containerized horizon, but only copy over the horizon 'enabled' files corresponding to the panels that we want to enable (fault panels in the containerized case).  This is the approach that was tried but it ended up not working and required lots of hacks during the docker image build step, such as modifying the code, which we really want to avoid.  The reasons it wasn't working weren't really clear to me, I didn't spend time debugging etc.

Attached is some background on what was being discussed then.



The decision was made to instead split our plugin into two, one for the platform panels, and one for just the fault panels.  This will involve creating a new package next to starlingx-dashboard (in the same repo though) that has a similar structure but only has the relevant fault components.  Including:

Api/fm.py

Api/rest/fm.py

Dashboards/admin/active_alarms/

Static/dashboard/fault_management/

Enabled/   -> need the fm related enabled files in here, along with the banner view header section definition (see ADD_HEADER_SECTIONS).  These files will get copied over in the docker image build step.  The only other instruction in this step should be the csrftoken customization command from the attached email, which I think unfortunately is required.



As for the settings for the containerized horizon, they are stored in the openstack helm application manifest here: openstack-armada-app/stx-openstack-helm/stx-openstack-helm/manifests/manifest.yaml



My understanding is fault management will remain in the platform as well.  A distributed cloud deployment will also have to be tested, as the dc_admin dashboard also queries fm.



There's decent documentation on the plugin structure upstream: https://docs.openstack.org/horizon/latest/contributor/tutorials/plugin.html



Let me know if you need more details



Tyler



From: Das, Ambarish [mailto:ambarish.das at intel.com]
Sent: Wednesday, May 13, 2020 2:22 AM
To: Penney, Don <Don.Penney at windriver.com>; Smith, Tyler <tyler.smith at windriver.com>
Cc: Wold, Saul <saul.wold at intel.com>; Jones, Bruce E <bruce.e.jones at intel.com>; Bhat, Gopalkrishna <gopalkrishna.bhat at intel.com>; starlingx-discuss at lists.starlingx.io; Mukherjee, Sanjay K <sanjay.k.mukherjee at intel.com>; Sun, Austin <austin.sun at intel.com>
Subject: Fault Containerization: Enable FM panels in Openstack Dashboard

Hello Tyler & Don,

We have started looking into the remaining work in Fault Containerization and looked into the earlier abandoned patch implementation (https://review.opendev.org/#/c/661423/).
As we have joined the team newly, we would like to understand GUI and Horizon implementation and next steps to move forward regarding this pending activity.

We had a initial discussion regarding this with Saul and Austin and based on their inputs, we would like to have a discussion. Please let me know if you need any clarification.

Thanks & regards,
Ambarish/Sanjay

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20200514/06a64ee3/attachment-0001.html>
-------------- next part --------------
An embedded message was scrubbed...
From: "Arevalo, Mario Alfredo C" <mario.alfredo.c.arevalo at intel.com>
Subject: RE: FM containerization collaboration
Date: Tue, 11 Jun 2019 19:05:41 +0000
Size: 306852
URL: <http://lists.starlingx.io/pipermail/starlingx-discuss/attachments/20200514/06a64ee3/attachment-0001.mht>


More information about the Starlingx-discuss mailing list