Skip to content

Commit 40af111

Browse files
committed
[release-4.17] OCPBUGS-39393: collect some nmstate customresources (#986)
1 parent fe90706 commit 40af111

22 files changed

+4240
-34
lines changed

docs/gathered-data.md

+61-29
Original file line numberDiff line numberDiff line change
@@ -747,29 +747,11 @@ None
747747

748748
## ContainersLogs
749749

750-
Collects either current or previous containers logs for pods firing one of the
751-
alerts from the conditions fetched from insights conditions service.
750+
is used for more dynamic log gathering based on the
751+
[Rapid Recommendations](https://github.com/openshift/enhancements/blob/master/enhancements/insights/rapid-recommendations.md).
752752

753-
### API Reference
754-
None
755-
756-
### Sample data
757-
- [docs/insights-archive-sample/conditional/namespaces/openshift-cluster-samples-operator/pods/cluster-samples-operator-8ffb9b45f-49mjr/containers/cluster-samples-operator-watch/logs/last-100-lines.log](./insights-archive-sample/conditional/namespaces/openshift-cluster-samples-operator/pods/cluster-samples-operator-8ffb9b45f-49mjr/containers/cluster-samples-operator-watch/logs/last-100-lines.log)
758-
759-
### Location in archive
760-
- `conditional/namespaces/{namespace}/pods/{pod}/containers/{container}/{logs|logs-previous}/last-{tail-length}-lines.log`
761-
762-
### Config ID
763-
`conditional/containers_logs`
764-
765-
### Released version
766-
- 4.10.0
767-
768-
### Backported versions
769-
None
770-
771-
### Changes
772-
None
753+
In general this function finds the Pods (and containers) that match the requested data and filters all the container logs
754+
to match the specific messages up to a maximum of 6 hours old.
773755

774756

775757
## CostManagementMetricsConfigs
@@ -1354,6 +1336,56 @@ None
13541336
None
13551337

13561338

1339+
## NodeNetworkConfigurationPolicy
1340+
1341+
Collects cluster scope "nodenetworkconfigurationpolicy.nmstate.io/v1"
1342+
resources
1343+
1344+
### API Reference
1345+
- https://github.com/nmstate/kubernetes-nmstate/blob/main/api/v1/nodenetworkconfigurationpolicy_types.go
1346+
1347+
### Sample data
1348+
- [docs/insights-archive-sample/cluster-scoped-resources/nmstate.io/nodenetworkconfigurationpolicies/etcd-quorum-guard.json](./insights-archive-sample/cluster-scoped-resources/nmstate.io/nodenetworkconfigurationpolicies/etcd-quorum-guard.json)
1349+
1350+
### Location in archive
1351+
- `cluster-scoped-resources/nmstate.io/nodenetworkconfigurationpolicies/{name}.json`
1352+
1353+
### Config ID
1354+
`clusterconfig/nodenetworkconfigurationpolicies`
1355+
1356+
### Released version
1357+
- 4.18.0
1358+
1359+
### Backported versions
1360+
1361+
### Changes
1362+
1363+
1364+
## NodeNetworkState
1365+
1366+
Collects cluster scope "nodenetworkstate.nmstate.io/v1beta1"
1367+
resources
1368+
1369+
### API Reference
1370+
- https://github.com/nmstate/kubernetes-nmstate/blob/main/api/v1beta1/nodenetworkstate_types.go
1371+
1372+
### Sample data
1373+
- [docs/insights-archive-sample/cluster-scoped-resources/nmstate.io/nodenetworkstates/etcd-quorum-guard.json](./insights-archive-sample/cluster-scoped-resources/nmstate.io/nodenetworkstates/etcd-quorum-guard.json)
1374+
1375+
### Location in archive
1376+
- `cluster-scoped-resources/nmstate.io/nodenetworkstates/{name}.json`
1377+
1378+
### Config ID
1379+
`clusterconfig/nodenetworkstates`
1380+
1381+
### Released version
1382+
- 4.18.0
1383+
1384+
### Backported versions
1385+
1386+
### Changes
1387+
1388+
13571389
## Nodes
13581390

13591391
Collects all node resources.
@@ -1607,17 +1639,17 @@ None
16071639

16081640
## OpenstackDataplaneNodeSets
16091641

1610-
Collects `openstackdataplanenodesets.dataplane.openstack.org`
1642+
GatherOpenstackDataplaneNodesets Collects `openstackdataplanenodesets.dataplane.openstack.org`
16111643
resources from all namespaces
16121644

16131645
### API Reference
16141646
None
16151647

16161648
### Sample data
1617-
- [docs/insights-archive-sample/namespaces/openstack/dataplane.openstack.org/openstackdataplanenodesets/openstack-edpm-ipam.json](./insights-archive-sample/namespaces/openstack/dataplane.openstack.org/openstackdataplanenodesets/openstack-edpm-ipam.json)
1649+
- [docs/insights-archive-sample/namespaces/openstack/dataplane.openstack.org/openstackdataplanenodesets/openstack-edpm.json](./insights-archive-sample/namespaces/openstack/dataplane.openstack.org/openstackdataplanenodesets/openstack-edpm.json)
16181650

16191651
### Location in archive
1620-
- `namespaces/{namespace}/dataplane.openstack.org/openstackdataplanenodesets/{name}.json`
1652+
- `namespaces/{namespace}/dataplane.openstack.org/openstackdataplanes/{name}.json`
16211653

16221654
### Config ID
16231655
`clusterconfig/openstack_dataplanenodesets`
@@ -1627,9 +1659,9 @@ None
16271659

16281660
### Changes
16291661
None
1630-
16311662

1632-
## Openstackversions
1663+
1664+
## OpenstackVersions
16331665

16341666
Collects `openstackversion.core.openstack.org`
16351667
resources from all namespaces
@@ -1638,10 +1670,10 @@ resources from all namespaces
16381670
None
16391671

16401672
### Sample data
1641-
- [docs/insights-archive-sample/namespaces/openstack/core.openstack.org/openstackversions/openstack-galera-network-isolation.json](./insights-archive-sample/namespaces/openstack/core.openstack.org/openstackversions/openstack-galera-network-isolation.json)
1673+
- [docs/insights-archive-sample/namespaces/openstack/core.openstack.org/openstackversion/openstack-galera-network-isolation.json](./insights-archive-sample/namespaces/openstack/core.openstack.org/openstackversion/openstack-galera-network-isolation.json)
16421674

16431675
### Location in archive
1644-
- `namespaces/{namespace}/core.openstack.org/openstackversions/{name}.json`
1676+
- `namespaces/{namespace}/core.openstack.org/openstackversion/{name}.json`
16451677

16461678
### Config ID
16471679
`clusterconfig/openstack_version`
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
{
2+
"apiVersion": "nmstate.io/v1",
3+
"kind": "NodeNetworkConfigurationPolicy",
4+
"metadata": {
5+
"annotations": {
6+
"nmstate.io/webhook-mutating-timestamp": "1724753787619122019"
7+
},
8+
"creationTimestamp": "2024-08-27T10:16:27Z",
9+
"generation": 1,
10+
"name": "policy-name",
11+
"resourceVersion": "140132",
12+
"uid": "d5e205ba-b034-42d1-bd93-a1dde9738aeb"
13+
},
14+
"spec": {
15+
"desiredState": {
16+
"interfaces": [
17+
{
18+
"name": "br0",
19+
"state": "up",
20+
"type": "linux-bridge"
21+
}
22+
]
23+
}
24+
},
25+
"status": {
26+
"conditions": [
27+
{
28+
"lastHeartbeatTime": "2024-08-27T11:52:07Z",
29+
"lastTransitionTime": "2024-08-27T11:52:07Z",
30+
"message": "5/5 nodes successfully configured",
31+
"reason": "SuccessfullyConfigured",
32+
"status": "True",
33+
"type": "Available"
34+
},
35+
{
36+
"lastHeartbeatTime": "2024-08-27T11:52:07Z",
37+
"lastTransitionTime": "2024-08-27T11:52:07Z",
38+
"reason": "SuccessfullyConfigured",
39+
"status": "False",
40+
"type": "Degraded"
41+
},
42+
{
43+
"lastHeartbeatTime": "2024-08-27T11:52:07Z",
44+
"lastTransitionTime": "2024-08-27T11:52:07Z",
45+
"reason": "ConfigurationProgressing",
46+
"status": "False",
47+
"type": "Progressing"
48+
}
49+
],
50+
"lastUnavailableNodeCountUpdate": "2024-08-27T10:16:37Z"
51+
}
52+
}

0 commit comments

Comments
 (0)