Bug #6342
closed
Compute profile should be used when empty volumes and interfaces passed in compute_attributes
Added by Dominic Cleal over 10 years ago.
Updated over 6 years ago.
Description
When creating hosts through the API with hammer, it's fairly unavoidable that you get a params hash containing:
"compute_attributes"=>{"volumes_attributes"=>{},"interfaces_attributes"=>{},"nics_attributes"=>{}}
due to hammer not knowing if a compute profile will be used or not via the host group.
set_compute_attributes in Host::Managed checks for compute_attributes.empty?, which will return false when these empty sub-hashes are present. It should be possible to use the compute profile even when passing in this empty data.
Either that, or CR VM creation should be reliable without them set to {}, but it currently isn't.
- Related to Feature #6344: Commands for read operations around compute profiles and attributes added
- Status changed from New to Ready For Testing
- Assignee set to Dominic Cleal
- Target version set to 1.8.1
- Target version changed from 1.8.1 to 1.8.0
- Status changed from Ready For Testing to Assigned
- Target version changed from 1.8.0 to 1.7.5
- Status changed from Assigned to New
- Assignee deleted (
Dominic Cleal)
- Target version deleted (
1.7.5)
- Has duplicate Bug #11829: hammer host create does not send correct compute-attributes information which breaks a condition on the server side added
- Bugzilla link set to 1263332
- Status changed from New to Assigned
- Assignee set to Tomáš Strachota
- Status changed from Assigned to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/2802 added
- Pull request deleted (
)
- Related to Bug #13507: Creating VMs with hammer requires too many parameters added
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
- Translation missing: en.field_release set to 71
- Related to Bug #14179: Interface/NIC compute attributes in API host creation overwritten with compute profile attributes added
- Related to Bug #10223: Image provisoning over API doesn't start host automatically added
Sorry, this is a behaviour change and has a bit of risk (one regression so far) so it'll only be in 1.11.
- Has duplicate Bug #14485: hammer should consider everything from the "Compute Profile" added
- Bugzilla link changed from 1263332 to 1319564
Also available in: Atom
PDF