Bug 1540729 - [free-int] metrics upgrade exits with error: The PersistentVolumeClaim "metrics-cassandra-3" is invalid: spec: Forbidden: field is immutable after creation
Summary: [free-int] metrics upgrade exits with error: The PersistentVolumeClaim "metri...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer
Version: 3.9.0
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
: 3.9.0
Assignee: ewolinet
QA Contact: Junqi Zhao
URL:
Whiteboard:
: 1540851 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-01-31 21:46 UTC by Justin Pierce
Modified: 2018-03-28 14:25 UTC (History)
4 users (show)

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.
Clone Of:
Environment:
Last Closed: 2018-03-28 14:24:57 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Full task listing (2.86 KB, text/plain)
2018-01-31 21:46 UTC, Justin Pierce
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0489 0 None None None 2018-03-28 14:25:20 UTC

Description Justin Pierce 2018-01-31 21:46:04 UTC
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

Comment 2 Anping Li 2018-02-02 05:31:57 UTC
*** Bug 1540851 has been marked as a duplicate of this bug. ***

Comment 4 Junqi Zhao 2018-02-06 14:15:14 UTC
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

Comment 7 errata-xmlrpc 2018-03-28 14:24:57 UTC
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


Note You need to log in before you can comment on or make changes to this bug.