Bug 1448287

Summary: [WALA] Suggest to wipe cloud-init data during deprovisioning
Product: Red Hat Enterprise Linux 7 Reporter: Yuxin Sun <yuxisun>
Component: WALinuxAgentAssignee: Mohammed Gamal <mmorsy>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.4CC: borisb, brendand, danis, hkrijger, jopoulso, leiwang, mmorsy, stephen.zarkos, wshi, yujiang, yuxisun
Target Milestone: rcKeywords: Extras
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1448290 (view as bug list) Environment:
Last Closed: 2017-07-24 09:32:34 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:
Embargoed:
Bug Depends On: 1451172    
Bug Blocks: 1448290    

Description Yuxin Sun 2017-05-05 05:48:20 UTC
Description of problem:
Currently run "waagent -deprovision" cannot wipe cloud-init data. We suggest to remove it.

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

RHEL Version:
RHEL-7.4/6.9

How reproducible:
100%

Steps to Reproduce:
1. Prepare a VM in Azure with cloud-init enabled.
2. Run "waagent -deprovision+user -force"
3. Check cloud-init data:
/etc/sudoers.d/90-cloud-init-users
/var/lib/cloud/

Actual results:
The cloud-init data is not wiped

Expected results:
Can wipe cloud-init data

Additional info:
Feature request

Comment 2 Yuxin Sun 2017-05-05 05:50:30 UTC
Will be fixed in WALA-2.2.11

Comment 3 Yuhui Jiang 2017-06-23 02:40:29 UTC
Verified on RHEL 7.4-20170601.0 with WALinuxAgent-2.2.12-1 that this issue has resolved.

My steps:
  refer this issue's Description

Comment 4 Yuxin Sun 2017-07-24 09:32:34 UTC
Close this issue because WALinuxAgent-2.2.14-1.el7/6 has shipped.