Commit Graph

8053 Commits

Author SHA1 Message Date
Prasanna Santhanam 1a91652ffb MD5 Auth for accounts created on the API
reviewed-by: Abhi
2012-05-14 19:36:57 +05:30
Prasanna Santhanam 615e924dca Build if you have python 2.7 installed
reviewed-by: Prasanna
2012-05-14 15:58:56 +05:30
Prasanna Santhanam 46770426d7 Install paramiko as a dependency, don't complain about the requirement
reviewed-by: Kishan
2012-05-14 14:46:03 +05:30
Prasanna Santhanam f97c6b02af The setup_requires must not co-exists with install_requires
reviewed-by: Kishan
2012-05-03 13:21:42 +05:30
Prasanna Santhanam 05b3dc8de2 CS-14596: check existence of config file before loading
reviewed-by: unit ttest
Check whether the config file to load cloudstack config is avvailable
in the specified path.
2012-04-23 18:53:01 +05:30
Prasanna Santhanam d22c9855cb CS-14025: provide python eggs to easily install the python test framework
CS-14025: Status - Resolved Fixed
reviewed-by: Unit test

1. Packaging the marvin test client into an installable egg
2. There is a hudson job (marvin) that creates eggs for a specified
branch
3. Alternatively you can use the package-marvin ant target to get a
source tarball.
2012-04-23 17:58:07 +05:30
Prasanna Santhanam 0deb3f6660 Merge latest testClient fixes to marvin
reviewed-by: unittest
2012-04-12 18:12:10 +05:30
Prasanna Santhanam bc2dd8f347 missing tests directory causes warnings in distutils
reviewed-by: ant run
2012-04-11 17:45:43 +05:30
Prasanna Santhanam 7dc9888504 Package management for the python testclient christened Marvin
$ant package-marvin
will create a packaged source tarball of the testclient that is
redistributable and decoupled from the rest of the cloudstack build
reviewed-by: unittest
2012-04-11 17:45:40 +05:30
Prasanna Santhanam a8c671872b removing the dependency of apidocs on simulator
reviewed-by: Frank Zhang
2012-04-11 17:45:32 +05:30
Chirag Jog da66a819f8 Bug 14612: Database client returns empty list after one successful query
Status 14612: resolved fixed
reviewed-by: Prasanna Santhanam <Prasanna.Santhanam@citrix.com>

Commit to refresh the transaction state
2012-04-06 03:01:07 -07:00
Prasanna Santhanam b2c6ab76df reveal the complete exception from the dbClient
reviewed-by: Edison Su
2012-04-04 16:44:53 +05:30
Prasanna Santhanam 36f826cc3e 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:44:49 +05:30
Prasanna Santhanam 4b578baeef Correcting the reported failure message
reviewed-by: Edison Su
2012-04-02 18:03:45 +05:30
Prasanna Santhanam 3edbc1e5d4 bug 13234: unit test to test the user decorator
status 13234: resolved fixed
reviewed-by: unittest

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:38:55 +05:30
Prasanna Santhanam 80da3d5289 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:35:23 +05:30
Edison Su c888e8b77d 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:35:15 +05:30
Prasanna Santhanam a14295cf74 reduce logging verbosity, set level to info
reviewed-by: Kishan
2012-03-24 09:39:38 +05:30
Prasanna Santhanam 0df4f9be1f 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-22 23:00:44 +05:30
Prasanna Santhanam 355a7b9484 correcting the ip sequence
reviewed-by: Sangeetha Hariharan

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 14:01:55 +05:30
Prasanna Santhanam cb58676ff8 fixing error in conditional introduced by conflict
reviewed-by: Edison Su
2012-03-21 12:30:26 +05:30
Prasanna Santhanam 7d085b2540 can't append str to logger message
reviewed-by: Edison Su
2012-03-21 12:30:15 +05:30
Abhi 8508592134 fix category for red hat guest os reviewed-by: abhi 2012-03-14 16:46:55 +05:30
Naredula Janardhana Reddy 5ff0103173 Bug 14120: Enabling SNAT for all the public NICs.
Summary of changes:
    - snat flag is set to true if it is first ip of the NIC.

reviewed-by: Abhi
2012-03-06 13:11:36 +05:30
Prasanna Santhanam 43a676c346 adding logging with level and timestamp
reviewed-by: edison
2012-02-29 12:11:14 +05:30
Prasanna Santhanam c2cd63dc2b adding retry logic, error handling, and urllib2 used for managing connections
reviewed-by: edison
2012-02-29 12:10:57 +05:30
Prasanna Santhanam 1ac6687de2 propagating changes from master
reviewed-by: Chirag Jog <chirag@clogeny.com>
2012-02-29 12:10:25 +05:30
Prasanna Santhanam fea9aba986 The HTTPConnection object times out too soon when status is being polled. This
depends on python's internal socket implementation. Added an explicit 3m
timeout. Test code MUST NOT induce sleeps longer than 3m, instead check status
periodically to keep the HTTPConnection alive.
reviewed-by: Chirag Jog <chirag@clogeny.com>
2012-02-23 18:47:04 +05:30
Kelven Yang 9bcfceb5f8 bug 13777: propagate snapshot packaging failures up. Reviewed-By: Anthony
tar command random failure may occur due to linux kernal bug (or feature) that tar can't handle well. The failuar happens when tar wants to package a newly created file before file system has fully synced
2012-02-17 14:50:10 -08:00
Kelven Yang 4c95e73769 bug 13537: use --no-same-owner when we untar OVA file to work with NFSv4. Reviewed-By: Anthony 2012-02-17 13:13:19 -08:00
Kelven Yang c57cf331b8 bug 13777: propagate snapshot packaging failures up. Reviewed-By: Anthony 2012-02-15 20:54:06 -08:00
Naredula Janardhana Reddy ed0f9f6942 Bug 13375:
Summary of changes:
  - Fix the order of source nat ip's : Static Nat IP's will be on top of Router source nat IP's. means Static NAT ip will take higher preference when compare to router ip while picking ip for source nat.

