cinder backend causes BadRequest due to NULL mountpoint

Bug #1779455 reported by Tomoki Sekiyama on 2018-06-30
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
glance_store
Critical
Tomoki Sekiyama

Bug Description

When cinder backend is enabled and an image is uploaded to it, it causes the following error:

  glance_store._drivers.cinder BadRequest: Invalid input for field/attribute mountpoint.

Full stack trace:

Jun 30 06:53:15 localhost.localdomain <email address hidden>[7108]: ERROR glance_store._drivers.cinder Traceback (most recent call last):
Jun 30 06:53:15 localhost.localdomain <email address hidden>[7108]: ERROR glance_store._drivers.cinder File "/opt/stack/glance_store/glance_store/_drivers/cinder.py",
 line 515, in _open_cinder_volume
Jun 30 06:53:15 localhost.localdomain <email address hidden>[7108]: ERROR glance_store._drivers.cinder volume.attach(None, None, attach_mode, host_name=host)
Jun 30 06:53:15 localhost.localdomain <email address hidden>[7108]: ERROR glance_store._drivers.cinder File "/usr/lib/python2.7/site-packages/cinderclient/v2/volumes.
py", line 56, in attach
Jun 30 06:53:15 localhost.localdomain <email address hidden>[7108]: ERROR glance_store._drivers.cinder host_name)
Jun 30 06:53:15 localhost.localdomain <email address hidden>[7108]: ERROR glance_store._drivers.cinder File "/usr/lib/python2.7/site-packages/cinderclient/v2/volumes.
py", line 384, in attach
Jun 30 06:53:15 localhost.localdomain <email address hidden>[7108]: ERROR glance_store._drivers.cinder return self._action('os-attach', volume, body)
Jun 30 06:53:15 localhost.localdomain <email address hidden>[7108]: ERROR glance_store._drivers.cinder File "/usr/lib/python2.7/site-packages/cinderclient/v2/volumes.
py", line 365, in _action
Jun 30 06:53:15 localhost.localdomain <email address hidden>[7108]: ERROR glance_store._drivers.cinder resp, body = self.api.client.post(url, body=body)
Jun 30 06:53:15 localhost.localdomain <email address hidden>[7108]: ERROR glance_store._drivers.cinder File "/usr/lib/python2.7/site-packages/cinderclient/client.py",
 line 457, in post
Jun 30 06:53:15 localhost.localdomain <email address hidden>[7108]: ERROR glance_store._drivers.cinder return self._cs_request(url, 'POST', **kwargs)
Jun 30 06:53:15 localhost.localdomain <email address hidden>[7108]: ERROR glance_store._drivers.cinder File "/usr/lib/python2.7/site-packages/cinderclient/client.py",
 line 410, in _cs_request
Jun 30 06:53:15 localhost.localdomain <email address hidden>[7108]: ERROR glance_store._drivers.cinder resp, body = self.request(url, method, **kwargs)
Jun 30 06:53:15 localhost.localdomain <email address hidden>[7108]: ERROR glance_store._drivers.cinder File "/usr/lib/python2.7/site-packages/cinderclient/client.py",
 line 392, in request
Jun 30 06:53:15 localhost.localdomain <email address hidden>[7108]: ERROR glance_store._drivers.cinder raise exceptions.from_response(resp, body)
Jun 30 06:53:15 localhost.localdomain <email address hidden>[7108]: ERROR glance_store._drivers.cinder BadRequest: Invalid input for field/attribute mountpoint. Value: None. None is not of type 'string' (HTTP 400) (Request-ID: req-ec5c8600-de65-4287-b565-85d752bd808b)

Changed in glance:
assignee: nobody → Tomoki Sekiyama (tsekiyama)
affects: glance → glance-store
Changed in glance-store:
assignee: Tomoki Sekiyama (tsekiyama) → nobody
assignee: nobody → Tomoki Sekiyama (tsekiyama)
assignee: Tomoki Sekiyama (tsekiyama) → nobody
status: New → In Progress
Changed in glance-store:
importance: Undecided → Critical
assignee: nobody → Tomoki Sekiyama (tsekiyama)
milestone: none → 0.25.0

Reviewed: https://review.openstack.org/579335
Committed: https://git.openstack.org/cgit/openstack/glance_store/commit/?id=68784feef22e9253316aee08322dc586b3402e34
Submitter: Zuul
Branch: master

commit 68784feef22e9253316aee08322dc586b3402e34
Author: Tomoki Sekiyama <email address hidden>
Date: Sat Jun 30 07:34:08 2018 -0400

    cinder: Specify mountpoint host param to attach API

    When an image data is uploaded to cinder backend, it causes the
    following error:
      glance_store._drivers.cinder BadRequest:
      Invalid input for field/attribute mountpoint.

    This is due to cinder require the mountpoint param on attach API.

    Change-Id: Ie82e9f4f3848cebe54f4dbccb9018815a0d5ebf1
    Closes-Bug: #1779455

Changed in glance-store:
status: In Progress → Fix Released

This issue was fixed in the openstack/glance_store 0.25.0 release.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers