cinder ImageUnacceptable exception not returned to called
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Medium
|
git-harry |
Bug Description
When I try to create a volume from an image with a size too small to receive the image, the error message is not returned to cinder-api and reported to the user.
$ cinder create --image-id bdcdf39f-
$ cinder show test4
+------
| Property | Value |
+------
| attachments | [] |
| availability_zone | nova |
| bootable | false |
| created_at | 2014-04-
| description | None |
| encrypted | False |
| id | b73c8639-
| metadata | {} |
| name | test4 |
| os-vol-
| os-vol-
| os-vol-
| os-vol-
| size | 1 |
| snapshot_id | None |
| source_volid | None |
| status | error |
| user_id | 13c605bbec5340e
| volume_type | None |
+------
In cinder-volume daemon log:
2014-04-02 08:26:19.676 ERROR oslo.messaging.
Traceback (most recent call last):
File "/usr/local/
timer()
File "/usr/local/
cb(*args, **kw)
File "/usr/local/
self.
File "/usr/local/
f(self, *ca, **ckw)
File "/vagrant/
thread.wait()
File "/usr/local/
return self._exit_
File "/usr/local/
current.
File "/usr/local/
result = function(*args, **kwargs)
File "/vagrant/
yield lambda: self._dispatch_
File "/vagrant/
incoming.
File "/vagrant/
self.
File "/vagrant/
log_failure)
File "/vagrant/
json_data = jsonutils.
File "/vagrant/
return json.dumps(value, default=default, **kwargs)
File "/usr/lib/
**kw)
File "/usr/lib/
chunks = self.iterencode(o, _one_shot=True)
File "/usr/lib/
return _iterencode(o, 0)
ValueError: Circular reference detected
I use devstack master (c72cc4b2345e9e
Thanks in advance.
Changed in cinder: | |
assignee: | nobody → git-harry (git-harry) |
Changed in cinder: | |
milestone: | none → juno-1 |
Changed in cinder: | |
importance: | Undecided → Medium |
Changed in cinder: | |
milestone: | juno-1 → juno-2 |
Changed in cinder: | |
status: | Fix Committed → Fix Released |
Changed in cinder: | |
milestone: | juno-2 → 2014.2 |
The issue appears to be line 463 of cinder/ volume/ flows/manager/ create_ volume. py
raise exception. ImageUnacceptab le(ex)
ex is the caught exception