-
Bug
-
Resolution: Won't Do
-
Normal
-
4.15
This Jira is ued to address the problem after https://issues.redhat.com/browse/OCPBUGS-17651.
When I having the following agent-config, I will have the multiple nodes warning creating image. There should be only one node be filtered here, so we should use exact match to avoid the possibility that multiple nodes had been filtered.
[core@ocp-edge49 installer]$ cat agent-config.yaml kind: Agentconfig apiVersion: v1alpha1 metadata: name: ostest rendezvousIP: 192.168.122.2 hosts: - hostname: master-0 role: worker interfaces: - name: "eth0" macAddress: 52:54:00:aa:aa:aa networkConfig: interfaces: - name: eth0 type: ethernet state: up mac-address: 52:54:00:aa:aa:aa ipv4: enabled: true address: - ip: 192.168.122.2 prefix-length: 23 dhcp: false - hostname: master-1 role: master interfaces: - name: "eth0" macAddress: 52:54:00:bb:bb:bb networkConfig: interfaces: - name: eth0 type: ethernet state: up mac-address: 52:54:00:bb:bb:bb ipv4: enabled: true address: - ip: 192.168.122.3 prefix-length: 23 dhcp: false - hostname: master-2 role: master interfaces: - name: "eth0" macAddress: 52:54:00:cc:cc:cc networkConfig: interfaces: - name: eth0 type: ethernet state: up mac-address: 52:54:00:cc:cc:cc ipv4: enabled: true address: - ip: 192.168.122.4 prefix-length: 23 dhcp: false - hostname: worker-0 role: master interfaces: - name: "eth0" macAddress: 52:54:00:aa:aa:a1 networkConfig: interfaces: - name: eth0 type: ethernet state: up mac-address: 52:54:00:aa:aa:a1 ipv4: enabled: true address: - ip: 192.168.122.22 prefix-length: 23 dhcp: false - hostname: worker-1 role: worker interfaces: - name: "eth0" macAddress: 52:54:00:bb:bb:b1 networkConfig: interfaces: - name: eth0 type: ethernet state: up mac-address: 52:54:00:bb:bb:b1 ipv4: enabled: true address: - ip: 192.168.122.23 prefix-length: 23 dhcp: false - hostname: worker-2 role: worker interfaces: - name: "eth0" macAddress: 52:54:00:cc:cc:c1 networkConfig: interfaces: - name: eth0 type: ethernet state: up mac-address: 52:54:00:cc:cc:c1 ipv4: enabled: true address: - ip: 192.168.122.24 prefix-length: 23 dhcp: false [core@ocp-edge49 installer]$ bin/openshift-install version bin/openshift-install 4.12.0-0.nightly-2023-10-14-145904 ....... [core@ocp-edge49 installer]$ bin/openshift-install agent create image --log-level debug DEBUG OpenShift Installer 4.12.0-0.nightly-2023-10-14-145904 DEBUG Built from commit 576d8157addb36d6f8fc27e0db4d8559d6889ac4 DEBUG Fetching Agent Installer ISO... DEBUG Loading Agent Installer ISO... DEBUG Loading Agent Installer Ignition... DEBUG Loading Agent Manifests... DEBUG Loading Agent PullSecret... DEBUG Loading Install Config... DEBUG Loading Install Config from both state file and target directory DEBUG Using Install Config loaded from target directory DEBUG Loading InfraEnv Config... DEBUG Loading Install Config... DEBUG Loading Agent Config... ERROR failed to write asset (Agent Installer ISO) to disk: cannot generate ISO image due to configuration errors FATAL failed to fetch Agent Installer ISO: failed to load asset "Agent Config": invalid Agent Config configuration: [Hosts[0].Host: Forbidden: Host master-0 is not of role 'master' and has the rendevousIP assigned to it. The rendevousIP must be assigned to a host of role 'master', Hosts[4].Host: Forbidden: Host worker-1 is not of role 'master' and has the rendevousIP assigned to it. The rendevousIP must be assigned to a host of role 'master', Hosts[5].Host: Forbidden: Host worker-2 is not of role 'master' and has the rendevousIP assigned to it. The rendevousIP must be assigned to a host of role 'master']
- clones
-
OCPBUGS-17651 User can set rendezvous host to be a worker
- Closed