Page MenuHomePhabricator

Magnum in Horizon (magnum-ui) in codfw1dev
Closed, ResolvedPublic

Description

Let's deploy magnum to horizon in codfw1dev so we can tinker with it and make some documentation.

Event Timeline

rook moved this task from Backlog to feature on the Openstack-Magnum board.
Andrew renamed this task from Magnum in Horizon in codfw1dev to Magnum in Horizon (magnum-ui) in codfw1dev.Jun 28 2023, 1:48 AM

This is now running on labtesthorizon, although it's so far not reliably reproducible.

  • The change to virtualenv.sh is a local hack, adding the install phase for magnum-ui:
# install magnum-ui
cd $DEPLOY_DIR/magnum-ui && ${VENV}/bin/python3 setup.py install
cp -r ${DEPLOY_DIR}/magnum-ui/magnum_ui/enabled/* ${VENV}/lib/${PY_VER}/site-packages/openstack_dashboard/local/enabled/
  • magnum-ui requires python3-magnumclient and python3-heatclient. Right now those are installed on the host as debian packages. When I tried to package them as wheels I wound up with a dependency mess that wouldn't execute; this needs more work.

I appear to be able to see, and delete, clusters from different projects. In this case I was able to delete a "k8s-dev" cluster from the "paws-dev" tab in horizon.

I'm not able to test too much more as I'm blocked on deploying k8s clusters in codfw1dev in T339961

I appear to be able to see, and delete, clusters from different projects.

That's not great! It's possible that this is on purpose based on your account having superpowers though. You're using the 'rook' account on labtesthorizon?

That's not great! It's possible that this is on purpose based on your account having superpowers though. You're using the 'rook' account on labtesthorizon?

Yes, I'm rook over there. Though I would be a little surprised if my bits were causing it, as normally I only see what is in the project I have selected in horizon.

I appear to be able to see, and delete, clusters from different projects. In this case I was able to delete a "k8s-dev" cluster from the "paws-dev" tab in horizon.

This turns out to be a side-effect of rook having the 'admin' role in the k8s-dev and paws-dev projects. With standard reader/member roles the views seem to be properly scoped to project.

It looks like the "Sign Certificate" button does not work. Also seems to lock up the other buttons once clicked.

image.png (460×1 px, 96 KB)

It looks like the "Sign Certificate" button does not work. Also seems to lock up the other buttons once clicked.

image.png (460×1 px, 96 KB)

That is upstream bug https://bugs.launchpad.net/magnum-ui/+bug/2021588

Change 943623 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[openstack/horizon/magnum-ui@antelope] sign-certificate-modal.controller.js: replace success() with then()

https://gerrit.wikimedia.org/r/943623

Change 943624 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[openstack/horizon/magnum-ui@master] sign-certificate-modal.controller.js: replace success() with then()

https://gerrit.wikimedia.org/r/943624

Change 943623 merged by Andrew Bogott:

[openstack/horizon/magnum-ui@antelope] sign-certificate-modal.controller.js: replace success() with then()

https://gerrit.wikimedia.org/r/943623

Change 943624 merged by Andrew Bogott:

[openstack/horizon/magnum-ui@master] sign-certificate-modal.controller.js: replace success() with then()

https://gerrit.wikimedia.org/r/943624

Change 943626 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[operations/puppet@production] Horizon: update version in codfw1dev

https://gerrit.wikimedia.org/r/943626

Change 943626 merged by Andrew Bogott:

[operations/puppet@production] Horizon: update version in codfw1dev

https://gerrit.wikimedia.org/r/943626

Fix released in codfw1dev/labtesthorizon. Can you complete the signing now?

The button now seems to work. It isn't giving me the output I was hoping for, so I'll still need to look to see if I can identify how to get it to give a cred. But the button does seem to work now.

Change 944972 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[openstack/horizon/magnum-ui@master] disable 'Rolling Cluster Upgrade' feature

https://gerrit.wikimedia.org/r/944972

Change 944973 had a related patch set uploaded (by Andrew Bogott; author: Andrew Bogott):

[openstack/horizon/magnum-ui@antelope] disable 'Rolling Cluster Upgrade' feature

https://gerrit.wikimedia.org/r/944973

Change 944972 merged by Andrew Bogott:

[openstack/horizon/magnum-ui@master] disable 'Rolling Cluster Upgrade' feature

https://gerrit.wikimedia.org/r/944972

Change 944973 merged by Andrew Bogott:

[openstack/horizon/magnum-ui@antelope] disable 'Rolling Cluster Upgrade' feature

https://gerrit.wikimedia.org/r/944973