TypeError: upload_volume() got an unexpected keyword argument 'compress'

Bug #1839057 reported by Sam Wan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Cinder
Fix Committed
Undecided
Sam Wan

Bug Description

This bug was introduced by change: https://review.opendev.org/#/c/668943/
All cinder drivers which use "cinder/volume/driver.py: copy_volume_to_image" failed the testcase "tempest.api.volume.test_volumes_actions.VolumesActionsTest.test_volume_upload" because of this bug.
The cinder drivers which use their own 'copy_volume_to_image' passed the test cases.

examples of failed CI logs:
------
http://publiclogs.emc.com/43/668943/4/check/DellEMC_SC_FC/2effa55/DellEMC_SC_FC/283/logs/screen-c-vol.txt.gz
http://openstackci.jp.fujitsu.com/Eternusci/43/668943/4/check/fujitsu-eternus-dx-iscsi/6da7037/logs/screen-c-vol.txt.gz
------

examples of successful CI logs:
------
http://publiclogs.emc.com/43/668943/4/check/DellEMC_VxFlexOS/1a25b6c/DellEMC_VxFlexOS/444/console.html
------

The root cause is that:
cinder/volume/driver.py: copy_volume_to_image passes 'compress' to upload_volume however upload_volume does not accept this parameter in change: https://review.opendev.org/#/c/668943/

Tags: image
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to cinder (master)

Fix proposed to branch: master
Review: https://review.opendev.org/674740

Changed in cinder:
assignee: nobody → Sam Wan (sam-wan)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on cinder (master)

Change abandoned by Sam Wan (<email address hidden>) on branch: master
Review: https://review.opendev.org/674740

Revision history for this message
Sam Wan (sam-wan) wrote :
Changed in cinder:
status: In Progress → Fix Committed
tags: added: image
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.