Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-33160

[IBU] KMM - Kernel module doesn't load upon completion

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.16.0
    • kmm
    • None
    • No
    • False
    • Hide

      None

      Show
      None

      kernel-module-management.v2.1.0
      lifecycle-agent.v4.16.0

      Successfully complete upgrade with IBU:

      oc get ibu upgrade -o yaml
      apiVersion: lca.openshift.io/v1alpha1
      kind: ImageBasedUpgrade   
      metadata:              
        creationTimestamp: "2024-05-01T05:01:00Z"             
        generation: 1   
        name: upgrade
        resourceVersion: "45993"
        uid: 718c6ab4-43d4-4d7a-a2b0-ad5e910ad462
      spec:
        autoRollbackOnFailure: {}
        extraManifests:
        - name: lca-catalog-source-configmap
          namespace: openshift-marketplace
        - name: kmm-test-prep
          namespace: openshift-lifecycle-agent
        - name: kmm-test
          namespace: openshift-lifecycle-agent
        oadpContent:
        - name: oadp-cm
          namespace: openshift-adp
        seedImageRef:
          image: quay.io/ocp-edge-qe/ib-seedimage-public:ci-4.16-kmm
          version: 4.16.0-ec.5
        stage: Upgrade
      status:
        conditions:
        - lastTransitionTime: "2024-05-01T04:40:18Z"
          message: In progress
          observedGeneration: 10
          reason: InProgress
          status: "False"
          type: Idle
        - lastTransitionTime: "2024-05-01T04:54:35Z"
          message: Prep completed
          observedGeneration: 10
          reason: Completed
          status: "False"
          type: PrepInProgress
        - lastTransitionTime: "2024-05-01T04:54:35Z"
          message: Prep completed successfully
          observedGeneration: 10
          reason: Completed
          status: "True"
          type: PrepCompleted
        - lastTransitionTime: "2024-05-01T05:04:24Z"
          message: Upgrade completed
          observedGeneration: 1
          reason: Completed
          status: "False"
          type: UpgradeInProgress
        - lastTransitionTime: "2024-05-01T05:04:24Z"
          message: Upgrade completed
          observedGeneration: 1
          reason: Completed
          status: "True"
          type: UpgradeCompleted
        observedGeneration: 1
        rollbackAvailabilityExpiration: "2024-05-02T02:57:53Z"
        validNextStages:
        - Idle
        - Rollback
      

      kmm-test-prep:

                ---
                apiVersion: v1
                kind: Namespace
                metadata:
                  annotations:
                    lca.openshift.io/apply-wave: "4"
                  name: "{{ ibu_kmm_module_namespace }}"
      
                ---
                apiVersion: v1
                kind: ServiceAccount
                metadata:
                  annotations:
                    lca.openshift.io/apply-wave: "5"
                  name: simple-kmod-manager
                  namespace: "{{ ibu_kmm_module_namespace }}"
      
                ---
                apiVersion: rbac.authorization.k8s.io/v1
                kind: ClusterRoleBinding
                metadata:
                  annotations:
                    lca.openshift.io/apply-wave: "6"
                  name: simple-kmod-module-manager-rolebinding
                roleRef:
                  apiGroup: rbac.authorization.k8s.io
                  kind: ClusterRole
                  name: system:openshift:scc:privileged
                subjects:
                - kind: ServiceAccount
                  name: simple-kmod-manager
                  namespace: "{{ ibu_kmm_module_namespace }}"
      

      kmm-test extraManifest:

                ---
                apiVersion: kmm.sigs.x-k8s.io/v1beta1
                kind: Module
                metadata:
                  annotations:
                    lca.openshift.io/apply-wave: "7"
                  name: simple-kmod-existing-quay
                  namespace: "{{ ibu_kmm_module_namespace }}"
                spec:
                  moduleLoader:
                    serviceAccountName: simple-kmod-manager
                    container:
                      modprobe:
                        moduleName: simple-kmod
                      imagePullPolicy: Always
                      kernelMappings:
                        - regexp: '^.+$'
                          containerImage: 'quay.io/ocp-edge-qe/simple-kmod:$KERNEL_FULL_VERSION'
                  selector:
                    node-role.kubernetes.io/worker: ""
      

      kmm pod logs:

      oc logs -n simple-kmod kmm-worker-target-0-0-simple-kmod-existing-quay 
      I0501 12:19:26.646314       1 funcs_kmod.go:11] "Starting worker" logger="kmm-worker" version="2.1.0" git commit="22fd009"
      I0501 12:19:26.646415       1 funcs_kmod.go:97] "Reading pull secrets" logger="kmm-worker" base dir="/var/run/kmm/pull-secrets"
      I0501 12:19:26.646742       1 pullsecrets.go:39] "Reading file" logger="kmm-worker" path="/var/run/kmm/pull-secrets/_global/.dockerconfigjson" type="kubernetes.io/dockerconfigjson"
      I0501 12:19:26.648027       1 funcs_kmod.go:26] "Reading config" logger="kmm-worker" path="/etc/kmm-worker/config.yaml"
      I0501 12:19:26.872172       1 mirror.go:43] "No configuration found for registry" logger="kmm-worker" image name="quay.io/ocp-edge-qe/simple-kmod:5.14.0-432.el9.x86_64"
      I0501 12:19:26.872227       1 remoteimagemounter.go:40] "Pulling and mounting image" logger="kmm-worker" image name="quay.io/ocp-edge-qe/simple-kmod:5.14.0-432.el9.x86_64"
      
      

            yshnaidm Yevgeny Shnaidman
            achuzhoy@redhat.com Alexander Chuzhoy
            Alexander Chuzhoy Alexander Chuzhoy
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: