Backups panel is visible even if enable_backup is False
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| OpenStack Dashboard (Horizon) |
Undecided
|
Edward Hope-Morley | ||
| OpenStack openstack-dashboard charm |
Undecided
|
Unassigned | ||
| Ubuntu Cloud Archive |
High
|
Unassigned | ||
| Queens |
High
|
Unassigned | ||
| Rocky |
High
|
Unassigned | ||
| horizon (Ubuntu) |
High
|
Unassigned | ||
| Bionic |
High
|
Unassigned | ||
| Cosmic |
High
|
Unassigned |
Bug Description
Hi,
Volumes - Backup panel is visible even if OPENSTACK_
Meanwhile setting enable_backup to false removes an option to create backup of a volume in the volume drop-down options. But panel with backups itself stays visible for both admins and users.
As a work-around I use the following customization script:
import horizon
from django.conf import settings
if not getattr(settings, 'OPENSTACK_
project = horizon.
backup = project.
project.
And for permanent fix I see the following decision. In openstack_
...
+L16: from django.conf import settings
...
+L21: if not getattr(settings, 'OPENSTACK_
+L22: return False
...
== SRU details for Ubuntu =
[Impact]
See above.
[Test Case]
Juju deploy openstack and manually test that backup panel is not visible if enable_backup is set to False.
[Regression Potential]
Low. The patch has landed upstream in master, stable/rocky, and stable/queens. This patch has already landed in Ubuntu rocky as well.
Trent Lloyd (lathiat) wrote : | #1 |
Changed in horizon: | |
status: | New → Confirmed |
Trent Lloyd (lathiat) wrote : | #2 |
Looking at openstack_
It notes
# TODO(lcheng) Cinder does not expose the information if cinder
# backup is configured yet. This is a workaround until that
# capability is available.
# https:/
There is a comment on that bug about being able to query the services endpoint and an abandoned changeset to implement an alternative check. I cannot say whether either of those solutions are sensible just noting with respect to a fix for this bug it may be worth looking further at that issue.
Otherwise for a fix on the current situation I would perhaps call to openstack_
tags: | added: low-hanging-fruit |
Dmitriy Rabotyagov (noonedeadpunk) wrote : | #3 |
Yep, you are absolutely right, that it's better to rely on openstack_
tags: | added: sts |
Changed in charm-openstack-dashboard: | |
assignee: | nobody → Seyeong Kim (xtrusia) |
status: | New → In Progress |
Edward Hope-Morley (hopem) wrote : | #4 |
Patch is here: https:/
Changed in charm-openstack-dashboard: | |
milestone: | none → 18.11 |
Changed in horizon: | |
assignee: | nobody → Edward Hope-Morley (hopem) |
status: | Confirmed → In Progress |
Fix proposed to branch: master
Review: https:/
Reviewed: https:/
Committed: https:/
Submitter: Zuul
Branch: master
commit 6c2225bab8b0070
Author: Edward Hope-Morley <email address hidden>
Date: Wed Sep 26 15:36:03 2018 +0100
Add enabled check in Backups panel
If enable_backup is False in OPENSTACK_
then we should not display the backups panel.
Change-Id: I276eebf0f11406
Closes-Bug: #1778771
Changed in horizon: | |
status: | In Progress → Fix Released |
Fix proposed to branch: stable/rocky
Review: https:/
Fix proposed to branch: stable/queens
Review: https:/
Fix proposed to branch: stable/pike
Review: https:/
Changed in horizon (Ubuntu Bionic): | |
status: | New → Triaged |
Changed in horizon (Ubuntu Cosmic): | |
status: | New → Triaged |
Changed in horizon (Ubuntu Bionic): | |
importance: | Undecided → High |
Changed in horizon (Ubuntu Cosmic): | |
importance: | Undecided → High |
Changed in horizon (Ubuntu Bionic): | |
importance: | High → Critical |
importance: | Critical → High |
Corey Bryant (corey.bryant) wrote : | #10 |
This is fixed in openstack-dashboard 3:14.0.0-0ubuntu4 in cosmic/rocky.
Changed in horizon (Ubuntu Cosmic): | |
status: | Triaged → Fix Committed |
Changed in cloud-archive: | |
status: | Triaged → Fix Committed |
Launchpad Janitor (janitor) wrote : | #11 |
This bug was fixed in the package horizon - 3:14.0.0-0ubuntu4
---------------
horizon (3:14.0.0-0ubuntu4) cosmic; urgency=medium
* d/p/add-
https:/
is disabled if enable_backup is False (LP: #1778771).
-- Corey Bryant <email address hidden> Mon, 01 Oct 2018 15:04:31 -0400
Changed in horizon (Ubuntu Cosmic): | |
status: | Fix Committed → Fix Released |
Corey Bryant (corey.bryant) wrote : | #12 |
This bug was fixed in the package horizon - 3:14.0.
---------------
horizon (3:14.0.
.
* New update for the Ubuntu Cloud Archive.
.
horizon (3:14.0.0-0ubuntu4) cosmic; urgency=medium
.
* d/p/add-
https:/
is disabled if enable_backup is False (LP: #1778771).
Changed in cloud-archive: | |
status: | Fix Committed → Fix Released |
Reviewed: https:/
Committed: https:/
Submitter: Zuul
Branch: stable/rocky
commit 19865eec5bc4a5a
Author: Edward Hope-Morley <email address hidden>
Date: Wed Sep 26 15:36:03 2018 +0100
Add enabled check in Backups panel
If enable_backup is False in OPENSTACK_
then we should not display the backups panel.
Change-Id: I276eebf0f11406
Closes-Bug: #1778771
(cherry picked from commit 6c2225bab8b0070
tags: | added: in-stable-rocky |
OpenStack Infra (hudson-openstack) wrote : Change abandoned on charm-openstack-dashboard (master) | #17 |
Change abandoned by Edward Hope-Morley (<email address hidden>) on branch: master
Review: https:/
Reason: Hi Seyeong, I think we can abandon this patch now since it is fixed in horizon upstream. The patch has been released to Stein and stable/rocky and will hopefully hit queens and pike so we can focus on the SRU instead. If you think we still need a charm patch let me know and we can discuss and reopen if necessary.
Changed in charm-openstack-dashboard: | |
status: | In Progress → Invalid |
assignee: | Seyeong Kim (xtrusia) → nobody |
milestone: | 18.11 → none |
description: | updated |
description: | updated |
Corey Bryant (corey.bryant) wrote : | #18 |
This has been uploaded to the bionic review queue where it is awaiting review by the SRU team: https:/
Reviewed: https:/
Committed: https:/
Submitter: Zuul
Branch: stable/queens
commit 5d1690da904ce45
Author: Edward Hope-Morley <email address hidden>
Date: Wed Sep 26 15:36:03 2018 +0100
Add enabled check in Backups panel
If enable_backup is False in OPENSTACK_
then we should not display the backups panel.
Change-Id: I276eebf0f11406
Closes-Bug: #1778771
(cherry picked from commit 6c2225bab8b0070
tags: | added: in-stable-pike |
Reviewed: https:/
Committed: https:/
Submitter: Zuul
Branch: stable/pike
commit 02e405dcac62a08
Author: Edward Hope-Morley <email address hidden>
Date: Wed Sep 26 15:36:03 2018 +0100
Add enabled check in Backups panel
If enable_backup is False in OPENSTACK_
then we should not display the backups panel.
Change-Id: I276eebf0f11406
Closes-Bug: #1778771
(cherry picked from commit 6c2225bab8b0070
description: | updated |
This issue was fixed in the openstack/horizon 14.0.1 release.
Hello Dmitriy, or anyone else affected,
Accepted horizon into bionic-proposed. The package will build now and be available at https:/
Please help us by testing this new package. See https:/
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested and change the tag from verification-
Further information regarding the verification process can be found at https:/
N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.
Changed in horizon (Ubuntu Bionic): | |
status: | Triaged → Fix Committed |
tags: | added: verification-needed verification-needed-bionic |
This issue was fixed in the openstack/horizon 15.0.0.0b1 development milestone.
Edward Hope-Morley (hopem) wrote : | #24 |
I have tested the bionic-proposed build using the provided testcase i.e. deploy openstack-dashbaord with enable_backup set to False and check that the backups panel is not there. I then set enable_backup to true and confirmed that the backups panel appears.
tags: |
added: verification-done verification-done-bionic removed: verification-needed verification-needed-bionic |
Launchpad Janitor (janitor) wrote : | #25 |
This bug was fixed in the package horizon - 3:13.0.1-0ubuntu3
---------------
horizon (3:13.0.1-0ubuntu3) bionic; urgency=medium
* d/p/add-
https:/
is disabled if enable_backup is False (LP: #1778771).
-- Corey Bryant <email address hidden> Mon, 15 Oct 2018 10:03:18 -0400
Changed in horizon (Ubuntu Bionic): | |
status: | Fix Committed → Fix Released |
The verification of the Stable Release Update for horizon has completed successfully and the package has now been released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
Hello Dmitriy, or anyone else affected,
Accepted horizon into queens-proposed. The package will build now and be available in the Ubuntu Cloud Archive in a few hours, and then in the -proposed repository.
Please help us by testing this new package. To enable the -proposed repository:
sudo add-apt-repository cloud-archive:
sudo apt-get update
Your feedback will aid us getting this update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, and change the tag from verification-
Further information regarding the verification process can be found at https:/
tags: | added: verification-queens-needed |
Edward Hope-Morley (hopem) wrote : | #28 |
I have tested the xenial-
tags: |
added: sts-sru-done verification-queens-done removed: verification-queens-needed |
The verification of the Stable Release Update for horizon has completed successfully and the package has now been released to -updates. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.
Corey Bryant (corey.bryant) wrote : | #30 |
This bug was fixed in the package horizon - 3:13.0.
---------------
horizon (3:13.0.
.
* New update for the Ubuntu Cloud Archive.
.
horizon (3:13.0.1-0ubuntu3) bionic; urgency=medium
.
* d/p/add-
https:/
is disabled if enable_backup is False (LP: #1778771).
This issue was fixed in the openstack/horizon 13.0.2 release.
I can confirm this behavior, it has changed between Ocata and Queens (but is still present in the latest release also)
The "Volume Backups" used to be a tab on the "Volumes" page in Ocata. In Queens it has it's own panel on the left "Backups".
The old tab respected the enable_backup flag, but the new panel does not.
The enable_backup flag still controls the "Create Backup" option appearing in the dropdown menu for each volume; so the flag is still partially in effect.