Bug 2036330
| Summary: | [RFE] [machines] Create disks with random serial number | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Strahil Nikolov <hunter86_bg> |
| Component: | cockpit-appstream | Assignee: | Simon Kobyda <skobyda> |
| Status: | CLOSED ERRATA | QA Contact: | YunmingYang <yunyang> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.5 | CC: | hunter86_bg, mpitt, skobyda |
| Target Milestone: | rc | Keywords: | FutureFeature |
| Target Release: | 8.7 | Flags: | pm-rhel:
mirror+
|
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | cockpit-appstream-269-1.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-11-08 09:38:48 UTC | Type: | Feature Request |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Strahil Nikolov
2021-12-31 09:19:01 UTC
@skobyda is this something c-machines would have to specify/do, or should that be reassigned to libvirt itself? I forgot to mention that oVirt/RHV automatically does it. I don't we should just generate a random serial number, as there are use cases when users would want to specify one manually. E.g. when they want to set up multipath storage, or have some application inside the guest which is configured to the specific disk serial number (common with Windows virtual machines who can have licensed application tied to a serial number of disks). I posted a PR that allows user to specify a serial number: https://github.com/cockpit-project/cockpit-machines/pull/556 Would it be also possible to add a tick box for randomly generated serial ? Implemented in https://github.com/cockpit-project/cockpit-machines/pull/556 Yunming, can you please qe-ack? This is covered by gating tests. Test Versions: cockpit-269-1.el8.x86_64 cockpit-machines-269-1.el8.noarch libvirt-dbus-1.3.0-2.module+el8.6.0+12861+13975d62.x86_64 Test Steps: 1 Login cockpit, then enter "Virtual Machines" page 2 Create a shutoff VM, then enter the VM detail page 3 Click "Add disk" button, then click "Show additional options" in the "Add disk" dialog 4 Fill "Name" and "Disk identifier" of the dialog like "supplementry_ disk.qcow2" and "sup_disk_GB9DSDAAWDI" 5 Click "Add" of the dialog 6 Check the new created disk by "virsh dumpxml test | xmllint --xpath '/domain/devices/disk[@device!="cdrom"]/serial' - | sed 's#</serial>#</serial>\n#g'" Test Results: 1 After step 3, the "Source" of the dialog should be "Create new", the "Pool" should be default the default storage pool 2 After step 5, adding the disk should be successful. "Add disk" dialog should be closed, and there will be a new created disk shown in "Disks" tab 3 After step 6, the result should be like "<serial>sup_disk_GB9DSDAAWDI</serial>" According to the results, move status to VERIFIED. 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 (cockpit-appstream 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/RHBA-2022:7554 |