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 1733914 - No $HOME/.config dir created if connect libvirtd with libssh
Summary: No $HOME/.config dir created if connect libvirtd with libssh
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: libssh
Version: 8.1
Hardware: Unspecified
OS: Unspecified
low
medium
Target Milestone: rc
: 8.0
Assignee: Anderson Sasaki
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-07-29 08:22 UTC by yafu
Modified: 2021-05-03 07:53 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-11-04 02:00:14 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:4545 0 None None None 2020-11-04 02:00:29 UTC

Description yafu 2019-07-29 08:22:13 UTC
Description of problem:
No $HOME/.config dir created if connect libvirtd with libssh

Version-Release number of selected component (if applicable):
libssh-0.9.0-3.el8.x86_64
libvirt-5.5.0-2.el8.x86_64


How reproducible:
100%


Steps to Reproduce:
1.When connect libvirtd with libssh, it reports error if no other service has created /root/.config dir before:
# virsh -c qemu+libssh://yafu-70-118/system
Accept SSH host key with hash '35:f3:f4:a2:11:b5:01:0e:12:d6:7e:57:4b:b0:45:98:21:80:a7:41' for host 'yafu-70-118:22' (y/n)?: y
error: failed to connect to the hypervisor
error: libssh transport error: failed to write known_host file '/root/.config/libvirt/known_hosts': Cannot create /root/.config/libvirt directory.
2.
3.

Actual results:
Report error because no $HOME/.config dir created.

Expected results:
Should create both $HOME/.config dir and create $HOME/.config/libvirt dir.

Additional info:
1.If other service created $HOME/.config dir, it can create /root/.config/libvirt dir successfully.

Comment 1 Anderson Sasaki 2019-07-29 12:05:44 UTC
Upstream issue tracker:
https://bugs.libssh.org/T166

Comment 13 errata-xmlrpc 2020-11-04 02:00:14 UTC
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 (Moderate: libssh security, 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/RHSA-2020:4545


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