nova-next job POST_FAILURE due to nova-manage heal _allocations testing fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
placement-osc-plugin |
Triaged
|
Critical
|
Balazs Gibizer |
Bug Description
Since Friday (3rd of Sept) the nova-next job fails[1] on master with:
2021-09-05 10:20:23.082260 | controller | + /opt/stack/
2021-09-05 10:20:25.387981 | controller | ++ /opt/stack/
2021-09-05 10:20:27.018412 | controller | 'project_id'
2021-09-05 10:20:27.152002 | controller | + /opt/stack/
2021-09-05 10:20:27.441731 | controller | ERROR
2021-09-05 10:20:27.442055 | controller | {
2021-09-05 10:20:27.442156 | controller | "delta": "0:01:26.706541",
2021-09-05 10:20:27.442248 | controller | "end": "2021-09-05 10:20:27.152606",
2021-09-05 10:20:27.442337 | controller | "msg": "non-zero return code",
2021-09-05 10:20:27.442424 | controller | "rc": 1,
2021-09-05 10:20:27.442510 | controller | "start": "2021-09-05 10:19:00.446065"
2021-09-05 10:20:27.442599 | controller | }
[1] https:/
[2] https:/
Changed in nova: | |
importance: | Undecided → Critical |
tags: | added: gate-failure |
I can reproduce it in a local fresh devstack. The command that fails in the script[1] is calling allocation show but the osc-placement client fails it parse the response properly resulting in a KeyError
REQ: curl -g -i -X GET http:// 192.168. 121.158/ placement/ allocations/ 24995dd2- 2966-4e3b- 975c-c02368b1e0 86 -H "Accept: application/json" -H "OpenStack- API-Version: placement 1.29" -H "User-Agent: openstacksdk/0.59.0 keystoneauth1/4.3.1 python- requests/ 2.26.0 CPython/3.8.10" -H "X-Auth-Token: {SHA256} e30defd2510f68e 4e8af8225168d91 d40c58887815ef9 6d297189b33166f a3da" 192.168. 121.158: 80 "GET /placement/ allocations/ 24995dd2- 2966-4e3b- 975c-c02368b1e0 86 HTTP/1.1" 200 19 api-version: placement 1.29 vary: openstack- api-version x-openstack- request- id: req-1956e37b- 7cd5-4cb8- b7de-e07bd7a041 87 192.168. 121.158/ placement/ allocations/ 24995dd2- 2966-4e3b- 975c-c02368b1e0 86 used request id req-1956e37b- 7cd5-4cb8- b7de-e07bd7a041 87 lib/python3. 8/dist- packages/ cliff/app. py", line 407, in run_subcommand parsed_ args) lib/python3. 8/dist- packages/ osc_lib/ command/ command. py", line 39, in run parsed_ args) lib/python3. 8/dist- packages/ cliff/display. py", line 115, in run action( parsed_ args) osc-placement/ osc_placement/ resources/ allocation. py", line 335, in take_action 'project_ id'] = resp['project_id']
Resetting dropped connection: 192.168.121.158
http://
RESP: [200] Cache-Control: no-cache Connection: close Content-Length: 19 Content-Type: application/json Date: Mon, 06 Sep 2021 07:46:53 GMT Last-Modified: Mon, 06 Sep 2021 07:46:53 GMT Server: Apache/2.4.41 (Ubuntu) openstack-
RESP BODY: {"allocations": {}}
GET call to placement for http://
'project_id'
Traceback (most recent call last):
File "/usr/local/
result = cmd.run(
File "/usr/local/
return super(Command, self).run(
File "/usr/local/
column_names, data = self.take_
File "/opt/stack/
props[
KeyError: 'project_id'
clean_up ShowAllocation: 'project_id'
END return value: 1
Locally reverting https:/ /review. opendev. org/c/openstack /osc-placement/ +/804458 fixes the issue