Bug 922630

Summary: [virt-sandbox-service] path option is ignored when create sandbox
Product: [Fedora] Fedora Reporter: Wayne Sun <gsun>
Component: libvirt-sandboxAssignee: Daniel Berrangé <berrange>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 19CC: ajia, berrange, crobinso, cwei, dwalsh, dyuan, mzhan, virt-maint, zpeng
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 927122 (view as bug list) Environment:
Last Closed: 2013-12-16 18:51:32 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:
Bug Depends On:    
Bug Blocks: 927122    

Description Wayne Sun 2013-03-18 06:17:17 UTC
Description of problem:
The path option -p or --path is ignored when create sandbox container.

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. make a dir
# ll /home/wayne/test/ -dZ
drwxr-xr-x. root root unconfined_u:object_r:user_home_t:s0 /home/wayne/test/

2. create a sandbox container with -p
# virt-sandbox-service create -p /home/wayne/test/ -t svirt_lxc_net_t -l s0:c200,c300 -C -u httpd.service apache13
Created sandbox container dir /var/lib/libvirt/filesystems/apache13
Created sandbox config /etc/libvirt-sandbox/services/apache13.sandbox
Created unit file /etc/systemd/system/httpd

# ll -Zd /home/wayne/test/
drwxr-xr-x. root root unconfined_u:object_r:user_home_t:s0 /home/wayne/test/

container dir remains at the default dir, the given dir is empty.

3.
  
Actual results:
-p is ignored

Expected results:
given path should work with create sandbox container

Additional info:

Comment 1 Daniel Walsh 2013-04-01 19:29:40 UTC
This is fixed in git version.

Comment 2 Cole Robinson 2013-12-16 18:51:32 UTC
Fedora 18 is end-of-life soon, but sounds like this is fixed in F19+