Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cinder-volume uses default URI of localhost despite specific URI in cinder.conf #9

Open
ChipOManiac opened this issue Jan 15, 2021 · 2 comments

Comments

@ChipOManiac
Copy link

We are currently using LINSTOR controllers in a HA configuration accessible from a floating IP managed by Corosync+Pacemaker.

Our cinder.conf uses the following configuration (organization specific data obfuscated) for the LINSTOR backend:

. . .
[KALMYK]
iscsi_helper = tgtadm
linstor_controller_diskless = False
linstor_default_resource_size = 1
linstor_default_storage_pool_name = KalmykLINSTOR
linstor_default_uri = linstor://XXX.XXX.XXX.6
linstor_default_volume_group = vg_kalmyk_linstor
linstor_volume_downsize_factor = 4096
volume_backend_name = LINSTOR
volume_driver = cinder.volume.drivers.linstordrv.LinstorDrbdDriver
. . .

However, the cinder-volume service ignores the linstor_default_uri specified and defaults to using linstor://localhost, errors-out when unable to do so, and goes into a crash-backoff loop.

We've identified the code responsible for this behavior and prepared a patch/diff file:

linstor.txt

After applying this patch/diff, the cinder-volume service accepts the specified URI and works properly in sending API requests to our controller.

Can these changes be verified?

@rp-
Copy link
Collaborator

rp- commented Jan 18, 2021

The changes look good, but against what branch/release did you do the patch?
Latest version(einstein) seems to have fixed most of those things, except of 2 occurrences, which I'm going to fix in a sec

@ChipOManiac
Copy link
Author

The changes look good, but against what branch/release did you do the patch?

These changes were made against the "stein" release; the Python venv version is cinder-20.1.5 and cinder-20.2.1.dev3, we were using this repository for Cinder with OpenStack-Ansible.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants