Bug 589942

Summary: Virt-manager: The Storage autostart is unchecked , But the status is still "active"
Product: Red Hat Enterprise Linux 6 Reporter: Jianjiao Sun <jsun>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED WORKSFORME QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.0CC: xen-maint
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-06-02 13:45:29 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jianjiao Sun 2010-05-07 11:03:40 UTC
Description of problem:
I unchecked the autostart of storage, and reboot my guest.I didn'g get the status "inactive" 


Version-Release number of selected component (if applicable):
[unanao@dhcp-65-37 ~]$ cat /etc/redhat-release 
Red Hat Enterprise Linux Server release 6.0 Beta (Santiago) 

[unanao@dhcp-65-37 ~]$ rpm -qa |grep libvirt
libvirt-python-0.8.0-4.el6.x86_64
libvirt-client-0.8.0-4.el6.x86_64
libvirt-0.8.0-4.el6.x86_64

[unanao@dhcp-65-37 ~]$ rpm -q virt-manager
virt-manager-0.8.4-1.el6.noarch



How reproducible:
always

Steps to Reproduce:

There are at least 2 storage pools are available.
step:
1, Launch virt-manager
2, Open host details window: ?Make the connect selected, then click "Edit ->Host Details"), Go to "Storage" tab.
3, Click the first Storage, uncheck the check box beside "Auto start", click "Apply" if status changed.Click the second storage, make sure the check box selected, click "Apply".
4, reboot the host.
5, Launch virt-manager and open host detail window after reboot have succeed.
  
Actual results:
[root@dhcp-65-37 yum.repos.d]# virsh pool-list --all
Name                 State      Autostart 
-----------------------------------------
default              active     no        
new_poll             active     yes 

Expected results:
The first storage should not have running and the second should running at step 5.

Additional info:
My system is a cleaned system,except for we need.

Comment 2 RHEL Program Management 2010-05-07 12:58:58 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux major release.  Product Management has requested further
review of this request by Red Hat Engineering, for potential inclusion in a Red
Hat Enterprise Linux Major release.  This request is not yet committed for
inclusion.

Comment 3 Cole Robinson 2010-05-11 18:21:03 UTC
In your description, you say you reboot your guest. In the steps to reproduce, you say you reboot your host machine. Can you please clarify?

Following your steps to reproduce, if I turn off autostart for pool 'default' and do a 'service libvirtd restart', pool-list --all shows that the pool is not running, so I cannot reproduce this issue. Can you update to latest libvirt and retry? If you can reproduce with virt-manager, can you reproduce using the virsh pool-autostart --disable command?

Comment 4 Jianjiao Sun 2010-06-02 01:30:56 UTC
Sorry!Replied so late,Because (In reply to comment #3)
> In your description, you say you reboot your guest. In the steps to reproduce,
> you say you reboot your host machine. Can you please clarify?
> 
> Following your steps to reproduce, if I turn off autostart for pool 'default'
> and do a 'service libvirtd restart', pool-list --all shows that the pool is not
> running, so I cannot reproduce this issue. Can you update to latest libvirt and
> retry? If you can reproduce with virt-manager, can you reproduce using the
> virsh pool-autostart --disable command?    

Thanks for your kindly reply!
Sorry!I replied so late,after I reported the bug ,I went back to school a few days,and we came back,other work surrounded me.
I test "disable the pool autostart" through 'pool-autostart' virsh command and 'virt-manager',both of them works well on 'libvirt-0.8.1-7.el6.x86_64'.Maybe I make a mistake ,and forgot to reboot my host!
Thanks for your kindly reply again!

Comment 5 Cole Robinson 2010-06-02 13:45:29 UTC
Thanks, closing as WORKSFORME