Commit Graph

226 Commits

Author SHA1 Message Date
Sheng Yang ac5fd72ded bug 11541: Change CheckRouterCommand timeout from default 10 minutes to 1 minute
Reviewed-by: Anthony Xu

status 11541: resolved fixed
2011-09-22 19:22:09 -07:00
alena 8e47cb21c1 Fixed the problem in addDhcpEntry code when _dnsBasicZoneUpdates was never reset once set to false. 2011-09-14 16:08:12 -07:00
Sheng Yang 0ef051b4d2 bug 11307: Using latest query result rather than set bumpup to false
After the host is disconnected, we can't get latest result, but it's not safe to
think it's priority bump up flag changed.
2011-09-14 14:56:02 -07:00
Naredula Janardhana Reddy 01ac82d9d6 bug 11372:
Added two New values "all" and "default" to global config "network.loadbalancer.haproxy.stats.visibility" . With this change, it can take six possible value:
       global - stats visible from public network.
       guest-network - stats visible only to guestnetwork.
       link-local - stats visible only to link local network(for xen and kvm).
       disabled - stats disabled.
       all - stats available on public,guest and link-local.  (Newly added)
       default - stats availble on the serving http port, this does need any specific http port.(Newly added)

Except default and disabled, all the rest of 4 need to configure the stats port.
2011-09-14 17:09:21 +05:30
Sheng Yang 3ba15fe813 bug 11307: Add destroyRouter command 2011-09-14 03:05:47 -07:00
Sheng Yang 49031c5563 bug 11307: Mark router as to-be-stopped, rather than force stop it.
Force stop the router would release all the resources it used, but router may
still running. Add a column "stop_pending" in the database, and stop it when the
router come back.

Admin would able to choose to force destroy such router, then recover the
network using restartNetwork command with cleanup=false.
2011-09-14 03:05:09 -07:00
Sheng Yang 11f737a673 bug 11307: Rewrite the redundant router's priority
Now the very first router's priority would be 100, and the second one would be
100 - 2 + 1 = 99.
2011-09-14 03:04:37 -07:00
Sheng Yang 59eb1b0ba1 bug 11307: Add Bumped field for domain_router
Only used for redundant virtual router.
2011-09-14 03:03:47 -07:00
Sheng Yang 9e0ee10e9f bug 11307: Let CheckRouterAnswer() parse the return result 2011-09-14 03:03:00 -07:00
alena 0c127890ea bug 11036: resource count update is refactored
status 11036: resolved fixed

1) Use row locks instead of global lock when update resource_count table. When update resource_count for account, make sure that we lock account+all related domains
2) Insert resource_count records for account/domain at the moment when account/domain is created.
3) As a part of DB upgrade, insert missing resource_count records for all non-removed accounts/domains
2011-09-13 10:47:55 -07:00
anthony aef381d873 fixed typo 2011-09-12 12:26:43 -07:00
Kelven Yang 7ce4aa1d23 bug 11362: Make VM network adapter device type be selectable based on VM-specific details 2011-09-07 17:58:01 -07:00
Kelven Yang a73f41e56c bug 11360: make user_vm_details generic to all VMs instead of user-only VMs, VM details info will be carried down to hypervisor resource 2011-09-07 15:37:50 -07:00
keshav 37c74b35ab Support for inline SRX/F5. 2011-09-07 14:18:42 -07:00
kishan 3a6c226bc9 bug 11345: Compare current and previous network stats before updating. Ignore stats if the current stats are not same as the prev stats. Set NetworkUsageAnswer log level to debug 2011-09-07 13:16:11 +05:30
Sheng Yang 5e450e9852 bug 11305: Stop disconnected redundant virtual router if we can process with the connected one
When we apply rules or start new VM, we may encounter some running routers that
we can't program. That can due to network issue or host is down or vCenter is
disconnected, etc. To keep the synchronization, we would stop them, but only
when there is the other router we've successfully updated. If both routers are
unable to communicate with, we simply give up and report it user.
2011-08-31 19:15:38 -07:00
Naredula Janardhana Reddy 701ddbfc1d bug 11253:
Added New value "link-local"  to  global config network.loadbalancer.haproxy.stats.visibility . With this change it can take new parameter "link-local" value apart from the existing 3 values global,guest-network,disabled.
       global -  stats visible from public network
       guest-network - stats visible only to guestnetwork.
       link-local - stats visible only to link local network
       disabled - stats disabled.
2011-08-26 15:25:45 +05:30
alena 488b995299 bug 11236: domainAdmin/regularUser can edit/delete/copy/extract Public template/iso only if it was created by them. They still can use/see public template/iso when execute list/deploy/attachIso commands. Root admin can operate with other people templates w/o any restrictions.
status 11236: resolved fixed
2011-08-24 14:48:22 -07:00
alena 524ed0b15c bug 11060: use lockTable instead of rowLock when createDomR/createDhcp
status 11060: resolved fixed
2011-08-24 11:01:02 -07:00
Naredula Janardhana Reddy 0e4de58d4e bug 11191:
Added global config to enable/disable rp_filter for domR.
   previous commit: d966906374d4a0cb8fa57326a1f7625c871f64fd

   Test Case-1 :
      1) Set network.disable.rpfilter  global config to true
      2) Restart the domR
      3) check the settings reflected in proc filesystem
           - for public interface like eth2,eth3 : /proc/sys/net/ipv4/conf/eth2/rp_filter should have 0 , and rest other interfaces should have value of 1
   Test Case-2 :
      1) set network.disable.rpfilter global config to false
      2) Restart the domR
      3) check the settings reflected in proc filesystem
           - for public interface like eth2,eth3 : /proc/sys/net/ipv4/conf/eth2/rp_filter should have 1 , and rest other interfaces should also have value of 1
2011-08-24 13:36:43 +05:30
Naredula Janardhana Reddy b78f66f597 bug 11191: Added global config to disable/enable rp_filter for domR(public interfaces) 2011-08-24 13:36:16 +05:30
Sheng Yang f5e939b4a5 bug 11214: Don't try to start the running router again
It's very like caused by StartRouterCmd sent to the running router. I can
reproduce it by issue a StartRouterCmd to a running redundant router. And this
patch should the following exception:

Exception: com.cloud.exception.ResourceUnavailableException: Resource
[VirtualNetworkApplianceManagerImpl$$EnhancerByCGLIB$$565b4d45:0] is
unreachable: There are already two redundant routers with IP 10.91.32.126, they
are r-5-VM(5) and r-4-VM(4)

status 11214: resolved fixed
2011-08-23 18:20:28 -07:00
Sheng Yang 4bdd56a63e Add more debug info 2011-08-23 17:59:38 -07:00
alena ac47c87c40 bug 11204: when search for domR/dhcp, include Role to the corresponding search to eliminate getting "LB" network element in the response
status 11204: resolved fixed
2011-08-23 12:00:50 -07:00
Sheng Yang a961dd913f Update redundant router status even router is down
We need to update the status to UNKNOWN if router is down(also ensure we can't
contact the router if the state is Stopped in our database).
2011-08-18 22:51:13 -07:00
Sheng Yang b10f560be5 Fix NPE when a router is fail to start
Also enforce the check for restartNetworkCommand
2011-08-16 11:43:36 -07:00
alena 8f3e83d2bc bug 10567: In Basic zone, throw an exception with Pod scope when vm failed to be added to the network - so we retry to start it in a different pod 2011-08-15 11:20:45 -07:00
Sheng Yang d1721669ea bug 11122: Fix router startup
The new created router got hostId = 0.

status 11122: resolved fixed
2011-08-15 10:21:20 -07:00
Sheng Yang 23674a5386 bug 11105: Fix router with disconnected host
We keep the stopped router there, but continue with the ones we can use.

status bug 11105: resolved fixed
2011-08-15 10:20:34 -07:00
alena 891f02f4d4 Resend firewall rules on domR restart 2011-08-15 10:18:10 -07:00
Sheng Yang 08a2f30785 bug 11122: Fix router startup
The new created router got hostId = 0.

status 11122: resolved fixed
2011-08-13 00:15:53 -07:00
Sheng Yang ee90c51a77 bug 11105: Fix router with disconnected host
We keep the stopped router there, but continue with the ones we can use.

status bug 11105: resolved fixed
2011-08-12 19:15:52 -07:00
Sheng Yang 932f8a7144 Add alert and log for redundant router state change 2011-08-11 23:37:01 -07:00
Sheng Yang 23e6b96c98 Redundant router script fix, also fix CheckRouterTask 2011-08-11 17:57:00 -07:00
Chiradeep Vittal 51af0db682 mass merge 2.2.10 2011-08-11 16:41:52 -07:00
Sheng Yang b63b3fcf05 Skip the null Host for CheckRouterTask 2011-08-11 14:29:49 -07:00
Sheng Yang d6e99567ce Skip the null Host for CheckRouterTask 2011-08-11 13:22:31 -07:00
Sheng Yang 0f0d705ae0 Fix redundant router switch back to single router
The existed redundant router network didn't change.
2011-08-11 12:49:26 -07:00
Sheng Yang f28291cedb Fix redundant router switch back to single router
The existed redundant router network didn't change.
2011-08-11 12:48:56 -07:00
alena 477e5d6389 bug 10561: reapply static nat on the backend as a part of domR restart and network restart 2011-08-11 11:19:09 -07:00
alena 278f2a401f bug 10561: intermediate checkin for enable/disableStaticNat.
1) On enableStaticNat command we actually send the command to the backend (we used to just upgrade the DB in the past). The backend command carries sourceIp and destIp, and creates IP to IP mapping on the domR.
2) On disableStaticNat for the Ip address in addition to cleaning up port ranges, we also delete IP to IP mapping on the domR.
2011-08-11 10:19:22 -07:00
Sheng Yang 81a6de4eb7 Fix existed single router network after enable redundant router feature 2011-08-10 18:08:05 -07:00
Sheng Yang 8c70e06572 Fix existed single router network after enable redundant router feature 2011-08-10 18:07:42 -07:00
alena 3c29f00de1 bug 11013: Basic zone setup - pass domRs from other pods to addVirtualMachineToNetwork() method only when network.dns.basiczone.updates is set to "all"
status 11013: resolved fixed
2011-08-10 16:03:48 -07:00
alena 956445960a Throw ResourceUnavailableException when rules/ips fail to apply on the backend 2011-08-10 12:56:25 -07:00
Sheng Yang 87041202c0 bug 11045: Fix exception exit of CheckRouterTask
Catch all the exception and come back to work.

status 11045: resolved fixed
2011-08-10 12:05:44 -07:00
Sheng Yang 6e0eeb132e bug 11045: Fix exception exit of CheckRouterTask
Catch all the exception and come back to work.

status 11045: resolved fixed
2011-08-10 12:05:22 -07:00
Sheng Yang c76bfbaf15 bug 10640: Update redundant virtual router allocation algorithm
Try to put routers to two different primary storages with two hosts, not the same
host.
2011-08-09 18:25:36 -07:00
Sheng Yang 501dc0d9f4 bug 10640: Update redundant virtual router allocation algorithm
Try to put routers to two different primary storages with two hosts, not the same
host.
2011-08-09 18:21:28 -07:00
Sheng Yang f85880c2a6 Revert "Catch domr creation exception"
This reverts commit 6d55408e1f0e1c98fe2a9d4cf51babc6a3308a14.
2011-08-09 15:58:10 -07:00