github.com/openshift/installer@v1.4.17/cmd/openshift-install/testdata/agent/image/validations/compact_too_many_workers.txt (about)

     1  ! exec openshift-install agent create image --dir $WORK
     2  
     3  stderr 'the number of worker hosts defined \(1\) exceeds the configured Compute replicas \(0\)'
     4  
     5  ! exists $WORK/agent.x86_64.iso
     6  ! exists $WORK/auth/kubeconfig
     7  ! exists $WORK/auth/kubeadmin-password
     8  
     9  -- install-config.yaml --
    10  apiVersion: v1
    11  baseDomain: test.metalkube.org
    12  controlPlane: 
    13    name: master
    14    replicas: 3
    15  compute: 
    16  - name: worker
    17    replicas: 0
    18  metadata:
    19    namespace: cluster0
    20    name: ostest
    21  networking:
    22    clusterNetwork:
    23    - cidr: 10.128.0.0/14 
    24      hostPrefix: 23 
    25    networkType: OVNKubernetes
    26    machineNetwork:
    27    - cidr: 192.168.111.0/24
    28    serviceNetwork: 
    29    - 172.30.0.0/16
    30  platform:
    31      baremetal:
    32        apiVips: 
    33          - 192.168.111.5
    34        ingressVips: 
    35          - 192.168.111.4
    36  sshKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDK6UTEydcEKzuNdPaofn8Z2DwgHqdcionLZBiPf/zIRNco++etLsat7Avv7yt04DINQd5zjxIFgG8jblaUB5E5C9ClUcMwb52GO0ay2Y9v1uBv1a4WhI3peKktAzYNk0EBMQlJtXPjRMrC9ylBPh+DsBHMu+KmDnfk7PIwyN4efC8k5kSRuPWoNdme1rz2+umU8FSmaWTHIajrbspf4GQbsntA5kuKEtDbfoNCU97o2KrRnUbeg3a8hwSjfh3u6MhlnGcg5K2Ij+zivEsWGCLKYUtE1ErqwfIzwWmJ6jnV66XCQGHf4Q1iIxqF7s2a1q24cgG2Z/iDXfqXrCIfy4P7b/Ztak3bdT9jfAdVZtdO5/r7I+O5hYhF86ayFlDWzZWP/ByiSb+q4CQbfVgK3BMmiAv2MqLHdhesmD/SmIcoOWUF6rFmRKZVFFpKpt5ATNTgUJ3JRowoXrrDruVXClUGRiCS6Zabd1rZ3VmTchaPJwtzQMdfIWISXj+Ig+C4UK0=
    37  pullSecret: '{"auths": {"quay.io": {"auth": "c3VwZXItc2VjcmV0Cg=="}}}'
    38  
    39  -- agent-config.yaml --
    40  apiVersion: v1alpha1
    41  metadata:
    42    name: ostest
    43    namespace: cluster0
    44  rendezvousIP: 192.168.111.20
    45  hosts:
    46    - hostname: master-0
    47      role: master
    48      interfaces:
    49       - name: enp1s0
    50         macAddress: aa:bb:dc:dd:a8:01
    51      networkConfig:
    52        interfaces:
    53          - name: enp1s0
    54            type: ethernet
    55            state: up
    56            mac-address: aa:bb:dc:dd:a8:01
    57            ipv4:
    58              enabled: true
    59              address:
    60                - ip: 10.19.17.126
    61                  prefix-length: 23
    62              dhcp: false
    63    - hostname: master-1
    64      role: master
    65      interfaces:
    66       - name: enp1s0
    67         macAddress: aa:bb:dc:dd:a8:02
    68      networkConfig:
    69        interfaces:
    70          - name: enp1s0
    71            type: ethernet
    72            state: up
    73            mac-address: aa:bb:dc:dd:a8:02
    74            ipv4:
    75              enabled: true
    76              address:
    77                - ip: 10.19.17.127
    78                  prefix-length: 23
    79              dhcp: false
    80    - hostname: master-2
    81      role: master
    82      interfaces:
    83       - name: enp1s0
    84         macAddress: aa:bb:dc:dd:a8:03
    85      networkConfig:
    86        interfaces:
    87          - name: enp1s0
    88            type: ethernet
    89            state: up
    90            mac-address: aa:bb:dc:dd:a8:03
    91            ipv4:
    92              enabled: true
    93              address:
    94                - ip: 10.19.17.128
    95                  prefix-length: 23
    96              dhcp: false
    97    - hostname: worker-0
    98      role: worker
    99      interfaces:
   100       - name: enp1s0
   101         macAddress: aa:bb:dc:dd:a8:04
   102      networkConfig:
   103        interfaces:
   104          - name: enp1s0
   105            type: ethernet
   106            state: up
   107            mac-address: aa:bb:dc:dd:a8:04
   108            ipv4:
   109              enabled: true
   110              address:
   111                - ip: 10.19.17.129
   112                  prefix-length: 23
   113              dhcp: false
   114