Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1673158

Summary: [RFE] [machines] Display snapshot information for a VM
Product: Red Hat Enterprise Linux 8 Reporter: Javier Coscia <jcoscia>
Component: cockpit-appstreamAssignee: Simon Kobyda <skobyda>
Status: CLOSED DEFERRED QA Contact: YunmingYang <yunyang>
Severity: low Docs Contact:
Priority: medium    
Version: 8.0CC: anilsson, kkoukiou, mmarusak, mpitt, mtessun, qiyuan, skobyda, xchen
Target Milestone: rcKeywords: FutureFeature
Target Release: 8.4Flags: pm-rhel: mirror+
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: 2021-01-07 05:19:40 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:
Bug Depends On: 1902180    
Bug Blocks:    

Description Javier Coscia 2019-02-06 19:29:51 UTC
Description of problem:

Currently it is not possible query/see information about snapshots which were already created through command line

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

cockpit-machines-184.1-1.el8.noarch

How reproducible:

100%

Steps to Reproduce:
1. Create a snapshot through CLI with `virsh snapshot-create $domain --xmlfile snap1.xml`
2. Ensure information is present on the CLI with `virsh snapshot-list $domain` & `virsh snapshot-info $domain --snapshotname snapshot1`
3. Access the cockpit UI, select the VM where the snapshot was created, there's no tab to see snapshot information

Actual results:

There's no current way to see through cockpit UI information related to an existing snapshot

Expected results:

This information should be displayed in VM details

i.e., the following information could be shown, name, state and creation time, description would be nice too

[root@rhel8 ~]# virsh snapshot-list rhel8vm3
 Name                 Creation Time             State
------------------------------------------------------------
 snapshot1            2019-02-06 15:44:40 -0300 shutoff

Comment 1 Andreas Nilsson 2019-02-15 13:28:22 UTC
Thanks for filing this!
I think this is part of a bigger story for snapshots. Just being able to view the snapshots created via the CLI has little value, unless you can do something with them.
The core functionality for snapshots would be to create a snapshot, do some (potentially destructive) actions on the VM and have the ability to restore to the snapshotted state at a later point. This of course includes listing them with timestamps etc. so you can identify what one you want to restore to, in case you made several.
I'm happy to work on user story and a design for this.

Comment 2 Javier Coscia 2019-02-15 15:46:14 UTC
I agree Andreas, the BZ requesting snap creation is https://bugzilla.redhat.com/show_bug.cgi?id=1668870, although the idea here is, since we still support virt-manager and the CLI, users would be able to create internal/external snapshots from any of those sources and won't tell if the VM has snapshots through cockpit, so, in the meantime while we get snap creation support on cockpit I think it would be good to be able to see this information.

If BZ 1668870 lands on GA, then I think there's no point in having this one since it will be included in that other one.

Comment 4 Andreas Nilsson 2019-10-18 12:19:07 UTC
github issue: https://github.com/cockpit-project/cockpit/issues/13010

Comment 7 Katerina Koukiou 2020-11-19 13:25:02 UTC
This was introduced upstream by: 

commit 63a6c4d9e2f07b65fa1e4ad1436737043a393205
Author: Simon Kobyda <skobyda>
Date:   Mon Nov 4 14:16:17 2019 +0100

    machines: Introduce VM snapshots into UI

Comment 14 Red Hat Bugzilla 2023-09-18 00:15:28 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days