Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1406350

Summary: Need to include 'metadata' in Cinder's VolumeSnapshot object in Horizon API
Product: Red Hat OpenStack Reporter: Beth White <beth.white>
Component: python-django-horizonAssignee: Beth White <beth.white>
Status: CLOSED ERRATA QA Contact: Ido Ovadia <iovadia>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: aortega, athomas, beth.white, iovadia, jjoyce, mlopes, mrunge, rdopiera, srevivo, vivek.agrawal
Target Milestone: ---Keywords: ZStream
Target Release: 9.0 (Mitaka)   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: python-django-horizon-9.0.1-4.el7ost Doc Type: Bug Fix
Doc Text:
Previously, the `VolumeSnapshot` object in 'horizon/openstack_dashboard/api/cinder.py' was accessed by multiple views in Dashboard. However, the object did not have metadata populated for the snapshot because it was not initiated. Consequently, there was no visible metadata for the object. With this update, metadata was added to the `VolumeSnapshot` object. As a result, the volume snapshot metadata can now be viewed in Dashboard.
Story Points: ---
Clone Of: 1317742 Environment:
Last Closed: 2017-03-08 17:46:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1317742    
Bug Blocks:    
Attachments:
Description Flags
Volume snapshot detail screenshot none

Comment 2 Ido Ovadia 2017-01-15 12:41:17 UTC
Failed QA
==========

rpm -qa|grep horizon
python-django-horizon-9.0.1-4.el7ost.noarch

I have created a snapshot and add a metadata to 

[stack@undercloud-0 ~]$ cinder snapshot-metadata-show eebcf67b-83e8-4435-a203-65567b55b119
+-------------------+-------+
| Metadata-property | Value |
+-------------------+-------+
|      Project      | admin |
|        User       | admin |
+-------------------+-------+
[stack@undercloud-0 ~]$ cinder snapshot-show eebcf67b-83e8-4435-a203-65567b55b119
+--------------------------------------------+-------------------------------------------+
|                  Property                  |                   Value                   |
+--------------------------------------------+-------------------------------------------+
|                 created_at                 |         2017-01-15T11:35:53.000000        |
|                description                 |              my snapshot test             |
|                     id                     |    eebcf67b-83e8-4435-a203-65567b55b119   |
|                  metadata                  | {u'Project': u'admin', u'User': u'admin'} |
|                    name                    |                test_vol_snp               |
|  os-extended-snapshot-attributes:progress  |                    100%                   |
| os-extended-snapshot-attributes:project_id |      40b277aa4e5e42b39979401b68a9dcbe     |
|                    size                    |                     1                     |
|                   status                   |                 available                 |
|                 updated_at                 |         2017-01-15T11:35:53.000000        |
|                 volume_id                  |    2968b83c-9969-4f58-8042-31af09a91afe   |
+--------------------------------------------+-------------------------------------------+

No metadata show on Horizon. Screenshot is enclosed.

Comment 3 Ido Ovadia 2017-01-15 12:43:20 UTC
Created attachment 1240935 [details]
Volume snapshot detail screenshot

Comment 4 Vivek Agrawal 2017-01-17 21:45:24 UTC
Hi, this is in reply to 'No metadata show on Horizon. Screenshot is enclosed.'
I am sure this must have been figured out by engineering there. In case it has not surfaced yet then I would like to bring it to notice that 'Showing metadata for snapshot' was not part of 'Mitaka' in Horizon. The code has been added to OpenStack Horizon master as part of current 'Ocata' release. I thought of putting the comment in case it is useful(Please ignore if I am out of context). Following is the review link from OpenStack reviews https://review.openstack.org/#/c/335020/.

Comment 8 Radomir Dopieralski 2017-03-02 12:28:32 UTC
Snapshot metadata is now visible in UI.

Comment 10 errata-xmlrpc 2017-03-08 17:46:54 UTC
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-0466.html