Repository navigation
CLOUDSTACK-8906: /var/log/cloud/ doesn't get logrotated on xenserver - #883
Conversation
|
cloudstack-pull-rats #719 FAILURE |
|
cloudstack-pull-analysis #668 SUCCESS |
ffc786f to
f8fa36a
Compare
|
cloudstack-pull-rats #722 FAILURE |
|
cloudstack-pull-analysis #671 SUCCESS |
f8fa36a to
57edb56
Compare
|
cloudstack-pull-rats #723 SUCCESS |
|
cloudstack-pull-analysis #672 SUCCESS |
|
@SudharmaJain The title and the content of your PR do not match. You seem to re-implement the XenServer 6.0.2 resource? If that is what you want, make a PR just for that. Also I'd like to know if the logrotate you make works on 6.2 and 6.5 as well. Did you also see PR #861 on this subject? |
|
@remibergsma I didn't checked the PR #861. I was looking to fix the issue with xenserver 6.0.2 and higher. For this I have added a logrotate script and a Patch file for 6.0.2 which is the same as for xenserver 6.0 with an extra entry for logrotate script. same entry is added in patch file for 6.2 and 6.5. In earlier version, you can find logrotate in /etc/cron.hourly. In later versions it was not available which broke the log rotate functionality. |
|
@SudharmaJain Can you please rebase against current master? Then we can run the tests. |
57edb56 to
85db994
Compare
|
cloudstack-pull-rats #753 SUCCESS |
|
@remibergsma Rebased against the current master. |
|
cloudstack-pull-analysis #704 SUCCESS |
|
@SudharmaJain Why can't the XenServer600Resource be used to handle XS 6.0.2 hosts? The only change I see is the patch script (scripts/vm/hypervisor/xenserver/xenserver602/patch). If the content of the patch file is same as that of scripts/vm/hypervisor/xenserver/xenserver60/patch then there is no need for a separate 6.0.2 resource, PR #861 should be used instead. |
|
@SudharmaJain Please respond to comments. If you agree, please close this PR. Thanks! |
|
@koushik-das This bug exist in xenserver 6.0.2 and later. For XenServer 6.0, logrotation works. Thats is the reason i have implemented XenServer602Resource and didn't used Xenserver600Resource. Contents of patch file for 6.0 and 6.0.2 had a difference of one line. I have added a new file logrotate to be deployed in /etc/cron.hourly for versions 6.0.2 and later. So i have updated the patch file for 6.2 and 6.5 as well. |
|
@remibergsma @koushik-das For incorporating the change in XenServer600Resource, I need to test the change for Xenserver 6.0. After checking it for 6.0, I will update the PR. |
|
@SudharmaJain Please test PR #861 and confirm your problem has been solved. We'll then close this PR and merge the other. |
|
LGTM (code-wise), let's merge this once tested. |
|
We won't merge this PR, we should merge #861 instead. Final call to @SudharmaJain to confirm if PR #861 also fixes your issue. If I do not get a response in the coming days, I will merge #861 and close this PR. See for more info the discussion in #861. |
|
@remibergsma @koushik-das I have made the changes and have removed reimplementation of XenServer 6.0.2 resource. I have added changes to patch file for XenServer 6.0 resource, so that log rotation will work for 6.0 and 6.0.2. PR #861 will not fix this issue. Now both PR #883 and PR #861 need to be merged to fix the issues. |
3ab14e2 to
def5115
Compare
|
@koushik-das I merged #861 and @SudharmaJain updated this PR and removed the reimplementation of XenServer 6.0.2 resource. Are you OK with this change now? Please review again, thanks! |
|
@koushik-das Any update on this please? Thanks! |
|
I will admit, I don't really understand everything in play here. If I read this quickly, it seems like this PR may not be needed because #861 essentially changes the database to point to the |
|
The existing implementation for logrotation that works with xenserver 6.0 and earlier does not works with 6.0.2 and later. That is the reason I have added this implentation. With #861 we are changing the database to point to XenServer600Resource, but this change has no impact on log rotation implementation. Here is an article that described the problem and the solution that I implemented. http://support.en.ctx.org.cn/ctx138064.citrix @harikrishna-patnala can you comment if #861 is going to help in log rotation problem. |
|
tag:easypr |
|
Can someone with a xenserver setup validate this one? @bvbharat can you queue this one up for us? Thanks... |
ACS CI BVT RunSumarry: Link to logs Folder (search by build_no): https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0 Failed tests:
Skipped tests: Passed test suits: |
|
Previous CI failures were not relevant to my changes. |
ACS CI BVT RunSumarry: Link to logs Folder (search by build_no): https://www.dropbox.com/sh/yj3wnzbceo9uef2/AAB6u-Iap-xztdm6jHX9SjPja?dl=0 Failed tests: Skipped tests: Passed test suits: |
|
Test results; mv -n option is provided in line 52 executed xenserver version 6.5.0 |
|
@jayakarteek Thanks for testing. I have made the respective code changes. |
|
Tested the PUll Request. |
|
tag:mergeready |
|
@blueorangutan package |
|
@DaanHoogland a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress. |
|
Packaging result: ✔centos6 ✔centos7 ✔debian. JID-738 |
|
@blueorangutan test centos7 xenserver-65sp1 |
|
@DaanHoogland a Trillian-Jenkins test job (centos7 mgmt + xenserver-65sp1) has been kicked to run smoke tests |
|
Trillian test result (tid-1122)
|
DaanHoogland
left a comment
There was a problem hiding this comment.
the network test failures remain concerning but do not have to do with the logrotator
|
Merging based on CI results, no regressions seen and manual test confirmation on the PR. |
Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
After integrating XS with CCP the following folder gets created: /var/log/cloud/ however the logs in that are not rotated resulting in root file system fill up. It was a known issue and link http://support.citrix.com/article/CTX138064 describes the issue and solution. Used the article and added corresponding changes to Cloudstack.