[Bug 1821797] [NEW] Failed attach cinder volume to instance

Lev Klimin lklimin at gmail.com
Tue Mar 26 18:55:57 UTC 2019


Public bug reported:

There is a error at attaching cinder volume (rbd backend) to instance.
Release: Queens

# openstack server add volume 2788ffe5-fb54-4c97-8074-24b62cdfb65f bf137dcf-d537-4776-9a49-84a2b6bfccdd --debug
... skip ...
GET call to volumev2 for https://cloud.newton.local:8776/v2/79fb01fea5ed409784bad9564c4868a9/volumes/bf137dcf-d537-4776-9a49-84a2b6bfccdd used request id req-29c40a34-1799-4ff0-9b58-6c746634485a
REQ: curl -g -i -X POST https://cloud.newton.local:8774/v2.1/servers/2788ffe5-fb54-4c97-8074-24b62cdfb65f/os-volume_attachments -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4d56b517dfb7ac035ec2c073c14ad70ef840faf7" -d '{"volumeAttachment": {"volumeId": "bf137dcf-d537-4776-9a49-84a2b6bfccdd"}}'
https://cloud.newton.local:8774 "POST /v2.1/servers/2788ffe5-fb54-4c97-8074-24b62cdfb65f/os-volume_attachments HTTP/1.1" 500 210
RESP: [500] Openstack-Api-Version: compute 2.1 X-Openstack-Nova-Api-Version: 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version Content-Type: application/json; charset=UTF-8 Content-Length: 210 X-Openstack-Request-Id: req-85d2caa3-ef54-4282-9b61-a4e70e0319b1 X-Compute-Request-Id: req-85d2caa3-ef54-4282-9b61-a4e70e0319b1 Date: Tue, 26 Mar 2019 18:54:22 GMT Connection: keep-alive
RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'cinderclient.exceptions.Unauthorized'>", "code": 500}}

