[ 
https://issues.apache.org/jira/browse/CLOUDSTACK-9188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15103835#comment-15103835
 ] 

ASF subversion and git services commented on CLOUDSTACK-9188:
-------------------------------------------------------------

Commit ff89587fd119b1cad543d8e96f0c428e41c35840 in cloudstack's branch 
refs/heads/4.7 from [~remibergsma]
[ https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;h=ff89587 ]

Merge pull request #1277 from ekholabs/fix/4.7-rvpc-net-gc-CLOUDSTACK-9154

[4.7] Critical VPCVR issues fixed: CLOUDSTACK-9154; CLOUDSTACK-9187; and 
CLOUDSTACK-9188This PR applies the same fixes as in the PR #1259, but against 
branch 4.7.

Please refer to PR #1259 for the tests results and all the comments already 
made there.

Issues fixed are:

* CLOUDSTACK-9154: rVPC doesn't recover from cleaning up of network garbage 
collector
* CLOUDSTACK-9187: rVPC routers in Master/Master due to concurrency problem 
when writing the keepalivd.conf
* CLOUDSTACK-9188: NetworkGarbageCollector is not using gc.interval and gc.wait 
from settings

Those changes have been covered by 2 new tests added to 
```smoke/test_vpc_redundant.py```:

* test_04_rvpc_network_garbage_collector_nics
* test_05_rvpc_multi_tiers

The test ```test_04_rvpc_network_garbage_collector_nics``` depends on the 
global settings for the network.gc.interval and gc.wait. If one wants the test 
to run quicker, please change the settings (default is 600 seconds for each) 
and restart the Management Server before running the tests. I would suggest to 
set it to 60 seconds.

In addition, the NetworkGarbageCollector was redefining the settings above 
mentioned and not reading their values through ConfigDao. Due to that, the 
settings were not being applied properly and the test was waiting to long to 
check the VPC routers.

* pr/1277:
  CLOUDSTACK-9154 - Sets the pub interface down when all guest nets are gone
  CLOUDSTACK-9187 - Makes code ready for more something like ethXXXX, if we 
ever get that far
  CLOUDSTACK-9188 -  Reads network GC interval and wait from configDao
  CLOUDSTACK-9187 - Fixes interface allocation to VRRP instances
  CLOUDSTACK-9187 - Adds test to cover multiple nics and nic removal
  CLOUDSTACK-9154 - Adds test to cover nics state after GC
  CLOUDSTACK-9154 - Returns the guest iterface that is marked as added

Signed-off-by: Remi Bergsma <git...@remi.nl>


> NetworkGarbageCollector is not using gc.interval and gc.wait from settings
> --------------------------------------------------------------------------
>
>                 Key: CLOUDSTACK-9188
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9188
>             Project: CloudStack
>          Issue Type: Bug
>      Security Level: Public(Anyone can view this level - this is the 
> default.) 
>          Components: Network Controller
>    Affects Versions: 4.7.0
>            Reporter: Wilder Rodrigues
>            Assignee: Wilder Rodrigues
>             Fix For: 4.7.1
>
>
> The settings are bing used from local object and not retrieving what has been 
> saved in the DB.
> From lines 3333 to 3336:
>     public static final ConfigKey<Integer> NetworkGcWait = new 
> ConfigKey<Integer>(Integer.class, "network.gc.wait", "Advanced", "600",
>             "Time (in seconds) to wait before shutting down a network that's 
> not in used", false, Scope.Global, null);
>     public static final ConfigKey<Integer> NetworkGcInterval = new 
> ConfigKey<Integer>(Integer.class, "network.gc.interval", "Advanced", "600",
>             "Seconds to wait before checking for networks to shutdown", true, 
> Scope.Global, null);



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to