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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.