Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1550981 - Creating snapshot fails when image metadata has version field
Creating snapshot fails when image metadata has version field
Status: ON_DEV
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova (Show other bugs)
10.0 (Newton)
x86_64 Linux
medium Severity medium
: Upstream M3
: 14.0 (Rocky)
Assigned To: Lee Yarwood
nova-maint
: Triaged, ZStream
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-03-02 08:15 EST by Andre
Modified: 2018-10-28 22:11 EDT (History)
16 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Log from reproducer (3.96 KB, text/plain)
2018-03-02 08:15 EST, Andre
no flags Details


External Trackers
Tracker ID Priority Status Summary Last Updated
Launchpad 1717547 None None None 2018-03-02 08:15 EST
Red Hat Knowledge Base (Solution) 3368631 None None None 2018-03-07 11:07 EST
OpenStack gerrit 508533 None None None 2018-05-10 08:55 EDT

  None (edit)
Description Andre 2018-03-02 08:15:37 EST
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

Note You need to log in before you can comment on or make changes to this bug.