Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1146511 - Updating blkdeviotune for live domain doesn't survive restarting the libvirtd
Updating blkdeviotune for live domain doesn't survive restarting the libvirtd
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt (Show other bugs)
7.1
Unspecified Unspecified
unspecified Severity unspecified
: rc
: ---
Assigned To: Pavel Hrdina
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2014-09-25 07:21 EDT by Pavel Hrdina
Modified: 2015-03-05 02:45 EST (History)
6 users (show)

See Also:
Fixed In Version: libvirt-1.2.8-6.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-03-05 02:45:10 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0323 normal SHIPPED_LIVE Low: libvirt security, bug fix, and enhancement update 2015-03-05 07:10:54 EST

  None (edit)
Description Pavel Hrdina 2014-09-25 07:21:24 EDT
Description of problem:
Updating blkdeviotune for live domain doesn't survive restarting the libvirtd

Version-Release number of selected component (if applicable):
libvirt-1.2.8-3.el7

How reproducible:
100%

Steps to Reproduce:
1. set blkdeviotune for running domain
2. restart libvirtd
3. run virsh dumpxml for the domain

Actual results:
changes for blkdeviotune are not present in dumpxml

Expected results:
it should be stored in live XML
Comment 1 Pavel Hrdina 2014-09-25 07:26:12 EDT
Upstream commit:

commit 783fe9ca8c5d1a831d5626c4835a8d3284456d9c
Author: Pavel Hrdina <phrdina@redhat.com>
Date:   Thu Sep 25 11:28:25 2014 +0200

    blkdeviotune: fix bug with saving values into live XML
    
    When you updated some blkdeviotune values for running domain the values
    were stored only internally, but not saved into the live XML so they
    won't survive restarting the libvirtd.
    
    Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Comment 5 Luyao Huang 2014-09-28 04:34:13 EDT
Hi Pavel,

I have found some virsh command have the same issue:
1.blkiotune --device-weights
steps for reproduce:
[root@localhost ~]# virsh blkiotune r6 
weight         : 500
device_weight  : 
device_read_iops_sec: /dev/sda,1234
device_write_iops_sec: /dev/sda,12345
device_read_bytes_sec: /dev/sda,123456
device_write_bytes_sec: 

[root@localhost ~]# service libvirtd restart
Redirecting to /bin/systemctl restart  libvirtd.service
[root@localhost ~]# virsh blkiotune r6 
weight         : 500
device_weight  : 
device_read_iops_sec: 
device_write_iops_sec: 
device_read_bytes_sec: 
device_write_bytes_sec: 

[root@localhost ~]# virsh blkiotune r6 --device-write-iops-sec /dev/sda,123

[root@localhost ~]# virsh suspend r6
Domain r6 suspended

[root@localhost ~]# service libvirtd restart
Redirecting to /bin/systemctl restart  libvirtd.service
[root@localhost ~]# virsh blkiotune r6 
weight         : 500
device_weight  : 
device_read_iops_sec: 
device_write_iops_sec: /dev/sda,123
device_read_bytes_sec: 
device_write_bytes_sec: 

[root@localhost ~]# virsh resume r6
Domain r6 resumed

[root@localhost ~]# virsh blkiotune r6 
weight         : 500
device_weight  : 
device_read_iops_sec: 
device_write_iops_sec: /dev/sda,123
device_read_bytes_sec: 
device_write_bytes_sec: 

[root@localhost ~]# virsh blkiotune r6 --device-write-iops-sec /dev/sda,0

[root@localhost ~]# virsh blkiotune r6 
weight         : 500
device_weight  : 
device_read_iops_sec: 
device_write_iops_sec: 
device_read_bytes_sec: 
device_write_bytes_sec: 

[root@localhost ~]# service libvirtd restart
Redirecting to /bin/systemctl restart  libvirtd.service
[root@localhost ~]# virsh blkiotune r6 
weight         : 500
device_weight  : 
device_read_iops_sec: 
device_write_iops_sec: /dev/sda,123
device_read_bytes_sec: 
device_write_bytes_sec: 

2.numatune --nodeset
steps for reproduce just like blkiotune


3.domiftune 
steps for reproduce just like blkiotune

Do you think these issue should also be solved ?
Comment 6 Pavel Hrdina 2014-10-06 05:52:44 EDT
Sure, they also should be fixed. I'm reopening the bug to track the issue in RHEL-7.1.
Comment 9 Shanzhi Yu 2014-11-14 04:13:29 EST
Change to verify, steps as comment 5. Result is expected.
Comment 11 errata-xmlrpc 2015-03-05 02:45:10 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2015-0323.html

Note You need to log in before you can comment on or make changes to this bug.