Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-205

Cloud Files Storage driver doesn't work for accounts with DFW endpoints

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.10.1
    • 0.11.0
    • Storage
    • None
    • OS X 10.7.4, Python 2.7.1

    Description

      The Cloud Files storage driver assumes the service catalog will have an endpoint for ORD. Some Cloud Files accounts have endpoints in DFW instead of ORD. Trying to list containers gives the following error for those accounts:

      File "/Users/ggreer/code/libcloud/libcloud/storage/drivers/cloudfiles.py", line 229, in list_containers
      response = self.connection.request('')
      File "/Users/ggreer/code/libcloud/libcloud/storage/drivers/cloudfiles.py", line 149, in request
      self._populate_hosts_and_request_paths()
      File "/Users/ggreer/code/libcloud/libcloud/common/openstack.py", line 471, in _populate_hosts_and_request_paths
      (self.host, self.port, self.secure, self.request_path) = self._tuple_from_url(self._ex_force_base_url or self.get_endpoint())
      File "/Users/ggreer/code/libcloud/libcloud/storage/drivers/cloudfiles.py", line 136, in get_endpoint
      raise LibcloudError('Could not find specified endpoint')
      libcloud.common.types.LibcloudError: <LibcloudError in None 'Could not find specified endpoint'>

      Attachments

        1. example_storage.py
          0.4 kB
          Geoff Greer
        2. fix_cloud_files_with_tests.patch
          4 kB
          Geoff Greer
        3. fix_cloud_files.patch
          3 kB
          Geoff Greer
        4. response.json
          2 kB
          Geoff Greer

        Activity

          People

            Unassigned Unassigned
            angryparsley Geoff Greer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: