Skip to content

Creating snapshot via API fails #83

@wiad

Description

@wiad

Creating a snapshot via api fails with

{
  "error": {
    "message": "missing required parameter memory"
  }
}

Creating snapshot via GUI works as expected.

Backtrace from Foreman production.log:

2023-02-21T12:02:51 [W|app|cd0cd43f] Action failed
2023-02-21T12:02:51 [I|app|cd0cd43f] Backtrace for 'Action failed' error (RuntimeError): missing required parameter memory
 cd0cd43f | /usr/share/gems/gems/rbvmomi-2.4.1/lib/rbvmomi/connection.rb:51:in `block (2 levels) in emit_request'
 cd0cd43f | /usr/share/gems/gems/rbvmomi-2.4.1/lib/rbvmomi/connection.rb:44:in `each'
 cd0cd43f | /usr/share/gems/gems/rbvmomi-2.4.1/lib/rbvmomi/connection.rb:44:in `block in emit_request'
 cd0cd43f | /usr/share/gems/gems/builder-3.2.4/lib/builder/xmlbase.rb:176:in `_nested_structures'
 cd0cd43f | /usr/share/gems/gems/builder-3.2.4/lib/builder/xmlbase.rb:69:in `tag!'
 cd0cd43f | /usr/share/gems/gems/rbvmomi-2.4.1/lib/rbvmomi/connection.rb:42:in `emit_request'
 cd0cd43f | /usr/share/gems/gems/rbvmomi-2.4.1/lib/rbvmomi/connection.rb:85:in `block in call'
 cd0cd43f | /usr/share/gems/gems/rbvmomi-2.4.1/lib/rbvmomi/trivial_soap.rb:74:in `block (2 levels) in soap_envelope'
 cd0cd43f | /usr/share/gems/gems/builder-3.2.4/lib/builder/xmlbase.rb:176:in `_nested_structures'
 cd0cd43f | /usr/share/gems/gems/builder-3.2.4/lib/builder/xmlbase.rb:69:in `tag!'
 cd0cd43f | /usr/share/gems/gems/rbvmomi-2.4.1/lib/rbvmomi/trivial_soap.rb:73:in `block in soap_envelope'
 cd0cd43f | /usr/share/gems/gems/builder-3.2.4/lib/builder/xmlbase.rb:176:in `_nested_structures'
 cd0cd43f | /usr/share/gems/gems/builder-3.2.4/lib/builder/xmlbase.rb:69:in `tag!'
 cd0cd43f | /usr/share/gems/gems/rbvmomi-2.4.1/lib/rbvmomi/trivial_soap.rb:65:in `soap_envelope'
 cd0cd43f | /usr/share/gems/gems/rbvmomi-2.4.1/lib/rbvmomi/connection.rb:84:in `call'
 cd0cd43f | /usr/share/gems/gems/rbvmomi-2.4.1/lib/rbvmomi/basic_types.rb:213:in `_call'
 cd0cd43f | /usr/share/gems/gems/rbvmomi-2.4.1/lib/rbvmomi/basic_types.rb:76:in `block (2 levels) in init'
 cd0cd43f | /usr/share/gems/gems/fog-vsphere-3.5.2/lib/fog/vsphere/requests/compute/vm_take_snapshot.rb:18:in `vm_take_snapshot'
 cd0cd43f | /usr/share/gems/gems/foreman_snapshot_management-2.0.1/app/models/foreman_snapshot_management/vmware_extensions.rb:14:in `create_snapshot'
...

This is on RHEL8 with
rubygem-foreman_snapshot_management-2.0.1-1.fm2_6.el8.noarch

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions