-
Notifications
You must be signed in to change notification settings - Fork 92
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
Issue in provisioning instance with zero root disk flavor in OpenStack #892
Comments
Hi @agrare, I would like to know if there are any updates on this issue. Please let me know if further information is needed from my side. Thank you! |
Hi @agrare, By using OpenStack's "Create New Volume" option, the volume is added under However, when trying to add a volume using ManageIQ while provisioning an instance, the volume is added under We need to ensure that the volume is added under Hi @Fryguy and @GilbertCherrie, Do you have any insights on this? |
Hey @Dhamo1107 sorry no I haven't gotten a chance to look at this yet. I'm not as well versed with the openstack API as you likely are, if you can post what properties would have to be provided to make a disk a "root" volume we can update our volume_attachment code to check for that attribute and set it appropriately. |
Hi @agrare, Thank you for your insights. This is the OpenStack documentation on how to Create volume from image and boot instance. From the document, I believe the parameters likely to be sent from ManageIQ to OpenStack to create that volume in vda are |
@Dhamo1107 I think the issue is that we have a "default" first volume. https://github.com/ManageIQ/manageiq-providers-openstack/blob/master/app/models/manageiq/providers/openstack/cloud_manager/provision/volume_attachment.rb#L3 that is the "first" disk and you can see the default volume has What I think we need is to check if the
Then in your |
Hi @agrare, Thank you for your insights; they helped us successfully create a volume under I have updated my
The volume is now attached under vda successfully: However, when I check the console of the provisioned instance, I still encounter the I tried setting Could you share your thoughts on how to make the volume bootable? Thank you! |
Hi @agrare, we are encountering an issue where the volume is created under in the However, I’m now getting this error: I also added |
This error is coming from Openstack, I wonder if you need to set the size in |
Hi @agrare, This is the code now i have after adding debug statements: This is the log generated for that: The volume is created in opnstack, but not attached to instance: |
So I definitely see a disk with |
Yes @agrare that is coming from |
Okay I thought if the flavor didn't have a root disk you were skipping the |
That's great @Dhamo1107 ! I do wonder how the |
Hi @agrare, the log indicates that the Thank You |
Fixed by #894 |
OpenStack Behavior:
In OpenStack, while launching an instance with a zero root disk flavor, the following options are available under the "Source" tab:
Select Boot Source:
Create New Volume: Yes/No
If "Yes" is selected, additional fields appear:
Volume Size (GB): (Field to input volume size in GB)
Delete Volume on Instance Delete: Yes/No
For example, if "Create New Volume" is selected as "Yes" and a volume size of 1GB is specified, this volume is treated as the root disk.
Issue in ManageIQ:
In ManageIQ, there seems to be no option to specify a root disk size while provisioning an instance with a zero root disk flavor. If we try to add a volume using the "Add Volume" option in the instance provisioning page, the volume is attached as an additional volume instead of being treated as the root disk.
Request:
Could you guide us on how to add root disk space while provisioning an instance with a zero root disk flavor type in ManageIQ? If this feature does not exist, would it be possible to implement a way to handle root disk size in this scenario?
Steps to Reproduce:
Provision an instance with a zero root disk flavor in OpenStack via ManageIQ.
Attempt to add a root disk volume during provisioning.
Expected Behavior:
The ability to specify and add root disk size during instance provisioning with zero root disk flavor in ManageIQ, similar to the OpenStack behavior.
Actual Behavior:
The "Add Volume" option adds an additional volume but does not handle root disk size.
ManageIQ version: Petrosian
The text was updated successfully, but these errors were encountered: