Openstack Client doenst use delimiters to download subfolders for object storage

Bug #2023397 reported by Guilherme Steinmuller Pimentel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-openstackclient (Ubuntu)
New
Undecided
Unassigned

Bug Description

Using `openstack container save <container>` to save container recursively returns:

[Errno 21] Is a directory: 'dir/'
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/cliff/app.py", line 407, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python3/dist-packages/osc_lib/command/command.py", line 39, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python3/dist-packages/cliff/command.py", line 186, in run
    return_code = self.take_action(parsed_args) or 0
  File "/usr/lib/python3/dist-packages/openstackclient/object/v1/container.py", line 195, in take_action
    self.app.client_manager.object_store.container_save(
  File "/usr/lib/python3/dist-packages/openstackclient/api/object_store_v1.py", line 160, in container_save
    self.object_save(container=container, object=object['name'])
  File "/usr/lib/python3/dist-packages/openstackclient/api/object_store_v1.py", line 410, in object_save
    with open(file, 'wb') as f:
IsADirectoryError: [Errno 21] Is a directory: 'dir/'
clean_up SaveContainer: [Errno 21] Is a directory: 'dir/'

The current structure of the container is

+-------------------------------------------------------------+
| Name |
+-------------------------------------------------------------+
| dir/ |
| dir/subdir/ |
| dir/subdir/file |
+-------------------------------------------------------------+

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.