Bug 1835477
Summary: | run-local make target is broken | ||
---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | Daneyon Hansen <dhansen> |
Component: | Networking | Assignee: | Daneyon Hansen <dhansen> |
Networking sub component: | router | QA Contact: | Hongan Li <hongli> |
Status: | CLOSED ERRATA | Docs Contact: | |
Severity: | medium | ||
Priority: | unspecified | CC: | amcdermo, aos-bugs, mmasters |
Version: | 4.5 | ||
Target Milestone: | --- | ||
Target Release: | 4.5.0 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2020-07-13 17:38:37 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Daneyon Hansen
2020-05-13 21:41:12 UTC
$ oc get co/ingress NAME VERSION AVAILABLE PROGRESSING DEGRADED SINCE ingress 4.5.0-0.nightly-2020-05-18-225907 True False False 6h42m $ make run-local hack/run-local.sh deployment.apps/cluster-version-operator scaled deployment.apps/ingress-operator scaled Image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:430cf1bc3b7506e935578db1a9a193f21c12ffa23534ece6f5d826d02112d061 Release version: 4.5.0-0.nightly-2020-05-18-225907 Namespace: openshift-ingress-operator hack/run-local.sh: line 17: ./ingress-operator: No such file or directory make: *** [Makefile:72: run-local] Error 127 Am I missing something? The following should work: make build run-local Dane, is there any reason we don't make the following change so that the run-local target depends on the build target? @@ -68,5 +68,5 @@ uninstall: hack/uninstall.sh .PHONY: run-local -run-local: +run-local: build hack/run-local.sh (In reply to Hongan Li from comment #3) > $ oc get co/ingress > NAME VERSION AVAILABLE PROGRESSING > DEGRADED SINCE > ingress 4.5.0-0.nightly-2020-05-18-225907 True False > False 6h42m > > $ make run-local > hack/run-local.sh > deployment.apps/cluster-version-operator scaled > deployment.apps/ingress-operator scaled > Image: > quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256: > 430cf1bc3b7506e935578db1a9a193f21c12ffa23534ece6f5d826d02112d061 > Release version: 4.5.0-0.nightly-2020-05-18-225907 > Namespace: openshift-ingress-operator > hack/run-local.sh: line 17: ./ingress-operator: No such file or directory > make: *** [Makefile:72: run-local] Error 127 > > Am I missing something? No, it assumes you have built the binary using `make build`. If you run `make build` first, then `make run-local` this should now work (at least for verification). (In reply to Andrew McDermott from comment #5) > (In reply to Hongan Li from comment #3) > > $ oc get co/ingress > > NAME VERSION AVAILABLE PROGRESSING > > DEGRADED SINCE > > ingress 4.5.0-0.nightly-2020-05-18-225907 True False > > False 6h42m > > > > $ make run-local > > hack/run-local.sh > > deployment.apps/cluster-version-operator scaled > > deployment.apps/ingress-operator scaled > > Image: > > quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256: > > 430cf1bc3b7506e935578db1a9a193f21c12ffa23534ece6f5d826d02112d061 > > Release version: 4.5.0-0.nightly-2020-05-18-225907 > > Namespace: openshift-ingress-operator > > hack/run-local.sh: line 17: ./ingress-operator: No such file or directory > > make: *** [Makefile:72: run-local] Error 127 > > > > Am I missing something? > > No, it assumes you have built the binary using `make build`. > > If you run `make build` first, then `make run-local` this should now work > (at least for verification). Moving this back to MODIFIED because as things stand there is no dependency that run-local should build first. We can follow up if necessary with that change as I think we should add the same dependency for the `test-e2e` target too. Thank you, Miciah and Andrew. It works now and moving the BZ to verified. $ make run-local hack/run-local.sh deployment.apps/cluster-version-operator scaled deployment.apps/ingress-operator scaled Image: quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:430cf1bc3b7506e935578db1a9a193f21c12ffa23534ece6f5d826d02112d061 Release version: 4.5.0-0.nightly-2020-05-19-041951 Namespace: openshift-ingress-operator I0520 14:38:50.774279 8030 request.go:621] Throttling request took 1.045685873s, request: GET:https://api.hongli-pl951.qe.gcp.devcluster.openshift.com:6443/apis/image.openshift.io/v1?timeout=32s 2020-05-20T14:38:51.983+0800 INFO operator.main ingress-operator/start.go:107 using operator namespace {"namespace": "openshift-ingress-operator"} 2020-05-20T14:38:55.277+0800 INFO operator.init.controller-runtime.metrics metrics/listener.go:44 metrics server is starting to listen {"addr": ":60000"} I agree with https://bugzilla.redhat.com/show_bug.cgi?id=1835477#c4 and https://bugzilla.redhat.com/show_bug.cgi?id=1835477#c6. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2020:2409 |