Bug 1550981

Summary: [OSP15] Creating snapshot fails when image metadata has version field
Product: Red Hat OpenStack Reporter: Andre <afariasa>
Component: openstack-novaAssignee: Lee Yarwood <lyarwood>
Status: CLOSED ERRATA QA Contact: OSP DFG:Compute <osp-dfg-compute>
Severity: medium Docs Contact:
Priority: medium    
Version: 10.0 (Newton)CC: chrisbro, dasmith, jhakimra, kchamart, lyarwood, mbooth, mwinkler, pcaruana, pmorey, sbauza, sgordon, srevivo, vromanso
Target Milestone: rcKeywords: Triaged, ZStream
Target Release: 15.0 (Stein)   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: openstack-nova-19.0.0-0.20190403210352.0fd77f3.el8ost Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1697515 (view as bug list) Environment:
Last Closed: 2019-09-21 11:15:27 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:    
Bug Blocks: 1697515, 1697516, 1697517    
Attachments:
Description Flags
Log from reproducer none

Description Andre 2018-03-02 13:15:37 UTC
Created attachment 1403022 [details]
Log from reproducer

Description of problem:

When creating a snapshot of a server using the nova API, failure occurs if the image contains the metadata property "version".
It seems like image metadata is passed as an argument to _create_v2 (nova/image/glance.py) which is then passed to call (nova/image/glance.py) as kwargs. The function already takes in context, method, and version arguments, so it seems that any of these metadata properties would cause the snapshot to fail.

How reproducible:
Always


Steps to Reproduce:
1. Create an image with metadata property "version"
2. Launch an server using this image
3. Try to create a server snapshot of the server you just launched

Actual results:
Error

Expected results:
Snapshot created

Additional info:
Bug already reported on OpenStack Launchpad https://bugs.launchpad.net/nova/+bug/1717547

Comment 15 errata-xmlrpc 2019-09-21 11:15:27 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://access.redhat.com/errata/RHEA-2019:2811