Status utility now support different vhosts per cell.
Minor tweaks also include: - shoebox handler now wraps notification with region/cell info - pip_freeze_versions.txt is updated after each ./build and copied into the VENV directory for inclusion in tarball. Change-Id: Ibe4027770b859ea7878c9f0952fccf94fb496c43
This commit is contained in:
parent
f4b9b7758b
commit
8995b349a7
@ -58,4 +58,7 @@ working_directory=/etc/stv3/{{item.cell}}/events
|
|||||||
destination_folder=/etc/stv3/tarballs
|
destination_folder=/etc/stv3/tarballs
|
||||||
filename_template=%Y%m%d-[[TIMESTAMP]]-region-{{item.cell}}-stv3-[[CRC]].json
|
filename_template=%Y%m%d-[[TIMESTAMP]]-region-{{item.cell}}-stv3-[[CRC]].json
|
||||||
roll_manager=shoebox.roll_manager:WritingJSONRollManager
|
roll_manager=shoebox.roll_manager:WritingJSONRollManager
|
||||||
roll_size_mb=1000
|
roll_size_mb=30
|
||||||
|
wrap_payload_with_region=True
|
||||||
|
wrap_region=region
|
||||||
|
wrap_cell={{ item.cell }}
|
||||||
|
@ -69,7 +69,6 @@ worker_hostnames = config['worker_hostnames']
|
|||||||
rabbit_hostnames = config['rabbit_hostnames']
|
rabbit_hostnames = config['rabbit_hostnames']
|
||||||
api_hostnames = config['api_hostnames']
|
api_hostnames = config['api_hostnames']
|
||||||
port = int(config.get('ssh_port', 22))
|
port = int(config.get('ssh_port', 22))
|
||||||
vhost = config.get('vhost', '/')
|
|
||||||
lines = config.get('tail_lines', '100')
|
lines = config.get('tail_lines', '100')
|
||||||
queue_prefixes = config.get('queue_prefixes', ['monitor'])
|
queue_prefixes = config.get('queue_prefixes', ['monitor'])
|
||||||
num_pipeline_workers = config.get('num_pipeline_workers', 2)
|
num_pipeline_workers = config.get('num_pipeline_workers', 2)
|
||||||
@ -122,9 +121,11 @@ for api in api_hostnames:
|
|||||||
o.write(ret[1])
|
o.write(ret[1])
|
||||||
|
|
||||||
prefixes = '|'.join(queue_prefixes)
|
prefixes = '|'.join(queue_prefixes)
|
||||||
for rabbit in rabbit_hostnames:
|
for rabbit_conf in rabbit_hostnames:
|
||||||
print "--- RabbitMQ: %s vhost: %s" % (rabbit, vhost)
|
host = rabbit_conf['host']
|
||||||
ret = ssh(rabbit, ["sudo rabbitmqctl list_queues -p %s | grep -E '%s'" %
|
vhost = rabbit_conf.get('vhost', '/')
|
||||||
|
print "--- RabbitMQ: %s vhost: %s" % (host, vhost)
|
||||||
|
ret = ssh(host, ["sudo rabbitmqctl list_queues -p %s | grep -E '%s'" %
|
||||||
(vhost, prefixes)],
|
(vhost, prefixes)],
|
||||||
username, password, port)
|
username, password, port)
|
||||||
for r in ret:
|
for r in ret:
|
||||||
|
4
build.sh
4
build.sh
@ -110,6 +110,10 @@ fi
|
|||||||
# Hack(sandy): remove msgpack that conflicts with carrot
|
# Hack(sandy): remove msgpack that conflicts with carrot
|
||||||
pip uninstall -y msgpack-python
|
pip uninstall -y msgpack-python
|
||||||
|
|
||||||
|
pip freeze > pip_freeze_versions.txt
|
||||||
|
|
||||||
|
cp pip_freeze_versions.txt $VENV_DIR
|
||||||
|
|
||||||
(cat yagi.conf.$PIPELINE_ENGINE ; cat yagi.conf.common ) > yagi.conf
|
(cat yagi.conf.$PIPELINE_ENGINE ; cat yagi.conf.common ) > yagi.conf
|
||||||
|
|
||||||
if [ $PIPELINE_ENGINE == "winchester" ]
|
if [ $PIPELINE_ENGINE == "winchester" ]
|
||||||
|
@ -15,13 +15,13 @@ worker_hostnames:
|
|||||||
- worker1.example.com
|
- worker1.example.com
|
||||||
- worker2.example.com
|
- worker2.example.com
|
||||||
|
|
||||||
# Which vhost is your rabbit using?
|
|
||||||
vhost: nova
|
|
||||||
|
|
||||||
rabbit_hostnames:
|
rabbit_hostnames:
|
||||||
- rabbit.global.example.com
|
- host: rabbit.global.example.com
|
||||||
- rabbit.cell1.example.com
|
vhost: /
|
||||||
- rabbit.cell2.example.com
|
- host: rabbit.cell1.example.com
|
||||||
|
vhost: /
|
||||||
|
- host: rabbit.cell2.example.com
|
||||||
|
vhost: /
|
||||||
|
|
||||||
# However you have your OpenStack service configured.
|
# However you have your OpenStack service configured.
|
||||||
# Could be multiple queues to watch.
|
# Could be multiple queues to watch.
|
||||||
|
Loading…
Reference in New Issue
Block a user