Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OCPBUGS-39111: collect some nmstate customresources #986

Merged
merged 1 commit into from
Sep 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 62 additions & 9 deletions docs/gathered-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -748,8 +748,11 @@ None

## ContainersLogs

refers to the Rapid Recommendations
(see https://github.com/openshift/enhancements/blob/master/enhancements/insights/rapid-recommendations.md).
is used for more dynamic log gathering based on the
[Rapid Recommendations](https://github.com/openshift/enhancements/blob/master/enhancements/insights/rapid-recommendations.md).

In general this function finds the Pods (and containers) that match the requested data and filters all the container logs
to match the specific messages up to a maximum of 6 hours old.


## CostManagementMetricsConfigs
Expand Down Expand Up @@ -1334,6 +1337,56 @@ None
None


## NodeNetworkConfigurationPolicy

Collects cluster scope "nodenetworkconfigurationpolicy.nmstate.io/v1"
resources

### API Reference
- https://github.com/nmstate/kubernetes-nmstate/blob/main/api/v1/nodenetworkconfigurationpolicy_types.go

### Sample data
- [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)

### Location in archive
- `cluster-scoped-resources/nmstate.io/nodenetworkconfigurationpolicies/{name}.json`

### Config ID
`clusterconfig/nodenetworkconfigurationpolicies`

### Released version
- 4.18.0

### Backported versions

### Changes


## NodeNetworkState

Collects cluster scope "nodenetworkstate.nmstate.io/v1beta1"
resources

### API Reference
- https://github.com/nmstate/kubernetes-nmstate/blob/main/api/v1beta1/nodenetworkstate_types.go

### Sample data
- [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)

### Location in archive
- `cluster-scoped-resources/nmstate.io/nodenetworkstates/{name}.json`

### Config ID
`clusterconfig/nodenetworkstates`

### Released version
- 4.18.0

### Backported versions

### Changes


## Nodes

Collects all node resources.
Expand Down Expand Up @@ -1587,17 +1640,17 @@ None

## OpenstackDataplaneNodeSets

Collects `openstackdataplanenodesets.dataplane.openstack.org`
GatherOpenstackDataplaneNodesets Collects `openstackdataplanenodesets.dataplane.openstack.org`
resources from all namespaces

### API Reference
None

### Sample data
- [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)
- [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)

### Location in archive
- `namespaces/{namespace}/dataplane.openstack.org/openstackdataplanenodesets/{name}.json`
- `namespaces/{namespace}/dataplane.openstack.org/openstackdataplanes/{name}.json`

### Config ID
`clusterconfig/openstack_dataplanenodesets`
Expand All @@ -1607,9 +1660,9 @@ None

### Changes
None


## Openstackversions

## OpenstackVersions

Collects `openstackversion.core.openstack.org`
resources from all namespaces
Expand All @@ -1618,10 +1671,10 @@ resources from all namespaces
None

### Sample data
- [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)
- [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)

### Location in archive
- `namespaces/{namespace}/core.openstack.org/openstackversions/{name}.json`
- `namespaces/{namespace}/core.openstack.org/openstackversion/{name}.json`

### Config ID
`clusterconfig/openstack_version`
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"apiVersion": "nmstate.io/v1",
"kind": "NodeNetworkConfigurationPolicy",
"metadata": {
"annotations": {
"nmstate.io/webhook-mutating-timestamp": "1724753787619122019"
},
"creationTimestamp": "2024-08-27T10:16:27Z",
"generation": 1,
"name": "policy-name",
"resourceVersion": "140132",
"uid": "d5e205ba-b034-42d1-bd93-a1dde9738aeb"
},
"spec": {
"desiredState": {
"interfaces": [
{
"name": "br0",
"state": "up",
"type": "linux-bridge"
}
]
}
},
"status": {
"conditions": [
{
"lastHeartbeatTime": "2024-08-27T11:52:07Z",
"lastTransitionTime": "2024-08-27T11:52:07Z",
"message": "5/5 nodes successfully configured",
"reason": "SuccessfullyConfigured",
"status": "True",
"type": "Available"
},
{
"lastHeartbeatTime": "2024-08-27T11:52:07Z",
"lastTransitionTime": "2024-08-27T11:52:07Z",
"reason": "SuccessfullyConfigured",
"status": "False",
"type": "Degraded"
},
{
"lastHeartbeatTime": "2024-08-27T11:52:07Z",
"lastTransitionTime": "2024-08-27T11:52:07Z",
"reason": "ConfigurationProgressing",
"status": "False",
"type": "Progressing"
}
],
"lastUnavailableNodeCountUpdate": "2024-08-27T10:16:37Z"
}
}
Loading