Граф коммитов

241 Коммитов

Автор SHA1 Сообщение Дата
Sridhar Ratnakumar 0970961028 Tentative documentation for Python support
Change-Id: I8d0b991d1cf158b51249b0cd1f580acb85b88d76
2011-08-12 14:52:38 -07:00
Sridhar Ratnakumar 05cb277224 redirect pip output to startup.log - to make it part of client crash logs list
Change-Id: Icda59fbff2629f6afb6d5fd8cd25c28e23b9f92a
2011-08-12 14:52:38 -07:00
Sridhar Ratnakumar a04391b980 Django: run sycndb automatically during app startup
Why app startup, and not part of staging? Because every deployment related
tasks are appened to the 'startup' script, so they'll be run on the DEA
(before app startup) instead of the cloud_controller. Not sure if this
should change.

Change-Id: I1b1f09fb7965d318f522a28c165d17e355ea195f
2011-08-12 14:52:38 -07:00
Sridhar Ratnakumar af01587b8f Make pip install from requirements.txt actually work
* use virtualenv's pip, not global one (which requires sudo anyway)
* redirect pip's output to pip.log, otherwise it is impossible to tell what went wrong when pip fails

Change-Id: Idba6bc42e699d09a77b446c0c4ed7c3200857df9
2011-08-12 14:52:38 -07:00
Sridhar Ratnakumar ba770e4b19 Use gunicorn installed in the virtualenv
Using globally installed gunicorn will not recognize modules installed
(from requirements.txt) into the app's virtualenv.

Change-Id: Ib8c480297ae9537983b7d3be2848a14095e7b043
2011-08-12 14:52:38 -07:00
Sridhar Ratnakumar 130376959d wsgi framework - use `wsgi.py:application` instead of `app.py:app`
Change-Id: Ib9bad01caa3cb8040c13e12bdbffe82e076194b1
2011-08-12 14:52:38 -07:00
Gareth Rushgrove 03902c12f8 Remove spawning from install script
Change-Id: I8d78455ebe8ed66897f1be6fbb0f6e7c4d20f295
2011-08-12 14:52:38 -07:00
Gareth Rushgrove ef4aac3f92 Demonstrate using gunicorn, mainly to show up an odd bug
Change-Id: I48507bf8b32ff6e508f6c3713ee48ba536f5f496
2011-08-12 14:52:38 -07:00
Gareth Rushgrove b25a386a44 Add support for Django applications
Change-Id: Idb9edd4c27db2f411f2d01c9d20ff13f6562db78
2011-08-12 14:52:37 -07:00
Gareth Rushgrove 467b67cd14 Using 0.0.0.0 as per comment, consistent with other startup scripts
Change-Id: I46678ef577a0f1c06305e9ae1f95a57219f14f5a
2011-08-12 14:51:33 -07:00
Gareth Rushgrove 61ae00cfc2 Revert a previous suggested changed as it appears not to work
Change-Id: I7191635c98b5d2f6dca8327607d010b497b4a6c1
2011-08-12 14:51:33 -07:00
Gareth Rushgrove f8791f8668 Add support for virtualenv and pip
Change-Id: I09647b254f6d7c17bbbbba6351c5e9abe0081bbd
2011-08-12 14:51:33 -07:00
Gareth Rushgrove b09383d6c0 Added myself to the authors list as requested
Change-Id: I78dc69e6119becdd5d28c06ca80d453501c0b193
2011-08-12 14:51:33 -07:00
Gareth Rushgrove 7ac7d32bc4 Using VCAP_ rather than VMC_, and removing localhost
Change-Id: I0a3aba3f0aae963e0e2d2baf48aea817cbbffa86
2011-08-12 14:51:32 -07:00
Gareth Rushgrove 9b62729d52 libcurl4-openssl-dev required to run test suite
Change-Id: I4d1db01cd0909d610eec1cf822e90fd4b4f8d336
2011-08-12 14:51:32 -07:00
Gareth Rushgrove 298ccc55f2 Add support for Python WSGI applications
Change-Id: I7b271d2e678cd0c9dd30c563b98bac9d226fe8c0
2011-08-12 14:51:32 -07:00
Gareth Rushgrove 5ddb888c2b Fix for zero length responses being returned
Change-Id: I3cac7f2985e214f078077a0a5ba660feba306924
2011-08-12 13:15:25 -07:00
Patrick Bozeman 3912288b07 Merge "bump services submodule ptr" 2011-08-12 18:24:32 +00:00
Patrick Bozeman 20d4fd53fe Merge changes I104e4c78,Ia879da24
* changes:
  bump test submodule ptr
  bump java submodule ptr
