Description of problem: Should give a friendly prompt when removing database,because if remove database,that maybe makes app using database can't be accessed. Version-Release number of selected component (if applicable): rhc 0.98.14 devenv_2156 How reproducible: always Steps to Reproduce: 1.follow this https://github.com/openshift/redmine-2.0-openshift-quickstart 2.remove mysql-5.1 3. Actual results: When remove mysql-5.1,only prompt success Expected results: Give a friendly prompt,like "if you remove this cartridge,app maybe cann't be accessed" Additional info: [wsun@localhost redmine]$ rhc app cartridge remove -a redmine -c mysql-5.1 -d Password: ****** Contacting https://ec2-23-23-16-62.compute-1.amazonaws.com Response from server: DEBUG: Exit Code: 0 api_c: placeholder broker_c: namespacerhloginsshapp_uuiddebugaltercartridgecart_typeactionapp_nameapi API version: 1.1.3 RESULT: Success
In the new commands we should require a confirmation to remove carts and delete applications.
Fixed and merged into master
verified on devenv_2341 client :rhc 0.99.7 Steps: 1.create an application 2.add mysql to application rhc cartridge add mysql-5.1 -a $appname 3.remove mysql without --confirm rhc cartridge remove mysql-5.1 -a $appname Result: [sunwei@dhcp-8-229 dev]$ rhc cartridge remove mysql-5.1 -a phptest Password: ****** RESULT: Removing a cartridge is a destructive operation that may result in loss of data associated with the cartridge. You must pass the --confirm switch to this command in order to to remove the cartridge.