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

InvalidBDM from nova-api with block device mapping. #5098

Closed
pryorda opened this issue Feb 11, 2016 · 4 comments · Fixed by #5354 or #5131
Closed

InvalidBDM from nova-api with block device mapping. #5098

pryorda opened this issue Feb 11, 2016 · 4 comments · Fixed by #5354 or #5131
Labels

Comments

@pryorda
Copy link

pryorda commented Feb 11, 2016

When provisioning an instance with a block device in openstack you will recieve a InvalidBDM error if you do not specify volume_size.

Example:
block_device = {
uuid = "39807484-2edb-4aae-9fe4-1a878482f16e"
source_type = "image"
destination_type = "volume"
}

If you add volume_size it works
Example
block_device = {
uuid = "39807484-2edb-4aae-9fe4-1a878482f16e"
source_type = "image"
volume_size = "50"
destination_type = "volume"
}

In the code it would be good to query the volume_size from flavor if not se.

@jtopjian
Copy link
Contributor

I see that volume_size is marked as optional... I think it should actually be required, but your idea is a cool workaround to keep it optional. :)

@jtopjian
Copy link
Contributor

I'm revisiting this and I think the correct change is to make volume_size required. This does two things:

  1. Mimics the functionality of the Nova CLI client (therefore avoids "surprises")
  2. Makes using multiple block devices more consistent. provider/openstack: Multi Ephemeral Disk Support #5131 will add the ability to use multiple block_devices and would provide an inconsistent user experience all but one required a size.

I'll get this fixed up.

Thank you for reporting it :)

@jtopjian
Copy link
Contributor

Ah! Actually there's a bit more to this! I'm finishing up #5131 which will have more details.

Thanks again for reporting this -- it highlighted some quirky behavior within OpenStack 😄

@ghost
Copy link

ghost commented Apr 27, 2020

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.

@ghost ghost locked and limited conversation to collaborators Apr 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
2 participants