11 Commits

Author SHA1 Message Date
Sandy Walsh
5d5f8ca105 Fix up defaults to use notabene handler and usage
Also backports some tweaks from ops:
- fixes logging.conf
- fixes pipeline_worker first time start

Change-Id: I6ab1e567594097bc23d857c05d0c1fc84262babf
2015-02-10 12:57:28 -08:00
Sandy Walsh
acd342b38a Switch to "nova" exchange.
Whoops. Was assuming a "monitor" exchange, but it's the "nova" exchange.

Change-Id: Ib0b921bf92724693eaf666762022a5245af8ef11
2015-02-06 11:03:27 -08:00
Sandy Walsh
72c8f298e4 Ansible scripts now default monitor.*3
In order to run StackTach.v2 and StackTach.v2 in parallel,
we need to have two queue from OpenStack (vs. having to change
--notification_topics to include a new queue).

This approach makes a new queue with the same routing_key off the
same exchange, resulting in mirrored queues which can be consumed
separately.

Exchange "nova" -> (routing key "monitor.info") -> Queue "monitor.info"
                -> (routing key "monitor.info") -> Queue "monitor.info3"

Change-Id: Icce87c7eb43025672759d442553feb325e186128
2015-02-04 15:10:09 -08:00
Sandy Walsh
b636a67497 Include monitor.error queue
Also buffed stv3_status.py to handle api nodes.

Change-Id: I70bfc55007d8ced37f47c27c3e31753d42e83492
2015-01-28 06:50:36 -08:00
Sandy Walsh
c6e111f645 Let gunicorn accept from all addresses
Still running on 8000 since we're running at stv3 user.

Change-Id: I50cb731852523d1a08b45e51536e4d178b42975b
2015-01-26 07:00:24 -08:00
Sandy Walsh
0e5a5ab9ab Sync ansible files/templates with usage files
Looks like we were using the default config files in the ansible
scripts when we should be using the Usage related ones.

Change-Id: Id30152ab7762aff85f3258552de0b5a3e0a6e876
2015-01-22 09:38:12 -08:00
Sandy Walsh
b99a74198f my.cnf was going to wrong location.
Got schooled on the difference between .my.cnf and my.cnf. This
should be correct now.

Change-Id: I5f23ae5dc9e824153fb9e85a11e09e422ed1e0f2
2015-01-07 11:26:28 -08:00
Sandy Walsh
618cdcdd63 Cell Support
Yagi-workers are now created per cell. One rabbit per cell.
Also renamed the common role to stv3-common to prevent conflicts
with other playbooks.

Take note of ansible/roles/stv3-workers/defaults/main.yaml to
see an example of the expected format of the calling facts file.
Each entry in this list-of-dictionaries represents a rabbit server
and Swift container for that cell.

Also, multiple pipeline_workers are created based on the value
of num_pipeline_workers (defaults to 2). This is so a machine
can better utilize multi-core architectures.

Change-Id: I09c4d364878493546d6e23e019f01f5f4f38c37c
2014-12-22 10:14:37 -08:00
Sandy Walsh
51bfd3f12a Fix services not starting on first run.
Services now run properly on first run (thanks Joel). Didn't
need to check the changed status of the command after all.

Also, spelling mistake in the playbook launch fixed.

Change-Id: I5b6cb276b066844c934da4ffbd2513a006033214
2014-12-16 07:53:17 -08:00
Sandy Walsh
f4484a9a9d Remove cgit from branching.
Seems to be a change in how infra defines the stackforge repo.

Also removed a stv3-api restart from common, which was undefined.

Change-Id: I3c33dd6db467225444a0a9da137bf8f002629e3a
2014-12-15 08:46:55 -08:00
Sandy Walsh
24f118f9ac tox verification and tarball venv packaging support.
Optionally run tox on each git repo (-t) and package resultant
venv into a tarball on success (-p)

tarball filename includes the short-sha1 of the repo.

If tarball is created, screen is not run.

if the -d option is given the cmdline incantation for kicking
off the ansible deploy playbook will be provided. Later, this
could be automated.

A mysql role playbook is also included for single node db.

stv3-api role is also included.

Change-Id: Ib9f97a0035c228d4a163d7794ab7ce60043d572b
2014-12-08 13:15:43 -08:00