Bug 1323152 - [WALA][rhel6.8]"service sshd reload" is a must after resetting password
Summary: [WALA][rhel6.8]"service sshd reload" is a must after resetting password
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: WALinuxAgent
Version: 6.8
Hardware: Unspecified
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Yue Zhang
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1359574 1387784
TreeView+ depends on / blocked
 
Reported: 2016-04-01 11:59 UTC by Yuxin Sun
Modified: 2016-11-16 06:20 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-09-21 09:51:12 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Yuxin Sun 2016-04-01 11:59:00 UTC
Description of problem:
If the user in provision is authenticated with ssh_key, then use "reset password" feature to add a new user that is authenticated with password, I cannot use the new user to access to the VM from other hosts because of "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)." If I execute "service sshd reload" on the VM, then I can use the new user to access to the VM from other hosts with password.

Version-Release number of selected component (if applicable):
WALinuxAgent-2.0.18-rc4(upstream)
WALinuxAgent-2.0.16-1

How reproducible:
Always

Steps to Reproduce:
1. Prepare a VM with WALinuxAgent installed. The new user must be authenticated with ssh_key while provisioning.
2. On portal, use "reset password" to add a new user which is authenticated with password.
3. Try to use the new user to access to the VM from other hosts.
4. Execute "service sshd reload" on the VM, then rerun step 3.

Actual results:
In step 3, we cannot use the new user to access to the VM from other hosts because of "Permission denied (publickey,gssapi-keyex,gssapi-with-mic)."
In step 4, we can use the new user to access to the VM from other hosts.

Expected results:
Without executing "service sshd reload" manually, we can use the new user to access to the VM from other hosts.

Additional info:
It seems that "PasswordAuthentication" in /etc/ssh/sshd_config is changed from "no" to "yes", but the sshd service is not reloaded.

Comment 3 Yuxin Sun 2016-08-10 06:30:34 UTC
This bug reported in VMAccessForLinux-1.4.0.0.
Still exists in VMAccessForLinux-1.4.1.0.

Comment 4 Dave Anderson 2016-08-18 15:50:57 UTC
(In reply to yuxisun from comment #3)
> This bug reported in VMAccessForLinux-1.4.0.0.
> Still exists in VMAccessForLinux-1.4.1.0.

Does that mean that it still exists in the 2.1.5 rebase?

Comment 5 Dave Anderson 2016-08-18 16:00:11 UTC
Setting Devel Conditional NAK: Patch for rhel-6.9

Comment 6 Yuxin Sun 2016-08-22 02:16:45 UTC
(In reply to Dave Anderson from comment #4)
> (In reply to yuxisun from comment #3)
> > This bug reported in VMAccessForLinux-1.4.0.0.
> > Still exists in VMAccessForLinux-1.4.1.0.
> 
> Does that mean that it still exists in the 2.1.5 rebase?

Actually, I think it is not related to WALinuxAgent, but only an issue of an extension named "VMAccessForLinux". This is an independent tool which is only called by WALA. 
This issue is not fixed now so I haven't closed it. But I think the WALA team don't need to do anything for that.

Comment 8 Bin Han 2016-09-21 09:39:32 UTC
Version:
WALinuxAgent-2.1.6

Steps:
1. Prepare a VM with WALinuxAgent installed. The new user must be authenticated with ssh_key while provisioning.
2. On portal, use "reset password" to add a new user which is authenticated with password.
3. Try to use the new user to access to the VM from other hosts.

Results:
We can use the new user to access to the VM from other hosts.

So verified.

Comment 9 Yuxin Sun 2016-09-21 09:51:12 UTC

*** This bug has been marked as a duplicate of bug 1360493 ***


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