Commit Graph

8091 Commits

Author SHA1 Message Date
Kelven Yang 77ce7db07e Bug 14301: Perform socket-level only management server pings
Reviewed-By: kelven
2012-04-05 14:54:40 -07:00
Prasanna Santhanam 80c624a3d9 reveal the complete exception from the dbClient
reviewed-by: Edison Su
2012-04-04 16:41:32 +05:30
Prasanna Santhanam d30effc0ad bug 14608: Async timeout counter does not get reset across tests
status 14608: resolved fixed
reviewed-by: Chirag Jog (chirag@clogeny.com)

Set the timeout countdown to start from beginning of each pollAsync instead
of setting it once for the entire run.
2012-04-04 16:36:06 +05:30
Chirag Jog 2bcc252699 Minor Fix. Ensure to "sync" contents. 2012-04-03 22:55:46 -07:00
Alena Prokharchyk 582e0b4da6 bug 14567: put db entry insertion in try/catch block and fail gracefully when the insertion fails (can happen when 2 MS try to insert the same entry)
status 14567: resolved fixed
2012-04-02 14:20:25 -07:00
Chirag Jog e6cabe217c Fix Previous Commit. 2012-04-02 10:05:55 -07:00
Chirag Jog f2371dc684 Fixes:
1. Replace fetch_api_client with Class object for HTTP Connections.
2. Fetch Host information instead of hard-coding.
3. Fix routers, snapshots tests with minor changes.
2012-04-02 09:59:11 -07:00
Prasanna Santhanam a0a0a9f813 Correcting the reported failure message
reviewed-by: Edison Su
2012-04-02 18:03:30 +05:30
Kelven Yang a3be402c3d bug 14564: Upon management server startup, for detected inactive management server (based on timestamp), perform ping-test before we really mark it as down
Reviewed-By: kelven
2012-03-30 16:42:31 -07:00
Abhi dde4effd79 bug 13873: memory overhead can now be overridden for each version, increasing the overhead for SP2 by 1.5% 2012-03-30 16:22:13 +05:30
Kelven Yang 8852668b48 Bug 14551: add top-level catch clause to protect task/thread from stalling
Reviewed-By: Kelven
2012-03-29 18:26:48 -07:00
Prasanna Santhanam 8a4d1c4fda bug 13234: unit test to test the user decorator
status 13234: resolved fixed

Uncomment each decorator to test
- tests run as existing admin
- tests run as new user in new domain
- tests run as new user in existing domain
- tests run as old user in existing domain
- tests run as new domain admin in new domain
2012-03-29 19:19:30 +05:30
Prasanna Santhanam af45d8207d bug 13234: run tests as a regular user on testClient
status 13234: resolved fixed
reviewed-by: unittest

When multiple tests in a user-decorator suite are run only the first
test runs successfully since the apiKey has been altered to that of a
regular user. Preventing failure of other tests by detecting user
context - user, admin, domain-admin.

@UserName decorator applies to a testSuite class not a testMethod
2012-03-29 19:19:08 +05:30
Edison Su 0268665670 bug 13234: add UserName decorator on testcase, in the form of (username, domainName, accountType). status 13234: resolved fixed. Reviewed-by: prasanna 2012-03-29 19:13:12 +05:30
Edison Su 741b604c80 put correct import 2012-03-28 16:47:29 -07:00
Edison Su e8abfa4d1f bug 14535: fix multiple data disks attached to a vm, then stop/start failed. status 14535: resolved fixed; Reviewed-by: sheng 2012-03-28 16:42:43 -07:00
Kelven Yang 0028f1771d bug 14301: suppress expected exceptions from showing annoying stack dump, the message will be logged at TRACE level.
Reviewed-By: Kelven
2012-03-28 15:43:25 -07:00
Kelven Yang 7762f1c7d7 bug 14491: use template unique name instead of self-generated UUID name. Reviewed-By: Kelven(with test) 2012-03-28 14:16:29 -07:00
Edison Su d80f91a80c bug 10947: apply patch from Maurits; status 10947: resolved fixed 2012-03-28 11:28:41 -07:00
Kelven Yang 510ec31d0c bug 14301:
1) Support HTTP keep-alive in clustering communication channel
2) Increase concurrency level for clustering message delivery

Reviewed-By: Kelven (with unit test)
2012-03-26 23:12:04 -07:00
Kelven Yang ae14950095 bug 14301:
1) Drop synchronized call semantic for ClusterManagerImpl.broadcast()
2) Have no choice now but to use an unbound thread pool to notify upper layer. This is to prevent thread starvation when we have cross-management server waitings.

Reviewed-By: Kelven(with unit test)
2012-03-23 22:43:49 -07:00
Prasanna Santhanam f4f58091d8 reduce logging verbosity, set level to info
reviewed-by: Kishan
2012-03-24 09:54:22 +05:30
Prasanna Santhanam f91c681545 testCase level logger and testClient class attr
reviewed-by: Chirag Jog

Each testCase class will use its own logger to distinguish log
messages when multiple suites are run. This will aid debugging

