Comments (9)
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.
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.
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.
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.
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.
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.
I have to resolve #242 (comment) to merge and as a result resolve this issue.
from must-gather.
The backport to fix this is in flight and will be resolved with #242
/close
from must-gather.
@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)
- include CustomResourceDefinition in must-gather HOT 4
- must-gather takes too long to run HOT 4
- images produces from Dockerfile have an old version of oc HOT 4
- Must_Gather pod able to run on SchedulingDisabled node HOT 4
- How to collecte the info in namespaces gpu-operator-resources to Must-gather archive HOT 6
- Include insights-operator archive in must-gather HOT 3
- Include IPv4 and IPv6 Route Cache Entries in networking must gather HOT 3
- elide secret data from must-gather HOT 5
- `HostSubnet` resources not collected from must-gather HOT 14
- [RFE] Add the version of the branch to the version file HOT 13
- Gather the same information from OLM managed Operators as from ClusterOperators HOT 9
- Can't pull ose-must-gather container HOT 1
- [RFE] Include the output of oc describe nodes in the must-gather HOT 15
- [RFE] Collect additional information about all pods in the cluster HOT 8
- RFE - Create a dir in ceph/must_gather_commands to hold all ceph crash outputs HOT 3
- must-gather.log spams logs about egressfirewalls and egressqoses HOT 8
- Add the leases.coordination.k8s.io as one of the collected resources
- EDIT: wrong repo HOT 2
- [RFE] Adding the missing clusterresourcequota and Flowcontrol HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from must-gather.