Commit Graph

272 Commits

Author SHA1 Message Date
Xicheng Chang 34e734f474 Revert "Merge "fix compasss.sh""
This reverts commit 35472d1f15, reversing
changes made to 5a929be775.

Change-Id: Ie5f2f92473489bb5be981b97e17597e91ff1cbf9
2017-01-03 12:08:01 -08:00
Xicheng Chang 682ca408d1 fix the bug caused by hostname.
Change-Id: Id43088aa49ebe76107e8e9a62318b908ea3b384a
2016-08-31 12:58:05 -04:00
Xicheng Chang af4c49294c update register
Change-Id: Iaa4d681a5db613a52d25508d7239ed5f2db7f708
2016-08-25 17:45:29 -04:00
Xicheng Chang d519f32ebf update compass-celeryd
Change-Id: I2d61d945c599920547e02dfeb9d8901f922a73b9
2016-08-25 17:19:14 -04:00
Xicheng Chang d490c94aec Fix bug in model
Change-Id: I95e695e8c28113106e54a0c06744ffa35619ebbf
2016-07-18 14:16:12 -04:00
Xicheng Chang 63dd7d6fc0 Edit cluster and host models.
To allow different users to use the same cluster and host name.

Change-Id: Icf68735b54c7e051ea655624ee83f2b6ae2c43bd
2016-07-15 18:57:47 -04:00
Xicheng Chang 02523b9a7e Trim some install scripts for agent install
Change-Id: I80e4605d80a5eaf186e3e80a061590739e2ed592
2016-07-09 19:29:16 -04:00
Xicheng Chang 0b8659d790 enable remote-deploy
Change-Id: I44177e7f212a7f6f3c76ebed49574e4d537bcd8f
2016-07-06 14:36:35 -04:00
chigang 22c28a21e4 Revert "Separate tasks for users by sending them to different queues."
This reverts commit 70425d96c2.

Change-Id: Ic280153a0c9e05d531a34ac6ac09178ec9dd71c3
2016-07-01 01:45:38 +00:00
Xicheng Chang 70425d96c2 Separate tasks for users by sending them to different queues.
Change-Id: I3a3931571a8614b7c5385d7eeda8879610971573
2016-06-27 20:18:30 -04:00
Xicheng Chang d00035ca0b Support multi-tenant for clusters and machines.
Change-Id: I4af6c82d2243977903d71366a538808dd5cd92f8
2016-06-17 14:39:57 -04:00
Xicheng Chang d3f203535a Initial tinycore support on compass-core.
1. Added an endpoint for adding machines.
2. Added user concept to machine model.

Change-Id: I603296d30dbd7182678d98fd5f8f56503cbdc634
2016-06-09 20:38:05 -04:00
Brandon Palm 51d244c9b6 Fixed a couple of typos.
'openstack' -> 'OpenStack'

'is not existed' -> 'does not exist'

Change-Id: I14380357091af7fdbf8544d5f2bc72ff6158ce86
2016-04-19 15:52:00 +00:00
baigk b3e56b081a modify the file parameter of cheetah from string to file object
Change-Id: I48081db922adcbdc319d39e73af43aaa480342e1
Signed-off-by: baigk <baiguoku@huawei.com>
2016-02-02 19:22:04 +08:00
baigk cf1caebf94 modify the file parameter of cheetah from string to file object
Change-Id: I65f0027bdb6b85e6617bf296ea3561f4ff70a289
Signed-off-by: baigk <baiguoku@huawei.com>
2016-02-02 16:55:56 +08:00
baigk 3cda8600a5 support copy roles dir
copy role dir to virtual env

Change-Id: I5e89cab526dfc7c7b3527e5934254c69a6635a82
Signed-off-by: baigk <baiguoku@huawei.com>
2016-01-25 19:21:26 +08:00
baigk 0a57fe8f4b parameter is wrong when update clusterhost state
the session parameter doesn't input when update clusterhost state

Change-Id: Ie1d325722a49b6e3f54338fb15470c2c7cacf8dc
Signed-off-by: baigk <baiguoku@huawei.com>
2016-01-01 10:23:28 +08:00
baigk d39c2fc0c5 support redeploy
1. add redeploy interface
2. bugfix about redeploy api

