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

Libcloud unable to find endpoints

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 0.14.0-beta3
    • None
    • Storage
    • None
    • Fedora 20

    Description

      While trying to do a simple list containers tests for a private openstack setup I am receiving this error

      Traceback (most recent call last):
      File "testPyCloud.py", line 31, in <module>
      cont = driver_os.list_containers()
      File "/data/python_scripts/src/apache-libcloud/libcloud/storage/base.py", line 216, in list_containers
      return list(self.iterate_containers())
      File "/data/python_scripts/src/apache-libcloud/libcloud/storage/drivers/cloudfiles.py", line 302, in iterate_containers
      response = self.connection.request('')
      File "/data/python_scripts/src/apache-libcloud/libcloud/storage/drivers/cloudfiles.py", line 179, in request
      raw=raw)
      File "/data/python_scripts/src/apache-libcloud/libcloud/common/openstack.py", line 605, in request
      return super(OpenStackBaseConnection, self).request(**kwargs)
      File "/data/python_scripts/src/apache-libcloud/libcloud/common/base.py", line 604, in request
      action = self.morph_action_hook(action)
      File "/data/python_scripts/src/apache-libcloud/libcloud/common/openstack.py", line 601, in morph_action_hook
      self._populate_hosts_and_request_paths()
      File "/data/python_scripts/src/apache-libcloud/libcloud/common/openstack.py", line 641, in _populate_hosts_and_request_paths
      url = self._ex_force_base_url or self.get_endpoint()
      File "/data/python_scripts/src/apache-libcloud/libcloud/storage/drivers/cloudfiles.py", line 160, in get_endpoint
      raise LibcloudError('Could not find specified endpoint')
      libcloud.common.types.LibcloudError: <LibcloudError in None 'Could not find specified endpoint'>
      Exception AttributeError: "'NoneType' object has no attribute 'path'" in <function _remove at 0x7f9bedea6758> ignored

      Here is the debug.log output

      [root@bruenor python_scripts]# cat /tmp/debug.log

      1. -------- begin 13025360 request ----------
        curl -i -X POST -H 'Content-Length: 80' -H 'Accept-Encoding: gzip,deflate' -H 'X-LC-Request-ID: 13025360' -H 'Accept: application/json' -H 'User-Agent: libcloud/0.14.1 ' -H 'Host: 172.16.103.90:35357' -H 'Content-Type: application/json; charset=UTF-8' --data-binary '{"auth": {"passwordCredentials": {"username": "admin", "password": "password"}

        }}' --compress http://172.16.103.90:35357/v2.0/tokens

      2. -------- begin 13025360:13315536 response ----------
        HTTP/1.1 200 OK
        Date: Mon, 09 Jun 2014 23:22:50 GMT
        Content-Type: application/json
        Content-Length: 1317
        Vary: X-Auth-Token
        X-Distribution: Ubuntu

      {"access": {"token":

      {"issued_at": "2014-06-09T23:22:50.037183", "expires": "2014-06-10T00:22:50Z", "id": "MIIC+QYJKoZIhvcNAQcCoIIC6jCCAuYCAQExDTALBglghkgBZQMEAgEwggFHBgkqhkiG9w0BBwGgggE4BIIBNHsiYWNjZXNzIjogeyJ0b2tlbiI6IHsiaXNzdWVkX2F0IjogIjIwMTQtMDYtMDlUMjM6MjI6NTAuMDM3MTgzIiwgImV4cGlyZXMiOiAiMjAxNC0wNi0xMFQwMDoyMjo1MFoiLCAiaWQiOiAicGxhY2Vob2xkZXIifSwgInNlcnZpY2VDYXRhbG9nIjogW10sICJ1c2VyIjogeyJ1c2VybmFtZSI6ICJhZG1pbiIsICJyb2xlc19saW5rcyI6IFtdLCAiaWQiOiAiNTRmYmZlMWJhZTNlNDUxMGEwYWNmODIwMzRmMzZkM2MiLCAicm9sZXMiOiBbXSwgIm5hbWUiOiAiYWRtaW4ifSwgIm1ldGFkYXRhIjogeyJpc19hZG1pbiI6IDAsICJyb2xlcyI6IFtdfX19MYIBhTCCAYECAQEwXDBXMQswCQYDVQQGEwJVUzEOMAwGA1UECAwFVW5zZXQxDjAMBgNVBAcMBVVuc2V0MQ4wDAYDVQQKDAVVbnNldDEYMBYGA1UEAwwPd3d3LmV4YW1wbGUuY29tAgEBMAsGCWCGSAFlAwQCATANBgkqhkiG9w0BAQEFAASCAQB+HsSFx92lgY9Fh+X5Mpn9v9p2aLqmdXj0dxPWs1n2XZzQTCcORDCh0pyGOaboihbh+EUPkhcjqCyNvtk-o1X3ysLVlZlX8cMKusDrXyWKPEvJ4EjtMDaDr5W5zdzk9Kqp-rk1sRxjF58JeDfCKbPXP0hK5oIppB3-conQkQCQipKela6My-H5y0lf6oL2iYledbQjK+hRlzwZALQXwBk+rPsD5BJFVqtQ+PWjuIEKvraHMvsptjoi80tJfby1wLvC9puodR+EzaInbtyOHXkjRUc0qv8sEG+dGkBN1u0f32ccKN71G7ESGNcFWZ+PWtTFfq9l1EFwB3RRfaoIqu3-"}

      , "serviceCatalog": [], "user":

      {"username": "admin", "roles_links": [], "id": "54fbfe1bae3e4510a0acf82034f36d3c", "roles": [], "name": "admin"}

      , "metadata":

      {"is_admin": 0, "roles": []}

      }}

      1. -------- end 13025360:13315536 response ----------

      Here is the output of the controlling node for the cloud set up -

      root@xp:~# keystone service-list
      ------------------------------------------------------------------------------+

      id name type description

      ------------------------------------------------------------------------------+

      4e327cdee0264fe9b2c918f2aa9fe308 glance image OpenStack Image Service
      b835f9e175a840c398b55bdd8f3f0b30 keystone identity OpenStack Identity
      9b0827bf7df24af887eb5009ab5b362f nova compute OpenStack Compute
      4c96593e75be4689b5c57e8cb938064c swift object-store OpenStack Object Storage

      ------------------------------------------------------------------------------+
      root@xp:~# keystone endpoint-list
      ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

      id region publicurl internalurl adminurl service_id

      ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

      0752564de3d84e6ebca2a8c0caa300d5 regionOne http://xp:8774/v2/%(tenant_id)s http://xp:8774/v2/%(tenant_id)s http://xp:8774/v2/%(tenant_id)s 9b0827bf7df24af887eb5009ab5b362f
      4db1756df6e240ff8b7f521cb9ae4a1b regionOne http://xp:5000/v2.0 http://xp:5000/v2.0 http://xp:35357/v2.0 b835f9e175a840c398b55bdd8f3f0b30
      8f8f1ccc0a12416ab0faa6d683ae0b4a regionOne http://xp:9292 http://xp:9292 http://xp:9292 4e327cdee0264fe9b2c918f2aa9fe308
      f1f1569a08e44f28bc89b27bc1d77e34 regionOne http://xp:8080/v1/AUTH_%(tenant_id)s http://xp:8080/v1/AUTH_%(tenant_id)s http://xp:8080 4c96593e75be4689b5c57e8cb938064c

      ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
      root@xp:~# ifconfig
      rename2 Link encap:Ethernet HWaddr 00:1c:c0:e3:7b:34
      inet addr:172.16.103.90 Bcast:172.16.103.255 Mask:255.255.248.0
      inet6 addr: fe80::21c:c0ff:fee3:7b34/64 Scope:Link
      UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
      RX packets:81937495 errors:0 dropped:5268 overruns:0 frame:0
      TX packets:73015598 errors:0 dropped:0 overruns:0 carrier:0
      collisions:0 txqueuelen:1000
      RX bytes:9926559142 (9.9 GB) TX bytes:7903038149 (7.9 GB)

      I can also attach the script and a pdb output from when I ran the script if you'd like. It doesn't seem to keep the url information after it processes from what I can see though python isn't my strong suit. Thanks!

      Attachments

        Activity

          People

            Unassigned Unassigned
            shade34321 Shade Alabsa
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: