24 Commits

Author SHA1 Message Date
Xicheng Chang
3d4e5d0af6 Changed ansible directory structure
Moved roles to the parent directory
so that different adapters don't have
to have duplicated roles in their
respective paths.

patch2: fix some code to follow new pep8 standards.
Change-Id: I748c1730be8045c1cb83f91eaa9f0f551cd20a6f
2015-05-22 17:06:47 -07:00
Xicheng Chang
5d5ad29ec1 Add ansible callback plugins to report cluster states back.
you need to specify the callback plugin path in ansible.cfg
before running ansible-playbook. will add ansible.cfg related
config template in a separate CL.

Change-Id: I5f933970e7409aaf485d502998262d9d18ac5c44
2015-04-21 12:52:14 -07:00
xiaodongwang
0c94e34af4 ignore some unnecessary fields and refact switch filter code
Change-Id: I75313f3d53f512334496b096fac042019eccd670
2014-09-18 23:41:04 +00:00
zhaoxinyu
c4674360ef add regtest script and conf
Change-Id: Ieb82235bd6b436b6716992c1b45698b083d03d86

remove pre-existing chef files before uploading new chef files.

having legacy stale chef roles/cookbooks/databags in the knife
source directory will result in possible failure of dependency check,
so gurantee we have the latest code in that directory.

clean installation logs when refresh database.

Change-Id: I6609e90e51d8ca3560f1848f2de62e148f0c5b49
2014-09-17 11:46:07 -07:00
xiaodongwang
e8efc9210d add client script to install openstack by script.
Change-Id: Iab9e234050c602211258f76e328a69a53d1c173c
2014-09-09 16:32:51 -07:00
xiaodongwang
784d38c63f fix test too many error messages.
Change-Id: Ib0438d4adf9ab1238be8b92bdd260770af2fcd22
2014-08-29 18:10:29 -07:00
xichengc
b16eab3774 New API client and example.py for API2.0
Will patch flavor to it once flavor code gets checked in

Change-Id: I9b0b579f2977d07df44ac8f0b527a8ce39578f17
2014-08-14 18:32:41 -07:00
zhaoxinyu
a60b5d2ccd Change some static values to dynamic and add minimal test config
Also fixed some typos and add teardown after test

Change-Id: If279d8c59d32a6eef0e6dded726ead99d4c644e6
2014-04-05 03:39:03 +00:00
xiaodongwang
74f1bc08a4 add regtest framework
Change-Id: Iee78d5445f1c8e2687e527d3505a191074d69776
2014-04-02 15:07:45 -07:00
zhaoxinyu
3b4501758b Change the percentage of var and temp to spare more for system
Cinder volume is going to be created on system partition if
no other block device is found. Tempest needs at least 5g for
volume tests, so we spare more for system partition. Also fixed
some typo in message template.

Change-Id: I490ff31ae5f6ba6ed1abce64a5237da92294b360
2014-03-28 18:26:25 +00:00
zhaoxinyu
c9f9a4f8ab Add ha_vip key in set_networking message to comply with api
Change-Id: I97c1976d626a0ac945ca601695771b38727120de
2014-03-25 19:20:59 +00:00
zhaoxinyu
8a6dcc89b3 Pass environment variables to exmaple.py
Use another way to check whether to use environment variables.
Use the env value even if it is None as long as the key exists
so an empty role list can trigger role auto assignment.

Change-Id: Ifb2993e4d71c7e58aacd39e1a4782040bbc11885
2014-03-18 23:15:36 +00:00
zhaoxinyu
90b6515529 Search for dashboard url in the dashboardlinks response
Search for dashboard links in the possible roles from
the get dashboardlinks response and verify if login page
is available

Change-Id: Ie3116852b3c788ef25f04fb85cc0bca478a78de4
2014-03-18 01:23:40 +00:00
zhaoxinyu
720fcbecd0 Change input to string and convert to list later
Because virtual env is set as string, need to convert to list
Such env as ROLES_LIST, MACHINES_TO_ADD

Change-Id: I13a32b3d92908e1b4f811fdd5d9f143d5a4050ac
2014-03-14 23:41:57 +00:00
zhaoxinyu
f43c0898a0 Update example script to be more scalable for e2e tests.
Roles list can be set by env variables and build timeout can
also be set according to the scale of the test.

Change-Id: I99b28b155b79842706e32cbf518bef5b6df48db1
2014-03-14 18:54:15 +00:00
xiaodongwang
ece0a3e936 add code to match new pep8 style checking and fix bugs.
Change-Id: Id5fd48b8149d3934e4854366e59475f37624ec24
2014-03-11 01:26:42 +00:00
zhaoxinyu
eee52d02b9 Shorten the get status timeout to 30 minutes
Fail the test faster if some blocking problem occurs.
30 minutes should be enough for the node to finish deployment.
At the end, check if dashboard page with login form can be downloaded.

Change-Id: Ib2a5e2b1f7415135906280ead8ac500dbd44f53e
2014-02-25 03:17:23 +00:00
grace.yu
7c4ef4a0d6 Add suppport for CSV import and deployment
also add tow packages to requirements.txt and test-requirements.txt.

Change-Id: I591e3958b4897537f9dba8c0ab38e7fe0159f11f
2014-02-21 15:29:50 -08:00
xiaodongwang
7f080e4e51 fix pep8 warning and move major util code from bin to compass dir.
Change-Id: I7baa536888db1ca46cadcdf07ef9cc0a1a3a12fb
2014-02-19 22:25:45 -08:00
zhaoxinyu
d5c2d5eedb Add looking for env variables to overwrite hardcoded values
Also add timeout for checking installation status

To be suitable for jenkins test. The PRESET_VALUES can all be set to
compass IP. Also set mac address to the pxe vm in jenkins slaves.
Currently we only test os-dashboard role to save time.

Change-Id: I6194f62f21887af173c5c318577c4eb86de0eabf
2014-02-15 00:49:56 +00:00
zhaoxinyu
f25f992e81 Fix typo in restful.py to pass cluster_id to api
Change-Id: I959f3c4817090971dd4deb02aeae475192ad4eac
2014-02-07 02:26:22 +00:00
zhaoxinyu
4ae061d33c Update restful api deploy_hosts request format and some configurations
Update deploy_hosts request format in rest.py to be aligned with API service
also update gateway configurations in example deploy script.

Change-Id: I95123656ecbe56c96a8412d629c87c2c1a54897d
2014-02-01 03:37:21 +00:00
grace.yu
9c54d45803 Update API
Change-Id: I9fa5660321cae7312f63ce359d67d9f9276e4d72
2014-01-31 16:00:13 -08:00
syang
cf67d3ad47 Migrate repo of 'compass' to repo of 'compass-core', leave 'compass' to host project homepage 2014-01-08 19:18:04 -08:00