Every cloudstackTestCase will also contiain a class level attr of the
testClient which was previously available only to setUp/tearDown. Now
even setUpClass/tearDownClass can use this attribute.
2012-03-24 09:54:22 +05:30
Kelven Yang 80abeb7522 bug 14301: fix regressions caused by new clustering transport. Correct usage of HttpClient to avoid socket staying in CLOSE_WAIT state for too long. Reviewed-By: Kelven 2012-03-23 09:04:49 -07:00
Kelven Yang 9feebe8682 bug 14301: Decouple synchronized crosss management server call with clustering transport, remove obsolete code. Reviewed-by: Kelven
Conflicts:

	server/src/com/cloud/cluster/ClusterServiceServletImpl.java
2012-03-23 09:04:10 -07:00
Kelven Yang 64899e05ec bug 14301: Decouple synchronized crosss management server call with clustering transport. Reviewed-by: Kelven
Conflicts:

	server/src/com/cloud/cluster/ClusterServiceServletImpl.java
	server/src/com/cloud/cluster/DummyClusterManagerImpl.java
2012-03-23 09:00:45 -07:00
Kelven Yang 66ebcd9df5 Bug 14213: use UUID name in secondary storage for templates. Reviewed-By: edison 2012-03-21 16:43:02 -07:00
Prasanna Santhanam 61b7824db5 correcting the ip sequence
corrected the sequence in which private and public IPs of the pods are
generated. each 8bit mask should remain in 0-255 range.
2012-03-21 13:58:51 +05:30
Prasanna Santhanam 9cec7875de can't append str to logger message 2012-03-21 11:13:45 +05:30
Kelven Yang b024562869 bug 14301: Decouple synchronized crosss management server call with clustering transport, remove obsolete code. Reviewed-by: Kelven 2012-03-20 16:26:58 -07:00
Kelven Yang ea92ab72fa bug 14301: Decouple synchronized crosss management server call with clustering transport. Reviewed-by: Kelven 2012-03-20 16:26:29 -07:00
Edison Su 0b4c0e3e46 bug 7080: fix usage for kvm;Reviewed-by: kishan 2012-03-20 15:04:53 -07:00
frank c76349ffe1 Bug 14149 - OVM Typo and wrong mountpoint
status 14149: resolved fixed
2012-03-19 17:38:57 -07:00
Edison Su 121ac31433 bug 7080: add network usage for kvm, get data from VR. status 7080: resolved fixed 2012-03-19 11:24:10 -07:00
Chirag Jog ce0700dbbc Fetch Domain-ids from list instead of picking up fixed values.
Fixed tests in Accounts against 2.2.14 build.
2012-03-18 23:03:31 -07:00
Prasanna Santhanam f4217babe6 adding more logging to router suite 2012-03-16 13:14:19 +05:30
frank 1033fb4a24 fix copying template 2012-03-15 14:41:19 -07:00
Prasanna Santhanam 1fcb6ccd93 defaulting test script passwords 2012-03-15 16:28:14 +05:30
Edison Su b6a1a69f52 use the timeout from the command send by mgt server 2012-03-12 12:05:48 -07:00
Chirag Jog e7e4c86533 Fixes based on Prasanna's change to testframework
Additional logs/checks around all API calls and SSH calls.
2012-03-06 09:24:59 -08:00
prachi 28ace646bf Bug 14028 - Add hostid parameter to StartVmCmd to enable admins to start VM on a particular host
- Fixing build
2012-03-05 18:00:42 -08:00
prachi 529e9e5b09 Bug 14028 - Add hostid parameter to StartVmCmd to enable admins to start VM on a particular host
Changes:
- Added hostid to StartVMCmd. Only root admin can use it.

Conflicts:

	server/src/com/cloud/vm/UserVmManagerImpl.java
2012-03-05 17:57:34 -08:00
Alena Prokharchyk fb2ed48304 bug 14103: mark account for cleanup only in cleanupAccount and disableAccount method, not in the callers methods
status 14103: resolved fixed
2012-03-05 16:16:46 -08:00
Sheng Yang 854997aab6 bug 14076: Fix the exception scope
status 14076: resolved fixed
2012-03-01 15:39:32 -08:00
frank 76e7a8633c Make direct agent pool size configurable 2012-03-01 13:46:28 -08:00
Prasanna Santhanam 929dd643ca adding logging with level and timestamp 2012-02-29 12:05:06 +05:30
Prasanna Santhanam 57bf98a0c8 adding retry logic, error handling, and urllib2 used for managing connections 2012-02-29 12:05:06 +05:30
Prasanna Santhanam 1f7c5e3b01 propagating changes from master 2012-02-29 12:05:06 +05:30
Edison Su 2f9efa96b7 fix iptable rules after reboot inside guest vm, drop rule coming ahead of dhcp rule, so user vm can't get ip address anymore 2012-02-28 20:29:51 -08:00
Edison Su 84aec81cb9 bug 13733: make sure dhcp request/response are always allowd. status 13733: resolved fixed 2012-02-28 18:23:36 -08:00