non-interactive instance removal fails to actually remove the instance
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAVA Deployment Tool |
Fix Released
|
Medium
|
Antonio Terceiro |
Bug Description
Note: This is on Ubuntu 13.04.
[kim@ntel lava-deployment
=======
LAVA Deployment Tool
=======
=======
INSTANCE_NAME VHOST/LOCATION
=======
testinstance vhost
testinstance-dev vhost
=======
[kim@ntel lava-deployment
=======
LAVA Deployment Tool
=======
*** WARNING ***
You are about to IRREVERSIBLY DESTROY the instance testinstance
There is no automatic backup, there is no way to undo this step
*** WARNING ***
We will remove system user lava-testinstance
We will remove PostgreSQL database lava-testinstance
We will remove PostgreSQL user: lava-testinstance
We will remove everything in /srv/lava/
We will remove the apache site testinstance.conf
[kim@ntel lava-deployment
=======
LAVA Deployment Tool
=======
=======
INSTANCE_NAME VHOST/LOCATION
=======
testinstance vhost
testinstance-dev vhost
=======
[kim@ntel lava-deployment
=======
LAVA Deployment Tool
=======
*** WARNING ***
You are about to IRREVERSIBLY DESTROY the instance testinstance
There is no automatic backup, there is no way to undo this step
*** WARNING ***
We will remove system user lava-testinstance
We will remove PostgreSQL database lava-testinstance
We will remove PostgreSQL user: lava-testinstance
We will remove everything in /srv/lava/
We will remove the apache site testinstance.conf
Type DESTROY to continue: DESTROY
+ sudo stop lava-instance LAVA_INSTANCE=
lava-instance stop/waiting
+ sudo rm -f /etc/apache2/
+ sudo rm -f /etc/apache2/
+ sudo rm -f /etc/apache2/
+ '[' 'devmode user fs buildout database web_hosting app config_app' '!=' 'get_master devmode user fs buildout remote_database web_hosting app config_app remote_fs' ']'
+ sudo -u postgres dropdb lava-testinstance
[sudo] password for kim:
+ sudo -u postgres dropuser lava-testinstance
+ '[' yes = yes ']'
+ sudo userdel lava-testinstance
+ sudo rm -rf /srv/lava/
+ set +x
[kim@ntel lava-deployment
=======
LAVA Deployment Tool
=======
=======
INSTANCE_NAME VHOST/LOCATION
=======
testinstance-dev vhost
=======
[kim@ntel lava-deployment
Related branches
- Linaro Validation Team: Pending requested
-
Diff: 28 lines (+11/-1)1 file modifiedlava-deployment-tool (+11/-1)
affects: | lava-server → lava-deployment-tool |
Changed in lava-deployment-tool: | |
importance: | Undecided → Medium |
assignee: | nobody → Antonio Terceiro (terceiro) |
status: | New → Confirmed |
IMO non-interactive removal is a little too dangerous to be allowed.
I am adding a suitable error message to better guide people through that.