-
Sub-task
-
Resolution: Unresolved
-
Major
-
None
-
6.6.0
-
False
-
-
False
-
NEW
-
2,500
-
Rocket
-
-
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:
~~~
- 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 +
- !ruby/hash:ActiveSupport::HashWithIndifferentAccess+
-
(1 row)
~~~
2. Change network to different one:
- hammer host interface update --compute-attributes compute_type=VirtualVmxnet3,compute_network=OpenShift --id 2912 --host-id 2861
- 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 +
- !ruby/hash:ActiveSupport::HashWithIndifferentAccess+
-
(1 row)
~~~
3. Change it back to 'network-500':
- hammer host interface update --compute-attributes compute_type=VirtualVmxnet3,compute_network=network-500 --id 2912 --host-id 2861
- 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 +
- !ruby/hash:ActiveSupport::HashWithIndifferentAccess+
-
(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