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 fix issue mapping device name on Xen hypervisor #1306

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

acottais
Copy link

@acottais acottais commented Mar 2, 2019

This pull request fixed an issue I encountered on the Flexible Engine Cloud provided by Orange (based on Huawei cloud solution). On this cloud when using Xen hypervisors the volumes would be mounted like the EBS volumes: mapping is done with the /dev/xdv[b-z] pattern instead of the /dev/sd[b-z] pattern reported by cinder.
When using KVM hypervisors (virtio) I have taken the change proposed by the nokia fork to retrieve the mount point using the device id.
The behavior of the device resolution name can be controlled with the mappingType parameter which can take the following values:

  • « ebs »: will act like the ebs plugin replacing the pattern /dev/sd with /dev/xdv. The pattern can be change with the two parameters deviceMapping and hostMapping
  • « virtio »: will resolve the device name based of the volume id in /dev/disk/by-id
  • «  »: default value, will fall back to the current plugin behavior.

The fix must be refactored into the cinder interface itself
use of parameter to configure the device pattern
Add mappingType parameter to enable support of different device mapping pattern
Implemented support for ebs mapping type (where device name is /dev/xvd... but reported as /dev/sd...)
and virtio mapping type (taken from Nokia fork)
@CLAassistant
Copy link

CLAassistant commented Mar 2, 2019

CLA assistant check
All committers have signed the CLA.

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

Successfully merging this pull request may close these issues.

None yet

2 participants