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 1378730 - Failed to save password with ticking 'Save this password in your keyring' using virt-manager for root user.
Summary: Failed to save password with ticking 'Save this password in your keyring' usi...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: gnome-keyring
Version: 7.3
Hardware: x86_64
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: David King
QA Contact: Desktop QE
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-09-23 08:35 UTC by zhoujunqin
Modified: 2023-09-14 03:31 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-12-09 15:26:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description zhoujunqin 2016-09-23 08:35:01 UTC
Description of problem:
Failed to save password with ticking 'Save this password in your keyring' using virt-manager for root user.

Version-Release number of selected component (if applicable):
virt-manager-1.4.0-2.el7.noarch
libvirt-2.0.0-10.el7.x86_64
pygobject3-3.14.0-3.el7.x86_64

How reproducible:
100%

Steps to Reproduce:

1. Prepare a vnc or spice guest with password set.
eg:
# virsh dumpxml rhel6.8-spice --security-info |grep passwd
    <graphics type='spice' port='5900' autoport='yes' listen='127.0.0.1' passwd='aaaaaa'>
2. Launch virt-manager
# virt-manager
3. Open the guest and type correct password, make sure you can login successfully.
4. Close the guest window and open the guest again, type correct password and with checking on 'Save this password in your keyring', then click login button, login successfully.
5. Close the guest window, and open the guest again, check password is remembered or not and also check "Save this password in your keyring" is ticked or not.


Actual results:
Password is not remembered and "Save this password in your keyring" is not ticked.

Expected results:
Password is remembered and "Save this password in your keyring" is ticked.

Additional info:
1. virt-manager debug info:

[Fri, 23 Sep 2016 02:20:32 virt-manager 14217] DEBUG (keyring:59) Using keyring session /org/freedesktop/secrets/session/s2
[Fri, 23 Sep 2016 02:20:39 virt-manager 14217] ERROR (keyring:87) Failed to add keyring secret
Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/keyring.py", line 84, in add_secret
    props, params, replace)[0]
  File "/usr/lib64/python2.7/site-packages/gi/overrides/Gio.py", line 171, in __call__
    None)
Error: g-io-error-quark: GDBus.Error:org.freedesktop.Secret.Error.NoSuchObject: The '/org/freedesktop/secrets/aliases/default' object does not exist (36)

2. It works with non-root user.
$ virt-manager -c qemu:///system

Comment 1 Pavel Hrdina 2017-03-03 15:22:57 UTC
From the traceback it's clear that virt-manager connects to gnome-keyring and that gnome-keyring fails that the keyring file itself doesn't exist.  However it may be already fixed because when I was investigating this bug the ~/.local/share/keyrings/login.keyring is automatically created when root user logs in.

I'm moving this bug to gnome-keyring so they can properly close it with better explanation.

Comment 3 David King 2020-12-09 15:26:24 UTC
Does not seem reproducible based on comment #1, but if the login keyring is not automatically created with more recent versions, please file a new bug.

Comment 5 Red Hat Bugzilla 2023-09-14 03:31:16 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days


Note You need to log in before you can comment on or make changes to this bug.