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

Implement calculate_vm_cloud_properties CPI method #56

Merged
merged 2 commits into from Jan 13, 2017

Conversation

ljfranklin
Copy link
Contributor

  • This method will allow BOSH to make cpu, ram, and ephemeral_disk first class VM properties rather than IaaS-specific cloud_props
    • E.g. vm_types.cloud_properties.flavor can now be replaced with vm_types.{cpu,ram,ephemeral_disk} in your manifest
    • Allows for greater manifest portability between IaaS
  • BOSH will take the result of calculate_vm_cloud_properties, merge it with various manifest cloud_properties (e.g. vm_type), then pass it all to create_vm
  • Only tricky bit was handling of ephemeral disks, see "In the case where no ephemeral disk is large enough" comment in code

#126023557

Signed-off-by: Lyle Franklin lfranklin@pivotal.io

- This method will allow BOSH to make cpu, ram, and ephemeral_disk first class VM properties rather than IaaS-specific cloud_props
  - E.g. `vm_types.cloud_properties.flavor` can now be replaced with `vm_types.{cpu,ram,ephemeral_disk}` in your manifest
  - Allows for greater manifest portability between IaaS
- BOSH will take the result of calculate_vm_cloud_properties, merge it with various manifest cloud_properties (e.g. vm_type), then pass it all to create_vm
- Only tricky bit was handling of ephemeral disks, see "In the case where no ephemeral disk is large enough" comment in code

[#126023557](https://www.pivotaltracker.com/story/show/126023557)

Signed-off-by: Lyle Franklin <lfranklin@pivotal.io>
@cfdreddbot
Copy link

Hey ljfranklin!

Thanks for submitting this pull request! I'm here to inform the recipients of the pull request that you and the commit authors have already signed the CLA.

@cf-gitbot
Copy link

We have created an issue in Pivotal Tracker to manage this:

https://www.pivotaltracker.com/story/show/136077959

The labels on this github issue will be updated when the story is started.

@cdutra
Copy link
Contributor

cdutra commented Jan 12, 2017

Hello @voelzmo and SAP gang! While there's no real rush to merge this as the calculate_vm_cloud_properties work has not been completed on BOSH Core's side, we'd like to merge this while we still have context. Any concerns about merging this? Would you like us to rebase off of master? We noticed a merge branch in progress here: 11b73f7.

@voelzmo
Copy link
Contributor

voelzmo commented Jan 13, 2017

Hey @cdutra we're in the process of rebasing and merging this in. I guess if there's something to do from your side, we'll ping you. Stay tuned! :)

@friegger friegger merged commit 18218ae into cloudfoundry:master Jan 13, 2017
@friegger
Copy link
Contributor

@cdutra We merged locally to run the integration tests against an OpenStack on our side. Today we had a deeper look at the code and have no complains. Thanks for the work!

@Kiemes
Copy link
Member

Kiemes commented Jan 18, 2017

@cdutra @ljfranklin just for your information: We changed the behavior a bit regarding boot_from_volume. It is required to use a flavor with ephemeral disk size 0 when using boot_from_volume. Otherwise ephemeral disk is attached from hypervisor-local storage.
e5b0f62

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants