Bug 1963701
| Summary: | [Machines]cockpit-machine: vnc and spice listen address is hardcoded to 127.0.0.1, ignoring qemu.conf #See 1833829 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | Strahil Nikolov <hunter86_bg> |
| Component: | cockpit-appstream | Assignee: | Martin Pitt <mpitt> |
| Status: | CLOSED ERRATA | QA Contact: | YunmingYang <yunyang> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 8.4 | CC: | kkoukiou, xchen, yunyang |
| Target Milestone: | beta | Flags: | pm-rhel:
mirror+
|
| Target Release: | 8.5 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | cockpit-appstream-250-1.el8 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2021-11-09 17:53:43 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: | |||
| Bug Depends On: | 1833829 | ||
| Bug Blocks: | |||
|
Description
Strahil Nikolov
2021-05-23 14:54:36 UTC
Fixed upstream in https://github.com/cockpit-project/cockpit-machines/pull/156 @yunyang can you please QE-ack? Sure Fixed in version 249. Pre-tested by check-machines-create which runs in gating. Test Versions:
cockpit-machines-250-1.el8.noarch
cockpit-250-1.el8.x86_64
libvirt-dbus-1.3.0-2.module+el8.3.0+6423+e4cb6418.x86_64
Test Steps:
1 Modify /etc/libvirt/qemu.conf to add "spice_listen = "${host_IP}"", then save and restart libvirtd
2 Log in cockpit, and create a runnig VM
3 Go to the VM detail page
4 Switch console type to "Desktop viewer", check the information
5 Click "Launch remote viewer", then use the downloaded file by remote-viewer to connect the console
6 Modify /etc/libvirt/qemu.conf to add "spice_password = "${password}"", then save and restart libvirtd
7 Re-create a running VM, then go to the VM detail page and Switch console type to "Desktop viewer"
8 Check the information
9 Click "Launch remote viewer", then use the downloaded file by remote-viewer to connect the console
10 Remove "spice_listen = "${host_IP}"" and "spice_password = "${password}", and add "vnc_listen = "${host_IP}" to /etc/libvirt/qemu.conf, then restart libvirtd
11 Re-create a running VM, then go to the VM detail page and Switch console type to "Desktop viewer"
12 Check the information
13 Click "Launch remote viewer", then use the downloaded file by remote-viewer to connect the console
14 Add "VNC_password = "${password}" to /etc/libvirt/qemu.conf, then restart libvirtd
15 Re-create a running VM, then go to the VM detail page and Switch console type to "Desktop viewer"
16 Check the information
17 Click "Launch remote viewer", then use the downloaded file by remote-viewer to connect the console
18 Re-add "spice_listen = "${host_IP}"" and "spice_password = "${password}", then restart libvirtd
19 Re-create a running VM, then go to the VM detail page and Switch console type to "Desktop viewer"
20 Check the information
21 Click "Launch remote viewer", then use the downloaded file by remote-viewer to connect the console
Test Results:
1 In step 4, there are two address shown, spice is "${host_IP}", vnc is "127.0.0.1"
2 In step 5, remote-viewer can connect successfully
3 In step 8, IP addresses is shown the same with step 4
4 In step 9, when connecting, there will be a dialog for inputting ${spice_password}, after inputting, connecting is successful
5 In step 12, vnc address is shown as "${host_IP}", spice address is "127.0.0.1"
6 In step 13, connecting is successful
7 In step 16, IP addresses is shown the same with step 12
8 In step 17, when connecting, there will be a dialog for inputting ${vnc_password}, after inputting, connecting is successful
9 In step 20, there is only "Address" shown as "${host_IP}"
10 In step 21, when connecting, there will be a dialog for inputting ${spice_password}, after inputting, connecting is successful
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-2021:4178 |