-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
openstack_compute_instance_v2 block_device - boot from volume #3206
Comments
@lesaux Nice catch. You were absolutely right that the Regarding the requirement to still have to specify an Image ID even though you're already specifying it in the |
Also, the other reason to hold off on making changes to the Image parts is because I have #3202 in queue. The required changes will conflict with that PR. Unless I'm mistaken, specifying the image name/id, even though you're booting from a volume, won't cause any issues? |
I began writing a fix for the part about having to specify an image and ran into a bug with Gophercloud: rackspace/gophercloud#481 I'll continue once that's resolved. |
@jtopjian Thanks a lot for this work. I will try #3225 shortly and give you my results. I think I found another issue with the attached volumes. It seems they're attached in a random order (I guess depending on how quick the api responds for the volume creation request) which makes it hard to track the device name they will use. I wasn't able to find a way to use the attachement attribute yet. I will investigate this one further before creating a separate issue though. Thanks again! |
@lesaux It's most likely Terraform that's causing the random ordering. If you could, open a new issue with any example output or configuration. |
+1 I'm stuck on the same issue where I need to specify an image name or id even though I am booting from volume |
+1 Thanks for fixing this :) i'm going to try to deploy Terraform from source :) |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Hello, I am not understanding how this works and would like some clarifications. (I am using my private openstack cluster "Juno" and not rackspace or similar). Basically I would like to use a volume as a rootfs in an instance.
First, it seems to me that if I was to specify a block_device block in my instance resource, the image_id or image_name should not be required.
From the source_type and destination_type parameters, I am understanding that this should create a volume, but it is not the case.
It seems that the block_device stanza never does anything.
Below is the instance information for an instance created with the "boot from image (creates new volume)" option in the horizon interface. Notice how the image parameter is "Attempt to boot from volume - no image supplied", and there is effectively one volume attached, which was used to boot the instance.
The text was updated successfully, but these errors were encountered: