Bug 1912565 - OLM macOS local build broken by moby/term dependency
Summary: OLM macOS local build broken by moby/term dependency
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: OLM
Version: 4.7
Hardware: Unspecified
OS: Mac OS
low
low
Target Milestone: ---
: 4.7.0
Assignee: Daniel Sover
QA Contact: kuiwang
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-01-04 19:09 UTC by Daniel Sover
Modified: 2021-02-24 15:50 UTC (History)
0 users

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-02-24 15:49:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github operator-framework operator-lifecycle-manager pull 1918 0 None open fix: update moby/term dependency 2021-01-04 19:09:24 UTC
Red Hat Product Errata RHSA-2020:5633 0 None None None 2021-02-24 15:50:01 UTC

Comment 2 kuiwang 2021-01-06 07:10:05 UTC
verify it for 4.7. LGTM

--
kuiwang@Kuis-MacBook-Pro operator-lifecycle-manager % git remote -v
origin	git:operator-framework/operator-lifecycle-manager.git (fetch)
origin	git:operator-framework/operator-lifecycle-manager.git (push)
kuiwang@Kuis-MacBook-Pro operator-lifecycle-manager % git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
kuiwang@Kuis-MacBook-Pro operator-lifecycle-manager % git pull origin master
remote: Enumerating objects: 1252, done.
remote: Counting objects: 100% (1252/1252), done.
remote: Compressing objects: 100% (23/23), done.

...

 create mode 100644 vendor/sigs.k8s.io/controller-tools/pkg/webhook/conv.go
 create mode 100644 vendor/sigs.k8s.io/structured-merge-diff/v4/typed/reconcile_schema.go
kuiwang@Kuis-MacBook-Pro operator-lifecycle-manager % git log -n 3 
commit abe648a8b0a1b0187ad6d9a4bb467e0ecfb8bf00 (HEAD -> master, origin/master, origin/HEAD)
Merge: ad067494 20118b45
Author: OpenShift Merge Robot <openshift-merge-robot.github.com>
Date:   Tue Jan 5 23:57:53 2021 -0500

    Merge pull request #1939 from awgreene/fix-operatorcondition-status-verbs
    
    Bug 1905850: Fix operatorcondition role verbs

commit 20118b4535588ce2990b475a009c7e6cda18240a
Author: awgreene <agreene>
Date:   Tue Jan 5 16:43:10 2021 -0500

    Fix operatorcondition role verbs
    
    Problem: The role created to allow operators to modify its
    OperatorCondition/status resource currently contains a string matching
    "get,patch,update" instead of an array of strings consisting of "get",
    "patch", and "update".
    
    Solution: Update the verbs defined for the role to match the expected
    array.

commit ad067494bd051e89678109d2e18d2301ad10fd41
Merge: 8da8401e 7a1432f6
Author: OpenShift Merge Robot <openshift-merge-robot.github.com>
Date:   Tue Jan 5 03:55:06 2021 -0500

    Merge pull request #1918 from exdx/fix/pin-sys
    
    Bug 1912565: update moby/term dependency
kuiwang@Kuis-MacBook-Pro operator-lifecycle-manager % 
kuiwang@Kuis-MacBook-Pro operator-lifecycle-manager % make clean
kuiwang@Kuis-MacBook-Pro operator-lifecycle-manager % make build
go build -mod=vendor -ldflags "-X github.com/operator-framework/operator-lifecycle-manager/pkg/version.GitCommit=abe648a8b0a1b0187ad6d9a4bb467e0ecfb8bf00 -X github.com/operator-framework/operator-lifecycle-manager/pkg/version.OLMVersion=`cat OLM_VERSION`" -tags "json1" -o bin/catalog github.com/operator-framework/operator-lifecycle-manager/cmd/catalog
go build -mod=vendor -ldflags "-X github.com/operator-framework/operator-lifecycle-manager/pkg/version.GitCommit=abe648a8b0a1b0187ad6d9a4bb467e0ecfb8bf00 -X github.com/operator-framework/operator-lifecycle-manager/pkg/version.OLMVersion=`cat OLM_VERSION`" -tags "json1" -o bin/olm github.com/operator-framework/operator-lifecycle-manager/cmd/olm
go build -mod=vendor -ldflags "-X github.com/operator-framework/operator-lifecycle-manager/pkg/version.GitCommit=abe648a8b0a1b0187ad6d9a4bb467e0ecfb8bf00 -X github.com/operator-framework/operator-lifecycle-manager/pkg/version.OLMVersion=`cat OLM_VERSION`" -tags "json1" -o bin/package-server github.com/operator-framework/operator-lifecycle-manager/cmd/package-server
kuiwang@Kuis-MacBook-Pro operator-lifecycle-manager % 

