Bug 828515

Summary: [RFE] Verify aeolus-cleanup command should be run
Product: [Retired] CloudForms Cloud Engine Reporter: james labocki <jlabocki>
Component: aeolus-configureAssignee: Steve Linabery <slinaber>
Status: CLOSED ERRATA QA Contact: Rehana <aeolus-qa-list>
Severity: medium Docs Contact:
Priority: medium    
Version: 1.1.0CC: asettle, dajohnso, dmacpher, morazi, psharma
Target Milestone: rcKeywords: FutureFeature, Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
This enhancement adds an 'Are you sure?' verification step to aeolus-cleanup command and a command line options -y|--assumeyes to force operation. If not provided, aeolus-cleanup prompts the user for confirmation.
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-12-04 15:10:13 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description james labocki 2012-06-04 20:12:35 UTC
Description of problem:
Add a 'Are you sure?' verification step to aeolus-cleanup command. It is to easy to remove everything. seriously.

Comment 2 Dave Johnson 2012-09-06 15:48:37 UTC
This should include specifing confirmation on the commandline with '-y'

Comment 4 Steve Linabery 2012-09-11 21:03:13 UTC
on master as 0b3dad6867fda2556376e17d0e420e7804a9be00
on 1.1 as 7ed26735ec17993c9d41281a7421ea5d904a078a

Comment 5 pushpesh sharma 2012-09-17 12:28:05 UTC
Verified on :

[root@dhcp201-113 ~]# rpm -qa|grep aeolus
aeolus-conductor-0.13.7-1.el6cf.noarch
aeolus-all-0.13.7-1.el6cf.noarch
aeolus-conductor-daemons-0.13.7-1.el6cf.noarch
aeolus-configure-2.8.6-1.el6cf.noarch
aeolus-conductor-doc-0.13.7-1.el6cf.noarch
rubygem-aeolus-cli-0.7.1-1.el6cf.noarch
rubygem-aeolus-image-0.3.0-12.el6.noarch






[root@dhcp201-113 ~]# aeolus-cleanup -y
notice: /Stage[main]/Aeolus::Deltacloud::Disabled/Exec[remove_deltacloud_tmp_files]/returns: executed successfully
notice: /Stage[main]/Aeolus::Conductor::Disabled/Aeolus::Rails::Drop::Db[drop_aeolus_database]/Exec[drop_rails_database]/returns: executed successfully
notice: /Stage[main]/Aeolus::Conductor::Disabled/Postgres::User[aeolus]/Exec[drop_aeolus_postgres_user]/returns: could not change directory to "/root"




[root@dhcp201-113 ~]# aeolus-cleanup 
aeolus-cleanup will delete local aeolus installations.
Are you sure you wish to proceed? [y/N]: y
notice: /File[/var/lib/aeolus-conductor]/ensure: removed
notice: /Stage[main]/Aeolus::Conductor::Disabled/Service[aeolus-conductor]/ensure: ensure changed 'running' to 'stopped'
notice: /Stage[main]/Aeolus::Image-factory::Disabled/Exec[remove_aeolus_templates]/returns: executed successfully
notice: /Stage[main]/Aeolus::Deltacloud::Disabled/Service[deltacloud-core]/ensure: ensure changed 'running' to 'stopped'
notice: /Stage[ma

Comment 7 errata-xmlrpc 2012-12-04 15:10:13 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHEA-2012-1516.html