Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-23416

live update interface to delete the boot order setting succeed but no changes in xml

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • rhel-9.5
    • None
    • libvirt / General
    • None
    • libvirt-10.3.0-1.el9
    • sst_virtualization
    • ssg_virtualization
    • 13
    • 2
    • Dev ack
    • False
    • Hide

      None

      Show
      None
    • Requested
    • Yes
    • 10.2.0

      Description of problem:
      live update interface to delete the boot order setting succeed but no changes in xml

      Version-Release number of selected component (if applicable):
      libvirt-10.0.0-2.el9.x86_64

      How reproducible:
      100%

      Steps to Reproduce:
      1. start a vm with interface as below with boot order setting:

      # virsh dumpxml test --xpath //interface
      <interface type="network">
        <mac address="52:54:00:44:e1:cc"/>
        <source network="default"/>
        <model type="virtio"/>
      <boot order="2"/>
        <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
      </interface>
      
      # virsh start test
      Domain 'test' started
      

      2. Try to live update the interface to delete the boot order setting:

      # virsh dumpxml test --xpath //interface | tee newinterface.xml
      <interface type="network">
        <mac address="52:54:00:44:e1:cc"/>
        <source network="default" portid="f72867bf-9de0-4b21-b02a-900bcb7c8701" bridge="virbr0"/>
        <target dev="vnet17"/>
        <model type="virtio"/>
       <boot order="2"/>
        <alias name="net0"/>
        <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
      </interface>
      

      Edit the xml to delete the boot order setting:

      # # cat newinterface.xml
      <interface type="network">
        <mac address="52:54:00:44:e1:cc"/>
        <source network="default" portid="f72867bf-9de0-4b21-b02a-900bcb7c8701" bridge="virbr0"/>
        <target dev="vnet17"/>
        <model type="virtio"/>
        <alias name="net0"/>
        <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
      </interface>
      
      # virsh update-device test newinterface.xml
      Device updated successfully
      

      3. The update succeed, but check the live xml, there is no changes, the boot order setting is still there:

      # # virsh dumpxml test --xpath //interface
      <interface type="network">
        <mac address="52:54:00:44:e1:cc"/>
        <source network="default" portid="f72867bf-9de0-4b21-b02a-900bcb7c8701" bridge="virbr0"/>
        <target dev="vnet17"/>
        <model type="virtio"/>
      *******<boot order="2"/> ********
        <alias name="net0"/>
        <address type="pci" domain="0x0000" bus="0x07" slot="0x00" function="0x0"/>
      </interface>
      

      Actual results:
      Live update interface to delete the boot order setting succeed but no changes in the live xml

      Expected results:
      The update-device command should report error like:
      error: Failed to update device from newinterface.xml
      error: Operation not supported: cannot modify network device boot index setting

      Same issue when we use update-device to delete the boot order, mac, alias, rom, target dev, driver, it will always report succeed but no changes in the live xml.

            mprivozn@redhat.com Michal Privoznik
            yalzhang@redhat.com Yalan Zhang
            virt-maint virt-maint
            Yanqiu Zhang Yanqiu Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: