Repository navigation
CLOUDSTACK-8616: Redundant VPC with both routers as Master - #587
wilderrodrigues wants to merge 6 commits into
Conversation
- We use no preempt mode with state set as EQUAL to both nodes, no need to have Priotities setup
- Do not add IPs as comments to the configuration. If a new guest interface is added, the file will change anyway.
- This was used in the past when keepalived would restart for each new interface added
- Removed the long sleep form the tests: we now sleep 5 seconds per PF rule added
CLOUDSTACK-8616 - Fix keepalived.ts/2 files comparison
- Add call to set_fault() in case of router transits to that state
- Removing commented out code
CLOUDSTACK-8616 - Fixing check_heartbeat.sh.templ
CLOUDSTACK-8616 - Call set_fault from the check_heartbeat.sh script
- Runs check_heartbeat.sh every 30 seconds CLOUDSTACK-861 - Copy/Paste error - Paste the wrong command in the crontab line.
- preempt delay reverted on version 1.2.13 - from the backports
- vrrp : Revert "Honor preempt_delay setting on startup.".
- See changelog: http://www.keepalived.org/changelog.html
- Refactoring some variable names to avoid misunderstanding
|
cloudstack-pull-rats #46 SUCCESS |
|
cloudstack-pull-requests #742 SUCCESS |
There was a problem hiding this comment.
Any package related change needs to go into: tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh
AFAIK, this buildsystemvm script is not used or maintained by anyone
There was a problem hiding this comment.
That's a good point, @bhaisaab . I blindly trusted the script and did not check the version before. I just created a rVPC and checked the router to confirm that the version was not updated. I will fix that one, test and push to the PR.
There was a problem hiding this comment.
discussed with @wilderrodrigues : will add a note in this PR that this file is being phased out
There was a problem hiding this comment.
Added the following not to the file and will push it to the PR:
IMPORTANT REMARK
Package intallation is no longer done via this script. We are not removing the code yet, but we want to
make sure that everybody willing to install/update packages should refer to the file:
==> cloud-tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh
Is it good enough?
Cheers,
Wilder
…stemvm_packages.sh - Adding keepalived installation in the right script. I added the change on the buildsystemvm.sh, which is no longer used.
|
cloudstack-pull-rats #47 SUCCESS |
|
cloudstack-pull-requests #743 SUCCESS |
|
LGTM, though did not test it due to lack of time and test infrastructure. |
…mvm.sh - For package installation/update please refer to: cloud-tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh
|
cloudstack-pull-rats #62 SUCCESS |
|
cloudstack-pull-requests #759 SUCCESS |
|
lgtm |
…mvm.sh - For package installation/update please refer to: cloud-tools/appliance/definitions/systemvmtemplate/install_systemvm_packages.sh Signed-off-by: wilderrodrigues <wrodrigues@schubergphilis.com> This closes apache#587
| lasttime=$(cat $ROUTER_BIN_PATH/keepalived.ts2) | ||
| diff=$(($lasttime - $thistime)) | ||
| s=0 | ||
| if [ $diff -lt 30 ] |
There was a problem hiding this comment.
@wilderrodrigues @rhtyd why there is a change in time comparison logic.
if condition will never be true with the changes last-time will be less then this-time and diff will be negative.
So this will end up filling the logs in else condition
There was a problem hiding this comment.
@jayakarteek please refer master/4.11 for latest code, why are you commenting on this very old PR?
In old UI we support creating snapshot from VM snapshot by selecting one of the volume belonging to VM. Allow the same in new UI Co-authored-by: Rakesh Venkatesh <r.venkatesh@global.leaseweb.com> Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>
This PR contains some refactoring of the Python code used by the redundant routers and also a fix for the intermittent problem when running the rVPC component tests.
To summarise it:
I already squashed few commits of this PR so we wouldn't have to go through simple fixes/typos that happened during the tryouts. When opening the commits for review please note that the commit messages also contain the messages of the squashed commits.
Adding the cronjob to restart the KeepaliveD service on reboot helped to get a 60% success rate with the tests. Before that, the tests were failing very often: 4 out of 5 times.
I then added the "restart" when configuration changes instead of "reload". Once the change was applied, I successfully executed the tests 13 times. That gives confidence.
Tests can be executed with the following command:
nosetests --with-marvin --marvin-config=[your_configuration_file] -s -a tags=advanced,required_hardware=true component/test_vpc_redundant.py
Since there were changes on marvin/base.py - in the previous PR, you will need to build/upgrade your Marvin installation.
@DaanHoogland @bhaisaab @remibergsma, could you please have a look at this PR?
Cheers,
Wilder