Image metadata deletion doesn't work from the Update Metadata widget
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Medium
|
Matt Borland |
Bug Description
Deleting image metadata doesn't work from the Update Metadata widget when deleting metadata items that have existing metadata definitions. It works for deleting custom metadata items.
Steps to reproduce:
Start with the latest master Horizon code as of 8/30/16.
- To to Project -> Compute -> Images.
- Select the "Update Metadata" button for an image.
- If you have metadata definitions defined in your glance installation, you should see categories for existing metadata definitions under "Available Metadata".
- Add a metadata item from the "Available Metadata" categories, such as "Common Operating System Properties" -> "OS Version". Give it a value and Save the change. This works fine.
- Select the "Update Metadata" button for the same image and note that the metadata item you just added (such as os_version) now appears in the "Existing Metadata" section.
- Remove the metadata item and click Save.
- No errors are displayed and no errors are written to the Horizon logs.
- Select the "Update Metadata" button for the same image and note that the metadata item you just tried to remove is still there.
A workaround for this is to enable the angular images feature and use "Edit Image" -> Metadata to delete metadata items. It works fine from that screen.
tags: | added: angularjs glance |
description: | updated |
Changed in horizon: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
milestone: | none → newton-rc1 |
Changed in horizon: | |
assignee: | nobody → surbhi sarda (surbhisarda) |
Changed in horizon: | |
milestone: | newton-rc1 → next |
Changed in horizon: | |
milestone: | next → newton-rc2 |
This does not happen with custom metadata definitions.
And the issue is here: https:/ /github. com/openstack/ horizon/ blob/master/ openstack_ dashboard/ static/ app/core/ metadata/ modal/modal. controller. js#L60- L67
Which was introduced by https:/ /bugs.launchpad .net/horizon/ +bug/1606988 trying to solve a similar issue.