Giter VIP home page Giter VIP logo

Comments (9)

sferich888 avatar sferich888 commented on September 26, 2024 1

Correct; https://github.com/openshift/must-gather/tree/release-4.6/collection-scripts doesn't have the script so its not collecting the proper information. We would need to backport #182 to 4.6 for this to work.

I created: #242 to start this packport process.

from must-gather.

mtulio avatar mtulio commented on September 26, 2024

The client seems not to follow the cluster Y version, but seems not to be related with arg errors as --dest-dir is available on 4.2:

$ podman run --rm -it quay.io/openshift/origin-must-gather:4.6 /bin/bash -c 'oc version'
Client Version: v4.2.0-alpha.0-859-gaaa9ca3

$ podman run --rm -it quay.io/openshift/origin-must-gather:4.6 /bin/bash -c 'oc adm inspect -h' |grep dest-dir
      --dest-dir='': Root directory used for storing all gathered cluster operator data. Defaults to

from must-gather.

mtulio avatar mtulio commented on September 26, 2024

Same issue on OCP 4.7

[1] default must-gather

$ declare -r OCP_VERSION=$(oc get clusterversion version --template='{{.status.desired.version}}' |sed -n -r 's/([[:digit:]]\.[[:digit:]]).*/\1/p')

$ echo ${OCP_VERSION}
4.7

$ oc adm must-gather     --dest-dir=must-gather-general     --image=quay.io/openshift/origin-must-gather:"${OCP_VERSION}"

