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

     1  # Verify a default configuration for the compact topology on baremetal using install-config hosts with BMC configuration 
     2  
     3  exec openshift-install agent create image --dir $WORK
     4  
     5  stderr 'The rendezvous host IP \(node0 IP\) is 192.168.111.80'
     6  
     7  exists $WORK/agent.x86_64.iso
     8  exists $WORK/auth/kubeconfig
     9  exists $WORK/auth/kubeadmin-password
    10  isocmp agent.x86_64.iso /etc/assisted/manifests/agent-cluster-install.yaml expected/agent-cluster-install.yaml
    11  
    12  -- install-config.yaml --
    13  apiVersion: v1
    14  baseDomain: test.metalkube.org
    15  controlPlane:
    16    name: master
    17    replicas: 3
    18  compute:
    19  - name: worker
    20    replicas: 0
    21  metadata:
    22    namespace: cluster0
    23    name: ostest
    24  networking:
    25    clusterNetwork:
    26    - cidr: 10.128.0.0/14
    27      hostPrefix: 23
    28    networkType: OVNKubernetes
    29    machineNetwork:
    30    - cidr: 192.168.111.0/24
    31    serviceNetwork:
    32    - 172.30.0.0/16
    33  platform:
    34    baremetal:
    35      apiVIP: 192.168.111.5
    36      apiVips:
    37        - 192.168.111.5
    38      ingressVIP: 192.168.111.4
    39      ingressVips:
    40        - 192.168.111.4
    41      provisioningNetworkInterface: enp1s0
    42      provisioningNetworkCIDR: 172.22.0.0/24 
    43      provisioningNetwork: Managed 
    44      provisioningDHCPRange: 172.22.0.10,172.22.0.254
    45      hosts:
    46      - name: master-0 
    47        bootMACAddress: 00:00:00:aa:bb:01
    48        bmc:
    49          address: http://172.22.0.10:8000/redfish/v1/Systems/d3fe1eb9-f04c-465d-b5d6-d267f0a0059b
    50          username: foo
    51          password: pwd1
    52          disableCertificateVerification: false
    53        networkConfig:
    54          interfaces:
    55          - ipv4:
    56              address:
    57              - ip: 192.168.111.80
    58                prefix-length: 24
    59              dhcp: false
    60              enabled: true
    61            mac-address: 00:00:00:aa:bb:01
    62            name: eth0
    63            state: up
    64            type: ethernet
    65          routes:
    66            config:
    67            - destination: 0.0.0.0/0
    68              next-hop-address: 192.168.111.1
    69              next-hop-interface: eth0
    70              table-id: 254
    71      - name: master-1
    72        bootMACAddress: 00:00:00:aa:bb:02
    73        bmc:
    74          address: http://172.22.0.11:8000/redfish/v1/Systems/65bf6806-b634-4494-bccf-032ebdecc65d
    75          username: foo
    76          password: pwd2
    77          disableCertificateVerification: false
    78        networkConfig:
    79          interfaces:
    80          - ipv4:
    81              address:
    82              - ip: 192.168.111.81
    83                prefix-length: 24
    84              dhcp: false
    85              enabled: true
    86            mac-address: 00:00:00:aa:bb:02
    87            name: eth0
    88            state: up
    89            type: ethernet
    90          routes:
    91            config:
    92            - destination: 0.0.0.0/0
    93              next-hop-address: 192.168.111.1
    94              next-hop-interface: eth0
    95              table-id: 254
    96      - name: master-2
    97        bootMACAddress: 00:00:00:aa:bb:03
    98        bmc:
    99          address: http://172.22.0.12:8000/redfish/v1/Systems/ff67e706-28c4-42f6-b9a2-ce714195300a
   100          username: foo
   101          password: pwd3
   102          disableCertificateVerification: false
   103        networkConfig:
   104          interfaces:
   105          - ipv4:
   106              address:
   107              - ip: 192.168.111.82
   108                prefix-length: 24
   109              dhcp: false
   110              enabled: true
   111            mac-address: 00:00:00:aa:bb:03
   112            name: eth0
   113            state: up
   114            type: ethernet
   115          routes:
   116            config:
   117            - destination: 0.0.0.0/0
   118              next-hop-address: 192.168.111.1
   119              next-hop-interface: eth0
   120              table-id: 254
   121  sshKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDK6UTEydcEKzuNdPaofn8Z2DwgHqdcionLZBiPf/zIRNco++etLsat7Avv7yt04DINQd5zjxIFgG8jblaUB5E5C9ClUcMwb52GO0ay2Y9v1uBv1a4WhI3peKktAzYNk0EBMQlJtXPjRMrC9ylBPh+DsBHMu+KmDnfk7PIwyN4efC8k5kSRuPWoNdme1rz2+umU8FSmaWTHIajrbspf4GQbsntA5kuKEtDbfoNCU97o2KrRnUbeg3a8hwSjfh3u6MhlnGcg5K2Ij+zivEsWGCLKYUtE1ErqwfIzwWmJ6jnV66XCQGHf4Q1iIxqF7s2a1q24cgG2Z/iDXfqXrCIfy4P7b/Ztak3bdT9jfAdVZtdO5/r7I+O5hYhF86ayFlDWzZWP/ByiSb+q4CQbfVgK3BMmiAv2MqLHdhesmD/SmIcoOWUF6rFmRKZVFFpKpt5ATNTgUJ3JRowoXrrDruVXClUGRiCS6Zabd1rZ3VmTchaPJwtzQMdfIWISXj+Ig+C4UK0=
   122  pullSecret: '{"auths": {"quay.io": {"auth": "c3VwZXItc2VjcmV0Cg=="}}}'
   123  
   124  -- agent-config.yaml --
   125  apiVersion: v1alpha1
   126  metadata:
   127    name: ostest
   128    namespace: cluster0
   129  rendezvousIP: 192.168.111.80
   130  
   131  -- expected/agent-cluster-install.yaml --
   132  apiVersion: extensions.hive.openshift.io/v1beta1
   133  kind: AgentClusterInstall
   134  metadata:
   135    annotations:
   136      agent-install.openshift.io/install-config-overrides: '{"platform":{"baremetal":{"hosts":[{"name":"master-0","bmc":{"username":"foo","password":"pwd1","address":"http://172.22.0.10:8000/redfish/v1/Systems/d3fe1eb9-f04c-465d-b5d6-d267f0a0059b","disableCertificateVerification":false},"role":"","bootMACAddress":"00:00:00:aa:bb:01","hardwareProfile":""},{"name":"master-1","bmc":{"username":"foo","password":"pwd2","address":"http://172.22.0.11:8000/redfish/v1/Systems/65bf6806-b634-4494-bccf-032ebdecc65d","disableCertificateVerification":false},"role":"","bootMACAddress":"00:00:00:aa:bb:02","hardwareProfile":""},{"name":"master-2","bmc":{"username":"foo","password":"pwd3","address":"http://172.22.0.12:8000/redfish/v1/Systems/ff67e706-28c4-42f6-b9a2-ce714195300a","disableCertificateVerification":false},"role":"","bootMACAddress":"00:00:00:aa:bb:03","hardwareProfile":""}],"clusterProvisioningIP":"172.22.0.3","provisioningNetwork":"Managed","provisioningNetworkInterface":"enp1s0","provisioningNetworkCIDR":"172.22.0.0/24","provisioningDHCPRange":"172.22.0.10,172.22.0.254"}}}'
   137    creationTimestamp: null
   138    name: ostest
   139    namespace: cluster0
   140  spec:
   141    apiVIP: 192.168.111.5
   142    apiVIPs:
   143    - 192.168.111.5
   144    clusterDeploymentRef:
   145      name: ostest
   146    imageSetRef:
   147      name: openshift-was not built correctly
   148    ingressVIP: 192.168.111.4
   149    ingressVIPs:
   150    - 192.168.111.4
   151    networking:
   152      clusterNetwork:
   153      - cidr: 10.128.0.0/14
   154        hostPrefix: 23
   155      machineNetwork:
   156      - cidr: 192.168.111.0/24
   157      networkType: OVNKubernetes
   158      serviceNetwork:
   159      - 172.30.0.0/16
   160    platformType: BareMetal
   161    provisionRequirements:
   162      controlPlaneAgents: 3
   163    sshPublicKey: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDK6UTEydcEKzuNdPaofn8Z2DwgHqdcionLZBiPf/zIRNco++etLsat7Avv7yt04DINQd5zjxIFgG8jblaUB5E5C9ClUcMwb52GO0ay2Y9v1uBv1a4WhI3peKktAzYNk0EBMQlJtXPjRMrC9ylBPh+DsBHMu+KmDnfk7PIwyN4efC8k5kSRuPWoNdme1rz2+umU8FSmaWTHIajrbspf4GQbsntA5kuKEtDbfoNCU97o2KrRnUbeg3a8hwSjfh3u6MhlnGcg5K2Ij+zivEsWGCLKYUtE1ErqwfIzwWmJ6jnV66XCQGHf4Q1iIxqF7s2a1q24cgG2Z/iDXfqXrCIfy4P7b/Ztak3bdT9jfAdVZtdO5/r7I+O5hYhF86ayFlDWzZWP/ByiSb+q4CQbfVgK3BMmiAv2MqLHdhesmD/SmIcoOWUF6rFmRKZVFFpKpt5ATNTgUJ3JRowoXrrDruVXClUGRiCS6Zabd1rZ3VmTchaPJwtzQMdfIWISXj+Ig+C4UK0=
   164  status:
   165    debugInfo:
   166      eventsURL: ""
   167      logsURL: ""
   168    progress:
   169      totalPercentage: 0