kuiwang@Kuis-MacBook-Pro operator-lifecycle-manager % make clean
kuiwang@Kuis-MacBook-Pro operator-lifecycle-manager % make run-local
GOOS=linux GOARCH=386 go build -mod=vendor -ldflags "-X github.com/operator-framework/operator-lifecycle-manager/pkg/version.GitCommit=abe648a8b0a1b0187ad6d9a4bb467e0ecfb8bf00 -X github.com/operator-framework/operator-lifecycle-manager/pkg/version.OLMVersion=`cat OLM_VERSION`" -tags "json1" -o bin/catalog github.com/operator-framework/operator-lifecycle-manager/cmd/catalog
GOOS=linux GOARCH=386 go build -mod=vendor -ldflags "-X github.com/operator-framework/operator-lifecycle-manager/pkg/version.GitCommit=abe648a8b0a1b0187ad6d9a4bb467e0ecfb8bf00 -X github.com/operator-framework/operator-lifecycle-manager/pkg/version.OLMVersion=`cat OLM_VERSION`" -tags "json1" -o bin/olm github.com/operator-framework/operator-lifecycle-manager/cmd/olm
GOOS=linux GOARCH=386 go build -mod=vendor -ldflags "-X github.com/operator-framework/operator-lifecycle-manager/pkg/version.GitCommit=abe648a8b0a1b0187ad6d9a4bb467e0ecfb8bf00 -X github.com/operator-framework/operator-lifecycle-manager/pkg/version.OLMVersion=`cat OLM_VERSION`" -tags "json1" -o bin/package-server github.com/operator-framework/operator-lifecycle-manager/cmd/package-server
GOOS=linux GOARCH=386 go build -mod=vendor -o bin/wait github.com/operator-framework/operator-lifecycle-manager/test/e2e/wait
CGO_ENABLED=0 GOOS=linux GOARCH=386 go build -mod=vendor -ldflags '-extldflags "-static"' -o bin/cpb ./util/cpb
rm -rf build
. ./scripts/build_local.sh
😄  minikube v1.12.3 on Darwin 10.15.3
    ▪ KUBECONFIG=/Users/kuiwang/work/bin/jb/kubeconf/kubeconfig
🎉  minikube 1.16.0 is available! Download it: https://github.com/kubernetes/minikube/releases/tag/v1.16.0
💡  To disable this notice, run: 'minikube config set WantUpdateNotification false'

✨  Automatically selected the hyperkit driver
💾  Downloading driver docker-machine-driver-hyperkit:
    > docker-machine-driver-hyperkit.sha256: 65 B / 65 B [---] 100.00% ? p/s 0s
    > docker-machine-driver-hyperkit: 10.90 MiB / 10.90 MiB  100.00% 43.09 KiB 
🔑  The 'hyperkit' driver requires elevated permissions. The following commands will be executed:

    $ sudo chown root:wheel /Users/kuiwang/.minikube/bin/docker-machine-driver-hyperkit 
    $ sudo chmod u+s /Users/kuiwang/.minikube/bin/docker-machine-driver-hyperkit 


Password:
💿  Downloading VM boot image ...
    > minikube-v1.12.2.iso.sha256: 65 B / 65 B [-------------] 100.00% ? p/s 0s
    > minikube-v1.12.2.iso: 173.73 MiB / 173.73 MiB [] 100.00% 3.97 MiB p/s 44s
👍  Starting control plane node minikube in cluster minikube
🔥  Creating hyperkit VM (CPUs=2, Memory=4000MB, Disk=20000MB) ...
🐳  Preparing Kubernetes v1.16.4 on Docker 19.03.12 ...
    ▪ apiserver.v=4
    > kubeadm.sha1: 41 B / 41 B [----------------------------] 100.00% ? p/s 0s
    > kubelet.sha1: 41 B / 41 B [----------------------------] 100.00% ? p/s 0s
    > kubectl.sha1: 41 B / 41 B [----------------------------] 100.00% ? p/s 0s
    > kubectl: 44.52 MiB / 44.52 MiB [---------------] 100.00% 1.94 MiB p/s 23s
    > kubeadm: 42.20 MiB / 42.20 MiB [---------------] 100.00% 1.58 MiB p/s 27s
    > kubelet: 117.44 MiB / 117.44 MiB [-------------] 100.00% 2.65 MiB p/s 45s
🔎  Verifying Kubernetes components...
🌟  Enabled addons: default-storageclass, storage-provisioner
🏄  Done! kubectl is now configured to use "minikube"
Switched to context "minikube".
Sending build context to Docker daemon  214.9MB
Step 1/5 : FROM busybox
latest: Pulling from library/busybox
d60bca25ef07: Pull complete 
Digest: sha256:49dae530fd5fee674a6b0d3da89a380fc93746095e7eca0f1b70188a95fd5d71
Status: Downloaded newer image for busybox:latest
 ---> a77dce18d0ec
Step 2/5 : COPY olm catalog package-server wait cpb /bin/
 ---> ff9fd99b89e2
Step 3/5 : EXPOSE 8080
 ---> Running in 60ef9355d35c
Removing intermediate container 60ef9355d35c
 ---> 12ca205f7dbc
