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
Fix Cinder volume detection on OpenStack Train #96673
Conversation
/priority important-soon |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
but like mentioned in Slack, in-tree OpenStack cloudprovider is deprecated and will be removed soon from k/k (was it 1.22?). So I would start migrating to external cloudproviders like now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks fine, but there are some problems in the commit message:
OpenStack 16 was OpenStack Pike, which Red Hat released as OSP 12. I'm guessing you meant OSP 16, which is OpenStack Train.
However, OpenStack has never truncated the volume id anyway. I don't recall the details now, but it's truncated either by the hypervisor or the guest kernel, I think the latter, and is dependent on the driver used. I remember it's ill-defined and the behaviour can differ even on the same software version depending on use.
OSP (as opposed to OpenStack) 16 defines the whole stack including the hypervisor and kernel, so is likely more relevant here. OpenStack Train (which is upstream version 20) would differ anyway depending on which platform it's running on.
Yeah, it's not confusing at all :) The downstream nova team keeps a magic decoder ring for exactly this reason.
If the contents of the commit message might ever be important to anybody you should probably fix it.
Newer OpenStack does not truncate volumeID to 20 characters. /dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_033fa19a-a5e3-445a-8631-3e9349e540e5 was seen on an OpenStack Train node.
Updated to OpenStack Train. |
56345dd
to
92c3895
Compare
/lgtm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The same changes were done for the CSI driver: kubernetes/cloud-provider-openstack#853
/assign @dims @NickrenREN |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Fedosin, jsafrane, NickrenREN, zetaab The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/kind bug
What this PR does / why we need it:
Newer OpenStack does not truncate volumeID to 20 characters.
/dev/disk/by-id/scsi-0QEMU_QEMU_HARDDISK_033fa19a-a5e3-445a-8631-3e9349e540e5
was seen on OpenStack 16 node.Fixes: #96672
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: