Glance stores library
Go to file
whoami-rajat 2bc17c0a9e 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: Ic79815972e654a8bfe2775f57c68cfa0bf115e2f
(cherry picked from commit 8b4d97a6f7)
(cherry picked from commit 83d9c5dc2e)
Conflicts:
	glance_store/_drivers/cinder.py
	glance_store/tests/unit/test_cinder_store.py
	glance_store/tests/unit/test_multistore_cinder.py
2021-12-28 00:04:19 -05:00
doc Switch to newer openstackdocstheme and reno versions 2020-05-30 16:57:57 +02:00
etc/glance Add lock per share for cinder nfs mount/umount 2020-05-01 11:35:01 +00:00
glance_store Pass valid IP address to os-brick 2021-12-28 00:04:19 -05:00
releasenotes Pass valid IP address to os-brick 2021-12-28 00:04:19 -05:00
tools Stop to use the __future__ module. 2020-06-02 20:14:52 +02:00
.gitignore Add .stestr to gitignore 2018-01-29 06:26:30 +00:00
.gitreview Update .gitreview for stable/wallaby 2021-03-19 12:51:21 +00:00
.stestr.conf Update tox.ini to conform to the PTI 2018-07-16 04:52:57 +00:00
.zuul.yaml Drop lower-constraints job 2021-08-12 11:01:24 -04:00
LICENSE Copying from glance 2014-01-24 18:30:46 +01:00
README.rst Add release notes link in readme 2019-10-06 14:37:10 +08:00
requirements.txt Fix lower_constraints and requirements 2020-12-18 11:11:40 +00:00
run_tests.sh Don't include openstack/common in flake8 exclude list 2016-07-12 14:27:23 +08:00
setup.cfg Merge "Remove translation sections from setup.cfg" 2020-08-26 09:38:57 +00:00
setup.py Cleanup py27 support 2020-04-05 08:20:21 +02:00
test-requirements.txt Merge "Fix hacking min version to 3.0.1" 2020-08-24 19:31:41 +00:00
tox.ini Drop lower-constraints job 2021-08-12 11:01:24 -04:00

README.rst

Team and repository tags

The following tags have been asserted for the Glance Store
Library:
"project:official",
"stable:follows-policy",
"vulnerability:managed".
Follow the link for an explanation of these tags.

Glance Store Library

Glance's stores library

This library has been extracted from the Glance source code for the specific use of the Glance and Glare projects.

The API it exposes is not stable, has some shortcomings, and is not a general purpose interface. We would eventually like to change this, but for now using this library outside of Glance or Glare will not be supported by the core team.