[Satellite6] Minor change in content host setting triggers update of guest on hypervisor

Solution Verified - Updated -

Issue

Even when minor change is done to content host setting, like just changing of content view, complete update of host is triggered.
This may not be desirable, since vmware supports hotplug of ram and cpu, so hardware settings may differ from state as it was provisioned by satellite
and actual current state of host on hypervisor.

Host can be provision with certain amount of ram and cpus, which can be later extended by other vm owner using hotplug.
If this happens and any change in content host setting is attempted, error message is displayed

Could not update the host:
  Failed to update a compute VMWare_TD_VC0003 (VMware) instance test.vm.vmwarehypervisor: InvalidPowerState: The attempted operation cannot be performed in the current state (Powered on).

or

 Failed to update a compute VMWare_TD_VC0003 (VMware) instance test.vm.vmwarehypervisor: CpuHotPlugNotSupported: CPU hot plug is not supported for this virtual machine.
 | RbVmomi::Fault: CpuHotPlugNotSupported: CPU hot plug is not supported for this virtual machine.
 | /opt/theforeman/tfm/root/usr/share/gems/gems/rbvmomi-1.10.0/lib/rbvmomi/vim/Task.rb:14:in `wait_for_completion'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-1.7.0/lib/fog/vsphere/requests/compute/vm_reconfig_hardware.rb:10:in `vm_reconfig_hardware'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-1.7.0/lib/fog/vsphere/requests/compute/vm_reconfig_cpus.rb:9:in `vm_reconfig_cpus'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-1.7.0/lib/fog/vsphere/models/compute/server.rb:80:in `vm_reconfig_cpus'
 | /opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-1.7.0/lib/fog/vsphere/models/compute/server.rb:280:in `save'
 | /usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb:440:in `save_vm'
 | /usr/share/foreman/app/models/concerns/orchestration/compute.rb:203:in `setComputeUpdate'
 | /usr/share/foreman/app/models/concerns/orchestration.rb:216:in `execute'

Can not edit host built on VMware with hot add enabled when compute profile has lower ram than VM

Failed to update a compute VMware (VMware) instance test.vm.vmwarehypervisor: NotSupported: The operation is not supported on the object.
RbVmomi::Fault: NotSupported: The operation is not supported on the object.
/opt/theforeman/tfm/root/usr/share/gems/gems/rbvmomi-1.10.0/lib/rbvmomi/vim/Task.rb:14:in `wait_for_completion'
/opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-2.3.0/lib/fog/vsphere/requests/compute/vm_reconfig_hardware.rb:10:in `vm_reconfig_hardware'
/opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-2.3.0/lib/fog/vsphere/requests/compute/update_vm.rb:31:in `update_vm'
/opt/theforeman/tfm/root/usr/share/gems/gems/fog-vsphere-2.3.0/lib/fog/vsphere/models/compute/server.rb:298:in `save'
/usr/share/foreman/app/models/compute_resources/foreman/model/vmware.rb:469:in `save_vm
hammer host update --name test02.example.test --ip 192.168.0.2 --subnet-id 123
Could not update the host:
  Failed to update a compute RHEV1 (RHV) instance test02.example.test: Cannot add Virtual Disk. Disk test02_Disk1 in VM test02 is already marked as boo

Environment

Satellite6
VMware ESX

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content