Bug 2030948
| Summary: | [Machines] The transient vm is changed to Persistent after deleting a Network Interface | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Xianghua Chen <xchen> |
| Component: | cockpit-machines | Assignee: | Katerina Koukiou <kkoukiou> |
| Status: | CLOSED ERRATA | QA Contact: | Xianghua Chen <xchen> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.0 | CC: | jvanderwaa, mpitt, wshi, ymao, yunyang |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | 9.2 | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | cockpit-machines-283-1.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-05-09 07:34:03 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
2021-12-10 03:50:54 UTC
Verified with packages:
cockpit-machines-283-1.el9.noarch
cockpit-285-1.el9.x86_64
libvirt-dbus-1.4.1-5.el9.x86_64
libvirt-daemon-9.0.0-3.el9.x86_64
Steps:
1. Create a transient VM by:
# virsh create CirrOS.xml --validate
# cat CirrOS.xml
<domain type='kvm'>
<name>CirrOS</name>
<memory unit='KiB'>1048576</memory>
<currentMemory unit='KiB'>1048576</currentMemory>
<vcpu placement='static'>2</vcpu>
<os>
<type arch='x86_64'>hvm</type>
<boot dev='hd'/>
</os>
<features>
<acpi/>
<apic/>
<vmport state='off'/>
</features>
<devices>
<emulator>/usr/libexec/qemu-kvm</emulator>
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'/>
<source file='/var/lib/libvirt/images/cirros.qcow2' index='1'/>
<target dev='vda' bus='virtio'/>
</disk>
<interface type='network'>
<source network='default' bridge='virbr0'/>
</interface>
<graphics type='vnc' port='5901' autoport='yes' listen='127.0.0.1'>
<listen type='address' address='127.0.0.1'/>
</graphics>
</devices>
</domain>
tips: make sure there is a cirros.qcow in /var/lib/libvirt/images/
2. It's transient and the Persistent is no:
# virsh dominfo CirrOS
Id: 1
Name: CirrOS
UUID: c8785042-9786-42a2-bc9a-7bbe576d9b4d
OS Type: hvm
State: running
CPU(s): 2
CPU time: 5.3s
Max memory: 1048576 KiB
Used memory: 1048576 KiB
Persistent: no
Autostart: disable
Managed save: no
Security model: selinux
Security DOI: 0
Security label: system_u:system_r:svirt_t:s0:c223,c435 (enforcing)
Messages: tainted: use of deprecated configuration settings
deprecated configuration: machine type 'pc-i440fx-rhel7.6.0'
deprecated configuration: CPU model 'qemu64'
3. Enter the VM page, add a Network interface and then delete it.
4. It's still transient and the Persistent is no
# virsh dominfo CirrOS
Id: 1
Name: CirrOS
UUID: c8785042-9786-42a2-bc9a-7bbe576d9b4d
OS Type: hvm
State: running
CPU(s): 2
CPU time: 5.7s
Max memory: 1048576 KiB
Used memory: 1048576 KiB
Persistent: no
Autostart: disable
Managed save: no
Security model: selinux
Security DOI: 0
Security label: system_u:system_r:svirt_t:s0:c223,c435 (enforcing)
Messages: tainted: use of deprecated configuration settings
deprecated configuration: machine type 'pc-i440fx-rhel7.6.0'
deprecated configuration: CPU model 'qemu64'
So 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-machines 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-2023:2211 |