Bug 1843342 - No way to check installed kuryr-k8s-controller package version within pod
Summary: No way to check installed kuryr-k8s-controller package version within pod
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Networking
Version: 4.3.0
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
: 4.6.0
Assignee: Michał Dulko
QA Contact: GenadiC
URL:
Whiteboard:
Depends On:
Blocks: 1845914
TreeView+ depends on / blocked
 
Reported: 2020-06-03 05:20 UTC by rehan
Modified: 2023-10-06 20:23 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
: 1845914 (view as bug list)
Environment:
Last Closed: 2020-10-27 16:04:37 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github openshift kuryr-kubernetes pull 267 0 None closed Bug 1843342: Get RPM and Kuryr version from git 2020-12-04 07:34:31 UTC
Red Hat Product Errata RHBA-2020:4196 0 None None None 2020-10-27 16:04:59 UTC

Description rehan 2020-06-03 05:20:29 UTC
Description of problem:

While checking installed kuryr-k8s-controller package version within pod it is giving wrong output.

It would be good if the package version and the service version were consistent. Now the --version call returns zero:

~~~
(venv) [builr@HGH openshift]$ kubectl exec kuryr-controller-5747b7f-tnc86 -n openshift-kuryr -- kuryr-k8s-controller --version
0.0.0

(venv) [builr@HG openshift]$ kubectl exec kuryr-controller-5747b7f-tnc86 -n openshift-kuryr -- pip3 freeze | grep kuryr
kuryr-kubernetes==0.0.0
kuryr-lib==1.1.1
~~~

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


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:

The output of the command returns zero.

Expected results:

Its should give the proper version number from the output of the command.

Additional info:

Comment 5 Michał Dulko 2020-06-16 12:30:57 UTC
I'll just go ahead and mark it as VERIFIED, it's clearly working fine now with both OKD and OCP's 4.6.0-0.nightly-2020-06-16-105323:

mdulko:~/ $ docker run -it --entrypoint bash quay.io/openshift/origin-kuryr-controller:4.6.0
bash-4.4$ kuryr-k8s-controller --version
4.6.0
bash-4.4$ python3 -m pip freeze | grep kuryr-kubernetes
kuryr-kubernetes==4.6.0
mdulko:~/ $ docker run -it registry.svc.ci.openshift.org/ocp/release:4.6.0-0.nightly-2020-06-16-105323 image kuryr-controller
Unable to find image 'registry.svc.ci.openshift.org/ocp/release:4.6.0-0.nightly-2020-06-16-105323' locally
4.6.0-0.nightly-2020-06-16-105323: Pulling from ocp/release
a3ac36470b00: Pull complete 
82a8f4ea76cb: Pull complete 
d094068878fd: Pull complete 
fcbeb171efe1: Pull complete 
50ab3a42c67a: Pull complete 
bf95fc75ee27: Pull complete 
Digest: sha256:fb8c851a294c3a8f7bb206d79a294bdcd1f39e0909d502da3eff224dbcefbed1
Status: Downloaded newer image for registry.svc.ci.openshift.org/ocp/release:4.6.0-0.nightly-2020-06-16-105323
quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:c6db5fc0db9f9532b3962355e40aad5cf77e3f20eaff617fa11339804addd1ba%                                                                        mdulko:~/ $ docker run -it --entrypoint bash quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:c6db5fc0db9f9532b3962355e40aad5cf77e3f20eaff617fa11339804addd1ba
Unable to find image 'quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:c6db5fc0db9f9532b3962355e40aad5cf77e3f20eaff617fa11339804addd1ba' locally
sha256:c6db5fc0db9f9532b3962355e40aad5cf77e3f20eaff617fa11339804addd1ba: Pulling from openshift-release-dev/ocp-v4.0-art-dev
1a6747857d79: Already exists 
fc5aa93e3b58: Already exists 
bc972d59d264: Pull complete 
19a01a9d3452: Pull complete 
Digest: sha256:c6db5fc0db9f9532b3962355e40aad5cf77e3f20eaff617fa11339804addd1ba
Status: Downloaded newer image for quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:c6db5fc0db9f9532b3962355e40aad5cf77e3f20eaff617fa11339804addd1ba
bash-4.4$ kuryr-k8s-controller --version
4.6.0
bash-4.4$ python3 -m pip freeze | grep kuryr-kubernetes
The directory '/var/lib/kuryr/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
kuryr-kubernetes==4.6.0

