Error when attaching volume to instance
Bug #1492450 reported by
Richard Hagarty
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
High
|
Richard Hagarty |
Bug Description
After Nova patch https:/
The Nova API requires a non blank "device" value, or null. Horizon is passing a blank string, which results in the following exception:
Recoverable error: Invalid input for field/attribute device. Value: . u'' does not match '(^/dev/
Changed in horizon: | |
assignee: | nobody → Richard Hagarty (richard-hagarty) |
Changed in horizon: | |
importance: | Undecided → High |
milestone: | none → liberty-rc1 |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | liberty-rc1 → 8.0.0 |
To post a comment you must log in.
This affects me as well, using a Horizon from a devstack deployment, with the following as the latest commit:
commit 2b566cbac7564de 268cc27edebca55 8f1bda89d1
Merge: dee5c9d f9e0570
Author: Jenkins <email address hidden>
Date: Wed Sep 9 08:16:20 2015 +0000
Merge "Fix typo in a document javacript => javascript"
Log from horizon.log:
2015-09-09 15:17:16.545322 REQ: curl -g -i 'http://<IPAddress> :8774/v2. 1/4aa0fae8ea934 17bbde856b26c41 3b51/servers/ 011fcb8e- 9db3-4753- 8136-01ee3174e4 52/os-volume_ attachments' -X POST -H "Accept: application/json bbde856b26c413b 51" -H "X-Auth-Token: {SHA1}bf37b4ec6 147ee8a3e15415f adde16d406a6823 e" -d '{"volumeAttac de59-440e- 8823-8bf03d99e6 70"}}' request- id': 'req-3d5a6489- 0c94-471f- aea1-ca4107e0b7 ce', 'vary': 'X-OpenStack- Nova-API- Version' , 'connection': 'keep-alive', 'x-openstack x{0,1}[ a-z]{0, 1}d{0,1} )([a-z] +)[0-9] *$' (HTTP 400) (Request-ID: req-3d5a6489- 0c94-471f- aea1-ca4107e0b7 ce) :8774/v2. 1/4aa0fae8ea934 17bbde856b26c41 3b51/servers/ detail? project_ id=4aa0fae8ea93 417bbde856b26c4 13b51' -X GET -H "Accept: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Project-Id: 4aa0fae8ea93417 bbde856b26c413b 51" -H "X-Auth-Token: {SHA1}bf37b4ec6 147ee8a3e15415f adde16d406a6823 e" request- id': 'req-d0a12a3b- 5360-4e81- a2c5-ba9d86326c a0', 'vary': 'X-OpenStack- Nova-API- Version' , 'connection': 'keep-alive', 'x-openstack- nova-api- version' : '2.1', 'date': 'Wed, 09 Sep 2015 15:17:17 GMT', 'content-type': 'application/json'}
" -H "Content-Type: application/json" -H "User-Agent: python-novaclient" -H "X-Auth-Project-Id: 4aa0fae8ea93417
hment": {"device": "", "volumeId": "b5d012b2-
2015-09-09 15:17:16.559351 RESP: [400] {'content-length': '161', 'x-compute-
-nova-api-version': '2.1', 'date': 'Wed, 09 Sep 2015 15:17:16 GMT', 'content-type': 'application/json; charset=UTF-8'}
2015-09-09 15:17:16.559397 RESP BODY: null
2015-09-09 15:17:16.559402
2015-09-09 15:17:16.560191 Recoverable error: Invalid input for field/attribute device. Value: . u'' does not match '(^/dev/
2015-09-09 15:17:17.124839 REQ: curl -g -i 'http://<IPAddress>
2015-09-09 15:17:17.208386 RESP: [200] {'content-length': '1702', 'x-compute-