Description of problem: Vmware template with virtual sockets=1 & cores per socket=4 will be provisioned using the lifecycle dialog as virtual sockets=4 & cores per socket=1. Looking at the dialog "Hardware" it shows the swap between the two. The template details shows the template as to having 4 Processors not 1. Version-Release number of selected component (if applicable): 5.3.2 How reproducible: very Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Josh, I tested against vSphere 5.1 and wasn't able to reproduce the problem. I assigned 2 sockets and 4 cores and that is what was provisioned. Is this a specific version of vSphere?
After talking to Josh, I found out that the bug is reporting that the default options in the dialog for Sockets and Cores are not the same numbers as the source template. These defaults are pulled from static values in the dialog config. The dialog defaults can be changed by navigating to Automate / Customization and selecting the appropriate dialog. Then search for :number_of_sockets: and :cores_per_socket: and modifying the :default: values under each of them.
The vmware workflow is trying to set the cores and sockets based on the templates values. The problem is that the data refreshed from vSphere is incorrectly saving the core and socket counts. To correctly gather the core and socket counts, we need to dig deeper into the advanced settings of the VM. We do not currently gather this information in the normal refresh because of the additional amount of data that will be pulled back and the performance impact of this. As a workaround, you can run a smart state scan on the template and that will pull back the advanced settings and should properly display them in the Lifecycle / Provision dialog. vSphere 5.0 has the core and socket data available in another location of the VM config. I will see if we can pull this back on a refresh without too much of a performance impact.
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/69b5637ec063ebc6002280b0add35b9182fc5cba commit 69b5637ec063ebc6002280b0add35b9182fc5cba Author: Brandon Dunne <bdunne> AuthorDate: Mon Feb 23 16:09:59 2015 -0500 Commit: Brandon Dunne <bdunne> CommitDate: Tue Feb 24 11:37:27 2015 -0500 Update refresh logic to add numCoresPerSocket when available https://bugzilla.redhat.com/show_bug.cgi?id=1184990 lib/VMwareWebService/MiqVimInventory.rb | 2 ++ lib/VMwareWebService/MiqVimVm.rb | 18 ++++++++++-------- lib/VMwareWebService/VimPropMaps.rb | 1 + vmdb/app/models/ems_refresh/vc_updates.rb | 1 + 4 files changed, 14 insertions(+), 8 deletions(-)
New commit detected on manageiq/master: https://github.com/ManageIQ/manageiq/commit/340f9b45fdb5e42fa4e498fa162abe69ae58be89 commit 340f9b45fdb5e42fa4e498fa162abe69ae58be89 Author: Brandon Dunne <bdunne> AuthorDate: Tue Feb 24 11:33:22 2015 -0500 Commit: Brandon Dunne <bdunne> CommitDate: Tue Feb 24 11:51:45 2015 -0500 Calculate and store the cores per socket if available https://bugzilla.redhat.com/show_bug.cgi?id=1184990 vmdb/app/models/ems_refresh/parsers/vc.rb | 15 ++++++++----- vmdb/spec/models/ems_refresh/parsers/vc_spec.rb | 30 +++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 vmdb/spec/models/ems_refresh/parsers/vc_spec.rb
New commit detected on cfme/5.3.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=e52350d142b1453b0426282a4234d751ddbad7c8 commit e52350d142b1453b0426282a4234d751ddbad7c8 Author: Brandon Dunne <bdunne> AuthorDate: Mon Feb 23 16:09:59 2015 -0500 Commit: Brandon Dunne <bdunne> CommitDate: Wed Feb 25 12:09:17 2015 -0500 Update refresh logic to add numCoresPerSocket when available https://bugzilla.redhat.com/show_bug.cgi?id=1184990 lib/VMwareWebService/MiqVimInventory.rb | 2 ++ lib/VMwareWebService/MiqVimVm.rb | 18 ++++++++++-------- lib/VMwareWebService/VimPropMaps.rb | 1 + vmdb/app/models/ems_refresh/vc_updates.rb | 1 + 4 files changed, 14 insertions(+), 8 deletions(-)
New commit detected on cfme/5.3.z: https://code.engineering.redhat.com/gerrit/gitweb?p=cfme.git;a=commitdiff;h=d51fd204297cf0fbe350e2752d88ecfadfa161bc commit d51fd204297cf0fbe350e2752d88ecfadfa161bc Author: Brandon Dunne <bdunne> AuthorDate: Tue Feb 24 11:33:22 2015 -0500 Commit: Brandon Dunne <bdunne> CommitDate: Wed Feb 25 12:09:17 2015 -0500 Calculate and store the cores per socket if available https://bugzilla.redhat.com/show_bug.cgi?id=1184990 vmdb/app/models/ems_refresh/parsers/vc.rb | 15 ++++++++----- vmdb/spec/models/ems_refresh/parsers/vc_spec.rb | 30 +++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 5 deletions(-) create mode 100644 vmdb/spec/models/ems_refresh/parsers/vc_spec.rb
This appears to now be working as expected Verified in 5.4.0.0.19
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2015-1100.html