OpenShift Rollback selector does not match template labels

Solution Unverified - Updated -

Issue

  • Trying to rollback my application to a previous version that has a different selector
$ oc rollback myapp --to-version=6
The DeploymentConfig "myapp" is invalid.
spec.template.metadata.labels: Invalid value: {"app":"myapp","deploymentconfig":"myapp"}: `selector` does not match template `labels`

Environment

  • OpenShift Container Platform
    • 3.3.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content