Project

General

Profile

Actions

Bug #3980

closed

Compute profiles not rendering Openstack attributes correctly

Added by Greg Sutcliffe about 10 years ago. Updated over 5 years ago.

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

Description

If I two security_groups (say "A" and "B") or two floating_ip_network entries, and select the second one (i.e not the one that is rendered on page load) then the attribute is saved corectly to the db:

#<ComputeAttribute id: 2, compute_profile_id: 1, compute_resource_id: 7, name: "m1.tiny", vm_attrs: {"flavor_ref"=>"1", "image_ref"=>"9c9d4946-3e33-4f6e-92f0-f3527ef42862", "tenant_id"=>"e52297c4bf694c788c8bfb2b7792146b", "security_groups"=>"B", "network"=>"B"}, created_at: "2014-01-09 12:36:20", updated_at: "2014-01-09 12:50:46">]

But if I re-edit the profile (or try to create a host with it) I get the original, first enties in the form (i.e they are set to "A"). This means I have to go select "B" manually, negating the point of the profile.

This is probably related to the long-standing issue of the VM Tab not reloading correctly when Host#new is re-rendered after an error - a fix for that was wrapped up in larger changes in PR 1099. Perhaps it could be extracted and tested against this bug too?


Related issues 1 (0 open1 closed)

Related to Foreman - Feature #3178: add ability to apply a virtual hardware template at hostgroup levelClosedJoseph Magen10/01/2013Actions
Actions #1

Updated by Dominic Cleal about 10 years ago

  • Related to Feature #3178: add ability to apply a virtual hardware template at hostgroup level added
Actions #2

Updated by Joseph Magen about 10 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Joseph Magen
Actions #3

Updated by Dominic Cleal about 10 years ago

  • Target version set to 1.9.1
  • translation missing: en.field_release set to 5
Actions #4

Updated by Anonymous about 10 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF