Project

General

Profile

Actions

Bug #6100

closed

Unable to delete interfaces and volumes from compute profiles

Added by Dominic Cleal over 10 years ago. Updated over 10 years ago.

Status:
Duplicate
Priority:
Normal
Assignee:
-
Category:
Compute resources
Target version:
-
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Create a compute profile with two interfaces or volumes, then edit it, click the crosses and save. When you view the profile again, they'll still be there. Tested on libvirt + VMware.

The deleted entries aren't actually being removed from the hash before save. Instead, they're getting saved to the DB with _delete=1!

   (0.4ms)  UPDATE "compute_attributes" SET "vm_attrs" = '--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess
cpus: ''1''
memory: ''805306368''
nics_attributes: !ruby/hash:ActiveSupport::HashWithIndifferentAccess
 new_nics: !ruby/hash:ActiveSupport::HashWithIndifferentAccess
 type: bridge
 _delete: ''''
 bridge: em1
 model: virtio
 ''0'': !ruby/hash:ActiveSupport::HashWithIndifferentAccess
 type: bridge
 _delete: ''''
 bridge: em1
 model: virtio
 ''1'': !ruby/hash:ActiveSupport::HashWithIndifferentAccess
 type: network
 _delete: ''1''
 network: hundred
 model: virtio
volumes_attributes: !ruby/hash:ActiveSupport::HashWithIndifferentAccess
 new_volumes: !ruby/hash:ActiveSupport::HashWithIndifferentAccess
 pool_name: default
 capacity: 10G
 allocation: 0G
 format_type: raw
 _delete: ''''
 ''0'': !ruby/hash:ActiveSupport::HashWithIndifferentAccess
 pool_name: default
 capacity: 10G
 allocation: 0G
 format_type: raw
 _delete: ''''
 ''1'': !ruby/hash:ActiveSupport::HashWithIndifferentAccess
 pool_name: default
 capacity: 10G
 allocation: 0G
 format_type: raw
 _delete: ''1''
image_id: /home/libvirt/foreman_template.img
', "updated_at" = '2014-06-06 17:49:46.519459' WHERE "compute_attributes"."id" = 4

Related issues 1 (1 open0 closed)

Is duplicate of Foreman - Bug #4330: Can't remove network interface or volume from compute profileNew02/12/2014Actions
Actions #1

Updated by Dominic Cleal over 10 years ago

  • Is duplicate of Bug #4330: Can't remove network interface or volume from compute profile added
Actions #2

Updated by Dominic Cleal over 10 years ago

  • Status changed from New to Duplicate

Duplicating my own bug. sigh

Actions

Also available in: Atom PDF