$ tree -a must-gather-general/*cluster-scoped-resources/operators.coreos.com/operators
must-gather-general/*cluster-scoped-resources/operators.coreos.com/operators [error opening dir]

0 directories, 0 files

[quicklab@upi-0 mrb]$ tree -a must-gather-general/*cluster-scoped-resources/operators.coreos.com/operators
must-gather-general/*cluster-scoped-resources/operators.coreos.com/operators [error opening dir]

0 directories, 0 files
[quicklab@upi-0 mrb]$ tree -a must-gather-general/*namespaces/openshift-marketplace/operators.coreos.com/catalogsources
must-gather-general/*namespaces/openshift-marketplace/operators.coreos.com/catalogsources [error opening dir]

0 directories, 0 files

[2]

$ oc adm must-gather     --dest-dir=must-gather-general-olm     --image=quay.io/openshift/origin-must-gather:"${OCP_VERSION}" -- /usr/bin/gather_olm
$ tree -a must-gather-general-olm/*cluster-scoped-resources/operators.coreos.com/operators
must-gather-general-olm/*cluster-scoped-resources/operators.coreos.com/operators [error opening dir]

0 directories, 0 files

[3]

$ oc adm inspect --dest-dir=must-gather-olm -A olm
Wrote inspect data to must-gather-olm.
$ tree -a must-gather-olm/*cluster-scoped-resources/operators.coreos.com/operators
must-gather-olm/cluster-scoped-resources/operators.coreos.com/operators
└── metering-ocp.openshift-metering.yaml

0 directories, 1 file

$ tree -a must-gather-olm/*namespaces/openshift-marketplace/operators.coreos.com/catalogsources
must-gather-olm/namespaces/openshift-marketplace/operators.coreos.com/catalogsources
├── certified-operators.yaml
├── community-operators.yaml
├── redhat-marketplace.yaml
└── redhat-operators.yaml

0 directories, 4 files

$ ls 
must-gather-general  must-gather-general-olm  must-gather-olm

from must-gather.

mtulio avatar mtulio commented on September 26, 2024

Why recent scripts is not ported to current supported OCP images. Eg gather_olm is not included on tag 4.6 image?

$ podman run --rm -v ${HOME}/.kube/config:/root/.kube/config:z -it quay.io/openshift/origin-must-gather:4.6 /bin/bash -c "ls -sl /usr/bin/gather*"
 4 -rwxr-xr-x. 1 root root 1397 Mar 11 15:33 /usr/bin/gather
 4 -rwxr-xr-x. 1 root root 1205 Mar 11 15:33 /usr/bin/gather_audit_logs
 4 -rwxr-xr-x. 1 root root 1814 Mar 11 15:33 /usr/bin/gather_core_dumps
 4 -rwxr-xr-x. 1 root root 1935 Mar 11 15:33 /usr/bin/gather_etcd
12 -rwxr-xr-x. 1 root root 9557 Mar 11 15:33 /usr/bin/gather_network_logs
 8 -rwxr-xr-x. 1 root root 8030 Mar 11 15:33 /usr/bin/gather_network_ovn_trace
 4 -rwxr-xr-x. 1 root root 1871 Mar 11 15:33 /usr/bin/gather_service_logs
 4 -rwxr-xr-x. 1 root root 1252 Mar 11 15:33 /usr/bin/gather_windows_node_logs

$ podman run --rm -v ${HOME}/.kube/config:/root/.kube/config:z -it quay.io/openshift/origin-must-gather:4.7 /bin/bash -c "ls -sl /usr/bin/gather*"

 4 -rwxr-xr-x. 1 root root  1999 Jan 25 18:45 /usr/bin/gather
 4 -rwxr-xr-x. 1 root root   328 Jan 25 18:45 /usr/bin/gather_admission_webhooks
 4 -rwxr-xr-x. 1 root root  1205 Jan 25 18:45 /usr/bin/gather_audit_logs
 4 -rwxr-xr-x. 1 root root  1812 Jan 25 18:45 /usr/bin/gather_core_dumps
 4 -rwxr-xr-x. 1 root root  1935 Jan 25 18:45 /usr/bin/gather_etcd
 4 -rwxr-xr-x. 1 root root  1075 Jan 25 18:45 /usr/bin/gather_haproxy_config
16 -rwxr-xr-x. 1 root root 13760 Jan 25 18:45 /usr/bin/gather_network_logs
 8 -rwxr-xr-x. 1 root root  8030 Jan 25 18:45 /usr/bin/gather_network_ovn_trace
 4 -rwxr-xr-x. 1 root root    66 Jan 25 18:45 /usr/bin/gather_olm
 4 -rwxr-xr-x. 1 root root  1539 Jan 25 18:45 /usr/bin/gather_service_logs
 4 -rw-r--r--. 1 root root  1424 Jan 25 18:45 /usr/bin/gather_service_logs_util
 4 -rwxr-xr-x. 1 root root  1252 Jan 25 18:45 /usr/bin/gather_windows_node_logs

$ podman run --rm -v ${HOME}/.kube/config:/root/.kube/config:z -it quay.io/openshift/origin-must-gather:4.8 /bin/bash -c "ls -sl /usr/bin/gather*"

 4 -rwxr-xr-x. 1 root root  2227 Jun 10 15:04 /usr/bin/gather
 4 -rwxr-xr-x. 1 root root   328 Jun 10 15:04 /usr/bin/gather_admission_webhooks
 4 -rwxr-xr-x. 1 root root  1232 Jun 10 15:04 /usr/bin/gather_audit_logs
 4 -rwxr-xr-x. 1 root root  1812 Jun 10 15:04 /usr/bin/gather_core_dumps
 4 -rwxr-xr-x. 1 root root  1935 Jun 10 15:04 /usr/bin/gather_etcd
 4 -rwxr-xr-x. 1 root root  1075 Jun 10 15:04 /usr/bin/gather_haproxy_config
 4 -rwxr-xr-x. 1 root root  1063 Jun 10 15:04 /usr/bin/gather_monitoring
16 -rwxr-xr-x. 1 root root 15650 Jun 10 15:04 /usr/bin/gather_network_logs
 8 -rwxr-xr-x. 1 root root  8030 Jun 10 15:04 /usr/bin/gather_network_ovn_trace
 4 -rwxr-xr-x. 1 root root    66 Jun 10 15:04 /usr/bin/gather_olm
 4 -rwxr-xr-x. 1 root root  3363 Jun 10 15:04 /usr/bin/gather_priority_and_fairness
 4 -rwxr-xr-x. 1 root root  1628 Jun 10 15:04 /usr/bin/gather_service_logs
 4 -rw-r--r--. 1 root root  1424 Jun 10 15:04 /usr/bin/gather_service_logs_util
 4 -rwxr-xr-x. 1 root root  1252 Jun 10 15:04 /usr/bin/gather_windows_node_logs

from must-gather.

openshift-bot avatar openshift-bot commented on September 26, 2024

Issues go stale after 90d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle stale

from must-gather.

openshift-bot avatar openshift-bot commented on September 26, 2024

Stale issues rot after 30d of inactivity.

Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.

If this issue is safe to close now please do so with /close.

/lifecycle rotten
/remove-lifecycle stale

from must-gather.

sferich888 avatar sferich888 commented on September 26, 2024

I have to resolve #242 (comment) to merge and as a result resolve this issue.

from must-gather.

sferich888 avatar sferich888 commented on September 26, 2024

The backport to fix this is in flight and will be resolved with #242

/close

from must-gather.

openshift-ci avatar openshift-ci commented on September 26, 2024

@sferich888: Closing this issue.

In response to this:

The backport to fix this is in flight and will be resolved with #242

/close

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.

from must-gather.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.