Actions
Bug #4330
openCan't remove network interface or volume from compute profile
Status:
New
Priority:
Normal
Assignee:
-
Category:
Compute resources
Target version:
-
Description
Migrated from https://github.com/theforeman/foreman/issues/1233
Once more than one NIC or volume has been added to a compute profile, it cannot be removed.
Following is the form data submitted after trying to remove a 20G volume. The _delete is set to 1 so I guess the form data is correct. However, if I get back on the compute profile form after the update, the 20G volume has not been deleted.
utf8:✓
_method:put
authenticity_token:xxxxxxxxxxxxxxxx
compute_attribute[vm_attrs][cpus]:1
compute_attribute[vm_attrs][memory]:805306368
compute_attribute[vm_attrs][nics_attributes][new_nics][type]:bridge
compute_attribute[vm_attrs][nics_attributes][new_nics][_delete]:
compute_attribute[vm_attrs][nics_attributes][new_nics][bridge]:br1
compute_attribute[vm_attrs][nics_attributes][new_nics][model]:virtio
compute_attribute[vm_attrs][nics_attributes][0][type]:bridge
compute_attribute[vm_attrs][nics_attributes][0][_delete]:
compute_attribute[vm_attrs][nics_attributes][0][bridge]:br1
compute_attribute[vm_attrs][nics_attributes][0][model]:virtio
compute_attribute[vm_attrs][volumes_attributes][new_volumes][pool_name]:default
compute_attribute[vm_attrs][volumes_attributes][new_volumes][capacity]:10G
compute_attribute[vm_attrs][volumes_attributes][new_volumes][allocation]:0G
compute_attribute[vm_attrs][volumes_attributes][new_volumes][format_type]:raw
compute_attribute[vm_attrs][volumes_attributes][new_volumes][_delete]:
compute_attribute[vm_attrs][volumes_attributes][0][pool_name]:default
compute_attribute[vm_attrs][volumes_attributes][0][capacity]:10G
compute_attribute[vm_attrs][volumes_attributes][0][allocation]:0G
compute_attribute[vm_attrs][volumes_attributes][0][format_type]:raw
compute_attribute[vm_attrs][volumes_attributes][0][_delete]:
compute_attribute[vm_attrs][volumes_attributes][1][pool_name]:default
compute_attribute[vm_attrs][volumes_attributes][1][capacity]:20G
compute_attribute[vm_attrs][volumes_attributes][1][allocation]:0G
compute_attribute[vm_attrs][volumes_attributes][1][format_type]:raw
compute_attribute[vm_attrs][volumes_attributes][1][_delete]:1
Actions