db online_data_migrations error when we set backend_host in cinder.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
New
|
Undecided
|
Unassigned |
Bug Description
When we configured backend_host (not host) for cinder-volume HA, then we execute the cli "cinder-manage db online_
The problem can be reproduced by deploying cinder-volume with pacemaker.And I have set the backend_host = hostgroup,the "host" is not set.
The reason of this we found that there will be an rpc call for all service.host. When the service.host is hostgroup@ssd, beacuse the "hostgroup" host is virtual, so theis is error.
openstack version:Rocky
Ref:
https:/
summary: |
- db online_data_migrations error + db online_data_migrations error when we set backend_host in cinder.conf |
the log: python2. 7/site- packages/ cinder/ cmd/manage. py", line 350, in _run_migrati on meth(ctxt, count) python2. 7/site- packages/ cinder/ cmd/manage. py", line 127, in shared_targe ts_online_ data_migration to_update = _get_non_ shared_ target_ hosts(ctxt) python2. 7/site- packages/ cinder/ cmd/manage. py", line 110, in _get_non_sha red_target_hosts get_capabilitie s(ctxt, service.host, True) python2. 7/site- packages/ cinder/ volume/ rpcapi. py", line 341, in get_capab ilities python2. 7/site- packages/ oslo_messaging/ rpc/client. py", line 179, in call python2. 7/site- packages/ oslo_messaging/ transport. py", line 133, in _send python2. 7/site- packages/ oslo_messaging/ _drivers/ amqpdriver. py", line 584 , in send timeout, retry=retry) python2. 7/site- packages/ oslo_messaging/ _drivers/ amqpdriver. py", line 573 , in _send timeout) python2. 7/site- packages/ oslo_messaging/ _drivers/ amqpdriver. py", line 459 , in wait get(msg_ id, timeout=timeout) python2. 7/site- packages/ oslo_messaging/ _drivers/ amqpdriver. py", line 336 , in get 9b8a60e8fcbd eccb0
520 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage Traceback (most recent call last):
521 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage File "/usr/lib/
522 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage found, done = migration_
523 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage File "/usr/lib/
524 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage non_shared_hosts, total_vols_
525 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage File "/usr/lib/
526 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage capabilities = rpcapi.
527 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage File "/usr/lib/
528 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage return cctxt.call(ctxt, 'get_capabilities', discover=discover)
529 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage File "/usr/lib/
530 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage retry=self.retry)
531 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage File "/usr/lib/
532 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage retry=retry)
533 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage File "/usr/lib/
534 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage call_monitor_
535 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage File "/usr/lib/
536 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage call_monitor_
537 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage File "/usr/lib/
538 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage message = self.waiters.
539 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage File "/usr/lib/
540 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage 'to message ID %s' % msg_id)
541 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage MessagingTimeout: Timed out waiting for a reply to message ID 79fc13882d1945d
542 2019-04-12 16:38:59.542 139 ERROR cinder.cmd.manage