Change-Id: I6780e7048b1bad90c2cda47c7b8ed9afc5b60255
Signed-off-by: baigk <baiguoku@huawei.com>
2015-12-28 09:05:19 +08:00
Xicheng Chang ec2805db42 Enable patched_roles cleanup after patch action is sent.
Change-Id: I34b73e6725455a70912272e744d5f85586ffe8e8
2015-12-10 15:22:45 -08:00
Xicheng Chang a05ce06169 Add expansion and role patching features.
1. also updated templates and confs with latest adapter conf.

Change-Id: Id261c0243e8536f7b866807359260ef482a11791
2015-12-07 17:34:28 -08:00
baigk 47d8d49133 Merge branch "https://github.com/baigk/compass-core.git into dev/opnfv
Change-Id: Ie2be5756f0c425a5d40e3092f52f245709fccbf3
Signed-off-by: baigk <baiguoku@huawei.com>
2015-11-18 17:32:25 -08:00
Carl Li a165bbe6bc Seperate chef installer as a plugin (move chef tests to plugin directory)
Closes-Bug: #1506700

This is the 4th change list of a series of changes that will eventually
convert chef installer as a plugin.
It moves chef installer related tests to plugins directory
extract a method get_plugins_config_files from load_config in util.py,
this function might be used directly, add a unit test for this function

Change-Id: Idbd54ce11ab4489b356b402d176c9df2f688acc2
2015-11-10 22:34:10 -08:00
Carl Li 02d07a8ad1 Seperate chef installer as a plugin (move chef_installer.py to plugins directory)
Bug: 1506700

This is the third change list of a series of changes that will eventually
convert chef installer as a plugin.
It moves chef_installer.py to the plugins/chef_installer/implementation
The related test was modified accordingly but should be moved to plugins directory in the next change list.

Change-Id: Idb2a6f7f9b1e612d737674d811e9b4e6d7b6212b
2015-10-28 19:40:24 -07:00
Carl Li b073a7837f Seperate chef installer as a plugin (move chef templates to plugins directory)
Bug: 1506700

This is the second change list of a series of changes that will eventually
convert chef installer as a plugin.
It moves chef installer related templates files to the plugins/chef_installer/templats
PLUGINS_DIR was introduced to indicate where the plugins directory will be, it may be in /etc/compass or in a different place util.py's load_configs will use it when reading plugins configs.

Change-Id: Ieb599e3e7c8cecd8355e77d89e3da8548f78a93a
2015-10-24 18:05:39 -07:00
Carl Li 138f045411 Seperate chef installer as a plugin
Bug: 1506700

This is the first change list of a series of changes that will eventually
convert chef installer as a plugin.
It moves chef installer related configure files to the plugins/chef_installer/
util.py's load_configs is modified to read not only the ordinary configs but
also the configs in each of plugins directory.

Change-Id: I285c59556f4abd89255608e15117e6d012ecfb01
2015-10-15 20:41:00 -07:00
Weidong Shao 8eae6d8048 Remove chef related adapter and support of OpenStack IceHouse.
This will be moved to a separate plugin repo.

Change-Id: I697eff67764661557892c8432c61282e41612079
2015-09-16 05:45:45 +00:00
Xicheng Chang 86e56f58d0 fixed bug in xiaodong's commit
Change-Id: Ifff027bfcccabc797bb4d0c57037cf83a46ab126
2015-08-05 16:49:12 -07:00
xiaodongwang 14ad281057 move adapter from db to memory
Change-Id: I366052e23d72dd94229513d6a0992338d0d44638
2015-08-04 10:45:24 -07:00
Jenkins cdcb7052bd Merge "Change the order of ./compass/README.md to reflect a typical RESTful call logic path" 2015-07-01 23:08:01 +00:00
Shuo Yang 13ac3b2727 Change the order of ./compass/README.md to reflect a typical RESTful call logic path
Change-Id: I157f2f2d14950191916d2ff7c7dd37c0300c4615
2015-06-30 12:03:32 -07:00
Lei Lei c78aafbe78 Update api.raml
Change-Id: I71efbf5ce96ba16eea1dc929311bd52d4ab2515a
2015-06-29 16:55:05 -07:00
Xicheng Chang c946aeb254 Update Readme
Change-Id: I0bdd1808fce344156f2791e38832122a9aad30f0
2015-06-29 11:26:01 -07:00
Xicheng Chang 2fb2edb35c Support rally in docker
Change-Id: If9b8ac1a4269ab750684174e092f80fb795abc38
2015-06-17 15:51:56 -07:00
root dd1d121347 add log suffix in log filename
Change-Id: I896a7fa07a292a83ff0b98e3b7a0014f1048698b
2015-06-03 17:06:09 -07:00
Lei Lei bf093b03b1 Add batch api.
1. Add batch switches api.
2. Add batch switch_machines api.
3. update unittest and api.raml.

