← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1779455] [NEW] cinder backend causes BadRequest due to NULL mountpoint

 

Public bug reported:

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 devstack@g-api.service[7108]: ERROR glance_store._drivers.cinder Traceback (most recent call last):
Jun 30 06:53:15 localhost.localdomain devstack@g-api.service[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 devstack@g-api.service[7108]: ERROR glance_store._drivers.cinder     volume.attach(None, None, attach_mode, host_name=host)
Jun 30 06:53:15 localhost.localdomain devstack@g-api.service[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 devstack@g-api.service[7108]: ERROR glance_store._drivers.cinder     host_name)
Jun 30 06:53:15 localhost.localdomain devstack@g-api.service[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 devstack@g-api.service[7108]: ERROR glance_store._drivers.cinder     return self._action('os-attach', volume, body)
Jun 30 06:53:15 localhost.localdomain devstack@g-api.service[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 devstack@g-api.service[7108]: ERROR glance_store._drivers.cinder     resp, body = self.api.client.post(url, body=body)
Jun 30 06:53:15 localhost.localdomain devstack@g-api.service[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 devstack@g-api.service[7108]: ERROR glance_store._drivers.cinder     return self._cs_request(url, 'POST', **kwargs)
Jun 30 06:53:15 localhost.localdomain devstack@g-api.service[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 devstack@g-api.service[7108]: ERROR glance_store._drivers.cinder     resp, body = self.request(url, method, **kwargs)
Jun 30 06:53:15 localhost.localdomain devstack@g-api.service[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 devstack@g-api.service[7108]: ERROR glance_store._drivers.cinder     raise exceptions.from_response(resp, body)
Jun 30 06:53:15 localhost.localdomain devstack@g-api.service[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)

** Affects: glance-store
     Importance: Undecided
         Status: In Progress

** Changed in: glance
     Assignee: (unassigned) => Tomoki Sekiyama (tsekiyama)

** Project changed: glance => glance-store

** Changed in: glance-store
     Assignee: Tomoki Sekiyama (tsekiyama) => (unassigned)

** Changed in: glance-store
     Assignee: (unassigned) => Tomoki Sekiyama (tsekiyama)

** Changed in: glance-store
       Status: New => In Progress

** Changed in: glance-store
     Assignee: Tomoki Sekiyama (tsekiyama) => (unassigned)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to Glance.
https://bugs.launchpad.net/bugs/1779455

Title:
  cinder backend causes BadRequest due to NULL mountpoint

Status in glance_store:
  In Progress

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 devstack@g-api.service[7108]: ERROR glance_store._drivers.cinder Traceback (most recent call last):
  Jun 30 06:53:15 localhost.localdomain devstack@g-api.service[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 devstack@g-api.service[7108]: ERROR glance_store._drivers.cinder     volume.attach(None, None, attach_mode, host_name=host)
  Jun 30 06:53:15 localhost.localdomain devstack@g-api.service[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 devstack@g-api.service[7108]: ERROR glance_store._drivers.cinder     host_name)
  Jun 30 06:53:15 localhost.localdomain devstack@g-api.service[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 devstack@g-api.service[7108]: ERROR glance_store._drivers.cinder     return self._action('os-attach', volume, body)
  Jun 30 06:53:15 localhost.localdomain devstack@g-api.service[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 devstack@g-api.service[7108]: ERROR glance_store._drivers.cinder     resp, body = self.api.client.post(url, body=body)
  Jun 30 06:53:15 localhost.localdomain devstack@g-api.service[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 devstack@g-api.service[7108]: ERROR glance_store._drivers.cinder     return self._cs_request(url, 'POST', **kwargs)
  Jun 30 06:53:15 localhost.localdomain devstack@g-api.service[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 devstack@g-api.service[7108]: ERROR glance_store._drivers.cinder     resp, body = self.request(url, method, **kwargs)
  Jun 30 06:53:15 localhost.localdomain devstack@g-api.service[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 devstack@g-api.service[7108]: ERROR glance_store._drivers.cinder     raise exceptions.from_response(resp, body)
  Jun 30 06:53:15 localhost.localdomain devstack@g-api.service[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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/glance-store/+bug/1779455/+subscriptions