Bug 1033278 - libvirt does not mount multiple bind mounts if one target begins with the other target
Summary: libvirt does not mount multiple bind mounts if one target begins with the oth...
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-21 19:54 UTC by Daniel Walsh
Modified: 2013-12-14 18:25 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1035403 (view as bug list)
Environment:
Last Closed: 2013-12-14 18:25:58 UTC
Type: Bug


Attachments (Terms of Use)

Description Daniel Walsh 2013-11-21 19:54:31 UTC
We are trying to setup a virt-sandbox-service where we are mounting over /etc/aliases and /etc/aliases.db

When we setup the container, /etc/aliases gets mounted but /etc/aliases.db does not.

I experimented with /etc/dan and /etc/dan_long and saw the same behaviour, once I changed to use /etc/dan1 and /etc/dan_long both containers worked.  

virsh edit

shows the correct xml.

Here is the command we were using to set this up.

virt-sandbox-service create --copy -N dhcp,mac='52:54:00:ec:b6:c4',source=virb\
r1 -m host-bind:/etc/aliases.db=/containers/$name/etc/aliases.db -m host-bind:/\
etc/aliases=/containers/$name/etc/aliases -m host-bind:/etc/resolv.conf=/contai\
ners/$name/etc/resolv.conf --unitfile postfix.service -p /var/lib/libvirt/files\
ystems $name

Comment 1 Daniel Berrangé 2013-11-27 16:39:45 UTC
Fix posted upstream

https://www.redhat.com/archives/libvir-list/2013-November/msg01257.html

Comment 2 Cole Robinson 2013-12-14 18:25:58 UTC
In rawhide as part of libvirt-1.2.0


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