Bug 954187

Summary: cannot use virt-sandbox on custom unit
Product: [Community] Virtualization Tools Reporter: Michael S. <misc>
Component: libvirt-sandboxAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: berrange
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-02 11:44:26 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 Michael S. 2013-04-21 18:32:13 UTC
Latest git of virt-sandbox-service fail with this error message when i try to use a unit that I created myself :

# LD_LIBRARY_PATH=$(pwd)/libvirt-sandbox/.libs/ GI_TYPELIB_PATH=$(pwd)/libvirt-sandbox/  python ./bin/virt-sandbox-service  create -u hdparm_fix_disk  foo.example.org
./bin/virt-sandbox-service: [Errno 2] No such file or directory: '/var/lib/libvirt/filesystems/foo.example.org/etc/machine-id'
./bin/virt-sandbox-service: Cannot find package containing /etc/systemd/system/hdparm_fix_disk.service

Comment 1 Daniel Berrangé 2013-05-02 11:44:26 UTC
Fix applied

commit c1328d0d4ddbb24be2745c67690de84f39a61e7c
Author: Michael Scherer <misc>
Date:   Thu May 2 12:41:38 2013 +0100

    Add a --package option to virt-sandbox-service
    
    If someone usex a custom unit file for the sandbox, the rpm
    autodetection fail with a exception. Now, this will show
    a error message, asking to use --package to specify what
    RPM to clone
    
    Signed-off-by: Daniel P. Berrange <berrange>