Bug 828722

Summary: RFE: virt-manager should support startupPolicy attribute for the disks
Product: [Community] Virtualization Tools Reporter: Min Zhan <mzhan>
Component: virt-managerAssignee: Cole Robinson <crobinso>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: high    
Version: unspecifiedCC: acathrow, berrange, crobinso, cwei, dallan, hyao, lagarcia, mzhan, zpeng
Target Milestone: ---Keywords: FutureFeature
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-01 14:50:48 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Min Zhan 2012-06-05 09:14:20 UTC
Description of problem:
startupPolicy attribute is implemented in RHEL6.3 libvirt, which defines policy what to do with the disk if the source file is not accessible. IMO this attribute should display in the virt-manager UI for users' reference.

Version-Release number of selected component (if applicable):
libvirt-0.9.10-21.el6
virt-manager-0.9.0-14.el6.x86_64
python-virtinst-0.600.0-8.el6.noarch

How reproducible:
Always

Steps to Reproduce:

1. startupPolicy has 3 values: mandatory, requisite, optional for cdrom or floppy supported in libvirt; but it can not accessed via virt-manager. For example:
...
    <disk type='file' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <source startupPolicy='optional'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
      <alias name='ide0-1-0'/>
      <address type='drive' controller='0' bus='1' target='0' unit='0'/>
    </disk>
...

  
Actual results:
as above

Expected results:
Support it in virt-manager UI

Additional info:

Comment 2 RHEL Program Management 2012-07-10 07:46:13 UTC
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.

Comment 3 RHEL Program Management 2012-07-11 01:57:44 UTC
This request was erroneously removed from consideration in Red Hat Enterprise Linux 6.4, which is currently under development.  This request will be evaluated for inclusion in Red Hat Enterprise Linux 6.4.

Comment 4 Cole Robinson 2014-02-01 14:50:48 UTC
With the new virt-xml tool, it's fairly easy to change startupPolicy for an individual disk with a single command line option. So for people that know what they want, there's an easy way to trigger.

As for showing in the UI, I think it's unneeded: for one, most people shouldn't need it, and it's also a difficult option to explain to clueless users in the UI. So I think exposing it via virt-install/virt-xml is the best we should do.