Bug 1033278

Summary: libvirt does not mount multiple bind mounts if one target begins with the other target
Product: [Fedora] Fedora Reporter: Daniel Walsh <dwalsh>
Component: libvirtAssignee: Libvirt Maintainers <libvirt-maint>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ajia, berrange, clalancette, crobinso, itamar, jforbes, jyang, laine, libvirt-maint, mjenner, veillard, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1035403 (view as bug list) Environment:
Last Closed: 2013-12-14 18:25:58 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:

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