service fails when deprecated 'os_region_name' is not configured in [placement]
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
New
|
Undecided
|
Unassigned |
Bug Description
Hello!
I've encountered the bug when configuring nova-compute service on new node:
...
2018-04-04 14:55:42.082 41113 INFO nova.service [req-be886a45-
2018-04-04 14:55:42.083 41113 ERROR oslo_service.
2018-04-04 14:55:42.083 41113 ERROR oslo_service.
2018-04-04 14:55:42.083 41113 ERROR oslo_service.
2018-04-04 14:55:42.083 41113 ERROR oslo_service.
2018-04-04 14:55:42.083 41113 ERROR oslo_service.
2018-04-04 14:55:42.083 41113 ERROR oslo_service.
2018-04-04 14:55:42.083 41113 ERROR oslo_service.
2018-04-04 14:55:42.083 41113 ERROR oslo_service.
2018-04-04 14:55:42.083 41113 ERROR oslo_service.
...
Steps to reproduce
------------------
1. Install and configure nova on controller node, make sure that all nova services are running correctly
2. Configure nova on compute node:
follow Queens Series Release Notes (https:/
3. Restart nova-compute service
Expected result
------------------
Nova-compute service started and running without errors
Actual result
------------------
Nova-compute service failed with PlacementNotCon
Workaround
------------------
1. Comment out 'region_name' in [placement] and configure deprecated 'os_region_name':
[placement]
os_region_name = RegionOne
auth_type = password
auth_url =
project_name = service
project_
username = placement
user_domain_name = default
password =
#region_name = RegionOne
2. Restart nova-compute service, сheck your log
...
2018-04-04 15:08:59.684 41544 INFO nova.compute.
2018-04-04 15:09:07.380 41544 INFO nova.scheduler.
2018-04-04 15:09:15.774 41544 INFO nova.compute.
...
My Environment
------------------
Ubuntu 16.04.4 LTS, 4.4.0-116-generic
Openstack Queens Release
Nova 17.0.1-0ubuntu1
description: | updated |
should this fix your bug?
commit be9854b0fdff22a 72a9699a0900e53 e0595bd533
Author: Kevin_Zheng <email address hidden>
Date: Wed Mar 21 09:43:21 2018 +0800
Change compute mgr placement check to region_name
Change https:/ /review. openstack. org/#/c/ 492247/ in queens deprecated the /os_region_ name config option and you should be using
[placement]
'region_name' in that group now, and you'll get a deprecation warning if
using 'os_region_name', but if you do that, nova-compute fails to start.
This patch fix the bug by adding [placement] /region_ name to the check.
Change-Id: Iea7d5d0d6907ad bcb236dc43b5af7 469de2ba78b
Closes-Bug: #1757273