Bug 1314734

Summary: [WALA]warning message is wrong while deprovisioning if don't delete ssh host key pairs
Product: Red Hat Enterprise Linux 6 Reporter: Yuxin Sun <yuxisun>
Component: WALinuxAgentAssignee: Yue Zhang <yuezha>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 6.7CC: anderson, huishao, jinmiao, jjarvis, leiwang, lic_interop, lizzha, mingzhan, wshi, yuezha, yuxisun
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-09 08:38:25 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:
Bug Depends On:    
Bug Blocks: 1359574, 1366045, 1387784    

Description Yuxin Sun 2016-03-04 11:22:15 UTC
Description of problem:
If set "Provisioning.RegenerateSshHostKeyPair=n" in /etc/waagent.conf and
execute "waagent -deprovision", the ssh how key pairs will not be deleted.
But there is a message "WARNING! All SSH host key pairs will be deleted.".

Version-Release number of selected component (if applicable):
WALinuxAgent-2.0.16-1.el6

How reproducible:
Always

Steps to Reproduce:
1. Prepare a VM with WALinuxAgent installed.
2. Set RegenerateSshHostKeyPair=n in /etc/waagent.conf:
Provisioning.RegenerateSshHostKeyPair=n
3. Execute deprovision, and focus on the warning messages:
# waagent -deprovision

Actual results:
There's a message: "WARNING! All SSH host key pairs will be deleted."

Expected results:
There's no message: "WARNING! All SSH host key pairs will be deleted."
because the ssh host key pairs will not be deleted.

Additional info:

Comment 3 Yuxin Sun 2016-08-09 08:38:25 UTC
This issue is fixed in WALinuxAgent-2.1.5. Verify and close it.

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