Uploaded image for project: 'Satellite'
  1. Satellite
  2. SAT-21806

Change in compute attributes does not get reflected in host details page.

XMLWordPrintable

    • Important
    • No Coverage
    • No

      Description of problem:

      • Change in compute attributes ('NIC type' and 'Network') does not get reflected in host details page.

      Version-Release number of selected component (if applicable):

      • Reproducible on Satellite 6.6.2

      Steps to Reproduce:
      1. Deploy VM on vmware, register to Satellite if you need to create a host profile.
      2. Check current network config:
      ~~~

      1. sudo su - postgres -c "psql -d foreman -c 'select compute_attributes from nics where host_id='2861';'"
        compute_attributes
        ---------------------------------------------------------
          • !ruby/hash:ActiveSupport::HashWithIndifferentAccess+
            type: VirtualVmxnet3 +
            network: network-500 +

      (1 row)
      ~~~

      2. Change network to different one:

      1. hammer host interface update --compute-attributes compute_type=VirtualVmxnet3,compute_network=OpenShift --id 2912 --host-id 2861
      2. sudo su - postgres -c "psql -d foreman -c 'select compute_attributes from nics where host_id='2861';'"
        ~~~
        compute_attributes
        ---------------------------------------------------------
          • !ruby/hash:ActiveSupport::HashWithIndifferentAccess+
            compute_type: VirtualVmxnet3 +
            compute_network: OpenShift +

      (1 row)
      ~~~

      3. Change it back to 'network-500':

      1. hammer host interface update --compute-attributes compute_type=VirtualVmxnet3,compute_network=network-500 --id 2912 --host-id 2861
      2. sudo su - postgres -c "psql -d foreman -c 'select compute_attributes from nics where host_id='2861';'"
        ~~~
        compute_attributes
        ---------------------------------------------------------
          • !ruby/hash:ActiveSupport::HashWithIndifferentAccess+
            compute_type: VirtualVmxnet3 +
            compute_network: network-500 +

      (1 row)
      ~~~

      4. Host profile in WebUI now shows 'NIC type: E1000' and 'Network: DPortGroup (DSwitch)'. Those fields are greyed out and cannot be edited. Looks like Satellite just took the first network and first nic type from the list in compute profile. See [host_details.png], [compute_profile1.png], [compute_profile2.png]

      Expected results:

      • Interface settings in host profile should be 'NIC type: VirtualVmxnet3' and 'Network: Satotest'.

      Note:

      • In this Satellite infra, network 'Satotest' is referenced as 'network-500' in postgres for an unknown (to me) reason.

      Additional info:

      • If I clone the VM it allows me to manually change the 'NIC type' and 'Network' fields. The installation finishes successfully.
      • If I rebuild the VM with wrong 'NIC type' and 'Network' the installation finishes successfully too. However wrong compute attributes are still shown in host details.

      If you need more details please let me know.

      Thanks,
      Jan

              Unassigned Unassigned
              rhn-support-jsenkyri Jan Senkyrik
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: