Your message dated Thu, 27 Jul 2017 17:33:53 -0300 with message-id <20170727203353.sjz7v32dkqn44w6o@debian.org> and subject line Re: Bug#868679: (no subject) has caused the Debian Bug report #868679, regarding cloud.debian.org: Multiple identical vagrant boxes appear as the same machine to libvirt's dnsmasq dhcp provider to be marked as done. This means that you claim that the problem has been dealt with. If this is not the case it is now your responsibility to reopen the Bug report if necessary, and/or fix the problem forthwith. (NB: If you are a system administrator and have no idea what this message is talking about, this may indicate a serious mail system misconfiguration somewhere. Please contact owner@bugs.debian.org immediately.) -- 868679: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=868679 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
--- Begin Message ---
- To: submit@bugs.debian.org
- Subject: cloud.debian.org: Multiple identical vagrant boxes appear as the same machine to libvirt's dnsmasq dhcp provider
- From: Jan Grant <jang@ioctl.org>
- Date: Mon, 17 Jul 2017 16:16:30 +0100
- Message-id: <[🔎] CAOFpr6ADms8S7yibNAmWTAPC8dppr9hx4L7_T-ujtsJz6MZ3zA@mail.gmail.com>
Package: cloud.debian.org Severity: important Tags: newcomer Dear Maintainer, * What led up to the situation? I've been having problems using the supplied vagrant boxes in more complex setups (where a Vagrantfile brings up more than one identical machine). They effectively end up stealing each other's management IP address (and potentially others that are DHCP managed). * What exactly did you do (or not do) that was effective (or ineffective)? Use a Vagrantfile a bit like this: [[[ ENV['VAGRANT_DEFAULT_PROVIDER'] = 'libvirt' def main() Vagrant.configure("2") do |config| config.vm.box = "debian/stretch64" config.vm.box_check_update = false config.vm.provider :libvirt do |lv| end config.vm.synced_folder ".", "/vagrant", disabled: true end make_box "box-a" make_box "box-b" end def make_box(name) Vagrant.configure("2") do |config| config.vm.define name do |box| box.vm.provider :libvirt do |lv| lv.memory = 1024 lv.cpus = 2 end end end end main ]]] Try bringing up both hosts at once. You might need to wait a bit. * What was the outcome of this action? You'll see each host snaffle the allocated DHCP management address. The same client-id is reported in dnsmasq's lease file on the host machine. * What outcome did you expect instead? Each host should identify itself differently to dnsmasq; if you check the leases file, each box appears to supply the same client-id (although they have different MAC addresses). * Diagnosis: It appears that the client-id is supplied by the systemd network client. This is derived, I believe, from /etc/machine-id and in turn /var/lib/dbus/machine-id. These files are present with *fixed contents* on the box image that I've used; each instance gets the same machine-id. The box image should not include those files (it suffices to delete them prior to packaging the image). This causes each instance to mint its own new UUID, which in turn results in distinct client-ids being supplied by systemd. (I don't think systemd is strictly at fault here; the contents of machine-id should be distinct per distinct host.) Cheers, jan -- System Information: Debian Release: stretch/sid Architecture: amd64 (x86_64) Foreign Architectures: i386 Init: systemd (via /run/systemd/system)
--- End Message ---
--- Begin Message ---
- To: Emmanuel Kasper <manu@debian.org>, 868679-done@bugs.debian.org
- Subject: Re: Bug#868679: (no subject)
- From: Antonio Terceiro <terceiro@debian.org>
- Date: Thu, 27 Jul 2017 17:33:53 -0300
- Message-id: <20170727203353.sjz7v32dkqn44w6o@debian.org>
- In-reply-to: <[🔎] 20170721173202.ijrddcdcupanijhy@debian.org>
- References: <[🔎] d3dd21e6-b5e4-641c-bc8b-4500c509f2ca@debian.org> <[🔎] 20170721173202.ijrddcdcupanijhy@debian.org>
On Fri, Jul 21, 2017 at 02:32:02PM -0300, Antonio Terceiro wrote: > On Fri, Jul 21, 2017 at 03:42:21PM +0200, Emmanuel Kasper wrote: > > I commited the fix above in > > git.debian.org:/git/cloud/debian-vm-templates.git > > Thanks! > > > the next box rebuild will have this included. > > > > FWIW, I am planning to rebuild boxes for libvirt and lxc over the > weekend Updated boxes including the have been uploaded, so I am closing this bug.Attachment: signature.asc
Description: PGP signature
--- End Message ---