2011-11-18 00:49:47 +00:00
|
|
|
import logging
|
|
|
|
|
|
|
|
from ..orchestra import run
|
2013-07-31 00:26:59 +00:00
|
|
|
from .. import misc
|
2011-11-18 00:49:47 +00:00
|
|
|
|
|
|
|
log = logging.getLogger(__name__)
|
|
|
|
|
|
|
|
def task(ctx, config):
|
|
|
|
"""
|
|
|
|
Run chef-solo on all nodes.
|
|
|
|
"""
|
|
|
|
log.info('Running chef-solo...')
|
|
|
|
|
|
|
|
run.wait(
|
|
|
|
ctx.cluster.run(
|
|
|
|
args=[
|
|
|
|
'wget',
|
2013-04-30 00:11:27 +00:00
|
|
|
# '-q',
|
2011-11-18 00:49:47 +00:00
|
|
|
'-O-',
|
2012-03-02 18:55:19 +00:00
|
|
|
# 'https://raw.github.com/ceph/ceph-qa-chef/master/solo/solo-from-scratch',
|
2012-05-05 16:30:41 +00:00
|
|
|
'http://ceph.com/git/?p=ceph-qa-chef.git;a=blob_plain;f=solo/solo-from-scratch;hb=HEAD',
|
2011-11-18 00:49:47 +00:00
|
|
|
run.Raw('|'),
|
|
|
|
'sh',
|
2013-04-30 20:04:28 +00:00
|
|
|
'-x',
|
2011-11-18 00:49:47 +00:00
|
|
|
],
|
|
|
|
wait=False,
|
|
|
|
)
|
|
|
|
)
|
2013-07-31 00:26:59 +00:00
|
|
|
|
|
|
|
log.info('Reconnecting after ceph-qa-chef run')
|
|
|
|
misc.reconnect(ctx, 10) #Reconnect for ulimit and other ceph-qa-chef changes
|
|
|
|
|