Did the test and the upgrade to proposed confirming the expected result.

root@d:~# uvt-kvm create --password ubuntu tests-scsi-hotplug arch=amd64 
release=bionic label=daily
Warning: using --password from the command line is not secure and should be 
used for debugging only.
root@d:~# virsh shutdown tests-scsi-hotplug
Domain tests-scsi-hotplug is being shutdown
root@d:~# virsh list
 Id   Name   State
--------------------

root@d:~# virsh edit tests-scsi-hotplug

Select an editor.  To change later, run 'select-editor'.
  1. /bin/nano        <---- easiest
  2. /usr/bin/vim.basic
  3. /usr/bin/vim.tiny
  4. /bin/ed

Choose 1-4 [1]: 2
Domain tests-scsi-hotplug XML configuration edited.

root@d:~# cat > hpdisk.xml << EOF
>      <disk type='file' device='disk'>
>        <driver name='qemu' type='qcow2'/>
>        <source file='/var/lib/libvirt/images/test2.img'/>
>        <target dev='sdb' bus='scsi'/>
>        <address type='drive' controller='0' bus='0' target='0' unit='0'/>
>      </disk>
> EOF
root@d:~# virsh start tests-scsi-hotplug
Domain tests-scsi-hotplug started

root@d:~# virsh list
 Id   Name                 State
------------------------------------
 3    tests-scsi-hotplug   running

root@d:~# virsh attach-device tests-scsi-hotplug hpdisk.xml
error: Failed to attach device from hpdisk.xml
error: internal error: unable to execute QEMU command 'device_add': Duplicate 
ID 'scsi0-0-0-0' for device

root@d:~# vim /etc/apt/sources.list
root@d:~# apt update
Hit:1 http://archive.ubuntu.com/ubuntu disco InRelease
Get:2 http://security.ubuntu.com/ubuntu disco-security InRelease [97.5 kB]     
Get:3 http://archive.ubuntu.com/ubuntu disco-updates InRelease [97.5 kB]        
                                               
Ign:4 http://ddebs.ubuntu.com disco InRelease                                   
                                                         
Hit:5 
http://ppa.launchpad.net/lucaskanashiro/disco-openldap-slapd-segfault-1838370/ubuntu
 disco InRelease                               
Ign:6 http://ddebs.ubuntu.com disco-updates InRelease                           
                                  
Ign:7 http://ddebs.ubuntu.com disco-proposed InRelease                          
                           
Get:8 http://archive.ubuntu.com/ubuntu disco-backports InRelease [88.8 kB]
Hit:9 http://ddebs.ubuntu.com disco Release                                   
Get:10 http://ddebs.ubuntu.com disco-updates Release [34.7 kB]                
Get:11 http://archive.ubuntu.com/ubuntu disco-proposed InRelease [255 kB]     
Hit:12 http://ppa.launchpad.net/paelzer/bug-1840956-binfmt-containers/ubuntu 
disco InRelease
Get:13 http://ddebs.ubuntu.com disco-proposed Release [34.7 kB]                 
                           
Hit:14 http://ppa.launchpad.net/sbeattie/lp1842701/ubuntu disco InRelease       
                           
Get:15 http://ddebs.ubuntu.com disco-updates Release.gpg [819 B]
Get:16 http://ddebs.ubuntu.com disco-proposed Release.gpg [819 B]
Get:17 http://security.ubuntu.com/ubuntu disco-security/main amd64 Packages 
[202 kB]
Get:18 http://security.ubuntu.com/ubuntu disco-security/main amd64 c-n-f 
Metadata [4640 B]
Get:19 http://security.ubuntu.com/ubuntu disco-security/universe amd64 Packages 
[249 kB]
Get:20 http://security.ubuntu.com/ubuntu disco-security/universe amd64 c-n-f 
Metadata [5936 B]
Get:21 http://archive.ubuntu.com/ubuntu disco-updates/main amd64 Packages [266 
kB]
Get:23 http://archive.ubuntu.com/ubuntu disco-updates/main amd64 c-n-f Metadata 
[7256 B]
Get:24 http://archive.ubuntu.com/ubuntu disco-updates/universe amd64 Packages 
[302 kB]
Get:25 http://archive.ubuntu.com/ubuntu disco-updates/universe amd64 c-n-f 
Metadata [7320 B]
Get:26 http://archive.ubuntu.com/ubuntu disco-proposed/main amd64 Packages 
[36.7 kB]
Get:27 http://archive.ubuntu.com/ubuntu disco-proposed/main Translation-en 
[17.5 kB]
Get:28 http://archive.ubuntu.com/ubuntu disco-proposed/main amd64 c-n-f 
Metadata [1820 B]
Get:29 http://archive.ubuntu.com/ubuntu disco-proposed/restricted amd64 
Packages [1560 B]
Get:30 http://archive.ubuntu.com/ubuntu disco-proposed/restricted 
Translation-en [624 B]
Get:31 http://archive.ubuntu.com/ubuntu disco-proposed/restricted amd64 c-n-f 
Metadata [116 B]
Get:32 http://archive.ubuntu.com/ubuntu disco-proposed/universe amd64 Packages 
[9340 B]
Get:33 http://archive.ubuntu.com/ubuntu disco-proposed/universe Translation-en 
[6128 B]
Get:34 http://archive.ubuntu.com/ubuntu disco-proposed/universe amd64 c-n-f 
Metadata [644 B]
Get:35 http://archive.ubuntu.com/ubuntu disco-proposed/multiverse amd64 c-n-f 
Metadata [116 B]
Get:36 http://ddebs.ubuntu.com disco-updates/main amd64 Packages [144 kB]
Get:37 http://ddebs.ubuntu.com disco-updates/universe amd64 Packages [133 kB]
Get:38 http://ddebs.ubuntu.com disco-proposed/main amd64 Packages [20.9 kB]
Get:39 http://ddebs.ubuntu.com disco-proposed/universe amd64 Packages [9248 B]
Fetched 2036 kB in 2s (963 kB/s)                           
Reading package lists... Done
Building dependency tree       
Reading state information... Done
27 packages can be upgraded. Run 'apt list --upgradable' to see them.
root@d:~# apt list --upgradable
Listing... Done
apt-utils/disco-proposed 1.8.3 amd64 [upgradable from: 1.8.1]
apt/disco-proposed 1.8.3 amd64 [upgradable from: 1.8.1]
cloud-guest-utils/disco-proposed 0.31-0ubuntu1.1 all [upgradable from: 
0.31-0ubuntu1]
cloud-image-utils/disco-proposed 0.31-0ubuntu1.1 all [upgradable from: 
0.31-0ubuntu1]
cloud-init/disco-updates 19.2-24-ge7881d5c-0ubuntu1~19.04.1 all [upgradable 
from: 19.1-1-gbaa47854-0ubuntu1~19.04.1]
curl/disco-updates,disco-security 7.64.0-2ubuntu1.2 amd64 [upgradable from: 
7.64.0-2ubuntu1.1]
kbd/disco-proposed 2.0.4-4ubuntu1.19.04.0 amd64 [upgradable from: 
2.0.4-4ubuntu1]
libapt-inst2.0/disco-proposed 1.8.3 amd64 [upgradable from: 1.8.1]
libapt-pkg5.0/disco-proposed 1.8.3 amd64 [upgradable from: 1.8.1]
libcurl3-gnutls/disco-updates,disco-security 7.64.0-2ubuntu1.2 amd64 
[upgradable from: 7.64.0-2ubuntu1.1]
libcurl4/disco-updates,disco-security 7.64.0-2ubuntu1.2 amd64 [upgradable from: 
7.64.0-2ubuntu1.1]
libnss3/disco-proposed 2:3.42-1ubuntu2.2 amd64 [upgradable from: 
2:3.42-1ubuntu2.1]
libpulse0/disco-proposed 1:12.2-2ubuntu3.1 amd64 [upgradable from: 
1:12.2-2ubuntu3]
librados2/disco-proposed 13.2.6-0ubuntu0.19.04.4 amd64 [upgradable from: 
13.2.6-0ubuntu0.19.04.3]
librbd1/disco-proposed 13.2.6-0ubuntu0.19.04.4 amd64 [upgradable from: 
13.2.6-0ubuntu0.19.04.3]
libssl1.1/disco-proposed 1.1.1b-1ubuntu2.4 amd64 [upgradable from: 
1.1.1b-1ubuntu2.1]
libvirt-clients/disco-proposed 5.0.0-1ubuntu2.5 amd64 [upgradable from: 
5.0.0-1ubuntu2.4]
libvirt-daemon-driver-storage-rbd/disco-proposed 5.0.0-1ubuntu2.5 amd64 
[upgradable from: 5.0.0-1ubuntu2.4]
libvirt-daemon-system/disco-proposed 5.0.0-1ubuntu2.5 amd64 [upgradable from: 
5.0.0-1ubuntu2.4]
libvirt-daemon/disco-proposed 5.0.0-1ubuntu2.5 amd64 [upgradable from: 
5.0.0-1ubuntu2.4]
libvirt0/disco-proposed 5.0.0-1ubuntu2.5 amd64 [upgradable from: 
5.0.0-1ubuntu2.4]
linux-libc-dev/disco-proposed 5.0.0-28.30 amd64 [upgradable from: 5.0.0-27.28]
login/disco-proposed 1:4.5-1.1ubuntu2.1 amd64 [upgradable from: 
1:4.5-1.1ubuntu2]
netplan.io/disco-proposed 0.98-0ubuntu1~19.04.1 amd64 [upgradable from: 
0.97-0ubuntu1~19.04.1]
openssl/disco-proposed 1.1.1b-1ubuntu2.4 amd64 [upgradable from: 
1.1.1b-1ubuntu2.1]
passwd/disco-proposed 1:4.5-1.1ubuntu2.1 amd64 [upgradable from: 
1:4.5-1.1ubuntu2]
sosreport/disco-proposed 3.6-1ubuntu2.1 amd64 [upgradable from: 3.6-1ubuntu2]
root@d:~# apt install libvirt-daemon-system
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  adwaita-icon-theme at-spi2-core gtk-update-icon-cache hicolor-icon-theme 
humanity-icon-theme libasyncns0 libatk-bridge2.0-0 libatk1.0-0 libatk1.0-data 
libatspi2.0-0 libcolord2 libcups2
  libgtk-3-0 libgtk-3-bin libgtk-3-common libjson-glib-1.0-0 
