Bug 954187 - cannot use virt-sandbox on custom unit
Summary: cannot use virt-sandbox on custom unit
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt-sandbox
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-04-21 18:32 UTC by Michael S.
Modified: 2013-05-02 11:44 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-05-02 11:44:26 UTC
Embargoed:


Attachments (Terms of Use)

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>


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