No error message when volume extend fails
Bug #1773833 reported by
Lucio Seki
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Low
|
TommyLike |
Bug Description
When an operator tries to extend a volume beyond its backend's capacity, he/she has no feedback whether the operation succeeded or failed.
Steps to reproduce:
1. Configure a backend with some capacity limitation LIMIT (e.g. 200GB);
2. Create a volume with size < LIMIT (e.g. 1GB);
3. Try to extend it above LIMIT (e.g. 250GB).
Expected behavior:
Get an error message somewhere.
Actual behavior:
No error message is given. The operator should look at the cinder scheduler log, which is not user-friendly.
Changed in cinder: | |
assignee: | nobody → TommyLike (hu-husheng) |
To post a comment you must log in.
It would be nice if a user message was created, similar to the one created when volume creation fails:
$ # if it's asked to create a volume beyond backend's capacity...
$ cinder create --name v3 200
$ # no volume is created; api-version 3.3 message-list ------- ------- ------- ------- ----+-- ------- ------+ ------- ------- ------- ------- ------- ---+--- ------- ------- ------+ ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---+ ------- ------- ------- ------- ----+-- ------- ------+ ------- ------- ------- ------- ------- ---+--- ------- ------- ------+ ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---+ 9e19-4386- a800-031aa490ac fa | VOLUME | 604a5d03- 4d2e-47c6- ad0d-b8e6ff6f80 ab | VOLUME_ VOLUME_ 001_003 | schedule allocate volume:Could not find any available weighted backend. | ------- ------- ------- ------- ----+-- ------- ------+ ------- ------- ------- ------- ------- ---+--- ------- ------- ------+ ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ---+
$ # and a user message is created, as expected
$ cinder --os-volume-
+------
| ID | Resource Type | Resource UUID | Event ID | User Message |
+------
| 298c7c17-
+------