← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 994005] Re: nova --insecure image-delete fails

 

** Changed in: nova
       Status: Confirmed => Invalid

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/994005

Title:
  nova --insecure image-delete fails

Status in OpenStack Compute (Nova):
  Invalid

Bug description:
  When issuing:

  $ nova --debug --insecure image-delete tty-linux-kernel
  connect: (109.234.208.72, 5000)
  send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 109.234.208.72:5000\r\nContent-Length: 120\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@xxxxxxxx", "passwordCredentials": {"username": "admin@xxxxxxxx", "password": "*******"}}}'
  reply: 'HTTP/1.1 200 OK\r\n'
  header: Content-Type: application/json
  header: Vary: X-Auth-Token
  header: Content-Length: 2619
  header: Date: Thu, 03 May 2012 14:02:54 GMT
  connect: (109.234.208.72, 444)
  send: u'GET /v2/7bef76f5941341fcb133bfc04f156810/images/detail HTTP/1.1\r\nHost: 109.234.208.72:444\r\nx-auth-project-id: admin@xxxxxxxx\r\nx-auth-token: 0e73e6f23b72443f8066ece54610ed1f\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-12ccf4e9-f657-4db5-9fba-92ce985f1e82
  header: Content-Type: application/json
  header: Content-Length: 11826
  header: Date: Thu, 03 May 2012 14:02:55 GMT
  send: u'DELETE /v2/7bef76f5941341fcb133bfc04f156810/images/30130507-4c7a-43d6-8d47-0ac24133bf3b HTTP/1.1\r\nHost: 109.234.208.72:444\r\nx-auth-project-id: admin@xxxxxxxx\r\nx-auth-token: 0e73e6f23b72443f8066ece54610ed1f\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
  reply: 'HTTP/1.0 501 Not Implemented\r\n'
  header: Content-Type: text/html
  header: Content-Length: 28
  header: Expires: now
  header: Pragma: no-cache
  header: Cache-control: no-cache,no-store
  DEBUG (shell:416) n/a (HTTP 501)
  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 444, in do_image_delete
      image.delete()
    File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/images.py", line 22, in delete
      self.manager.delete(self)
    File "/usr/lib/python2.7/dist-packages/novaclient/v1_1/images.py", line 60, in delete
      self._delete("/images/%s" % base.getid(image))
    File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 166, in _delete
      resp, body = self.api.client.delete(url)
    File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 145, in delete
      return self._cs_request(url, 'DELETE', **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)
  HTTPNotImplemented: n/a (HTTP 501)
  ERROR: n/a (HTTP 501)

  If we use the internalURL endpoint the comand works as expected,. Our
  glance SSL endpoint currently uses an invalid certificate,  so the
  --insecure flag should be also used to ignore the invalid SSL
  certificate when connecting to glance URL and not only to keystone.

  $ nova --debug --insecure --endpoint_type internalURL  image-delete tty-linux-kernel
  connect: (109.234.208.72, 5000)
  send: 'POST /v2.0/tokens HTTP/1.1\r\nHost: 109.234.208.72:5000\r\nContent-Length: 120\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@xxxxxxxx", "passwordCredentials": {"username": "admin@xxxxxxxx", "password": "Klock09"}}}'
  reply: 'HTTP/1.1 200 OK\r\n'
  header: Content-Type: application/json
  header: Vary: X-Auth-Token
  header: Content-Length: 2619
  header: Date: Thu, 03 May 2012 14:08:45 GMT
  connect: (10.130.0.16, 8774)
  send: u'GET /v2/7bef76f5941341fcb133bfc04f156810/images/detail HTTP/1.1\r\nHost: 10.130.0.16:8774\r\nx-auth-project-id: admin@xxxxxxxx\r\nx-auth-token: 038914aaa66e43259ec52ec391051b41\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-95a86170-6907-4f3a-a972-5803873e989e
  header: Content-Type: application/json
  header: Content-Length: 11758
  header: Date: Thu, 03 May 2012 14:08:45 GMT
  send: u'DELETE /v2/7bef76f5941341fcb133bfc04f156810/images/30130507-4c7a-43d6-8d47-0ac24133bf3b HTTP/1.1\r\nHost: 10.130.0.16:8774\r\nx-auth-project-id: admin@xxxxxxxx\r\nx-auth-token: 038914aaa66e43259ec52ec391051b41\r\naccept-encoding: gzip, deflate\r\naccept: application/json\r\nuser-agent: python-novaclient\r\n\r\n'
  reply: 'HTTP/1.1 204 No Content\r\n'
  header: Content-Type: text/html; charset=UTF-8
  header: Content-Length: 0
  header: Date: Thu, 03 May 2012 14:08:46 GMT

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/994005/+subscriptions