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

It will report very long error message when start vm with big value of inbound average setting

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

      None

      Show
      None
    • Pass
    • 10.3.0

      Description of problem:
      It will report very long error message when start vm with big value of inbound average setting

      Version-Release number of selected component (if applicable):
      kernel-5.14.0-437.el9.x86_64
      libvirt-10.0.0-5.el9.x86_64

      How reproducible:
      100%

      Steps to Reproduce:

      1. Prepare a VM with big value of inbound average:

      # virsh dumpxml per1 --xpath //interface
      <interface type="network">
        <mac address="52:54:00:d4:1c:18"/>
        <source network="default"/>
        <bandwidth>
          <inbound average="10000000000000000" peak="5000" burst="1024"/>
        </bandwidth>
        <model type="virtio"/>
        <address type="pci" domain="0x0000" bus="0x01" slot="0x00" function="0x0"/>
      </interface>
      

      2. Try to start the vm, it will report error like as below:

      # virsh start per1
      error: Failed to start domain 'per1'
      error: internal error: Child process (/sbin/tc class add dev vnet10 parent 1: classid 1:1 htb rate 10000000000000000kbps ceil 5000kbps burst 1024kb quantum 853333333333333) unexpected exit status 1: Illegal "quantum"
      Usage: ... qdisc add ... htb [default N] [r2q N]
                            [direct_qlen P] [offload]
       default  minor id of class to which unclassified packets are sent \{0}
       r2q      DRR quantums are computed as rate in Bps/r2q \{10}
       debug    string of 16 numbers each 0-3 \{0}
      
       direct_qlen  Limit of the direct queue \{in packets}
       offload  enable hardware offload
      ... class add ... htb rate R1 [burst B1] [mpu B] [overhead O]
                            [prio P] [slot S] [pslot PS]
                            [ceil R2] [cburst B2] [mtu MTU] [quantum Q]
       rate     rate allocated to this class (class can still borrow)
       burst    max bytes burst which can be accumulated during idle period \{computed}
       mpu      minimum packet size used in rate computations
       overhead per-packet size overhead used in rate computations
       linklay  adapting to a linklayer e.g. atm
       ceil     definite upper class rate (no borrows) \{rate}
       cburst   burst but for ceil \{computed}
       mtu      max packet size we create rate map for \{1600}
       prio     priority of leaf; lower are served first \{0}
       quantum  how much bytes to serve from leaf at once \{use r2q}
      
      TC HTB version 3.3
      

      Actual results:
      It will report very long error message when start vm with big value of inbound average setting

      Expected results:
      The error message should be more reasonable

      Additional info:

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

              Created:
              Updated: