cinder-manage commands crash during db sync
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Fix Released
|
Low
|
Unassigned | ||
OpenStack-Ansible |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
I'm stuck in deploying Cinder using Openshift-Ansible because I get this error
Traceback (most recent call last):
File "/openstack/
value = self.ip_
File "/openstack/
self.
File "/openstack/
raise ValueError("%s is not IPv4 or IPv6 address" % address)
ValueError: infra1_
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/openstack/
value = self.hostname(
File "/openstack/
raise ValueError("%s is an invalid hostname" % value)
ValueError: infra1_
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/openstack/
self.
File "/openstack/
"%s is not a valid host address" % (value,))
ValueError: infra1_
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/openstack/
from cinder.cmd.manage import main
File "/openstack/
from cinder.backup import rpcapi as backup_rpcapi
File "/openstack/
from cinder.common import config
File "/openstack/
help='Name of this node. This can be an opaque '
File "/openstack/
**kwargs)
File "/openstack/
self.
File "/openstack/
'opt': self.type})
oslo_config.
This happens during the run of the command cinder-manager db sync.
I've tried naturally to troubleshoot it but I could find any way issues.
I've looked at the etc/hosts file and what I have there is
[root@infra1_
127.0.0.1 localhost
::1 localhost localhost.
### BEGIN OPENSTACK-ANSIBLE MANAGED BLOCK ###
10.10.2.168 infra1_
description: | updated |
description: | updated |
Changed in cinder: | |
status: | New → Invalid |
Changed in cinder: | |
status: | New → Invalid |
Changed in openstack-ansible: | |
status: | New → Triaged |
no longer affects: | oslo.config |
Changed in openstack-ansible: | |
status: | Triaged → Fix Released |
I believe you recieve that because you have in /etc/cinder/ cinder. conf my_ip set to the infra1_ cinder_ api_container- 789627db
By default, this value is managed with variable cinder_ management_ address that is set to {{ ansible_host }}: https:/ /opendev. org/openstack/ openstack- ansible/ src/branch/ master/ inventory/ group_vars/ cinder_ all.yml# L23
OpenStack-Ansible dynamic inventory sets ansible_host to the IP address of the container and not container name.
Anyway, you can override this variable to any sutiable value (like container_address or main ipv4 address) in your user_variables.yml