Bug 1540729
| Summary: | [free-int] metrics upgrade exits with error: The PersistentVolumeClaim "metrics-cassandra-3" is invalid: spec: Forbidden: field is immutable after creation | ||||||
|---|---|---|---|---|---|---|---|
| Product: | OpenShift Container Platform | Reporter: | Justin Pierce <jupierce> | ||||
| Component: | Installer | Assignee: | ewolinet | ||||
| Status: | CLOSED ERRATA | QA Contact: | Junqi Zhao <juzhao> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 3.9.0 | CC: | anli, aos-bugs, jokerman, mmccomas | ||||
| Target Milestone: | --- | Keywords: | DeliveryBlocker | ||||
| Target Release: | 3.9.0 | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||
| Doc Text: |
Cause: The method that was used to create PVCs for the openshift-metrics role was not idempotently done.
Consequence: An immutable field would try to be updated if the PVC already existed.
Fix: We only generate a template to oc apply the PVC if it doesn't already exist.
Result: We no longer try to update an existing PVC.
|
Story Points: | --- | ||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2018-03-28 14:24:57 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: | |||||||
| Attachments: |
|
||||||
*** Bug 1540851 has been marked as a duplicate of this bug. *** Upgrade metrics with dynamic pv from 3.7 to 3.9, the upgrade work is successful, there is no error "Forbidden: field is immutable after creation" in ansible log ansible version: openshift-ansible-3.9.0-0.38.0.git.0.57e1184 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, 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/RHBA-2018:0489 |
Created attachment 1389196 [details] Full task listing Description of problem: During a standard openshift-ansible upgrade of logging, encountered the error: oc --config=/tmp/openshift-metrics-ansible-X0Y3sw/admin.kubeconfig apply -f /tmp/openshift-metrics-ansible-X0Y3sw/templates/hawkular-cassandra-pvc3.yaml -n openshift-infra resulted in: STDERR: The PersistentVolumeClaim "metrics-cassandra-3" is invalid: spec: Forbidden: field is immutable after creation Version-Release number of selected component (if applicable): v3.9.0-0.34.0