Creating snapshot fails when image metadata has version field
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Low
|
Jay Pipes | ||
Ocata |
Confirmed
|
Low
|
Unassigned | ||
Pike |
Confirmed
|
Low
|
Unassigned | ||
Queens |
Fix Committed
|
Low
|
Matt Riedemann | ||
Rocky |
Fix Committed
|
Low
|
Lee Yarwood |
Bug Description
Description:
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/
OpenStack version : Pike
Nova API version : 2.1
Steps to reporduce:
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
image used:
+------
| Field | Value |
+------
| checksum | d19875d33815bd8
| container_format | bare |
| created_at | 2017-09-
| disk_format | raw |
| file | /v2/images/
| id | c7f76154-
| min_disk | 0 |
| min_ram | 0 |
| name | ubuntu-
| owner | 71cea55297f9495
| properties | architecture=
| | 1d/images/
| | distribution=
| protected | False |
| schema | /v2/schemas/image |
| size | 2361393152 |
| status | active |
| tags | |
| updated_at | 2017-09-
| virtual_size | None |
| visibility | public |
+------
Expected result:
succesfully create server snapshot
Actual result:
logs:
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
2017-09-14 19:57:53.486 27 ERROR nova.api.
<type 'exceptions.
description: | updated |
Changed in nova: | |
status: | New → Confirmed |
importance: | Undecided → Low |
tags: | added: low-hanging-fruit snapshot |
tags: | added: openstack-version.pike |
Changed in nova: | |
assignee: | nobody → priyaduggirala (priyad) |
Changed in nova: | |
status: | Confirmed → In Progress |
Changed in nova: | |
assignee: | priyaduggirala (priyad) → nobody |
Changed in nova: | |
status: | In Progress → Confirmed |
Changed in nova: | |
assignee: | nobody → Lee Yarwood (lyarwood) |
status: | Confirmed → In Progress |
Fix proposed to branch: master /review. openstack. org/508533
Review: https:/