[Bug 2023397] [NEW] Openstack Client doenst use delimiters to download subfolders for object storage

Guilherme Steinmuller Pimentel 2023397 at bugs.launchpad.net
Fri Jun 9 14:15:32 UTC 2023


Public bug reported:

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                                             |
+-------------------------------------------------------------+

** Affects: python-openstackclient (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
OpenStack, which is subscribed to python-openstackclient in Ubuntu.
https://bugs.launchpad.net/bugs/2023397

Title:
  Openstack Client doenst use delimiters to download subfolders for
  object storage

Status in python-openstackclient package in Ubuntu:
  New

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 manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-openstackclient/+bug/2023397/+subscriptions




More information about the Ubuntu-openstack-bugs mailing list