[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#930645: Vagrant images debian/stretch64 9.9.1: same client ID for all VM



Package: cloud.debian.org
Severity: important

Hello,

Since upgrade to debian/stretch64 9.9.1 image, I noticed that virtual machines share
the same client ID in libvirtd. Consequently, libvirtd override old DHCP
lease by new one.

### Steps to reproduce

- Create a first virtual machine:
```
mkdir stretch1/; cd stretch1; vagrant init debian/stretch64 --box-version 9.9.1
vagrant up --provider=libvirt
virsh net-dhcp-leases vagrant-libvirt
Expiry Time MAC address Protocol IP address Hostname Client ID or DUID
-------------------------------------------------------------------------------------------------------------------
2019-06-17 15:30:00 52:54:00:fb:c7:5f ipv4 192.168.121.175/24 stretch ff:ed:10:bd:b8:00:02:00:00:ab:11:c9:17:15:e8:66:71:ae:5b
```

- Create a second virtual machine:
```
mkdir stretch2/; cd stretch2; vagrant init debian/stretch64 --box-version 9.9.1
vagrant up --provider=libvirt
virsh net-dhcp-leases vagrant-libvirt
Expiry Time MAC address Protocol IP address Hostname Client ID or DUID
-------------------------------------------------------------------------------------------------------------------
2019-06-17 15:34:33 52:54:00:4e:d7:c6 ipv4 192.168.121.175/24 stretch ff:ed:10:bd:b8:00:02:00:00:ab:11:c9:17:15:e8:66:71:ae:5b
```

- Create a third virtual machine with previous box image:
```
mkdir stretch3/; cd stretch3; vagrant init debian/stretch64 --box-version 9.9.0
vagrant up --provider=libvirt
virsh net-dhcp-leases vagrant-libvirt
Expiry Time MAC address Protocol IP address Hostname Client ID or DUID
-------------------------------------------------------------------------------------------------------------------
2019-06-17 15:36:14 52:54:00:3f:3a:01 ipv4 192.168.121.37/24 stretch ff:ed:10:bd:b8:00:02:00:00:ab:11:c9:80:63:ce:25:25:19:a5 2019-06-17 15:34:33 52:54:00:4e:d7:c6 ipv4 192.168.121.175/24 stretch ff:ed:10:bd:b8:00:02:00:00:ab:11:c9:17:15:e8:66:71:ae:5b

```

### Actual results

Each new machine has same client ID and same IP address as old machines.

I got exactly same client ID if I tested on different hosts.

### Expected results

Client ID should be unique, libvirtd should assign a new IP address to new machines.

### Workaround

Spin box version to 9.9.0 in Vagrantfile:

```
  config.vm.box = "debian/stretch64"
  config.vm.box_version = "9.9.0"
```

### Environment

- libvirtd 4.0.0 or libvirtd 3.0.0
- vagrant-libvirt 0.0.45
- vagrant 2.2.4
- debian/stretch64 9.9.1

--
Nicolas Quiniou-Briand
nqb@inverse.ca  ::  +1.514.447.4918 *140  ::  https://inverse.ca
Inverse inc. :: Leaders behind SOGo (https://sogo.nu), PacketFence (https://packetfence.org) and Fingerbank (http://fingerbank.org)

--
Nicolas Quiniou-Briand
Messagerie instantanée (Jabber) : nqb@azyx.fr
Tél : 06 75 84 56 74


Reply to: