Bug 1967695
| Summary: | managedFields is missing in provisioning-configuration json object | ||
|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Lubov <lshilin> |
| Component: | Installer | Assignee: | sdasu |
| Installer sub component: | OpenShift on Bare Metal IPI | QA Contact: | Ori Michaeli <omichael> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | low | CC: | aguclu, elgerman, rpittau |
| Version: | 4.8 | Keywords: | Triaged |
| Target Milestone: | --- | Flags: | omichael:
needinfo-
|
| Target Release: | 4.9.0 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | No Doc Update | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-10-18 17:32:38 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
According to the upstream https://github.com/kubernetes/kubernetes/pull/96878, managedFields is removed in default case and instead new parameter "--show-manager-fields" is introduced(kubernetes 1.21+). Could you please try; oc get provisioning/provisioning-configuration --show-managed-fields -o json it shows managedFields as expected. Verified with 4.9.0-0.nightly-2021-08-16-154237: managedFields shows as expected.
[kni@provisionhost-0-0 ~]$ oc get provisioning/provisioning-configuration --show-managed-fields -o json
{
"apiVersion": "metal3.io/v1alpha1",
"kind": "Provisioning",
"metadata": {
"creationTimestamp": "2021-08-17T06:08:30Z",
"finalizers": [
"provisioning.metal3.io"
],
"generation": 2,
"managedFields": [
{
"apiVersion": "metal3.io/v1alpha1",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:spec": {
".": {},
"f:provisioningDHCPRange": {},
"f:provisioningIP": {},
"f:provisioningInterface": {},
"f:provisioningNetwork": {},
"f:provisioningNetworkCIDR": {},
"f:provisioningOSDownloadURL": {}
}
},
"manager": "cluster-bootstrap",
"operation": "Update",
"time": "2021-08-17T06:08:30Z"
},
{
"apiVersion": "metal3.io/v1alpha1",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:metadata": {
"f:finalizers": {
".": {},
"v:\"provisioning.metal3.io\"": {}
}
},
"f:spec": {
"f:preProvisioningOSDownloadURLs": {}
}
},
"manager": "cluster-baremetal-operator",
"operation": "Update",
"time": "2021-08-17T06:33:40Z"
},
{
"apiVersion": "metal3.io/v1alpha1",
"fieldsType": "FieldsV1",
"fieldsV1": {
"f:status": {
".": {},
"f:generations": {},
"f:observedGeneration": {},
"f:readyReplicas": {}
}
},
"manager": "cluster-baremetal-operator",
"operation": "Update",
"subresource": "status",
"time": "2021-08-17T06:33:52Z"
}
],
"name": "provisioning-configuration",
"resourceVersion": "12390",
"uid": "c60acf6b-85dd-414b-b0bb-b06e58c64bb9"
},
"spec": {
"preProvisioningOSDownloadURLs": {},
"provisioningDHCPRange": "fd00:1101:0:1::a,fd00:1101:0:1:ffff:ffff:ffff:fffe",
"provisioningIP": "fd00:1101:0:1::3",
"provisioningInterface": "enp0s3",
"provisioningNetwork": "Managed",
"provisioningNetworkCIDR": "fd00:1101:0:1::/64",
"provisioningOSDownloadURL": "http://registry.ocp-edge-cluster-0.qe.lab.redhat.com:8080/images/rhcos-49.84.202107010027-0-openstack.x86_64.qcow2.gz?sha256=00cb56c8711686255744646394e22a8ca5f27e059016f6758f14388e5a0a14cb"
},
"status": {
"generations": [
{
"group": "apps",
"hash": "",
"lastGeneration": 1,
"name": "metal3",
"namespace": "openshift-machine-api",
"resource": "deployments"
},
{
"group": "apps",
"hash": "",
"lastGeneration": 1,
"name": "metal3-image-cache",
"namespace": "openshift-machine-api",
"resource": "daemonsets"
}
],
"observedGeneration": 2,
"readyReplicas": 0
}
}
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 (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), 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/RHSA-2021:3759 |
Version: ./openshift-baremetal-install version ./openshift-baremetal-install 4.8.0-0.nightly-2021-06-01-043518 built from commit 93e8ccecc1d5ddc07189e0f83a44adc033068269 release image registry.ci.openshift.org/ocp/release@sha256:69dab4d1c934743f829117f0a8343fbec4fa061cf62709a2d7f740ae1fa1d1d0 Platform: IPI What happened? managedFields is missing in output of oc get provisioning/provisioning-configuration -o json on 4.6 it was { "apiVersion": "metal3.io/v1alpha1", "kind": "Provisioning", "metadata": { "creationTimestamp": "2021-06-02T21:57:56Z", "generation": 1, "managedFields": [ { "apiVersion": "metal3.io/v1alpha1", "fieldsType": "FieldsV1", "fieldsV1": { "f:spec": { ".": {}, "f:provisioningDHCPRange": {}, "f:provisioningIP": {}, "f:provisioningInterface": {}, "f:provisioningNetwork": {}, "f:provisioningNetworkCIDR": {}, "f:provisioningOSDownloadURL": {} } }, "manager": "cluster-bootstrap", "operation": "Update", "time": "2021-06-02T21:57:56Z" } ], "name": "provisioning-configuration", "resourceVersion": "1850", "selfLink": "/apis/metal3.io/v1alpha1/provisionings/provisioning-configuration", "uid": "d834b183-285b-4831-8db1-527ab7b3922c" }, "spec": { "provisioningDHCPRange": "fd00:1101:0:1::a,fd00:1101:0:1:ffff:ffff:ffff:fffe", "provisioningIP": "fd00:1101:0:1::3", "provisioningInterface": "enp0s3", "provisioningNetwork": "Managed", "provisioningNetworkCIDR": "fd00:1101:0:1::/64", "provisioningOSDownloadURL": "http://registry.ocp-edge-cluster-0.qe.lab.redhat.com:8080/images/rhcos-46.82.202011260640-0-openstack.x86_64.qcow2.gz?sha256=2bd648e09f086973accd8ac1e355ce0fcd7dfcc16bc9708c938801fcf10e219e" } } on 4.8 { "apiVersion": "metal3.io/v1alpha1", "kind": "Provisioning", "metadata": { "annotations": { "kubectl.kubernetes.io/last-applied-configuration": "{\"apiVersion\":\"metal3.io/v1alpha1\",\"kind\":\"Provisioning\",\"metadata\":{\"annotations\":{},\"creationTimestamp\":\"2021-06-01T12:22:26Z\",\"finalizers\":[\"provisioning.metal3.io\"],\"generation\":2,\"name\":\"provisioning-configuration\",\"resourceVersion\":\"8665\",\"uid\":\"8e069cff-59b9-4a1d-b78f-1764ef575433\"},\"spec\":{\"provisioningDHCPRange\":\"fd00:1101:0:1::a,fd00:1101:0:1:ffff:ffff:ffff:fffe\",\"provisioningIP\":\"fd00:1101:0:1::3\",\"provisioningInterface\":\"enp4s0\",\"provisioningNetwork\":\"Managed\",\"provisioningNetworkCIDR\":\"fd00:1101:0:1::/64\",\"provisioningOSDownloadURL\":\"http://registry.ocp-edge-cluster-0.qe.lab.redhat.com:8080/images/rhcos-48.84.202105190318-0-openstack.x86_64.qcow2.gz?sha256=82d4540048f887c33c635397ce772867e192c72a349ff73d9b5ce66e08ab3274\"},\"status\":{\"generations\":[{\"group\":\"apps\",\"hash\":\"\",\"lastGeneration\":1,\"name\":\"metal3\",\"namespace\":\"openshift-machine-api\",\"resource\":\"deployments\"},{\"group\":\"apps\",\"hash\":\"\",\"lastGeneration\":1,\"name\":\"metal3-image-cache\",\"namespace\":\"openshift-machine-api\",\"resource\":\"daemonsets\"}],\"observedGeneration\":2,\"readyReplicas\":0}}\n" }, "creationTimestamp": "2021-06-02T19:02:09Z", "finalizers": [ "provisioning.metal3.io" ], "generation": 1, "name": "provisioning-configuration", "resourceVersion": "693563", "uid": "7a9405fe-b3cc-4a85-991d-6748bea493b2" }, "spec": { "provisioningDHCPRange": "fd00:1101:0:1::a,fd00:1101:0:1:ffff:ffff:ffff:fffe", "provisioningIP": "fd00:1101:0:1::3", "provisioningInterface": "enp4s0", "provisioningNetwork": "Managed", "provisioningNetworkCIDR": "fd00:1101:0:1::/64", "provisioningOSDownloadURL": "http://registry.ocp-edge-cluster-0.qe.lab.redhat.com:8080/images/rhcos-48.84.202105190318-0-openstack.x86_64.qcow2.gz?sha256=82d4540048f887c33c635397ce772867e192c72a349ff73d9b5ce66e08ab3274" }, "status": { "generations": [ { "group": "apps", "hash": "", "lastGeneration": 1, "name": "metal3", "namespace": "openshift-machine-api", "resource": "deployments" }, { "group": "apps", "hash": "", "lastGeneration": 1, "name": "metal3-image-cache", "namespace": "openshift-machine-api", "resource": "daemonsets" } ], "observedGeneration": 1, "readyReplicas": 0 } } What did you expect to happen? The field should be listed How to reproduce it (as minimally and precisely as possible)? $ oc get provisioning/provisioning-configuration -o json Anything else we need to know? on 4.7 the field was listed as well