cinder upload-to-image cli command unexpectedly returns NoneType error
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
StarlingX |
Fix Released
|
Medium
|
Liang Fang |
Bug Description
Brief Description
-----------------
cli command returns error unexpectedly
cinder upload-to-image <volume id or name> <imagename>
ERROR: 'NoneType' object has no attribute '__getitem__'
Severity
--------
Standard
Steps to Reproduce
------------------
The test performs the following operations
1. Launches an instance using a newly created bootable volume (as tenant2 user for example)
nova boot --boot-volume 7a2ea0cc-
Name tenant2-vm-1
ID 145b1957-
Status Active
RAM 1GB
VCPUs 1 VCPU
Disk 2GB
2. Creates a snapshot based on the instance
snapshot for tenant2-
ID 31771929-
Volume vol-tenant2
Group Snapshot
nova image-create 145b1957-
3. Creates a cinder snapshot eg. 5GiB
cinder create --display-name vol_from_snapshot --snapshot-id 31771929-
Name vol_from_snapshot
ID ea32b388-
Project ID ae2d595da5b2425
Status Available
Group
Size 5 GiB
Bootable Yes
Encrypted No
Created April 30, 2019, 2:24 p.m.
Attachments
Attached To Not attached
..
4. Then attempts to upload the cinder volume to image
cinder upload-to-image <available volume id or name> <newimagename>
eg.
#cinder upload-to-image vol_from_snapshot cinder_upload3
Expected Behavior
------------------
Expect successful upload without error in cli
#cinder upload-to-image vol_from_snapshot cinder_upload3
Actual Behavior
----------------
unexpected error when cli command is run in step 4 (although the image was created)
ERROR: 'NoneType' object has no attribute '__getitem__'
ID a24e2a69-
Type Status Active
Size 5.00 GB
Min. Disk 0
Min. RAM 0
Disk Format RAW
Container Format BARE
...
Visibility Image from Other Project - Non-Public
...
Custom Properties
direct_url
rbd://
file /v2/images/
...
Reproducibility
---------------
yes
System Configuration
-------
2+3
Lab: WP_3-7
test_create_
Branch/Pull Time/Commit
-------
20190427T013000Z
Timestamp/Logs
--------------
see inline
Changed in starlingx: | |
assignee: | Bruce Jones (brucej) → Cindy Xie (xxie1) |
Changed in starlingx: | |
assignee: | Cindy Xie (xxie1) → Zhuweiwei (vivian.zhu) |
Changed in starlingx: | |
assignee: | Zhuweiwei (vivian.zhu) → Liang Fang (liangfang) |
tags: | added: stx.storage |
Changed in starlingx: | |
status: | Triaged → In Progress |
Marking stx.2.0 release gating as it is believed this functionality should be working.
Assigning to the distro.openstack PL.
Next step should be to determine if this is a bug that needs to be addressed and if yes then is this a StarlingX issue or an upstream cinder issue?