This feels a bit like a trap due to:
commit 22dc3e94c24b4d9a6c28beda91b9b283eb9b0251
Author: Michal Privoznik <mpriv...@redhat.com>
Date:   Thu Apr 11 15:40:51 2019 +0200

    Revert "domain_conf: check device address before attach"
    
    This reverts commit f1d6585300001c7b23b8796a0faa4411c3531996.
    
    Turns out, this caused a regression. There is this (perhaps less
    known) semantic of virDomainAttachDevice() where if the device
    the API is trying to attach is a CDROM/floppy that is already in
    the domain the attach request is handled as 'change the media in
    the drive'.
    
    We have a better fix anyways.
    
    Signed-off-by: Michal Privoznik <mpriv...@redhat.com>
    Tested-by: Daniel Henrique Barboza <danielhb...@gmail.com>
    Reviewed-by: Jim Fehlig <jfeh...@suse.com>


Instead one should use:
commit 89237d534f0fe950d06a2081089154160c6c2224
Author: Michal Privoznik <mpriv...@redhat.com>
Date:   Thu Apr 11 15:44:14 2019 +0200

    conf: Expose virDomainSCSIDriveAddressIsUsed
    
    This function checks if given drive address is already present in
    passed domain definition. Expose the function as it will be used
    shortly.
    
    Signed-off-by: Michal Privoznik <mpriv...@redhat.com>
    Tested-by: Daniel Henrique Barboza <danielhb...@gmail.com>
    Reviewed-by: Jim Fehlig <jfeh...@suse.com>

commit ddc72f99027b063feaf34e5fda89916b6b2c8943
Author: Michal Privoznik <mpriv...@redhat.com>
Date:   Thu Apr 11 15:45:27 2019 +0200

    qemu_hotplug: Check for duplicate drive addresses
    
    This tries to fix the same problem as f1d65853000 but it's doing
    so in a less invasive way.

-- 
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