2011-08-12 18:24:09 +00:00
Vadim Spivak 3076d82271 Merge "HealthManager varz changes - Fixed varz stats keeping frameworks/runtimes around that are no longer in the DB - Added started apps and instances - Aggregated queries to reduce number of requests" 2011-08-12 18:23:07 +00:00
Vadim Spivak 6034ef4818 HealthManager varz changes
- Fixed varz stats keeping frameworks/runtimes around that are no longer in the DB
- Added started apps and instances
- Aggregated queries to reduce number of requests

Change-Id: I03ee8368e1e2f06819f40cb1cc74ced949f8a79f
2011-08-12 11:01:17 -07:00
Patrick Bozeman 4649cb74b0 bump services submodule ptr
Change-Id: Ibfd057943906f5b2ecd6bf875478d25ad9742244
2011-08-12 10:58:20 -07:00
Patrick Bozeman 82508f66d9 bump test submodule ptr
Change-Id: I104e4c7872d0b2d353e7f6dc1b9072afe86c8c33
2011-08-12 10:54:52 -07:00
Patrick Bozeman 81f1bddc1e bump java submodule ptr
Change-Id: Ia879da24f35bdd70afcb90b8e6b1093ef670f6d7
2011-08-12 10:54:16 -07:00
Patrick Bozeman cbacc93510 be very explict about rvm ruby versions
Change-Id: Ib5e6270d22dee67e7886cc0f5936c5dd1761a0b4
2011-08-11 19:39:14 -07:00
Yohei Saskai 5fbaceb589 fix File.expand_path usage.
For applying this fix, you can use MySQL (/w em_mysql2 adapter) as cloud controller database by configuring cloud_controller.yml as follows:

  development:
    database: cloudcontroller
    host: localhost
    port: 3306
    username: root
    password: password
    adapter: em_mysql2
    encoding: utf8
    timeout: 2000

Change-Id: Ie881f617f77d1d4aacc0772b1594547b9beb1af5
2011-08-11 19:39:14 -07:00
Patrick Armstrong b25522b823 Fix typo when checking for preexisting Erlang installation in vcap_setup
Change-Id: I59e37fd76a18d6fcc742aded67d37a4dda5117b9
2011-08-11 19:39:14 -07:00
AB Srinivasan 459f252e61 Include the PG drivers in the tomcat bits.
Change-Id: I2ef89a26a10715c67e7018d197f4a11c61714fc7
2011-08-10 16:45:03 -07:00
Mahesh 5075e0d82b Merge "Simple change to fix deployments that should not download vcap repo" 2011-08-10 22:18:14 +00:00
AB Srinivasan 301bca233f Support for Plain Java and refactored staging.
Change-Id: I88ad35dc9a8783ade4f18cede267ac4e237d607b
2011-08-09 20:35:55 -07:00
Mahesh 74518d71de Simple change to fix deployments that should not download vcap repo
Setting a default value for REVISION was incorrect. nil is the right default for
this property.

Change-Id: Iaf2d636cb508c4e3469f479663f9ade8ecf9f895
2011-08-09 11:40:57 -07:00
AB Srinivasan 197850be99 Bump up Tomcat version used in Cloud Foundry to 6.0.32
Change-Id: Id48333d0a694d7dd33f0e3d47a1b61e399371285
2011-08-08 17:29:12 -07:00
Nicholas Kushmerick 44c918b019 Merge branch 'fixacls'
Change-Id: Ic8056c260937a317f70cc24c125abf8c80aa2d06
2011-08-04 13:33:31 -07:00
Nicholas Kushmerick 97727bfd05 Allow service offerings to switch from private to public
Change-Id: I5d1ba7483949b8de459fa8e48e3cf065de5c982c
2011-08-04 11:44:00 -07:00
Mahesh c5651c335b Merge "Multi host setup scripts" 2011-08-04 05:29:44 +00:00
mpage d0dac85968 Merge "Initial pass at stand alone stager component" 2011-08-03 22:44:46 +00:00
Nicholas Kushmerick c4bb2c8db2 Merge "Merge branch 'services-r3'" 2011-08-03 22:19:30 +00:00
Mahesh ff4c25516b Multi host setup scripts
All deployments (multi host and single host) are driven through a templated
config file. Look at dev_setup/deployments/sample* for an example of what this
config file looks like. There is sufficient documentation inside the configs.
But at a high level the user specifes "jobs" to "install" and jobs that are
"installed". The "installed" jobs have properties associated with them which are
used by jobs that are in the "install" list. e.g. nats could be an installed job
and its properties like host/port will be used by the jobs in the install list.
  The deployment code now goes through this config file, does sanity checking to
