Red Hat Openshift Upgrade Failed with "failed to migrate storage"
Issue
Upgrading Red Hat Openshift and the upgrade playbook fails with the following:
TASK [Upgrade all storage] ************************************************************************************************************************************************************************************
fatal: [ocpmast-tst-1.example.com]: FAILED! => {
"changed": true,
"cmd": [
"/usr/local/bin/oc",
"adm",
"--config=/etc/origin/master/admin.kubeconfig",
"migrate",
"storage",
"--include=*",
"--confirm"
],
"delta": "0:00:23.173023",
"end": "2018-01-17 09:17:28.697656",
"failed": true,
"failed_when_result": true,
"rc": 1,
"start": "2018-01-17 09:17:05.524633"
}
STDOUT:
error: -n jag-garbage pods/mysql-1-6shz8: Pod "mysql-1-6shz8" is invalid: spec: Forbidden: pod updates may not change fields other than `containers[*].image` or `spec.activeDeadlineSeconds` or `spec.tolerations` (only additions to existing tolerations)
error: -n jag-garbage pods/smoke-test-1-ww11h: Pod "smoke-test-1-ww11h" is invalid: spec: Forbidden: pod updates may not change fields other than `containers[*].image` or `spec.activeDeadlineSeconds` or `spec.tolerations` (only additions to existing tolerations)
error: -n jag-garbage pods/smoke-test-secure-1-jbllt: Pod "smoke-test-secure-1-jbllt" is invalid: spec: Forbidden: pod updates may not change fields other than `containers[*].image` or `spec.activeDeadlineSeconds` or `spec.tolerations` (only additions to existing tolerations)
error: -n jag-garbage pods/smoke-test-secure-1-jn5k9: Pod "smoke-test-secure-1-jn5k9" is invalid: spec: Forbidden: pod updates may not change fields other than `containers[*].image` or `spec.activeDeadlineSeconds` or `spec.tolerations` (only additions to existing tolerations)
error: -n jag-garbage pods/smoke-test-secure-1-lzb4w: Pod "smoke-test-secure-1-lzb4w" is invalid: spec: Forbidden: pod updates may not change fields other than `containers[*].image` or `spec.activeDeadlineSeconds` or `spec.tolerations` (only additions to existing tolerations)
summary: total=1359 errors=5 ignored=0 unchanged=1054 migrated=300
info: to rerun only failing resources, add --include=pods
error: 5 resources failed to migrate
Environment
- Red Hat Openshift Container Platform 3.6
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.