Red Hat Bugzilla – Bug 1464164
Metrics upgrade from 3.4 problems when using hostPath for cassandra persistent volume
Last modified: 2017-07-17 14:32:24 EDT
Description of problem:
After upgrading OCP from 3.4 to 3.5, an issue was found when upgrading the metrics stack. Cassandra RC won't be modified when using hostPath for PV.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Upgrade OCP from 3.4 to 3.5.
2. Upgrade metrics stack using the ansible playbook using hostPath for cassandra PV.
The playbook keeps going but fails to update the hawkular-cassandra RC, the following error was found:
The ReplicationController "hawkular-cassandra-1" is invalid:
* spec.template.spec.volumes.hostPath: Forbidden: may not specify more than 1 volume type
* spec.template.spec.containers.volumeMounts.name: Not found: "cassandra-data"
The RC would be updated.
Workaround was found to change the RC definition to use emptyDir and after the upgrade finishes, modify it back to use hostPath.
The issues sounds a lot like: https://bugzilla.redhat.com/show_bug.cgi?id=1428249#c10