Skip to content

Conversation

@DavidHurta
Copy link
Contributor

Set additionalPrinterColumns for UpdateService CRD to provide more information to a user about the UpdateService resource.

Previously running the oc get -o wide ... command only displayed the name and the age of the specific running UpdateService resources.

Display the policyEngineURI, releases, graphDataImage, and the ReconcileCompleted condition status to provide more information to a user about the UpdateService resource. Set the priority of these additionalPrinterColumns accordingly to list them only when the -o wide flag is provided.

Pull request is related to https://issues.redhat.com/browse/OTA-449

@DavidHurta
Copy link
Contributor Author

/hold
The Age column is no longer displayed. I need to fix that.

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 13, 2021
Add additionalPrinterColumns to the UpdateService custom resource
definition file. Previously running the "oc get -o wide ..." command
only displayed the name and the age of the specific running
UpdateService resources.

Display the policyEngineURI, releases, graphDataImage, and
the ReconcileCompleted condition status to provide more information
to a user about the UpdateService resource. Set the priority of these
additionalPrinterColumns to 1 to list them only when the "-o wide" flag
is provided.
@DavidHurta DavidHurta force-pushed the set-additional-printer-columns-for-update-service-crd branch from c53bd19 to bf6d5e5 Compare December 13, 2021 15:59
@DavidHurta
Copy link
Contributor Author

DavidHurta commented Dec 13, 2021

/unhold
Fixed the issue mentioned in #138 (comment) in the new commit bf6d5e5.

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Dec 13, 2021
@DavidHurta
Copy link
Contributor Author

An example of the output when running the command oc get -n openshift-update-service -o wide updateservice:

NAME     AGE   POLICY ENGINE URI                                                                                                        RELEASES                                    GRAPH DATA IMAGE   RECONCILE COMPLETED
sample   21m   https://sample-policy-engine-route-openshift-update-service.apps.ci-ln-bmq9sy2-72292.origin-ci-int-gce.dev.rhcloud.com   quay.io/openshift-release-dev/ocp-release   example.com        True

Note: Some of the columns are only proposed as an idea in https://issues.redhat.com/browse/OTA-449 for the additionalPrinterColumns.

Copy link
Member

@wking wking left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 13, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Davoska, wking

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

The pull request process is described here

Details 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-ci openshift-ci bot added lgtm Indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Dec 13, 2021
@wking
Copy link
Member

wking commented Dec 13, 2021

operator-e2e spent 10m waiting for the Cincinnati pod:

I1213 16:43:24.307556    5641 utils.go:86] updateservice.updateservice.operator.openshift.io/example created
I1213 16:43:54.386944    5641 utils.go:106] Waiting for full availability of example deployment (0/1)
...
I1213 16:53:24.422388    5641 utils.go:106] Waiting for full availability of example deployment (0/1)
    updateservice_creation_test.go:81: timed out waiting for the condition

We should probably update the test suite to dump pod status if that happens, but I don't see how it could be related to this CRD change, so:

/retest

Poking at events, looks like we're permafailing on readiness probe 503s:

$ curl -s https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/origin-ci-test/pr-logs/pull/openshift_cincinnati-operator/138/pull-ci-openshift-cincinnati-operator-master-operator-e2e/1470424053910081536/artifacts/operator-e2e/gather-extra/artifacts/events.json | jq -r '.items | sort_by(.metadata.creationTimestamp)[] | select(.metadata.namespace == "openshift-updateservice") | .metadata.creationTimestamp + " " + (.count | tostring) + " " + .reason + ": " + .message' | tail -n4
2021-12-13T16:43:39Z 34 ProbeError: Readiness probe error: HTTP probe failed with statuscode: 503
body: 

2021-12-13T16:43:39Z 7 Unhealthy: Readiness probe failed: HTTP probe failed with statuscode: 503

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

14 similar comments
@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

1 similar comment
@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@jottofar
Copy link
Contributor

e2e tests was failing when I did the last promote early Nov. Not sure why but the OSUS operand graph-builder container started failing and never did figured out why. At the time I just overrode the test to get the PR in since I had completely tested it on my own. We need to take another look.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

13 similar comments
@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@openshift-bot
Copy link

/retest-required

Please review the full test history for this PR and help us cut down flakes.

@wking
Copy link
Member

wking commented Dec 15, 2021

I'm pretty sure these failures are unrelated.

/override ci/prow/operator-e2e

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 15, 2021

@wking: Overrode contexts on behalf of wking: ci/prow/operator-e2e

Details

In response to this:

I'm pretty sure these failures are unrelated.

/override ci/prow/operator-e2e

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/test-infra repository.

@openshift-merge-robot openshift-merge-robot merged commit d7d35df into openshift:master Dec 15, 2021
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Dec 15, 2021

@Davoska: all tests passed!

Full PR test history. Your PR dashboard.

Details

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/test-infra repository. I understand the commands that are listed here.

wking added a commit to wking/cincinnati-operator that referenced this pull request Oct 3, 2023
Using:

  $ go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.13.0
  $ controller-gen rbac:roleName=updateservice-operator crd paths=./... output:crd:dir=config/crd/bases
  $ git add -p  # avoid dropping additionalPrinterColumns

with:

  $ go version
  go version go1.21.1 linux/amd64
  $ controller-gen --version  # not surprising since I installed 0.13.0 with 'go install ...' above
  Version: v0.13.0

where additionalPrinterColumns is from bf6d5e5 (Add
additionalPrinterColumns to the UpdateService crd, 2021-12-13, openshift#138).
wking added a commit to wking/cincinnati-operator that referenced this pull request Oct 10, 2023
Using:

  $ go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.13.0
  $ controller-gen rbac:roleName=updateservice-operator crd paths=./... output:crd:dir=config/crd/bases
  $ git add -p  # avoid dropping additionalPrinterColumns

with:

  $ go version
  go version go1.21.1 linux/amd64
  $ controller-gen --version  # not surprising since I installed 0.13.0 with 'go install ...' above
  Version: v0.13.0

where additionalPrinterColumns is from bf6d5e5 (Add
additionalPrinterColumns to the UpdateService crd, 2021-12-13, openshift#138).
wking added a commit to wking/cincinnati-operator that referenced this pull request Nov 7, 2023
Using:

  $ go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.13.0
  $ controller-gen rbac:roleName=updateservice-operator crd paths=./... output:crd:dir=config/crd/bases
  $ git add -p  # avoid dropping additionalPrinterColumns

with:

  $ go version
  go version go1.21.1 linux/amd64
  $ controller-gen --version  # not surprising since I installed 0.13.0 with 'go install ...' above
  Version: v0.13.0

where additionalPrinterColumns is from bf6d5e5 (Add
additionalPrinterColumns to the UpdateService crd, 2021-12-13, openshift#138).
wking added a commit to wking/cincinnati-operator that referenced this pull request Nov 7, 2023
Using:

  $ go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.13.0
  $ controller-gen rbac:roleName=updateservice-operator crd paths=./... output:crd:dir=config/crd/bases
  $ git add -p  # avoid dropping additionalPrinterColumns

with:

  $ go version
  go version go1.21.1 linux/amd64
  $ controller-gen --version  # not surprising since I installed 0.13.0 with 'go install ...' above
  Version: v0.13.0

where additionalPrinterColumns is from bf6d5e5 (Add
additionalPrinterColumns to the UpdateService crd, 2021-12-13, openshift#138).
wking added a commit to wking/cincinnati-operator that referenced this pull request Nov 7, 2023
Using:

  $ go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.13.0
  $ controller-gen rbac:roleName=updateservice-operator crd paths=./... output:crd:dir=config/crd/bases
  $ git add -p  # avoid dropping additionalPrinterColumns

with:

  $ go version
  go version go1.21.1 linux/amd64
  $ controller-gen --version  # not surprising since I installed 0.13.0 with 'go install ...' above
  Version: v0.13.0

where additionalPrinterColumns is from bf6d5e5 (Add
additionalPrinterColumns to the UpdateService crd, 2021-12-13, openshift#138).
wking added a commit to wking/cincinnati-operator that referenced this pull request Nov 7, 2023
Using:

  $ go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.13.0
  $ controller-gen rbac:roleName=updateservice-operator crd paths=./... output:crd:dir=config/crd/bases
  $ git add -p  # avoid dropping additionalPrinterColumns

with:

  $ go version
  go version go1.21.1 linux/amd64
  $ controller-gen --version  # not surprising since I installed 0.13.0 with 'go install ...' above
  Version: v0.13.0

where additionalPrinterColumns is from bf6d5e5 (Add
additionalPrinterColumns to the UpdateService crd, 2021-12-13, openshift#138).
wking added a commit to wking/cincinnati-operator that referenced this pull request Nov 8, 2023
Using:

  $ go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.13.0
  $ controller-gen rbac:roleName=updateservice-operator crd paths=./... output:crd:dir=config/crd/bases
  $ git add -p  # avoid dropping additionalPrinterColumns

with:

  $ go version
  go version go1.21.1 linux/amd64
  $ controller-gen --version  # not surprising since I installed 0.13.0 with 'go install ...' above
  Version: v0.13.0

where additionalPrinterColumns is from bf6d5e5 (Add
additionalPrinterColumns to the UpdateService crd, 2021-12-13, openshift#138).
wking added a commit to wking/cincinnati-operator that referenced this pull request Nov 8, 2023
Using:

  $ go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.13.0
  $ controller-gen rbac:roleName=updateservice-operator crd paths=./... output:crd:dir=config/crd/bases
  $ git add -p  # avoid dropping additionalPrinterColumns

with:

  $ go version
  go version go1.21.1 linux/amd64
  $ controller-gen --version  # not surprising since I installed 0.13.0 with 'go install ...' above
  Version: v0.13.0

where additionalPrinterColumns is from bf6d5e5 (Add
additionalPrinterColumns to the UpdateService crd, 2021-12-13, openshift#138).
wking added a commit to wking/cincinnati-operator that referenced this pull request Nov 9, 2023
Using:

  $ go install sigs.k8s.io/controller-tools/cmd/controller-gen@v0.13.0
  $ controller-gen rbac:roleName=updateservice-operator crd paths=./... output:crd:dir=config/crd/bases
  $ git add -p  # avoid dropping additionalPrinterColumns

with:

  $ go version
  go version go1.21.1 linux/amd64
  $ controller-gen --version  # not surprising since I installed 0.13.0 with 'go install ...' above
  Version: v0.13.0

where additionalPrinterColumns is from bf6d5e5 (Add
additionalPrinterColumns to the UpdateService crd, 2021-12-13, openshift#138).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants