Hide Forgot
Description of problem: When deleting domains which contains applications via rhc, it will show: Domain contains applications. Delete applications first or set force to true. Actually, we can not 'set force' via rhc. Version-Release number of selected component (if applicable): devenv_4016 rhc 1.17.2 How reproducible: always Steps to Reproduce: 1.Create a domain. 2.Create an app. 3.Delete the domain via rhc. Actual results: # rhc domain delete lxia Deleting domain 'lxia' ... Domain contains applications. Delete applications first or set force to true. Expected results: 1. Domain contains applications. Delete applications first or delete domain via restapi by setting force to true. or 2. Provides the options --force Additional info: # rhc domain delete --help Usage: rhc domain-delete <namespace> Delete a domain Options -n, --namespace NAME Name of a domain Global Options -l, --rhlogin LOGIN OpenShift login -p, --password PASSWORD OpenShift password --token TOKEN An authorization token for accessing your account. --server NAME An OpenShift server hostname (default: openshift.redhat.com) --timeout SECONDS The timeout for operations See 'rhc help options' for a full list of global options.
Added --force option. Will merge in https://github.com/openshift/rhc/pull/504
Commit pushed to master at https://github.com/openshift/rhc https://github.com/openshift/rhc/commit/bbcb511e56131008c9c6379e5861f679b6ffd77c Bug 1028963: Add --force option to delete-domain
Verified on devenv_4018. # rhc domain delete ccc Deleting domain 'ccc' ... Domain contains applications. Delete applications first or set force to true. # rhc domain delete ccc --force Deleting domain 'ccc' ... deleted # rhc domain-delete --help Usage: rhc domain-delete <namespace> Delete a domain Options -f, --force Force the action -n, --namespace NAME Name of a domain Global Options -l, --rhlogin LOGIN OpenShift login -p, --password PASSWORD OpenShift password --token TOKEN An authorization token for accessing your account. --server NAME An OpenShift server hostname (default: openshift.redhat.com) --timeout SECONDS The timeout for operations See 'rhc help options' for a full list of global options.