-
Notifications
You must be signed in to change notification settings - Fork 359
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
Compute v2: Enable Multiattach Volumes #442
Compute v2: Enable Multiattach Volumes #442
Conversation
Build succeeded.
|
Initial attempts at testing this PR seem to show it's not having the desired effect - will look into this further. (Also small typo in the doc section) |
@jtopjian I have re-tested and found that this PR actually does work - it requires adding multiattach = true property to the attachment definition, looks like the doc typo is the only outstanding issue. Probably with terraform/IaC this is a normal requirement. |
For completeness I also did a test where a single volume is attached to two instances. It required the use of depends_on for sanity, otherwise it worked well, like so: $ openstack server list |
Where is the doc typo? The example in this PR has the following: resource "openstack_compute_volume_attach_v2" "va_1" {
instance_id = "${openstack_compute_instance_v2.instance_1.id}"
volume_id = "${openstack_blockstorage_volume_v2.volume_1.id}"
multiattach = true
}
resource "openstack_compute_volume_attach_v2" "va_2" {
instance_id = "${openstack_compute_instance_v2.instance_2.id}"
volume_id = "${openstack_blockstorage_volume_v2.volume_1.id}"
multiattach = true
}
This makes sense. I'll update the PR to include this. Thank you for testing this 😄 |
Typo: Line 151 * |
@jtopjian re: depends_on: the "va_2" resource would want something like: For reference, the depends_on is to avoid timing issues, and to prevent complaints such as:
Probably there are other terraform techniques to achieve similar, this was what I used for this testing. Thanks for the updates ! 😄 |
I think for this situation, |
This commit allows instances to attach multiattach volumes by adding a new argument called "multiattach". When set, the compute client will use Microversion 2.60, which enables multiattach support in the Compute/Nova API.
c1730cb
to
e4f08e7
Compare
Build failed.
|
recheck |
Build failed.
|
recheck |
Build succeeded.
|
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.
Looks great
This commit allows instances to attach multiattach volumes
by adding a new argument called "multiattach". When set, the
compute client will use Microversion 2.60, which enables multiattach
support in the Compute/Nova API.
For #432
@jamesmmccarthy I'm unable to test multiattach volumes at the moment, so I'm not sure if this works. Would you be able to give it a try? I've updated the documentation to include an example implementation, though I'm not sure if it's correct.