libjson-glib-1.0-common liblcms2-2 libpulse0 librest-0.7-0 librsvg2-2 
librsvg2-common libsndfile1 libsoup-gnome2.4-1
  libvte-2.91-0 libvte-2.91-common libwayland-client0 libwayland-cursor0 
libwayland-egl1 libxcomposite1 libxcursor1 libxi6 libxinerama1 libxkbcommon0 
libxrandr2 libxtst6 qemu-system-gui
  ubuntu-mono x11-common
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  libvirt-clients libvirt-daemon libvirt-daemon-driver-storage-rbd libvirt0
Suggested packages:
  libvirt-daemon-driver-storage-gluster libvirt-daemon-driver-storage-zfs numad 
auditd nfs-common pm-utils radvd systemtap zfsutils
The following packages will be upgraded:
  libvirt-clients libvirt-daemon libvirt-daemon-driver-storage-rbd 
libvirt-daemon-system libvirt0
5 upgraded, 0 newly installed, 0 to remove and 22 not upgraded.
Need to get 4015 kB of archives.
After this operation, 0 B of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu disco-proposed/main amd64 
libvirt-daemon-driver-storage-rbd amd64 5.0.0-1ubuntu2.5 [68.8 kB]
Get:2 http://archive.ubuntu.com/ubuntu disco-proposed/main amd64 
libvirt-daemon-system amd64 5.0.0-1ubuntu2.5 [76.3 kB]
Get:3 http://archive.ubuntu.com/ubuntu disco-proposed/main amd64 
libvirt-clients amd64 5.0.0-1ubuntu2.5 [665 kB]
Get:4 http://archive.ubuntu.com/ubuntu disco-proposed/main amd64 libvirt0 amd64 
5.0.0-1ubuntu2.5 [1460 kB]
Get:5 http://archive.ubuntu.com/ubuntu disco-proposed/main amd64 libvirt-daemon 
amd64 5.0.0-1ubuntu2.5 [1744 kB]
Fetched 4015 kB in 2s (2335 kB/s)         
Preconfiguring packages ...
(Reading database ... 59812 files and directories currently installed.)
Preparing to unpack 
.../libvirt-daemon-driver-storage-rbd_5.0.0-1ubuntu2.5_amd64.deb ...
Unpacking libvirt-daemon-driver-storage-rbd (5.0.0-1ubuntu2.5) over 
(5.0.0-1ubuntu2.4) ...
Preparing to unpack .../libvirt-daemon-system_5.0.0-1ubuntu2.5_amd64.deb ...
Unpacking libvirt-daemon-system (5.0.0-1ubuntu2.5) over (5.0.0-1ubuntu2.4) ...
Preparing to unpack .../libvirt-clients_5.0.0-1ubuntu2.5_amd64.deb ...
Unpacking libvirt-clients (5.0.0-1ubuntu2.5) over (5.0.0-1ubuntu2.4) ...
Preparing to unpack .../libvirt0_5.0.0-1ubuntu2.5_amd64.deb ...
Unpacking libvirt0:amd64 (5.0.0-1ubuntu2.5) over (5.0.0-1ubuntu2.4) ...
Preparing to unpack .../libvirt-daemon_5.0.0-1ubuntu2.5_amd64.deb ...
Unpacking libvirt-daemon (5.0.0-1ubuntu2.5) over (5.0.0-1ubuntu2.4) ...
Setting up libvirt0:amd64 (5.0.0-1ubuntu2.5) ...
Setting up libvirt-daemon (5.0.0-1ubuntu2.5) ...
Setting up libvirt-daemon-driver-storage-rbd (5.0.0-1ubuntu2.5) ...
Setting up libvirt-clients (5.0.0-1ubuntu2.5) ...
Setting up libvirt-daemon-system (5.0.0-1ubuntu2.5) ...
virtlockd.service is a disabled or a static unit, not starting it.
virtlogd.service is a disabled or a static unit, not starting it.
Setting up libvirt-daemon dnsmasq configuration.
Processing triggers for systemd (240-6ubuntu5.7) ...
Processing triggers for man-db (2.8.5-2) ...
Processing triggers for libc-bin (2.29-0ubuntu2) ...
root@d:~# 
root@d:~# 
root@d:~# virsh attach-device tests-scsi-hotplug hpdisk.xml
error: Failed to attach device from hpdisk.xml
error: Requested operation is not valid: Domain already contains a disk with 
that address

** Tags removed: verification-needed verification-needed-disco
** Tags added: verification-done verification-done-disco

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1840872

Title:
  ISST-LTE:KVM:Ubuntu1804:BostonLC:boslcp3g5: libvirt fails to check for
  duplicate address in hotplug xml and causes the guest to go to shutoff
  state

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-power-systems/+bug/1840872/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to