Reviewed-by: Abhi
2012-02-15 11:31:47 +05:30
Naredula Janardhana Reddy 566d967f20 Bug 12808: ignoring errors on delete.
Reviewed-by: Abhi
2012-02-14 14:10:46 +05:30
Alex Huang 18d0eeb321 bug 13478: added exception printing. Reviewed-by: Anthony 2012-02-09 16:47:48 -08:00
Alex Huang e0e54f8a27 bug 13478: fixed problem with high availability manager being started too early. Reviewed-by: Anthony 2012-02-09 16:41:59 -08:00
Murali reddy d2da63f373 bug 13492: vmware:Template sizes are incorrectly reported
status 13492: resolved fixed
reviewed-by: Nitin

virtual size of the private templated from size mentioned in the OVF file
2012-02-09 19:58:09 +05:30
abhi 9c7f142247 bug 13549: narrow the condition to stop vm, excluding destroyed and expunging
reviewed-by: kishan
2012-02-09 16:13:31 +05:30
abhi 70be4b6392 bug 13549: cleanup stopped/starting VMs if present on host during MS startup
reviewed-by: kishan
2012-02-09 13:05:44 +05:30
Edison Su 0e0e97de10 bug 13145: re-load the vm data
status 13145: resolved fixed
Reviewed-by: anthony
2012-02-08 21:21:58 -08:00
Edison Su 14d02dbcec bug 13470: check the correct old certificate
status 13470: resolved fixed
Reviewed-by: anthony
2012-02-08 20:55:05 -08:00
Edison Su ee1cefcb8e bug 13551: in some case, libvirt returns storage pool available, but mount point is not there
status 13551: resolved fixed
Reviewed-by: anthony
2012-02-08 20:16:34 -08:00
Edison Su 08987f0f22 bug 13556: return error if libvirt can't mount storage
status 13556: resolved fixed
Reviewed-by: anthony@citrix.com
2012-02-08 19:58:18 -08:00
frank 32fa3cd996 Bug 13526 - copying template across zone failing with status HTTP Server returned 403 (expected 200 OK) Even though gets status message copy succeeded (
Bug 13429 - copy template FAIL - HTTP Server returned 403

lots of things:
1. generate a IP list of all SSVM across all zones, set this IP list to my .htaccess allowable from.
   so other SSVMs get privilege to access me.

2. broadcast my IP to other SSVMs instructing them set me to theirs .htacess allowable from. so I get
   privilege to access others

3. set outbound route for downloading through public IP. Because public ip/private ip in the same subnet in basic
zone, the http download traffic may come in through public ip but go outside through private ip which finally causes
the VM where the traffic is from to drop response packets. To resolve this, set individual route for each SSVM public
ip making sure the inter-communication between system vm happens through public IP

however, I met certificate expiraton on one SSVM, will report another bug

reviewed-by: Sheng.yang
status 13526: resolved fixed
status 13429: resolved fixed
2012-02-08 18:32:06 -08:00
frank 4d20287c81 Bug 13529 - Multiple Management Servers: cloud-setup-databases script fails to execute
status: 13529: resolved fixed
reviewed-by:edison
2012-02-08 16:56:35 -08:00
Edison Su d148669ade Agent disconnected due to so many Fencecommand send to agent, cause agent can't get pingaswer from mgt server, then agent thinks it's ping timeout, reconnect to mgt server.
The fix is add a separate thread pool for all the reqests from mgt server(which may be time-consuming), so the pingaswer(which is response) is processed in another different thread pool. Make sure the pinganswer is get processed immeidately.
Reviewed-by: Alex
2012-02-08 11:33:41 -08:00
Naredula Janardhana Reddy e4dee8f5f6 Bug 12808:
Summary of Changes:
       - Added Static Nat to use multiple routing tables.
  Reviewed-By: Kishan
2012-02-08 18:58:38 +05:30
kishan 6108b37272 Bug 11931: Add quotes to snapshot name and volume name. Fixed create template from snapshot also by adding quotes
Status 11931: resolved fixed
Reviewed-By: Nitin
2012-02-08 17:19:47 +05:30
kishan 04b1b3312d Bug 13454: Drop both foreign keys, indexes of ssh_keypairs and add again
Status 13454: resolved fixed
Reviewed-By: Nitin
2012-02-08 15:24:40 +05:30
abhi 243d4f0f6d bug 13520: cannot clear vm map during disconnect as xapi still reports them as alive and clearing up the map will have sync report them as Running
reviewed-by: kishan
2012-02-08 13:57:49 +05:30
Edison Su 6a3484fc2f cleanup
Reviewed-by: Kelvin
2012-02-07 21:43:47 -08:00