Bug 1452460

Summary: [WALA]Remove extension logs during deprovision
Product: Red Hat Enterprise Linux 6 Reporter: Yuhui Jiang <yujiang>
Component: WALinuxAgentAssignee: Vitaly Kuznetsov <vkuznets>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.9CC: borisb, brendand, danis, hkrijger, jopoulso, leiwang, stephen.zarkos, virt-bugs, vkuznets, 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: 1452458 Environment:
Last Closed: 2017-07-24 09:32:19 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: 1451174, 1452458    
Bug Blocks:    

Description Yuhui Jiang 2017-05-19 05:37:44 UTC
+++ This bug was initially created as a clone of Bug #1452458 +++

Description of problem: 
During WALA deprovisioning,WALA remove it's log file(/var/log/waagent.log),but doesn't remove extension's log(/var/log/azure/*).


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

RHEL Version: 
RHEL-7.4/RHEL-6.9

How reproducible: 
100%

Steps to Reproduce: 
1. Prepare a RHEL7.4 VM in Azure. Install WALA and enable it while booting
2. Install an extension for this VM
3. Waitting for extension completely install,check "/var/log/azure" folder
4. Do WALA deprovision process
5. Check "/var/log/azure" folder


Actual results: 
For step 3:
extension's log files exist here
For step 4:
the file still exists

Expected results: 
Should clean up this folder or remove this folder

Comment 2 Yuhui Jiang 2017-06-16 11:02:58 UTC
Verify in WALinuxAgent-2.2.12-1(have resolved)

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