-
Notifications
You must be signed in to change notification settings - Fork 8
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
Create Snapshot in Foreman GUI uses API endpoint which does not merge the params correctly #67
Comments
|
@m-bucher do you have any updates on this? |
Apologies for the delay @laugmanuel . But feel free to try it out. |
To me it looks like there is (another) problem deeper down the stack. host.compute_resource.send(:client).vm_take_snapshot('instance_uuid' => host.uuid, 'name' => 'foobar', 'description' => 'desc', 'memory' => false) Note: I guess the parameter also needs to be part of the |
I think I found the underlying problem in fog-vsphere. |
I think it did. I do not have proof, but we should have noticed it when the RAM was included prior (as we did now). Maybe this has to do with a vSphere update? The API Doc still mentions this parameter: https://vdc-repo.vmware.com/vmwb-repository/dcr-public/b525fb12-61bb-4ede-b9e3-c4a1f8171510/99ba073a-60e9-4933-8690-149860ce8754/doc/vim.VirtualMachine.html#createSnapshot |
I have created a PR to fix this fog/fog-vsphere#270 |
Now I remember, why we added it outside the |
I'm fine with that. Then it should be enough to fix the merge of parameters here: https://github.com/ATIX-AG/foreman_snapshot_management/pull/68/files#diff-c85714c47ad02be889f2acadc0c7133fb725288bdc8158e249c05f0ee5c4f747L52 |
Fixed in v2.0.1 |
I guess we have three issues here. Feel free to split this into separate Issues as needed.
app/controllers/api/v2/snapshots_controller.rb
) instead of the regular controller (app/controllers/foreman_snapshot_management/snapshots_controller.rb
)include_ram
gets ignored because it's calledincludeRam
in the request:The text was updated successfully, but these errors were encountered: