Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Red Hat Konflux update config-policy-controller-acm-211 #908

Merged

Conversation

red-hat-konflux[bot]
Copy link
Contributor

Pipelines as Code configuration proposal

To start the PipelineRun, add a new comment with content /ok-to-test

For more detailed information about running a PipelineRun, please refer to Pipelines as Code documentation Running the PipelineRun

To customize the proposed PipelineRuns after merge, please refer to Build Pipeline customization

@JustinKuli
Copy link
Contributor

JustinKuli commented Jun 17, 2024

KinD tests (minimum) Attempt 1
  [FAIL] Testing OperatorPolicy Test reporting of unapproved version after installation [It] Should start compliant [supports-hosted]
  /home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case38_install_operator_test.go:3578
• [FAILED] [72.091 seconds]
Testing OperatorPolicy Test reporting of unapproved version after installation [It] Should start compliant [supports-hosted]
/home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case38_install_operator_test.go:3566

  Timeline >>
  STEP: Creating the parent object @ 06/17/24 16:38:56.61
  STEP: Creating the child object with the owner reference @ 06/17/24 16:38:57.844
  STEP: Verifying the child object exists @ 06/17/24 16:38:57.847
  [FAILED] in [It] - /home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case38_install_operator_test.go:3578 @ 06/17/24 16:39:57.851
  << Timeline

  [FAILED] Timed out after 60.001s.
  Expected
      <string>: 
  to equal
      <string>: InstallSucceeded
  In [It] at: /home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case38_install_operator_test.go:3578 @ 06/17/24 16:39:57.851
KinD tests (latest) Attempt 1
  [FAIL] Testing OperatorPolicy Testing templates in an OperatorPolicy [It] Should update the subscription after the configmap is updated [supports-hosted]
  /home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case38_install_operator_test.go:3330
• [FAILED] [50.889 seconds]
Testing OperatorPolicy Testing templates in an OperatorPolicy [It] Should update the subscription after the configmap is updated [supports-hosted]
/home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case38_install_operator_test.go:3326

  Timeline >>
  [FAILED] in [It] - /home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case38_install_operator_test.go:3330 @ 06/17/24 16:37:07.136
  Debug info for failure.
  policy JSON: {
    "apiVersion": "policy.open-cluster-management.io/v1beta1",
    "kind": "OperatorPolicy",
    "metadata": {
      "annotations": {
        "policy.open-cluster-management.io/parent-policy-compliance-db-id": "124",
        "policy.open-cluster-management.io/policy-compliance-db-id": "64"
      },
      "creationTimestamp": "2024-06-17T16:36:21Z",
      "generation": 2,
      "labels": {
        "policy.open-cluster-management.io/cluster-name": "managed",
        "policy.open-cluster-management.io/cluster-namespace": "managed"
      },
      "name": "oppol-with-templates",
      "namespace": "managed",
      "ownerReferences": [
        {
          "apiVersion": "policy.open-cluster-management.io/v1",
          "kind": "Policy",
          "name": "parent-policy",
          "uid": "ef536eaf-521f-44b0-bfe9-c538771eafb4"
        }
      ],
      "resourceVersion": "11889",
      "uid": "b62fb092-68be-4e2c-ac35-09b44fe6f852"
    },
    "spec": {
      "complianceConfig": {
        "catalogSourceUnhealthy": "Compliant",
        "deploymentsUnavailable": "NonCompliant",
        "upgradesAvailable": "Compliant"
      },
      "complianceType": "musthave",
      "operatorGroup": {
        "name": "scoped-operator-group",
        "namespace": "operator-policy-testns",
        "targetNamespaces": "{{ (fromConfigMap \"operator-policy-testns\" \"op-config\" \"namespaces\") | toLiteral }}"
      },
      "remediationAction": "enforce",
      "removalBehavior": {
        "clusterServiceVersions": "Delete",
        "customResourceDefinitions": "Keep",
        "operatorGroups": "DeleteIfUnused",
        "subscriptions": "Delete"
      },
      "severity": "medium",
      "subscription": {
        "channel": "{{ (lookup \"v1\" \"ConfigMap\" \"operator-policy-testns\" \"op-config\").data.channel }}",
        "name": "project-quay",
        "namespace": "operator-policy-testns",
        "source": "operatorhubio-catalog",
        "sourceNamespace": "olm",
        "startingCSV": "quay-operator.v3.10.0"
      },
      "upgradeApproval": "Automatic"
    },
    "status": {
      "compliant": "NonCompliant",
      "conditions": [
        {
          "lastTransitionTime": "2024-06-17T16:36:21Z",
          "message": "CatalogSource was found",
          "reason": "CatalogSourcesFound",
          "status": "False",
          "type": "CatalogSourcesUnhealthy"
        },
        {
          "lastTransitionTime": "2024-06-17T16:37:05Z",
          "message": "ClusterServiceVersion (quay-operator.v3.10.6) - install strategy completed with no errors",
          "reason": "InstallSucceeded",
          "status": "True",
          "type": "ClusterServiceVersionCompliant"
        },
        {
          "lastTransitionTime": "2024-06-17T16:37:06Z",
          "message": "NonCompliant; the policy spec is valid, the OperatorGroup matches what is required by the policy, constraints not satisfiable: refer to the Subscription for more details, no InstallPlans requiring approval were found, ClusterServiceVersion (quay-operator.v3.10.6) - install strategy completed with no errors, there are CRDs present for the operator, all operator Deployments have their minimum availability, CatalogSource was found",
          "reason": "NonCompliant",
          "status": "False",
          "type": "Compliant"
        },
        {
          "lastTransitionTime": "2024-06-17T16:37:02Z",
          "message": "there are CRDs present for the operator",
          "reason": "RelevantCRDFound",
          "status": "True",
          "type": "CustomResourceDefinitionCompliant"
        },
        {
          "lastTransitionTime": "2024-06-17T16:37:05Z",
          "message": "all operator Deployments have their minimum availability",
          "reason": "DeploymentsAvailable",
          "status": "True",
          "type": "DeploymentCompliant"
        },
        {
          "lastTransitionTime": "2024-06-17T16:37:06Z",
          "message": "no InstallPlans requiring approval were found",
          "reason": "NoInstallPlansRequiringApproval",
          "status": "True",
          "type": "InstallPlanCompliant"
        },
        {
          "lastTransitionTime": "2024-06-17T16:36:21Z",
          "message": "the OperatorGroup matches what is required by the policy",
          "reason": "OperatorGroupMatches",
          "status": "True",
          "type": "OperatorGroupCompliant"
        },
        {
          "lastTransitionTime": "2024-06-17T16:37:06Z",
          "message": "constraints not satisfiable: refer to the Subscription for more details",
          "reason": "ConstraintsNotSatisfiable",
          "status": "False",
          "type": "SubscriptionCompliant"
        },
        {
          "lastTransitionTime": "2024-06-17T16:36:21Z",
          "message": "the policy spec is valid",
          "reason": "PolicyValidated",
          "status": "True",
          "type": "ValidPolicySpec"
        }
      ],
      "relatedObjects": [
        {
          "compliant": "Compliant",
          "object": {
            "apiVersion": "operators.coreos.com/v1alpha1",
            "kind": "CatalogSource",
            "metadata": {
              "name": "operatorhubio-catalog",
              "namespace": "olm"
            }
          },
          "reason": "Resource found as expected"
        },
        {
          "compliant": "Compliant",
          "object": {
            "apiVersion": "operators.coreos.com/v1alpha1",
            "kind": "ClusterServiceVersion",
            "metadata": {
              "name": "quay-operator.v3.10.6",
              "namespace": "operator-policy-testns"
            }
          },
          "properties": {
            "uid": "4ad73139-05bf-4d00-92ee-1d3b618bbc56"
          },
          "reason": "InstallSucceeded"
        },
        {
          "compliant": "Compliant",
          "object": {
            "apiVersion": "apiextensions.k8s.io/v1",
            "kind": "CustomResourceDefinition",
            "metadata": {
              "name": "quayregistries.quay.redhat.com"
            }
          },
          "properties": {
            "uid": "5589266d-fd60-49cc-a2f5-95cd9135a120"
          },
          "reason": "Resource found as expected"
        },
        {
          "compliant": "Compliant",
          "object": {
            "apiVersion": "apps/v1",
            "kind": "Deployment",
            "metadata": {
              "name": "quay-operator-tng",
              "namespace": "operator-policy-testns"
            }
          },
          "properties": {
            "uid": "fd248c49-4461-4f5c-b170-4ae758b45751"
          },
          "reason": "Deployment Available"
        },
        {
          "compliant": "Compliant",
          "object": {
            "apiVersion": "operators.coreos.com/v1alpha1",
            "kind": "InstallPlan",
            "metadata": {
              "name": "install-5h64n",
              "namespace": "operator-policy-testns"
            }
          },
          "properties": {
            "uid": "0921ff0d-cb15-4749-b3d9-5b3571ce9cde"
          },
          "reason": "The InstallPlan is Complete"
        },
        {
          "compliant": "Compliant",
          "object": {
            "apiVersion": "operators.coreos.com/v1",
            "kind": "OperatorGroup",
            "metadata": {
              "name": "scoped-operator-group",
              "namespace": "operator-policy-testns"
            }
          },
          "properties": {
            "createdByPolicy": true,
            "uid": "bc54e5e7-49c8-48bb-8a17-b5922ee5e2fd"
          },
          "reason": "Resource found as expected"
        },
        {
          "compliant": "NonCompliant",
          "object": {
            "apiVersion": "operators.coreos.com/v1alpha1",
            "kind": "Subscription",
            "metadata": {
              "name": "project-quay",
              "namespace": "operator-policy-testns"
            }
          },
          "properties": {
            "createdByPolicy": true,
            "uid": "760510bf-918c-4688-b0bd-9[9066](https://github.com/stolostron/config-policy-controller/actions/runs/9551086104/job/26324611690?pr=908#step:10:9067)4b2a49c"
          },
          "reason": "ConstraintsNotSatisfiable"
        }
      ],
      "resolvedSubscriptionLabel": "project-quay.operator-policy-testns",
      "subscriptionInterventionTime": "2024-06-17T16:37:01Z"
    }
  }
  wanted related objects: [{Properties:<nil> Object:{Metadata:{Name:project-quay Namespace:operator-policy-testns} Kind:Subscription APIVersion:operators.coreos.com/v1alpha1} Compliant:Compliant Reason:Resource found as expected}]
  wanted condition: {Type:SubscriptionCompliant Status:True ObservedGeneration:0 LastTransitionTime:0001-01-01 00:00:00 +0000 UTC Reason:SubscriptionMatches Message:the Subscription matches what is required by the policy}

  << Timeline

  [FAILED] Failed after 4.245s.
  The function passed to Consistently failed at /home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case38_install_operator_test.go:136 with:
  Expected
      <string>: NonCompliant
  to equal
      <string>: Compliant
  In [It] at: /home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case38_install_operator_test.go:3330 @ 06/17/24 16:37:07.136
KinD tests (minimum) Attempt 2
  [FAIL] Object Should not be deleted [AfterEach] check pod is not removed when PruneObjectBehavior is none and namespace changed
  /home/runner/work/config-policy-controller/config-policy-controller/test/e2e/e2e_suite_test.go:303
  [FAIL] Testing OperatorPolicy Test reporting of unapproved version after installation [It] Should start compliant [supports-hosted]
  /home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case38_install_operator_test.go:3578
• [FAILED] [88.153 seconds]
Object Should not be deleted [AfterEach] check pod is not removed when PruneObjectBehavior is none and namespace changed
  [AfterEach] /home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case20_delete_objects_test.go:718
  [It] /home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case20_delete_objects_test.go:740

  Timeline >>
  STEP: Changing namespace, old-pod should not exist, newpod exist in new namepace with old name @ 06/17/24 17:10:58.902
  [FAILED] in [AfterEach] - /home/runner/work/config-policy-controller/config-policy-controller/test/e2e/e2e_suite_test.go:303 @ 06/17/24 17:12:23.979
  << Timeline

  [FAILED] Timed out after 60.000s.
  Unexpected error:
      <*errors.errorString | 0xc00090a090>: 
      expected 'pods/case20-2-name-changed-pod' in namespace 'managed' to return IsNotFound error
      {
          s: "expected 'pods/case20-2-name-changed-pod' in namespace 'managed' to return IsNotFound error",
      }
  occurred
  In [AfterEach] at: /home/runner/work/config-policy-controller/config-policy-controller/test/e2e/e2e_suite_test.go:303 @ 06/17/24 17:12:23.979
• [FAILED] [72.040 seconds]
Testing OperatorPolicy Test reporting of unapproved version after installation [It] Should start compliant [supports-hosted]
/home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case38_install_operator_test.go:3566

  Timeline >>
  STEP: Creating the parent object @ 06/17/24 17:30:53.542
  STEP: Creating the child object with the owner reference @ 06/17/24 17:30:54.371
  STEP: Verifying the child object exists @ 06/17/24 17:30:54.375
  [FAILED] in [It] - /home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case38_install_operator_test.go:3578 @ 06/17/24 17:31:54.378
  << Timeline

  [FAILED] Timed out after 60.001s.
  Expected
      <string>: 
  to equal
      <string>: InstallSucceeded
  In [It] at: /home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case38_install_operator_test.go:3578 @ 06/17/24 17:31:54.378
KinD tests (latest) Attempt 2
  [FAIL] Testing OperatorPolicy Test reporting of unapproved version after installation [It] Should start compliant [supports-hosted]
  /home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case38_install_operator_test.go:3578
• [FAILED] [71.570 seconds]
Testing OperatorPolicy Test reporting of unapproved version after installation [It] Should start compliant [supports-hosted]
/home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case38_install_operator_test.go:3566

  Timeline >>
  STEP: Creating the parent object @ 06/17/24 17:30:42.962
  STEP: Creating the child object with the owner reference @ 06/17/24 17:30:43.832
  STEP: Verifying the child object exists @ 06/17/24 17:30:43.835
  [FAILED] in [It] - /home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case38_install_operator_test.go:3578 @ 06/17/24 17:31:43.838
  << Timeline

  [FAILED] Timed out after 60.001s.
  Expected
      <string>: 
  to equal
      <string>: InstallSucceeded
  In [It] at: /home/runner/work/config-policy-controller/config-policy-controller/test/e2e/case38_install_operator_test.go:3578 @ 06/17/24 17:31:43.838

@JustinKuli
Copy link
Contributor

/override-dco

@JustinKuli
Copy link
Contributor

/override dco

Copy link

openshift-ci bot commented Jun 17, 2024

@JustinKuli: Overrode contexts on behalf of JustinKuli: dco

In response to this:

/override dco

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@JustinKuli
Copy link
Contributor

Main test failure should be resolved in open-cluster-management-io/config-policy-controller#268

Signed-off-by: Justin Kulikauskas <jkulikau@redhat.com>
@JustinKuli JustinKuli force-pushed the appstudio-config-policy-controller-acm-211 branch from ff9ae34 to b6f630b Compare June 18, 2024 16:41
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

Copy link

openshift-ci bot commented Jun 18, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JustinKuli, mprahl, red-hat-konflux[bot]

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-merge-bot openshift-merge-bot bot merged commit 541fc49 into release-2.11 Jun 18, 2024
14 checks passed
@openshift-merge-bot openshift-merge-bot bot deleted the appstudio-config-policy-controller-acm-211 branch June 18, 2024 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants