Bug 1834523 - Edit VM -> Enable Smartcard sharing does not stick when VM is running
Summary: Edit VM -> Enable Smartcard sharing does not stick when VM is running
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 4.3.9
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.4.1
: 4.4.1
Assignee: Lucia Jelinkova
QA Contact: Qin Yuan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-05-11 20:39 UTC by amashah
Modified: 2021-01-19 13:00 UTC (History)
6 users (show)

Fixed In Version: ovirt-engine-4.4.1.5
Doc Type: Bug Fix
Doc Text:
Previously, adding or removing a smart card to a running virtual machine did not work. The current release fixes this issue. When you add or remove a smart card, it saves this change to the virtual machine's next run configuration. In the Administration Portal, the virtual machine indicates that a next run configuration exists, and lists "Smartcard" as a changed field. When you restart the virtual machine, it applies the new configuration to the virtual machine.
Clone Of:
Environment:
Last Closed: 2020-08-04 13:22:49 UTC
oVirt Team: Virt
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Knowledge Base (Solution) 5065691 0 None None None 2020-05-11 20:45:12 UTC
Red Hat Product Errata RHSA-2020:3247 0 None None None 2020-08-04 13:23:38 UTC
oVirt gerrit 109310 0 master MERGED engine: Smartcard not editable for running VM 2021-01-18 05:57:45 UTC
oVirt gerrit 109932 0 master MERGED engine: make smartcardEnabled editable for templates again 2021-01-18 05:57:45 UTC

Description amashah 2020-05-11 20:39:42 UTC
Description of problem:
Edit a running VM, enable Smartcard sharing does not work.

Version-Release number of selected component (if applicable):
4.3.9

How reproducible:
100%

Steps to Reproduce:
1. Edit a running VM, enable Smartcard sharing
2. Check VmDevices tab, smartcard is not there

Actual results:
Smartcard is not enabled.

Expected results:
Smartcard should be enabled.

Additional info:
Even if VM is powered down/up it does not enable Smartcard, but the UI box still remains checked. 

Workaround: Shutdown the VM, disable Smartcard sharing, enable it back again, then boot the VM back up.

Comment 5 Qin Yuan 2020-07-08 08:22:59 UTC
Verified with:
ovirt-engine-4.4.1.7-0.3.el8ev.noarch

Steps and results:
1. Edit a running VM, enable Smartcard:
   1) there is a next run configuration indication on the VM list page, Smartcard is listed as one of the pending virtual machine changes.
   2) Smartcard is not added on Vm Devices tab before restart.

2. Restart the VM:
   1) Smartcard is added on Vm Devices tab.
   2) check dumpxml, smartcard is added
    <smartcard mode='passthrough' type='spicevmc'>
      <alias name='ua-b0370c13-c055-4629-8c4b-ec4c0e6475bb'/>
      <address type='ccid' controller='0' slot='0'/>
    </smartcard>

3. Edit the running VM, disable Smartcard:
   1) there is a next run configuration indication on the VM list page, Smartcard is listed as one of the pending virtual machine changes.
   2) Smartcard is not removed on Vm Devices tab before restart.

4. Restart the VM:
   1) Smartcard is removed on Vm Devices tab.
   2) check dumpxml, there is no smartcard device.

5. Update an instant type with enabling Smartcard, succeeded.

6. Update an instant type with disabling Smartcard, succeeded.

Comment 14 errata-xmlrpc 2020-08-04 13:22:49 UTC
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 (Important: RHV Manager (ovirt-engine) 4.4 security, bug fix, and enhancement update), 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://access.redhat.com/errata/RHSA-2020:3247


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