cinder store: pass ip instead of hostname to os-brick
Bug #1955668 reported by
Rajat Dhasmana
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
glance_store |
Fix Released
|
Undecided
|
Rajat Dhasmana |
Bug Description
When using iscsi backend cinder and cinder as a glance backend, we can see that glance_store sends the hostname of the node instead of the ip address to os_brick get_connector_
2021-12-23 16:05:21.451 143 ERROR cinder.
2021-12-23 16:05:21.451 143 ERROR cinder.
2021-12-23 16:05:21.451 143 ERROR cinder.
Changed in glance-store: | |
status: | New → In Progress |
Changed in glance-store: | |
assignee: | nobody → Rajat Dhasmana (whoami-rajat) |
To post a comment you must log in.
Reviewed: https:/ /review. opendev. org/c/openstack /glance_ store/+ /822828 /opendev. org/openstack/ glance_ store/commit/ 8b4d97a6f7ce080 5a430dac6756495 db7a5aacb4
Committed: https:/
Submitter: "Zuul (22348)"
Branch: master
commit 8b4d97a6f7ce080 5a430dac6756495 db7a5aacb4
Author: whoami-rajat <email address hidden>
Date: Thu Dec 23 12:46:32 2021 +0000
Pass valid IP address to os-brick
While fetching connector information the cinder driver of
glance-store is passing 'hostname' as IP address whereas it
actually needs IP address.
This path fetches the IPV4 or IPV6 address from the available
'hostname' and passes it to os-brick.
This worked for other cinder backends which don't rely specifically
on IP address for initializing connection like fibre channel, nfs etc
and even for some iscsi backends since, in some environments,
the hostname is same as the ip address. This is not the case always
and we should pass the correct IPv4/IPv6 address of the host to
avoid this issue.
Closes-Bug: #1955668
Change-Id: Ic79815972e654a 8bfe2775f57c68c fa0bf115e2f