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
Fixes #10867 - OpenStack boot_from_volume is true only when checked #2498
Conversation
@compute_resource.expects(:boot_from_volume).times(0) | ||
@compute_resource.create_vm(:boot_from_volume => 'false', :nics => [""], | ||
:flavor_ref => 'foo_flavor', :image_ref => 'foo_image') | ||
Fog.unmock! |
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.
Put this into a teardown if possible, so it remains unmocked if an assertion is raised.
If somebody can test that this works (only boots from volume if ticked), I'd appreciate it, I don't have a working CR. Edit: @shlomizadok has offered |
Not testable for me because of http://projects.theforeman.org/issues/10969 |
tested, works as expected |
Thanks for the test too @shlomizadok! |
I'm not sure it is really a bug but i've replaced this openstack.rb with the original on our foreman 1.8.2 (on ubuntu 14.04). This results in the follow error 2015-07-28 10:56:33 [I] Successfully decrypted field for Foreman::Model::Openstack DevOps |
It uses another feature that's only in 1.9 or higher, you could probably add this file to your installation: https://github.com/theforeman/foreman/blob/develop/lib/foreman/cast.rb (or wait for 1.8.3) |
Ok thnx, i just commented line 77 (in https://github.com/eLobato/foreman/blob/d7ad9f58fdc60de98381c274b1c75ac794155302/app/models/compute_resources/foreman/model/openstack.rb). We won't be using boot from volume. |
No description provided.