Uploaded image for project: 'Agent-based Installer for OpenShift'
  1. Agent-based Installer for OpenShift
  2. AGENT-16

NMStateConfig processing for the CLI tool to have network capable ISOs

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • None
    • None
    • None

      The agent based installation for Zero Touch provisioning has a Custom Resource Defined to configure the static networking of the nodes that will be provisioned. E.g:

       

       

      apiVersion: agent-install.openshift.io/v1beta1
      kind: NMStateConfig
      metadata:
        name: mgmt-spoke1
        namespace: mgmt-spoke1
        labels:
          cluster-name: mgmt-spoke1
      spec:
        config:
          interfaces:
            - name: bond0
              type: bond
              link-aggregation:
                mode: active-backup
                options:
                  miimon: "140"
                slaves:
                  - eth0
                  - eth1
              state: up
              ipv4:
                enabled: true
                address:
                  - ip: 192.168.123.151
                    prefix-length: 24
                dhcp: false
              ipv6:
                enabled: false
          dns-resolver:
            config:
              server:
                - 192.168.1.1
          routes:
            config:
              - destination: 0.0.0.0/0
                next-hop-address: 192.168.1.1
                next-hop-interface: bond0
                table-id: 254
        interfaces:
          - name: "eth0"
            macAddress: "00:00:00:00:00:00"
          - name: "eth1"
            macAddress: "00:00:00:00:00:11"

      NMState team is currently working on a rust library that includes the gc command that assisted service uses to generate all the configs and then load the one that matches the interfaces. We should reach out to ncarboni@redhat.com to check on assisted-service progress in integrating the new library and leverage the same code to make sure our ISO can use the same network configuration mechanism

       

              Unassigned Unassigned
              asegurap1@redhat.com Antoni Segura Puimedon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: