Bug 921986 - [virt-sandbox-service] Created unit file is not deleted after delete sandbox
Summary: [virt-sandbox-service] Created unit file is not deleted after delete sandbox
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt-sandbox
Version: 18
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Daniel Berrangé
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-15 11:00 UTC by Wayne Sun
Modified: 2013-12-16 18:51 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-12-16 18:51:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Wayne Sun 2013-03-15 11:00:25 UTC
Description of problem:
created unit file is not deleted after delete sandbox

Version-Release number of selected component (if applicable):
libvirt-sandbox-0.1.0-1.fc18.x86_64
httpd-2.4.3-15.fc18.x86_64
kernel-3.8.2-206.fc18.x86_64

How reproducible:
always

Steps to Reproduce:
1. create a sandbox

# virt-sandbox-service create -u httpd.service apache12
Created sandbox container dir /var/lib/libvirt/filesystems/apache12
Created sandbox config /etc/libvirt-sandbox/services/apache12.sandbox
Created unit file /etc/systemd/system/httpd

2. delete the sandbox
# virt-sandbox-service delete apache12

# virt-sandbox-service list

apache12 not show up

3. check dir and file

# ls /var/lib/libvirt/filesystems/apache12
ls: cannot access /var/lib/libvirt/filesystems/apache12: No such file or directory

# ll /etc/libvirt-sandbox/services/apache12.sandbox
ls: cannot access /etc/libvirt-sandbox/services/apache12.sandbox: No such file or directory

# ll /etc/systemd/system/httpd
-rw-r--r--. 1 root root 365 Mar 15 11:06 /etc/systemd/system/httpd


The unit file is left 
  
Actual results:
the unit file not deleted

Expected results:
should clean up the unit file

Additional info:

Comment 1 Daniel Walsh 2013-04-01 19:03:04 UTC
This is fixed in the current pool, but I have removed deleting the entire content, since I am worried about the user loosing data they did not intend.  I could add a flag like -r

virt-sandbox-service -r delete apache12

Would remove the  /var/lib/libvirt/filesystems/apache12

Directory, but this is not really correct since the admin could have added other directories to the sandbox config file.

Comment 2 Cole Robinson 2013-12-16 18:51:49 UTC
Fedora 18 is end-of-life in a month, so it is unlikely this issue will be fixed there (if it hasn't already).

Closing as WONTFIX for F18. If you can still reproduce on F19+, please comment here and reopen the bug.


Note You need to log in before you can comment on or make changes to this bug.