Uploaded image for project: 'OpenShift Virtualization'
  1. OpenShift Virtualization
  2. CNV-43045

multiple AAQ upstream tests fail on d/s env due to PSA

    • Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Major Major
    • CNV v4.17.0
    • None
    • CNV Virtualization
    • None
    • 0.42
    • False
    • Hide

      None

      Show
      None
    • False
    • CNV v4.17.0.rhel9-580
    • ---
    • ---
    • No

      Description of problem:

      multiple AAQ upstream tests fail on d/s env due to PSA:
      
      
      
      
      15:57:49    [FAILED] Unexpected error:
      15:57:49        <*errors.StatusError | 0xc001e9f7c0>: 
      15:57:49        pods "test-pod" is forbidden: violates PodSecurity "restricted:latest": allowPrivilegeEscalation != false (container "pause" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (container "pause" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or container "pause" must set securityContext.runAsNonRoot=true), seccompProfile (pod or container "pause" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")
      15:57:49        {
      15:57:49            ErrStatus: {
      15:57:49                TypeMeta: {Kind: "", APIVersion: ""},
      15:57:49                ListMeta: {
      15:57:49                    SelfLink: "",
      15:57:49                    ResourceVersion: "",
      15:57:49                    Continue: "",
      15:57:49                    RemainingItemCount: nil,
      15:57:49                },
      15:57:49                Status: "Failure",
      15:57:49                Message: "pods \"test-pod\" is forbidden: violates PodSecurity \"restricted:latest\": allowPrivilegeEscalation != false (container \"pause\" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (container \"pause\" must set securityContext.capabilities.drop=[\"ALL\"]), runAsNonRoot != true (pod or container \"pause\" must set securityContext.runAsNonRoot=true), seccompProfile (pod or container \"pause\" must set securityContext.seccompProfile.type to \"RuntimeDefault\" or \"Localhost\")",
      15:57:49                Reason: "Forbidden",
      15:57:49                Details: {Name: "test-pod", Group: "", Kind: "pods", UID: "", Causes: nil, RetryAfterSeconds: 0},
      15:57:49                Code: 403,
      15:57:49            },
      15:57:49        }
      15:57:49    occurred

       

      Version-Release number of selected component (if applicable):

      all versions

      How reproducible:

      100%

      Steps to Reproduce:

      1.Run AAQ tests on d/s environment (D/S build on OpenShift cluster)
      2.
      3.
      

      Actual results:

      Multiple tests are failing by PSA:
      
      
      
      15:57:49    [FAILED] Unexpected error:
      15:57:49        <*errors.StatusError | 0xc001e9f7c0>: 
      15:57:49        pods "test-pod" is forbidden: violates PodSecurity "restricted:latest": allowPrivilegeEscalation != false (container "pause" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (container "pause" must set securityContext.capabilities.drop=["ALL"]), runAsNonRoot != true (pod or container "pause" must set securityContext.runAsNonRoot=true), seccompProfile (pod or container "pause" must set securityContext.seccompProfile.type to "RuntimeDefault" or "Localhost")
      15:57:49        {
      15:57:49            ErrStatus: {
      15:57:49                TypeMeta: {Kind: "", APIVersion: ""},
      15:57:49                ListMeta: {
      15:57:49                    SelfLink: "",
      15:57:49                    ResourceVersion: "",
      15:57:49                    Continue: "",
      15:57:49                    RemainingItemCount: nil,
      15:57:49                },
      15:57:49                Status: "Failure",
      15:57:49                Message: "pods \"test-pod\" is forbidden: violates PodSecurity \"restricted:latest\": allowPrivilegeEscalation != false (container \"pause\" must set securityContext.allowPrivilegeEscalation=false), unrestricted capabilities (container \"pause\" must set securityContext.capabilities.drop=[\"ALL\"]), runAsNonRoot != true (pod or container \"pause\" must set securityContext.runAsNonRoot=true), seccompProfile (pod or container \"pause\" must set securityContext.seccompProfile.type to \"RuntimeDefault\" or \"Localhost\")",
      15:57:49                Reason: "Forbidden",
      15:57:49                Details: {Name: "test-pod", Group: "", Kind: "pods", UID: "", Causes: nil, RetryAfterSeconds: 0},
      15:57:49                Code: 403,
      15:57:49            },
      15:57:49        }
      15:57:49    occurred

      Expected results:

      AAQ upstream tests should be adjusted to D/S environment

      Additional info:

       

              bmordeha@redhat.com Barak Mordehai
              mperetz@redhat.com Maya Peretz
              Denys Shchedrivyi Denys Shchedrivyi
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: