Commit Graph

3103 Commits

Author SHA1 Message Date
Naredula Janardhana Reddy 2ffa0e9c0a Revert "bug 11191: Added global config to disable/enable rp_filter for domR(public interfaces)"
This reverts commit d966906374d4a0cb8fa57326a1f7625c871f64fd.
2011-08-24 13:40:42 +05:30
Naredula Janardhana Reddy 1190e70f22 Revert "bug 11191:"
This reverts commit 6e59b94d6be8a9638df3e4f3de3b0993961da631.
2011-08-24 13:40:04 +05:30
Naredula Janardhana Reddy b7cf081281 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:12:52 +05:30
Sheng Yang 59fe551ebb 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:13:14 -07:00
Sheng Yang 4901c18d7a Add more debug info 2011-08-23 17:59:20 -07:00
prachi 2a9ee90fdd Bug 11213 - UserConcentratedPod returning wrong list of pods
Changes:
- Needed to add parentheses to the query to get correct results.
2011-08-23 12:06:40 -07:00
alena d62398bf21 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 11:53:04 -07:00
Naredula Janardhana Reddy 56d4a10be3 bug 11191: Added global config to disable/enable rp_filter for domR(public interfaces) 2011-08-23 20:01:35 +05:30
alena 1c7bbb1399 Fixed listNetwork by id 2011-08-23 01:08:36 -07:00
Kelven Yang 7d5bd0199b bug 11208: use cleanup instead of scheduling to stop based on server state 2011-08-22 17:35:28 -07:00
Kelven Yang 381f3df553 bug 11208: When agent reported state is out of sync with CloudStack, stop VM when its state in CloudStack is not in Running or Migrating 2011-08-22 16:33:47 -07:00
prachi f45b1b2d4d Merge Bug 11186 from 2.2.8mango
Bug 11186- Cannot restart existing VM if the cluster is disabled after the VM has been created

Changes:
- We should not check for the cluster 'allocation_state' while starting an existing VM provided it has storage already allocated. But if volumes
are deleted and new storage needs to be allocated, then we will not allow the VM start.
- However we should still prohibit adding new VMs in that cluster.
2011-08-22 15:41:08 -07:00
alena 001a5777c7 bug 11202: added "networkRate" param to service offering api responses 2011-08-22 13:36:00 -07:00
alena 65afbc529e Added networkRate parameter to createServiceOffering api command 2011-08-22 11:58:08 -07:00
alena 67e3936ae1 Fixed security issue in listNetworks 2011-08-22 10:49:27 -07:00
anthony 2317c426db reversed funtion parameter 2011-08-19 18:05:39 -07:00
Sheng Yang b34750c6ff 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:49:51 -07:00
Kelven Yang e9c879fbb8 Use row lock instead of global lock when creating a new domain 2011-08-18 10:40:53 -07:00
alena b36241690c bug 11167: no need to lock account when create security group to ensure that the group name is unique for account. If group already exists in the db, and we try to persist it again, mysql constraint (groupName, accountId) will fail and exception will be thrown.
status 11167: resolved fixed
2011-08-18 10:15:15 -07:00
frank a37573b842 Fix baremetal planner reply to non-baremetal VM when migration 2011-08-18 10:11:51 -07:00
Kelven Yang 87796378a7 bug 10834: when VMware host is down, don't try to restat VMs on other host. VMware prohibits VM relocation when host is down 2011-08-17 18:07:52 -07:00
alena 35c779d0ae Defined missing length field for VO classes 2011-08-17 15:08:22 -07:00
alena ed963d63b4 bug 11154: host can go in Maintenance state only after all vms are migrated from it
status 11154: resolved fixed
2011-08-17 12:02:47 -07:00
Abhinandan Prateek 4c35ece913 fixed execptions while adding second host 2011-08-17 19:17:15 +05:30
Murali Reddy 3ce06fabb7 bug 11148: VMs that got stopped during Host Maintenance have host_id associated with them
status 11148: resolved fixed

