[Bug 996233] Re: nova and python-novaclient disagree on volumes API URLs
** Changed in: nova Status: Incomplete => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/996233 Title: nova and python-novaclient disagree on volumes API URLs To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/996233/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 996233] Re: nova and python-novaclient disagree on volumes API URLs
** Changed in: nova (Ubuntu) Status: Confirmed => Invalid ** Changed in: python-novaclient (Ubuntu) Status: Confirmed => Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/996233 Title: nova and python-novaclient disagree on volumes API URLs To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/996233/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 996233] Re: nova and python-novaclient disagree on volumes API URLs
Apologies for the delay in replying. We recently completed our migration to Keystone, and now "nova volume-list" works as expected. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/996233 Title: nova and python-novaclient disagree on volumes API URLs To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/996233/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 996233] Re: nova and python-novaclient disagree on volumes API URLs
We cannot solve the issue you reported without more information. Could you please provide the requested information ? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/996233 Title: nova and python-novaclient disagree on volumes API URLs To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/996233/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 996233] Re: nova and python-novaclient disagree on volumes API URLs
** Changed in: nova Status: Confirmed => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/996233 Title: nova and python-novaclient disagree on volumes API URLs To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/996233/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 996233] Re: nova and python-novaclient disagree on volumes API URLs
This Openstack installation is using deprecated auth, though, not keystone. The following flags are in nova.conf: --use_deprecated_auth --auth_strategy=deprecated I've only used Ubuntu packages on this machine — no devstack, no pip, no setup.py. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/996233 Title: nova and python-novaclient disagree on volumes API URLs To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/996233/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 996233] Re: nova and python-novaclient disagree on volumes API URLs
it should be getting the url from keystone anyway, so I don't imagine that the nova url is a problem. I think it is far more likely that you have an older version of novaclient that is overiding the one from precise. Perhaps you have pip installed novaclient or done a setup.py install? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/996233 Title: nova and python-novaclient disagree on volumes API URLs To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/996233/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 996233] Re: nova and python-novaclient disagree on volumes API URLs
Looking at William's trace, I see some differences with the traces I get. Not posting a full one in the first place was foolish of me. Here it is now. $ nova --debug volume-list connect: (XXX.XXX.XXX.XXX, 8774) send: 'GET /v1.1 HTTP/1.1\r\nHost: XXX.XXX.XXX.XXX:8774\r\nx-auth-project-id: pjdc_project\r\naccept-encoding: gzip, deflate\r\nx-auth-user: pjdc\r\nuser-agent: python-novaclient\r\nx-auth-key: ----\r\naccept: application/json\r\n\r\n' reply: 'HTTP/1.1 204 No Content\r\n' header: Content-Length: 0 header: X-Auth-Token: header: X-Server-Management-Url: http://XXX.XXX.XXX.XXX:8774/v1.1/pjdc_project header: Content-Type: text/plain; charset=UTF-8 header: Date: Thu, 31 May 2012 21:19:01 GMT send: 'GET /v1.1/pjdc_project/volumes/detail HTTP/1.1\r\nHost: XXX.XXX.XXX.XXX:8774\r\nx-auth-project-id: pjdc_project\r\nx-auth-token: \r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n' reply: 'HTTP/1.1 404 Not Found\r\n' header: Content-Length: 52 header: Content-Type: text/plain; charset=UTF-8 header: Date: Thu, 31 May 2012 21:19:02 GMT DEBUG (shell:416) n/a (HTTP 404) Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 413, in main OpenStackComputeShell().main(sys.argv[1:]) File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 364, in main args.func(self.cs, args) File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/shell.py", line 858, in do_volume_list volumes = cs.volumes.list() File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/volumes.py", line 79, in list return self._list("/volumes/detail", "volumes") File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 71, in _list resp, body = self.api.client.get(url) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 136, in get return self._cs_request(url, 'GET', **kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 124, in _cs_request **kwargs) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 107, in request raise exceptions.from_response(resp, body) NotFound: n/a (HTTP 404) ERROR: n/a (HTTP 404) Whereas in William's trace the token is obtained with "POST /v2.0/tokens" and the list operation is performed with "GET /v1/5c9e830827e0412b92da25b128f5c63d/volumes/detail". In the credentials packets we distribute to our Openstack users, we have a file containing environment variables, which includes: export NOVA_URL="http://XXX.XXX.XXX.XXX:8774/v1.1/"; export NOVA_VERSION="1.1" However, when I set things up as follows: export NOVA_URL="http://XXX.XXX.XXX.XXX:8774/v2.0/"; export NOVA_VERSION="2" I get: $ nova --debug volume-list connect: (XXX.XXX.XXX.XXX, 8774) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: XXX.XXX.XXX.XXX:8774\r\nContent-Length: 137\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "pjdc_project", "passwordCredentials": {"username": "pjdc", "password": "----"}}}' reply: 'HTTP/1.1 400 Bad Request\r\n' header: Content-Length: 141 header: Content-Type: application/json; charset=UTF-8 header: Date: Thu, 31 May 2012 21:26:01 GMT DEBUG (shell:416) The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 413, in main OpenStackComputeShell().main(sys.argv[1:]) File "/usr/lib/python2.7/dist-packages/novaclient/shell.py", line 358, in main self.cs.authenticate() File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/client.py", line 106, in authenticate self.client.authenticate() File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 229, in authenticate auth_url = self._v2_auth(auth_url) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 284, in _v2_auth self._authenticate(url, body) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 305, in _authenticate resp, body = self.request(token_url, "POST", body=body) File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 107, in request raise exceptions.from_response(resp, body) BadRequest: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) ERROR: The server could not comply with the request since it is either malformed or otherwise incorrect. (HTTP 400) Which seems to leave us with === the v1.1 issue === When using the v1.1 API, novaclient is not able to query Openstack for a list of volumes. Is this supposed to be supported? === the v2 issue === The Openstack installation I'm testing against doesn't li
[Bug 996233] Re: nova and python-novaclient disagree on volumes API URLs
I am not able to reproduce this on current precise 12.04 novaclient packages running against an installation of the 12.04 packaged version of essex. Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) ||/ Name Version Description +++-=-=-== ii python-novaclient 2012.1-0ubuntu1 client library for OpenStack Compute API will@swift01:~$ nova --debug volume-list connect: (172.28.1.148, 5000) send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 172.28.1.148:5000\r\nContent-Length: 102\r\ncontent-type: application/json\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n{"auth": {"tenantName": "admin", "passwordCredentials": {"username": "admin", "password": "X"}}}' reply: 'HTTP/1.1 200 OK\r\n' header: Content-Type: application/json header: Vary: X-Auth-Token header: Date: Thu, 31 May 2012 19:10:55 GMT header: Transfer-Encoding: chunked connect: (172.28.1.148, 8776) send: u'GET /v1/5c9e830827e0412b92da25b128f5c63d/volumes/detail HTTP/1.1\r\nHost: 172.28.1.148:8776\r\nx-auth-project-id: admin\r\nx-auth-token: 6a42a4101dd04591979fe5d0df51fc8b\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n' reply: 'HTTP/1.1 200 OK\r\n' header: X-Compute-Request-Id: req-fd6dd42f-284f-4b34-b69f-28be6e6fe0ae header: Content-Type: application/json header: Content-Length: 15 header: Date: Thu, 31 May 2012 19:10:55 GMT +++--+--+-+-+ | ID | Status | Display Name | Size | Volume Type | Attached to | +++--+--+-+-+ +++--+--+-+-+ -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/996233 Title: nova and python-novaclient disagree on volumes API URLs To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/996233/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 996233] Re: nova and python-novaclient disagree on volumes API URLs
We are shipping the final version of 2012.1 for precise. in the archive. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/996233 Title: nova and python-novaclient disagree on volumes API URLs To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/996233/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 996233] Re: nova and python-novaclient disagree on volumes API URLs
it looks like precise has an older version of novaclient? this was changed around e-3 timeframe when we gave the volume api its own endpoint. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/996233 Title: nova and python-novaclient disagree on volumes API URLs To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/996233/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 996233] Re: nova and python-novaclient disagree on volumes API URLs
** Changed in: nova Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/996233 Title: nova and python-novaclient disagree on volumes API URLs To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/996233/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 996233] Re: nova and python-novaclient disagree on volumes API URLs
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: python-novaclient (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/996233 Title: nova and python-novaclient disagree on volumes API URLs To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/996233/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 996233] Re: nova and python-novaclient disagree on volumes API URLs
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: nova (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/996233 Title: nova and python-novaclient disagree on volumes API URLs To manage notifications about this bug go to: https://bugs.launchpad.net/nova/+bug/996233/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs