Description of problem:Environment setup - best fitting Host in Maintenance mode should not be selected All methods in /RedHat/Infrastructure/VM/Provisioning/Placement/ 1. redhat_best_placement_with_scope 2. vmware_best_fit_with_scope 3. vmware_best_fit_with_tags Version-Release number of selected component (if applicable): How reproducible:100% Steps to Reproduce: 1.Prepare env 2.Provision VM with auto_placement. 3.Put selected host in maintennace mode. 4.Provision VM with auto_placement using host in maintennace mode. Actual results: "Maintenance" Host could be selected and then provision will fail. Expected results: "Maintenance" Host should not be selected.
New commit detected on cfme_productization/master: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme_productization.git;a=commit;h=077b0f8a433d892365027be06cc04c680d8e3944 commit 077b0f8a433d892365027be06cc04c680d8e3944 Author: william fitzgerald <wfitzger> AuthorDate: Wed Apr 5 16:46:47 2017 -0400 Commit: william fitzgerald <wfitzger> CommitDate: Wed Apr 5 16:46:47 2017 -0400 Modified 3 placement methods to not select Hosts in maintenance mode. Added a check for maintenance in all 3 methods. 1. redhat_best_placement_with_scope 2. vmware_best_fit_with_scope 3. vmware_best_fit_with_tags https://bugzilla.redhat.com/show_bug.cgi?id=1439354 .../Placement.class/__methods__/redhat_best_placement_with_scope.rb | 1 + .../Placement.class/__methods__/vmware_best_fit_with_scope.rb | 1 + .../Placement.class/__methods__/vmware_best_fit_with_tags.rb | 1 + 3 files changed, 3 insertions(+)
New commit detected on cfme_productization/master: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme_productization.git;a=commit;h=41869db023ed01ed5bacd57b03469035a60d2cde commit 41869db023ed01ed5bacd57b03469035a60d2cde Merge: 0a338bf 077b0f8 Author: Jason Frey <jfrey> AuthorDate: Mon Apr 17 15:11:59 2017 -0400 Commit: Jason Frey <jfrey> CommitDate: Mon Apr 17 15:11:59 2017 -0400 Merge branch 'host_maint' into 'master' Modified 3 placement methods to not select Hosts in maintenance mode. Added a check for maintenance in all 3 methods. 1. redhat_best_placement_with_scope 2. vmware_best_fit_with_scope 3. vmware_best_fit_with_tags https://bugzilla.redhat.com/show_bug.cgi?id=1439354 See merge request !448 .../Placement.class/__methods__/redhat_best_placement_with_scope.rb | 1 + .../Placement.class/__methods__/vmware_best_fit_with_scope.rb | 1 + .../Placement.class/__methods__/vmware_best_fit_with_tags.rb | 1 + 3 files changed, 3 insertions(+)