Comment 6 rehan 2020-06-17 01:10:59 UTC
(In reply to Michał Dulko from comment #5)
> I'll just go ahead and mark it as VERIFIED, it's clearly working fine now
> with both OKD and OCP's 4.6.0-0.nightly-2020-06-16-105323:
> 
> mdulko:~/ $ docker run -it --entrypoint bash
> quay.io/openshift/origin-kuryr-controller:4.6.0
> bash-4.4$ kuryr-k8s-controller --version
> 4.6.0
> bash-4.4$ python3 -m pip freeze | grep kuryr-kubernetes
> kuryr-kubernetes==4.6.0
> mdulko:~/ $ docker run -it
> registry.svc.ci.openshift.org/ocp/release:4.6.0-0.nightly-2020-06-16-105323
> image kuryr-controller
> Unable to find image
> 'registry.svc.ci.openshift.org/ocp/release:4.6.0-0.nightly-2020-06-16-
> 105323' locally
> 4.6.0-0.nightly-2020-06-16-105323: Pulling from ocp/release
> a3ac36470b00: Pull complete 
> 82a8f4ea76cb: Pull complete 
> d094068878fd: Pull complete 
> fcbeb171efe1: Pull complete 
> 50ab3a42c67a: Pull complete 
> bf95fc75ee27: Pull complete 
> Digest:
> sha256:fb8c851a294c3a8f7bb206d79a294bdcd1f39e0909d502da3eff224dbcefbed1
> Status: Downloaded newer image for
> registry.svc.ci.openshift.org/ocp/release:4.6.0-0.nightly-2020-06-16-105323
> quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:
> c6db5fc0db9f9532b3962355e40aad5cf77e3f20eaff617fa11339804addd1ba%           
> mdulko:~/ $ docker run -it --entrypoint bash
> quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:
> c6db5fc0db9f9532b3962355e40aad5cf77e3f20eaff617fa11339804addd1ba
> Unable to find image
> 'quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:
> c6db5fc0db9f9532b3962355e40aad5cf77e3f20eaff617fa11339804addd1ba' locally
> sha256:c6db5fc0db9f9532b3962355e40aad5cf77e3f20eaff617fa11339804addd1ba:
> Pulling from openshift-release-dev/ocp-v4.0-art-dev
> 1a6747857d79: Already exists 
> fc5aa93e3b58: Already exists 
> bc972d59d264: Pull complete 
> 19a01a9d3452: Pull complete 
> Digest:
> sha256:c6db5fc0db9f9532b3962355e40aad5cf77e3f20eaff617fa11339804addd1ba
> Status: Downloaded newer image for
> quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:
> c6db5fc0db9f9532b3962355e40aad5cf77e3f20eaff617fa11339804addd1ba
> bash-4.4$ kuryr-k8s-controller --version
> 4.6.0
> bash-4.4$ python3 -m pip freeze | grep kuryr-kubernetes
> The directory '/var/lib/kuryr/.cache/pip/http' or its parent directory is
> not owned by the current user and the cache has been disabled. Please check
> the permissions and owner of that directory. If executing pip with sudo, you
> may want sudo's -H flag.
> kuryr-kubernetes==4.6.0


Hi, 

Thanks for an update. 
What about version 4.3? 

Can this be back-ported to the previous version the customer is using? As the customer is on 4.3 OpenShift. 

Regards,
Rehan

Comment 7 Michał Dulko 2020-06-18 08:04:56 UTC
(In reply to rehan from comment #6)
> (In reply to Michał Dulko from comment #5)
> > I'll just go ahead and mark it as VERIFIED, it's clearly working fine now
> > with both OKD and OCP's 4.6.0-0.nightly-2020-06-16-105323:
> > 
> > mdulko:~/ $ docker run -it --entrypoint bash
> > quay.io/openshift/origin-kuryr-controller:4.6.0
> > bash-4.4$ kuryr-k8s-controller --version
> > 4.6.0
> > bash-4.4$ python3 -m pip freeze | grep kuryr-kubernetes
> > kuryr-kubernetes==4.6.0
> > mdulko:~/ $ docker run -it
> > registry.svc.ci.openshift.org/ocp/release:4.6.0-0.nightly-2020-06-16-105323
> > image kuryr-controller
> > Unable to find image
> > 'registry.svc.ci.openshift.org/ocp/release:4.6.0-0.nightly-2020-06-16-
> > 105323' locally
> > 4.6.0-0.nightly-2020-06-16-105323: Pulling from ocp/release
> > a3ac36470b00: Pull complete 
> > 82a8f4ea76cb: Pull complete 
> > d094068878fd: Pull complete 
> > fcbeb171efe1: Pull complete 
> > 50ab3a42c67a: Pull complete 
> > bf95fc75ee27: Pull complete 
> > Digest:
> > sha256:fb8c851a294c3a8f7bb206d79a294bdcd1f39e0909d502da3eff224dbcefbed1
> > Status: Downloaded newer image for
> > registry.svc.ci.openshift.org/ocp/release:4.6.0-0.nightly-2020-06-16-105323
> > quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:
> > c6db5fc0db9f9532b3962355e40aad5cf77e3f20eaff617fa11339804addd1ba%           
> > mdulko:~/ $ docker run -it --entrypoint bash
> > quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:
> > c6db5fc0db9f9532b3962355e40aad5cf77e3f20eaff617fa11339804addd1ba
> > Unable to find image
> > 'quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:
> > c6db5fc0db9f9532b3962355e40aad5cf77e3f20eaff617fa11339804addd1ba' locally
> > sha256:c6db5fc0db9f9532b3962355e40aad5cf77e3f20eaff617fa11339804addd1ba:
> > Pulling from openshift-release-dev/ocp-v4.0-art-dev
> > 1a6747857d79: Already exists 
> > fc5aa93e3b58: Already exists 
> > bc972d59d264: Pull complete 
> > 19a01a9d3452: Pull complete 
> > Digest:
> > sha256:c6db5fc0db9f9532b3962355e40aad5cf77e3f20eaff617fa11339804addd1ba
> > Status: Downloaded newer image for
> > quay.io/openshift-release-dev/ocp-v4.0-art-dev@sha256:
> > c6db5fc0db9f9532b3962355e40aad5cf77e3f20eaff617fa11339804addd1ba
> > bash-4.4$ kuryr-k8s-controller --version
> > 4.6.0
> > bash-4.4$ python3 -m pip freeze | grep kuryr-kubernetes
> > The directory '/var/lib/kuryr/.cache/pip/http' or its parent directory is
> > not owned by the current user and the cache has been disabled. Please check
> > the permissions and owner of that directory. If executing pip with sudo, you
> > may want sudo's -H flag.
> > kuryr-kubernetes==4.6.0
> 
> 
> Hi, 
> 
> Thanks for an update. 
> What about version 4.3? 
> 
> Can this be back-ported to the previous version the customer is using? As
> the customer is on 4.3 OpenShift. 
> 
> Regards,
> Rehan

The backport is in progress, but due to complicated process (each fix needs to be backported and verified in all previous versions before being able to merge it) it will for sure take some more time. Please follow https://bugzilla.redhat.com/show_bug.cgi?id=1845923 for status of 4.3 backport.

Comment 9 errata-xmlrpc 2020-10-27 16:04:37 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 (OpenShift Container Platform 4.6 GA Images), 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:4196


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