Step 4/5 : EXPOSE 5443
 ---> Running in 0030ffbb7380
Removing intermediate container 0030ffbb7380
 ---> 1c2e43835b63
Step 5/5 : CMD ["/bin/olm"]
 ---> Running in 479a31c3f234
Removing intermediate container 479a31c3f234
 ---> 263936e3dcf6
Successfully built 263936e3dcf6
Successfully tagged quay.io/operator-framework/olm:local
Successfully tagged quay.io/operator-framework/olm-e2e:local
Sending build context to Docker daemon  214.9MB
Step 1/3 : FROM scratch
 ---> 
Step 2/3 : COPY wait /bin/wait
 ---> 3fe8fdd8695c
Step 3/3 : CMD ["/bin/wait"]
 ---> Running in 0a0b50a44bab
Removing intermediate container 0a0b50a44bab
 ---> 2fbcaed71ec7
Successfully built 2fbcaed71ec7
Successfully tagged hang:10
mkdir -p build/resources
. ./scripts/package_release.sh 1.0.0 build/resources doc/install/local-values.yaml
sed: 1: "/var/folders/lx/gtd5q85 ...": invalid command code f
WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /Users/kuiwang/work/bin/jb/kubeconf/kubeconfig
WARNING: Kubernetes configuration file is world-readable. This is insecure. Location: /Users/kuiwang/work/bin/jb/kubeconf/kubeconfig
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/crds/0000_50_olm_00-catalogsources.crd.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/crds/0000_50_olm_00-clusterserviceversions.crd.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/crds/0000_50_olm_00-installplans.crd.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/crds/0000_50_olm_00-operatorconditions.crd.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/crds/0000_50_olm_00-operatorgroups.crd.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/crds/0000_50_olm_00-operators.crd.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/crds/0000_50_olm_00-subscriptions.crd.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/templates/0000_50_olm_00-namespace.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/templates/0000_50_olm_00-namespace.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/templates/0000_50_olm_01-olm-operator.serviceaccount.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/templates/0000_50_olm_01-olm-operator.serviceaccount.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/templates/0000_50_olm_09-aggregated.clusterrole.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/templates/0000_50_olm_09-aggregated.clusterrole.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/templates/0000_50_olm_01-olm-operator.serviceaccount.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/templates/0000_50_olm_07-olm-operator.deployment.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/templates/0000_50_olm_08-catalog-operator.deployment.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/templates/0000_50_olm_17-upstream-operators.catalogsource.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/templates/0000_50_olm_15-packageserver.clusterserviceversion.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/templates/0000_50_olm_13-operatorgroup-default.yaml
wrote /var/folders/lx/gtd5q85x6vjbswptk517fxch0000gn/T/tmp.9ueuAlfI/chart/olm/templates/0000_50_olm_13-operatorgroup-default.yaml

. ./scripts/install_local.sh "olm" build/resources
customresourcedefinition.apiextensions.k8s.io/catalogsources.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/clusterserviceversions.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/installplans.operators.coreos.com created
namespace/olm created
namespace/operators created
customresourcedefinition.apiextensions.k8s.io/operatorconditions.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/operatorgroups.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/operators.operators.coreos.com created
customresourcedefinition.apiextensions.k8s.io/subscriptions.operators.coreos.com created
serviceaccount/olm-operator-serviceaccount created
clusterrole.rbac.authorization.k8s.io/system:controller:operator-lifecycle-manager created
clusterrolebinding.rbac.authorization.k8s.io/olm-operator-binding-olm created
deployment.apps/olm-operator created
deployment.apps/catalog-operator created
clusterrole.rbac.authorization.k8s.io/aggregate-olm-edit created
clusterrole.rbac.authorization.k8s.io/aggregate-olm-view created
operatorgroup.operators.coreos.com/global-operators created
operatorgroup.operators.coreos.com/olm-operators created
clusterserviceversion.operators.coreos.com/packageserver created
catalogsource.operators.coreos.com/operatorhubio-catalog created
Waiting for deployment "olm-operator" rollout to finish: 0 of 1 updated replicas are available...
deployment "olm-operator" successfully rolled out
Waiting for deployment "catalog-operator" rollout to finish: 0 of 1 updated replicas are available...
deployment "catalog-operator" successfully rolled out
awaiting olm/packageserver csv installation success
current phase: Installing, remaining attempts: 31
current phase: Installing, remaining attempts: 30
current phase: Installing, remaining attempts: 29
current phase: Installing, remaining attempts: 28
current phase: Installing, remaining attempts: 27
packageserver csv installation succeeded
rm -rf build
kuiwang@Kuis-MacBook-Pro operator-lifecycle-manager % 
--

Comment 5 errata-xmlrpc 2021-02-24 15:49:41 UTC
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 (Moderate: OpenShift Container Platform 4.7.0 security, bug fix, and enhancement update), 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/RHSA-2020:5633


Note You need to log in before you can comment on or make changes to this bug.