Project

General

Profile

Bug #14041

VM provisioning : dropdown lists greyed out in new volume fields

Added by Alexandre Barth over 3 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Host creation
Target version:
Difficulty:
Triaged:
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

When provisioning a new VMWare vm, in storage section when i want to add a second volume after the default one, Datastore Cluster and Data Store drop-down lists can't be modified.


Related issues

Related to Foreman - Feature #10641: Ability to search VmWare networksClosed2015-05-28
Related to Foreman - Bug #13595: Storage domain dropdown menu doesn't workDuplicate2016-02-08
Related to Foreman - Bug #12371: select2 not loading correctly on "Virtual Machine" while creating new hostsClosed2015-11-02
Blocks Foreman - Bug #14202: select2 missing from interface/NIC compute resource dropdown menusClosed2016-03-15

Associated revisions

Revision 26eeda80 (diff)
Added by Dominic Cleal over 3 years ago

fixes #14041 - don't call select2 on CR form templates

select2 must be called only when the select becomes visible, not for
hidden template elements. add_child_node() already does when adding a
new set of fields from the template. without_select2 is removed from
all CR volume fields and a typo from ce59b508 fixed to ensure the first,
default volume initialises select2 when a CR is selected.

The interface_type_selected function is fixed to only call select2 on
its elements instead of the entire page, which also broke the volume
form templates if a NIC type was changed.

Revision b70d83c4 (diff)
Added by Dominic Cleal over 3 years ago

fixes #14041 - don't call select2 on CR form templates

select2 must be called only when the select becomes visible, not for
hidden template elements. add_child_node() already does when adding a
new set of fields from the template. without_select2 is removed from
all CR volume fields and a typo from ce59b508 fixed to ensure the first,
default volume initialises select2 when a CR is selected.

The interface_type_selected function is fixed to only call select2 on
its elements instead of the entire page, which also broke the volume
form templates if a NIC type was changed.

(cherry picked from commit 26eeda8011cf1c16be9446625b201c36ebe70751)

Revision a576b23a (diff)
Added by Dominic Cleal over 3 years ago

fixes #14041 - don't call select2 on CR form templates

select2 must be called only when the select becomes visible, not for
hidden template elements. add_child_node() already does when adding a
new set of fields from the template. without_select2 is removed from
all CR volume fields and a typo from ce59b508 fixed to ensure the first,
default volume initialises select2 when a CR is selected.

The interface_type_selected function is fixed to only call select2 on
its elements instead of the entire page, which also broke the volume
form templates if a NIC type was changed.

(cherry picked from commit 26eeda8011cf1c16be9446625b201c36ebe70751)

History

#1 Updated by Dominic Cleal over 3 years ago

  • Subject changed from VM provisioning : can't add volumes to VM provisioning : dropdown lists greyed out in new volume fields
  • Category set to Host creation
  • Legacy Backlogs Release (now unused) set to 71

#2 Updated by Timo Goebel over 3 years ago

I also saw this on vanilla 1.10 without the datastore cluster patch. I think, this is related to select2. If you disable select2 in the developer console on all select boxes everything works fine. Maybe someone with more UI/jQuery experience than me can take a look.

#3 Updated by Dominic Cleal over 3 years ago

#4 Updated by Dominic Cleal over 3 years ago

  • Legacy Backlogs Release (now unused) changed from 71 to 145

#5 Updated by David Rom over 3 years ago

  • Related to Bug #13595: Storage domain dropdown menu doesn't work added

#6 Updated by Dominic Cleal over 3 years ago

  • Status changed from New to Assigned
  • Assignee set to Dominic Cleal

#7 Updated by Dominic Cleal over 3 years ago

  • Related to Bug #12371: select2 not loading correctly on "Virtual Machine" while creating new hosts added

#8 Updated by The Foreman Bot over 3 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/3323 added

#9 Updated by Dominic Cleal over 3 years ago

  • Blocks Bug #14202: select2 missing from interface/NIC compute resource dropdown menus added

#10 Updated by Ivan Necas over 3 years ago

  • Bugzilla link set to 1319275

#11 Updated by Dominic Cleal over 3 years ago

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

Also available in: Atom PDF