Bug 833029

Summary: Symbolic link and http proxy config files are not cleaned up from source node after move mysql gear from one node to another node.
Product: OKD Reporter: Johnny Liu <jialiu>
Component: ContainersAssignee: Ram Ranganathan <ramr>
Status: CLOSED CURRENTRELEASE QA Contact: libra bugs <libra-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 2.xCC: jhonce, mfisher, mpatel, qgong, ramr
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-25 18:27:17 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:

Description Johnny Liu 2012-06-18 12:18:24 UTC
Description of problem:
After move mysql gear from source node to target node, check the souce node, found the Symbolic link for mysql gear is still listed there.

Version Release number of selected component (if applicable):
devenv_1850

How reproducible:
Always

Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Johnny Liu 2012-06-18 12:25:45 UTC
Not only symbolic link for mysql gear is not deleted, but also http proxy files files are also left.

[root@ip-10-72-198-196 stickshift]# rhc-admin-move --gear_uuid 2fa64831207044bdab1ee43d4507502b -i  ip-10-110-81-169
<--snip-->
Successfully moved 'myapp1' with gear uuid '2fa64831207044bdab1ee43d4507502b' from 'ip-10-72-198-196' to 'ip-10-110-81-169


[root@ip-10-72-198-196 stickshift]# ls .httpd.d/2fa64831207044bdab1ee43d4507502b_jialiu_2fa6483120
00000_default.conf  mysql-5.1.conf

Comment 2 Jhon Honce 2012-06-18 17:28:42 UTC
Please include the commands you used to create the gear. I have not been able to reproduce with a 2-node setup.

Comment 3 Ram Ranganathan 2012-06-19 01:13:26 UTC
Fixed with git commits 44abb1a735c8b23c97ccbc59f14e15575f8bb861  and  d2494625f7cf56f14402000d05ab5eb07634f36a.  

There were fixes needed for deconfigure to occur in the gear move code + there are fixes to create/remove the unobsfucated links.

Comment 4 Rony Gong 🔥 2012-06-19 08:34:07 UTC
verified on devenv_1857

both mysql gear foler and symbol link delete in source node, and in .http.d can't see the mysql gear information.

Comment 5 Johnny Liu 2012-06-20 07:18:11 UTC
This bug has been fixed, so clean needinfo flag.