Bug 1792319

Summary: [machines] Raw disk can not be added again with error "unsupported configuration: shared access for disk 'vdb' requires use of supported storage format"
Product: Red Hat Enterprise Linux 8 Reporter: Xianghua Chen <xchen>
Component: cockpit-appstreamAssignee: Simon Kobyda <skobyda>
Status: CLOSED ERRATA QA Contact: Xianghua Chen <xchen>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 8.2CC: kkoukiou, mpitt, skobyda, ymao, yunyang
Target Milestone: rc   
Target Release: 8.2   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-04-28 15:43:08 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 Xianghua Chen 2020-01-17 14:14:45 UTC
Description of problem:
Raw disk can not be added again with error "unsupported configuration: shared access for disk 'vdb' requires use of supported storage format"

Version-Release number of selected component (if applicable):
cockpit-machines-210-1.el8.noarch
libvirt-dbus-1.2.0-3.module+el8.1.0+4066+0f1aadab.x86_64

How reproducible:
100%

Steps to Reproduce:
1. Prepare an off VM
2. Enter Disk tab, click Add Disk
  Source:Create New
  Pool:images
  Name:test1
  Size:1
  Format:raw
  Cache:default
  Bus:virtio
Click Add
3. Click Remove to detach the disk
4. Click Add Disk
  Source:Use Existing
  Volume:test1 (The one you created in step2)


Actual results:
Raw disk can not be added again with error "unsupported configuration: shared access for disk 'vdb' requires use of supported storage format"

Expected results:
The existing raw disk can be added correctly

Additional info:
This only happens when there is only 2 disks in the pool.

Comment 1 Simon Kobyda 2020-01-23 11:59:10 UTC
PR fix:
https://github.com/cockpit-project/cockpit/pull/13437

Comment 4 Xianghua Chen 2020-02-21 07:11:54 UTC
Verified with package:
cockpit-machines-211.2-1.el8.noarch

Steps:
1. Prepare an off VM
2. Enter Disk tab, click Add Disk
  Source:Create New
  Pool:images
  Name:test1
  Size:1
  Format:raw
  Cache:default
  Bus:virtio
Click Add
3. Click Remove to detach the disk
4. Click Add Disk
  Source:Use Existing
  Volume:test1 (The one you created in step2)

The existing raw disk can be added correctly.
So verified.

Comment 6 errata-xmlrpc 2020-04-28 15:43:08 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, 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/RHBA-2020:1639