enabled vm stop, if the host is last valid host in cluster
2011-08-17 18:06:30 +05:30
Kelven Yang 64732eaa2c bug 11099: Let VM sync to cooperate with migration process 2011-08-16 15:22:07 -07:00
Sheng Yang 898051ecff Fix NPE when a router is fail to start
Also enforce the check for restartNetworkCommand
2011-08-16 11:41:59 -07:00
alena bc8c78f102 Fixed spelling mistake 2011-08-16 09:51:48 -07:00
Kelven Yang 73c642ec59 re-enable HA logic on VM state synchronization for VMware 2011-08-15 16:58:54 -07:00
alena de3662405b Added missing license headers 2011-08-15 14:24:05 -07:00
alena 87cde3e73c 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:09 -07:00
alena 0b11a835af Fixed the bug in allocator where cluster was added to avoid set as pod 2011-08-15 10:41:31 -07:00
alena 829ee7b241 Improved logging in 229 to 2210 upgrade 2011-08-13 00:53:29 -07:00
Sheng Yang d4990c82ca bug 11122: Fix router startup
The new created router got hostId = 0.

status 11122: resolved fixed
2011-08-13 00:15:34 -07:00
alena 1b799a2792 Fixed db upgrade issue for 229-2210 firewall rules 2011-08-12 19:29:26 -07:00
Sheng Yang 70be9c6ed1 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:31 -07:00
alena e76a8d7f8a bug 11114: when release static nat as a part of vm expunge, do searchIncludingRemoved in nics table as the nics are marked as Removed before static nat is released
status 11114: resolved fixed
2011-08-12 19:11:51 -07:00
alena 9253860347 Fixed error message 2011-08-12 18:16:21 -07:00
alena 78849c2959 Revert "fix NPE when listvolume if vm got destroyed"
This reverts commit 9bdaa9d967a6390cc1655ce7344d5af474890e4c.
2011-08-12 17:27:08 -07:00
alena 4a3635ee34 Remove firewall rule along with pf/staticNat/lb rule if the pf/staticNat/lb failed to create due to network rule conflict 2011-08-12 16:19:36 -07:00
Edison Su 1ee9afd8df fix NPE when listvolume if vm got destroyed 2011-08-12 14:41:23 -07:00
alena 671b360df7 Resend firewall rules on domR restart 2011-08-12 12:39:09 -07:00
Murali Reddy ba9a127d3e bug 10923: changes for snapshot command to carry primary storage pool path 2011-08-12 17:30:01 +05:30
Nitin e7a199e253 bug 11096: ExtractTemplate - For private template choose the correct sec storage host id since its not present in all the sec storage now. 2011-08-12 14:46:12 +05:30
Naredula Janardhana Reddy 00dbaf0954 bug 10561: allowing to create a firewall rule with sameport range but different protocols 2011-08-12 12:54:41 +05:30
Sheng Yang b560880907 Add alert and log for redundant router state change 2011-08-11 23:36:31 -07:00
alena 4530d35bc5 bug 11029: db upgrade from 2.2.9 to 2.2.10 includes firewall_rule upgrade now
status 11029: resolved fixed

Commit also includes the following:

* map firewall rule to pf/lb/staticNat/vpn when the firewall rule is created as a part of pf/lb/staticNat/vpn rule creation
* when delete firewall rules, also delete related firewall rule
2011-08-11 18:09:08 -07:00
Kelven Yang a3ad26ed89 Disable HA in CloudStack HA manager under VMware 2011-08-11 18:07:57 -07:00
Sheng Yang 0387b6e802 Redundant router script fix, also fix CheckRouterTask 2011-08-11 17:56:28 -07:00
Chiradeep Vittal e4092e8084 do not release ip for advanced networking / regular LB usage 2011-08-11 17:44:03 -07:00