Hide Forgot
Description of problem: The VolumeSnapshot object in 'horizon/openstack_dashboard/api/cinder.py'. This object is accessed by multiple views in Horizon. The object does not have metadata populated for the snapshot. Version-Release number of selected component (if applicable): How reproducible: Try accessing the Metadata of Volume's snapshot object from horizon UI. It is not accessible because it is not initiated. Steps to Reproduce: 1. Go to any page with VolumeSnapshot object. E.g. Snapshot listing page or Snapshot details page 2. Try accessing a Metadata from VolumeSnapshot. This is not accessible 3. Actual results: - Expected results: - Additional info: -
Which version are you using? Which URL are you trying? Are you working as admin?
I am trying it on OSP8 beta. I have tried this with OSP4 which is parallel to Havana release of Openstack and this was part of that. But this behavior is also absent in OpenStack after Havana. I am trying to access snapshot object from pages like snapshot listing or launch instance(which lists snapshots) where I would like to access some custom metadata which has been stored. But now it becomes un-accessible so I have opened this bug.
The review on Openstack Horizon has got a +2. Now the fix can be readily pulled.
Failed QA ========= rpm -qa | grep horizon python-django-horizon-8.0.1-9.el7ost.noarch cinder snapshot-show 767b950d-8a1b-443e-8abc-0f631a9484d9 +--------------------------------------------+-------------------------------------------+ | Property | Value | +--------------------------------------------+-------------------------------------------+ | created_at | 2017-01-12T09:31:45.000000 | | description | Snapshot metadata test | | id | 767b950d-8a1b-443e-8abc-0f631a9484d9 | | metadata | {u'Project': u'Admin', u'user': u'Admin'} | | name | vol-test-snaoshot | | os-extended-snapshot-attributes:progress | 100% | | os-extended-snapshot-attributes:project_id | c677f0db2ffd4b38920b82781b556cb3 | | size | 1 | | status | available | | volume_id | 1c41a79b-d19f-48c2-909f-167e9ee65d32 | +--------------------------------------------+-------------------------------------------+ But cant see snapshots metadata on Horizon. Screenshot is enclosed.
Created attachment 1239983 [details] volume snapshot - missing metadata
I can see snapshot metadata in the UI now.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2017-0469.html