Change-Id: I5dd06de12f11eb4fa580a6cfacf1fb917ba6b4ea
2015-05-29 14:38:33 -07:00
Xicheng Chang 6881c732b4 Now ansible takes credentials passed by compass
But compass doesn't take them from UI. It provides
hard-coded values to package installers. We should
consider fixing this.

Change-Id: I7062e45ec4c7b1cc98ebfd63cbc96149d83beb05
2015-05-26 14:29:34 -07:00
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
xiaodongwang a18bdbf92b update cluster state to error when deployment fails
Change-Id: I54fb25d6151679118cf648b5c2192d56f7d95957
2015-04-29 23:40:00 -07:00
Jenkins 15c976fb36 Merge "Add api.raml" into dev/experimental 2015-04-30 02:18:01 +00:00
Lei Lei 5345a81470 Enable to get flavor_metadata without creating cluster.
1.Add "list_flavors" and "get_flavor" in api.
2.User "get_flavor" to get flavor name.
3.Add unittest for the new api function.
4.remove "ha_proxy" from package_matadata/openstack.conf
5.add flavor_config_validates

Change-Id: Ib17b851f5d8ac14b6d2bb13b0f44b575936c9f74
2015-04-27 15:10:00 -07:00
Lei Lei 29da11770a Add api.raml
1.create the api raml file add it to code base.
2.generate an api console from api raml file on syscompass.org.
3.update api.py and api.raml at the same time to keep in sync.

Change-Id: I6636a1b4a40c703d36ce3c194f5c030f31ad33f8
2015-04-27 11:19:38 -07:00
Xicheng Chang 3a0c895920 Use template to generate ansible.cfg instead of writing files
1. add removing ansible run env in refresh.sh
2. update ansible_installer.py for generate ansible.cfg

Change-Id: I5da9cec07f063a4879262f7a726270439031ec1d
2015-04-22 18:17:42 -07:00
xiaodongwang dca02024d9 fix user param appear at first problem
Change-Id: Ie097044a2fd6467f4de531d7f2ba5fe1a2576f23
2015-04-22 11:10:07 -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
Xicheng Chang 9be20754b6 Fix error in ansible.cfg
Change-Id: Ief44b8319574230d5a7623fe1aac5aa2035d4c8a
2015-04-17 13:48:08 -07:00
Jenkins 99e2e8c709 Merge "Add flavor metadata and convert to ui metadata" into dev/experimental 2015-04-15 23:58:30 +00:00
root a59bc2f953 Add flavor metadata and convert to ui metadata
Change-Id: I22423d9852580ff5da033f67c04b07efea74b5ee
2015-04-15 11:06:33 -07:00
Xicheng Chang 79c84568c1 Add strict_key_checking flag to ansible command
Change-Id: I39100bfc9415636ce3ee89c1020afbe1f5b89f39
2015-04-14 20:37:48 -07:00
Xicheng Chang b599f60020 Add support for ansible: openstack-juno
Change-Id: I41fc56862073af6f925248244870b32c8cd2c8e8
2015-04-07 12:01:58 -07:00
Lei Lei 45a9093b91 Modify config for ui metadata
Change-Id: Ib05acc1a57d96ecd6421b2b3dda01925a23919b8
2015-04-03 16:43:17 -07:00