Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1540729 - [free-int] metrics upgrade exits with error: The PersistentVolumeClaim "metrics-cassandra-3" is invalid: spec: Forbidden: field is immutable after creation
[free-int] metrics upgrade exits with error: The PersistentVolumeClaim "metri...
Status: CLOSED ERRATA
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer (Show other bugs)
3.9.0
Unspecified Unspecified
unspecified Severity high
: ---
: 3.9.0
Assigned To: ewolinet
Junqi Zhao
: DeliveryBlocker
: 1540851 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2018-01-31 16:46 EST by Justin Pierce
Modified: 2018-03-28 10:25 EDT (History)
4 users (show)

See Also:
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 10:24:57 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


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


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2018:0489 None None None 2018-03-28 10:25 EDT

  None (edit)
Description Justin Pierce 2018-01-31 16:46:04 EST
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 00:31:57 EST
*** Bug 1540851 has been marked as a duplicate of this bug. ***
Comment 4 Junqi Zhao 2018-02-06 09:15:14 EST
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 10:24:57 EDT
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.