POST call to compute for https://cloud.newton.local:8774/v2.1/servers/2788ffe5-fb54-4c97-8074-24b62cdfb65f/os-volume_attachments used request id req-85d2caa3-ef54-4282-9b61-a4e70e0319b1
Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'cinderclient.exceptions.Unauthorized'> (HTTP 500) (Request-ID: req-85d2caa3-ef54-4282-9b61-a4e70e0319b1)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/cliff/command.py", line 184, in run
    return_code = self.take_action(parsed_args) or 0
  File "/usr/lib/python2.7/dist-packages/openstackclient/compute/v2/server.py", line 423, in take_action
    parsed_args.device,
  File "/usr/lib/python2.7/dist-packages/novaclient/api_versions.py", line 393, in substitution
    return methods[-1].func(obj, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/v2/volumes.py", line 56, in create_server_volume
    body, "volumeAttachment")
  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 361, in _create
    resp, body = self.api.client.post(url, body=body)
  File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 310, in post
    return self.request(url, 'POST', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 83, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'cinderclient.exceptions.Unauthorized'> (HTTP 500) (Request-ID: req-85d2caa3-ef54-4282-9b61-a4e70e0319b1)
clean_up AddServerVolume: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'cinderclient.exceptions.Unauthorized'> (HTTP 500) (Request-ID: req-85d2caa3-ef54-4282-9b61-a4e70e0319b1)
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 134, in run
    ret_val = super(OpenStackShell, self).run(argv)
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 279, in run
    result = self.run_subcommand(remainder)
  File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 169, in run_subcommand
    ret_value = super(OpenStackShell, self).run_subcommand(argv)
  File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand
    result = cmd.run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
    return super(Command, self).run(parsed_args)
  File "/usr/lib/python2.7/dist-packages/cliff/command.py", line 184, in run
    return_code = self.take_action(parsed_args) or 0
  File "/usr/lib/python2.7/dist-packages/openstackclient/compute/v2/server.py", line 423, in take_action
    parsed_args.device,
  File "/usr/lib/python2.7/dist-packages/novaclient/api_versions.py", line 393, in substitution
    return methods[-1].func(obj, *args, **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/v2/volumes.py", line 56, in create_server_volume
    body, "volumeAttachment")
  File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 361, in _create
    resp, body = self.api.client.post(url, body=body)
  File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 310, in post
    return self.request(url, 'POST', **kwargs)
  File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 83, in request
    raise exceptions.from_response(resp, body, url, method)
ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
<class 'cinderclient.exceptions.Unauthorized'> (HTTP 500) (Request-ID: req-85d2caa3-ef54-4282-9b61-a4e70e0319b1)

END return value: 1

** Affects: nova (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: attach cinder nova volume

** Tags added: nova

** Tags added: attach cinder volume

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

Title:
  Failed attach cinder volume to instance

Status in nova package in Ubuntu:
  New

Bug description:
  There is a error at attaching cinder volume (rbd backend) to instance.
  Release: Queens

  # openstack server add volume 2788ffe5-fb54-4c97-8074-24b62cdfb65f bf137dcf-d537-4776-9a49-84a2b6bfccdd --debug
  ... skip ...
  GET call to volumev2 for https://cloud.newton.local:8776/v2/79fb01fea5ed409784bad9564c4868a9/volumes/bf137dcf-d537-4776-9a49-84a2b6bfccdd used request id req-29c40a34-1799-4ff0-9b58-6c746634485a
  REQ: curl -g -i -X POST https://cloud.newton.local:8774/v2.1/servers/2788ffe5-fb54-4c97-8074-24b62cdfb65f/os-volume_attachments -H "User-Agent: python-novaclient" -H "Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}4d56b517dfb7ac035ec2c073c14ad70ef840faf7" -d '{"volumeAttachment": {"volumeId": "bf137dcf-d537-4776-9a49-84a2b6bfccdd"}}'
  https://cloud.newton.local:8774 "POST /v2.1/servers/2788ffe5-fb54-4c97-8074-24b62cdfb65f/os-volume_attachments HTTP/1.1" 500 210
  RESP: [500] Openstack-Api-Version: compute 2.1 X-Openstack-Nova-Api-Version: 2.1 Vary: OpenStack-API-Version, X-OpenStack-Nova-API-Version Content-Type: application/json; charset=UTF-8 Content-Length: 210 X-Openstack-Request-Id: req-85d2caa3-ef54-4282-9b61-a4e70e0319b1 X-Compute-Request-Id: req-85d2caa3-ef54-4282-9b61-a4e70e0319b1 Date: Tue, 26 Mar 2019 18:54:22 GMT Connection: keep-alive
  RESP BODY: {"computeFault": {"message": "Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.\n<class 'cinderclient.exceptions.Unauthorized'>", "code": 500}}

  POST call to compute for https://cloud.newton.local:8774/v2.1/servers/2788ffe5-fb54-4c97-8074-24b62cdfb65f/os-volume_attachments used request id req-85d2caa3-ef54-4282-9b61-a4e70e0319b1
  Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'cinderclient.exceptions.Unauthorized'> (HTTP 500) (Request-ID: req-85d2caa3-ef54-4282-9b61-a4e70e0319b1)
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand
      result = cmd.run(parsed_args)
    File "/usr/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
      return super(Command, self).run(parsed_args)
    File "/usr/lib/python2.7/dist-packages/cliff/command.py", line 184, in run
      return_code = self.take_action(parsed_args) or 0
    File "/usr/lib/python2.7/dist-packages/openstackclient/compute/v2/server.py", line 423, in take_action
      parsed_args.device,
    File "/usr/lib/python2.7/dist-packages/novaclient/api_versions.py", line 393, in substitution
      return methods[-1].func(obj, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/novaclient/v2/volumes.py", line 56, in create_server_volume
      body, "volumeAttachment")
    File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 361, in _create
      resp, body = self.api.client.post(url, body=body)
    File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 310, in post
      return self.request(url, 'POST', **kwargs)
    File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 83, in request
      raise exceptions.from_response(resp, body, url, method)
  ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'cinderclient.exceptions.Unauthorized'> (HTTP 500) (Request-ID: req-85d2caa3-ef54-4282-9b61-a4e70e0319b1)
  clean_up AddServerVolume: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'cinderclient.exceptions.Unauthorized'> (HTTP 500) (Request-ID: req-85d2caa3-ef54-4282-9b61-a4e70e0319b1)
  Traceback (most recent call last):
    File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 134, in run
      ret_val = super(OpenStackShell, self).run(argv)
    File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 279, in run
      result = self.run_subcommand(remainder)
    File "/usr/lib/python2.7/dist-packages/osc_lib/shell.py", line 169, in run_subcommand
      ret_value = super(OpenStackShell, self).run_subcommand(argv)
    File "/usr/lib/python2.7/dist-packages/cliff/app.py", line 400, in run_subcommand
      result = cmd.run(parsed_args)
    File "/usr/lib/python2.7/dist-packages/osc_lib/command/command.py", line 41, in run
      return super(Command, self).run(parsed_args)
    File "/usr/lib/python2.7/dist-packages/cliff/command.py", line 184, in run
      return_code = self.take_action(parsed_args) or 0
    File "/usr/lib/python2.7/dist-packages/openstackclient/compute/v2/server.py", line 423, in take_action
      parsed_args.device,
    File "/usr/lib/python2.7/dist-packages/novaclient/api_versions.py", line 393, in substitution
      return methods[-1].func(obj, *args, **kwargs)
    File "/usr/lib/python2.7/dist-packages/novaclient/v2/volumes.py", line 56, in create_server_volume
      body, "volumeAttachment")
    File "/usr/lib/python2.7/dist-packages/novaclient/base.py", line 361, in _create
      resp, body = self.api.client.post(url, body=body)
    File "/usr/lib/python2.7/dist-packages/keystoneauth1/adapter.py", line 310, in post
      return self.request(url, 'POST', **kwargs)
    File "/usr/lib/python2.7/dist-packages/novaclient/client.py", line 83, in request
      raise exceptions.from_response(resp, body, url, method)
  ClientException: Unexpected API Error. Please report this at http://bugs.launchpad.net/nova/ and attach the Nova API log if possible.
  <class 'cinderclient.exceptions.Unauthorized'> (HTTP 500) (Request-ID: req-85d2caa3-ef54-4282-9b61-a4e70e0319b1)

  END return value: 1

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



More information about the Ubuntu-openstack-bugs mailing list