verify valid job names, valid properties etc. It leverages "rake" to manage
dependencies between jobs, look at dev_setup/lib/job_*. So we enforce that all
dependent jobs for a given job are either in the "installed" list or in the
"install" list.  Once all job specs are verified, we generate the chef runlist
on the fly and the deployment proceeds to install the required components using
chef.

NOTE:
1. For now, multi host service deployment is limited to only selecting a service
say "redis" and the scripts will install the service node, gateway and the redis
software itself on the same host. We can add more flexibility to this later.
2. For now, we use roles to enforce chef recipe dependencies. It seems to be
working well for what we have right now and I like the fact that there is one
location that maintains the chef dependencies for a given component.
3. For now, not all configurations of multi host are tested. In fact, I have
only
verified NATS. The config file template changes for all the other components
will be added in later changes. e.g. with this change you cannot run ccdb on a
separate host and expect cloud controller to work. But the changes to make it
work are more about adding the right templated fields and testing those changes.

Testing Done: I have verified that I can install "nats" on one box and the rest
of the components on a different box and things work fine.

Change-Id: I165b01fd65e4283748cf2cf9b2438369ae6332ce
2011-08-03 13:54:48 -07:00
David Sabeti 74b19af6b0 Logs a user event when instances is scaled
Change-Id: I5646694063ad4a9848a7445e0c2ddc977502f634
2011-08-03 10:52:46 -07:00
David Sabeti 3730098bfd Environment variables with vcap_ or vmc_ outlawed (+ unit tests)
Change-Id: I1ad63aa203d62b7f0121fb43a55a15c6ea9fa637
2011-08-03 10:52:46 -07:00
mpage 5738ca8a79 Initial pass at stand alone stager component
Change-Id: Ie227575b95a1045c55ee674e4249952d17d5ba06
2011-08-02 19:02:55 -07:00
Nicholas Kushmerick daa524630d Merge branch 'services-r3'
Change-Id: I0fa3c4da786746b97bcdba769a88bb19e731850e
2011-08-02 11:59:55 -07:00
Patrick Bozeman a1040782a6 advance tests submodule ptr
Change-Id: I716aefa2264def94e785f8dd60ac6db57f7809c4
2011-08-02 10:04:00 -07:00
mpage 25e134d7cd Merge "Fix require order bug in DEA tests." 2011-08-01 18:55:53 +00:00
Patrick Bozeman 17bf480158 Merge "advance tests submodule ptr" 2011-07-29 22:45:52 +00:00
Ramnivas Laddad 534eb75bae Moved java submodule forward
Change-Id: If33e5c9865e3fd79546642c26754b0414691dc87
2011-07-29 15:08:03 -07:00
Mahesh d9136f9b40 Merge "Templates for CF config files. Also change deployment config from json to yml." 2011-07-29 21:03:50 +00:00
Patrick Bozeman 4a48a28a37 advance tests submodule ptr
Change-Id: I6f4916cafb6e0041e941e334b8883b1ac29dcaac
2011-07-29 12:43:09 -07:00
Mahesh ff543c0f03 Templates for CF config files. Also change deployment config from json to yml.
Added template files for all cf components including services.
Add comments to the deployment yaml config file. Cleanup some of the scripts.

Change-Id: I9209749ab9ca50a2bd894189c571e1b4c33bc77b
2011-07-29 11:46:37 -07:00
mpage d68eee3539 Merge "Add helper class for loading/validating config files" 2011-07-28 22:54:20 +00:00