openstackclient error with stx.1.0 when restore volume

Bug #1835382 reported by Song,Gao
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Won't Fix
Low
Song,Gao

Bug Description

Brief Description
-----------------
Error when issue openstack cli to restore a volume

Severity
--------
Minor

Steps to Reproduce
------------------
1.Get a volume and it's backup ready
2.Issue command:
  openstack --debug volume backup restore backup_1 vol-001

Expected Behavior
------------------
No errors

Actual Behavior
----------------
Error returned in console:
[wrsroot@controller-0 log_gz(keystone_admin)]$ openstack volume backup restore backup_1 vol-003
'VolumeBackupsRestore' object is not iterable

Reproducibility
---------------
Reproducible 100%

System Configuration
--------------------
One node system,
Maybe others too.

Branch/Pull Time/Commit
-----------------------
stx.2018.10

Last Pass
---------

Timestamp/Logs
--------------
POST call to volumev2 for http://127.168.204.2:8776/v2/c38a6f5dfbbc4caa9004c59ada5afb78/backups/5e26faaf-d4c5-49a7-9fb0-ee8f6e131e26/restore used request id req-443d57ad-9d08-4dac-9380-215f33a3dc90
'VolumeBackupsRestore' object is not iterable
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 113, in run
    column_names, data = self.take_action(parsed_args)
TypeError: 'VolumeBackupsRestore' object is not iterable
clean_up RestoreVolumeBackup: 'VolumeBackupsRestore' object is not iterable
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 134, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 279, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/site-packages/osc_lib/shell.py", line 169, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/usr/lib/python2.7/site-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/site-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/site-packages/cliff/display.py", line 113, in run
    column_names, data = self.take_action(parsed_args)
TypeError: 'VolumeBackupsRestore' object is not iterable

Test Activity
-------------

Song,Gao (song-gao)
summary: - openstackclient error with stx.2018.10 when restore volume
+ openstackclient error with stx.1.0 when restore volume
tags: added: stx.1.0 stx.upstream
Revision history for this message
Song,Gao (song-gao) wrote :

I've already found a solution, I can commit it when the bug is confirmed.

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to upstream (r/2018.10)

Fix proposed to branch: r/2018.10
Review: https://review.opendev.org/669242

Revision history for this message
Ghada Khalil (gkhalil) wrote :

Assigning to Song,Gao since he seems to have a review for this

Changed in starlingx:
importance: Undecided → Low
status: New → Triaged
assignee: nobody → Song,Gao (song-gao)
Song,Gao (song-gao)
Changed in starlingx:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Change abandoned on upstream (r/2018.10)

Change abandoned by Bart Wensley (<email address hidden>) on branch: r/2018.10
Review: https://review.opendev.org/669242
Reason: This patch has been idle for more than six months. I am abandoning it to keep the review queue sane. If you are still interested in working on this patch, please unabandon it and upload a new patchset.

Revision history for this message
Ghada Khalil (gkhalil) wrote :

Closing as stx.1.0 is EOL

Changed in starlingx:
status: In Progress → Won't Fix
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.