Esempio n. 1
0
#!/usr/bin/env python
"""Author: Michal Zmuda
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script to brings up a set of onezone nodes. They can create separate
clusters.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function

import json

from environment import common, zone_worker

parser = common.standard_arg_parser('Bring up zone worker nodes.')
parser.add_argument('-l',
                    '--logdir',
                    action='store',
                    default=None,
                    help='path to a directory where the logs will be stored',
                    dest='logdir')

args = parser.parse_args()
output = zone_worker.up(args.image, args.bin, args.dns, args.uid,
                        args.config_path, args.logdir)

print(json.dumps(output))
Esempio n. 2
0
#!/usr/bin/env python

"""Author: Konrad Zemek
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script to brings up a set of oneprovider nodes. They can create separate
clusters.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function
import json

from environment import common, provider_worker


parser = common.standard_arg_parser('Bring up oneprovider worker nodes.')
parser.add_argument(
    '-l', '--logdir',
    action='store',
    default=None,
    help='path to a directory where the logs will be stored',
    dest='logdir')

args = parser.parse_args()
output = provider_worker.up(args.image, args.bin, args.dns, args.uid,
                     args.config_path, args.logdir)

print(json.dumps(output))
Esempio n. 3
0
#!/usr/bin/env python

"""Author: Tomasz Lichon
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script to bring up a set of oneprovider ccm nodes. They can create separate
clusters.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function
import json

from environment import common, provider_ccm


parser = common.standard_arg_parser('Bring up op_ccm nodes.')
parser.add_argument(
    '-l', '--logdir',
    action='store',
    default=None,
    help='path to a directory where the logs will be stored',
    dest='logdir')

args = parser.parse_args()
output = provider_ccm.up(args.image, args.bin, args.dns, args.uid,
                     args.config_path, args.logdir)

print(json.dumps(output))
Esempio n. 4
0
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script to bring up a set of onezone nodes along with databases.
They can create separate clusters.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function

import json
import os

from environment import common, dns, env, cluster_manager, zone_worker

parser = common.standard_arg_parser('Bring up zone nodes (workers and cms).')
parser.add_argument('-l',
                    '--logdir',
                    action='store',
                    default=None,
                    help='path to a directory where the logs will be stored',
                    dest='logdir')
parser.add_argument('-boz',
                    '--bin-oz',
                    action='store',
                    default=os.getcwd(),
                    help='the path to oz_worker repository (precompiled)',
                    dest='bin_oz')
parser.add_argument(
    '-bcm',
    '--bin-cm',
Esempio n. 5
0
#!/usr/bin/env python

"""Author: Tomasz Lichon
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script to bring up a set of oneprovider cm nodes. They can create separate
clusters.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function
import json

from environment import common, cluster_manager


parser = common.standard_arg_parser('Bring up cluster_manager nodes.')
parser.add_argument(
    '-l', '--logdir',
    action='store',
    default=None,
    help='path to a directory where the logs will be stored',
    dest='logdir')

args = parser.parse_args()
output = cluster_manager.up(args.image, args.bin, args.dns, args.uid,
                     args.config_path, args.logdir)

print(json.dumps(output))
Esempio n. 6
0
#!/usr/bin/env python

"""Author: Michal Zmuda
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script to brings up a set of cluster nodes. They can form separate
clusters.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function
import json
from environment import common, cluster_worker

parser = common.standard_arg_parser('Bring up bare cluster-worker nodes.')
parser.add_argument(
    '-l', '--logdir',
    action='store',
    default=None,
    help='path to a directory where the logs will be stored',
    dest='logdir')

args = parser.parse_args()
output = cluster_worker.up(args.image, args.bin, args.dns, args.uid, args.config_path, args.logdir)

print(json.dumps(output))
#!/usr/bin/env python
"""Author: Tomasz Lichon
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script to bring up a set of oneprovider cm nodes. They can create separate
clusters.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function
import json

from environment import common, cluster_manager

parser = common.standard_arg_parser('Bring up cluster_manager nodes.')
parser.add_argument('-l',
                    '--logdir',
                    action='store',
                    default=None,
                    help='path to a directory where the logs will be stored',
                    dest='logdir')

args = parser.parse_args()
output = cluster_manager.up(args.image, args.bin, args.dns, args.uid,
                            args.config_path, args.logdir)

print(json.dumps(output))
Esempio n. 8
0
#!/usr/bin/env python

"""Author: Michal Zmuda
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script to brings up a set of onezone nodes. They can create separate
clusters.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function

import json

from environment import common, zone_worker

parser = common.standard_arg_parser('Bring up zone worker nodes.')
parser.add_argument(
    '-l', '--logdir',
    action='store',
    default=None,
    help='path to a directory where the logs will be stored',
    dest='logdir')

args = parser.parse_args()
output = zone_worker.up(args.image, args.bin, args.dns, args.uid,
                        args.config_path, args.logdir)

print(json.dumps(output))
Esempio n. 9
0
"""Author: Michal Zmuda
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script to brings up a set of cluster nodes. They can form separate
clusters.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function
import json
import os
from environment import common, cluster_worker, cluster_manager, dns

parser = common.standard_arg_parser(
    'Bring up bare cluster nodes (workers and cms).')
parser.add_argument(
    '-l', '--logdir',
    action='store',
    default=None,
    help='path to a directory where the logs will be stored',
    dest='logdir')
parser.add_argument(
    '-bw', '--bin-worker',
    action='store',
    default=os.getcwd(),
    help='the path to cluster-worker repository (precompiled)',
    dest='bin_op_worker')
parser.add_argument(
    '-bcm', '--bin-cm',
    action='store',
Esempio n. 10
0
#!/usr/bin/env python
# coding=utf-8

"""Authors: Łukasz Opioła, Konrad Zemek
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script that brings up a set of appmock instances.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function
import json

from environment import appmock, common


parser = common.standard_arg_parser('Bring up appmock nodes.')
parser.add_argument(
    '-l', '--logdir',
    action='store',
    default=None,
    help='path to a directory where the logs will be stored',
    dest='logdir')

args = parser.parse_args()
config = appmock.up(args.image, args.bin, args.dns,
                    args.uid, args.config_path, args.logdir)
print(json.dumps(config))
Esempio n. 11
0
#!/usr/bin/env python
"""Author: Michal Zmuda
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script to brings up a set of cluster nodes. They can form separate
clusters.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function
import json
from environment import common, cluster_worker

parser = common.standard_arg_parser('Bring up bare cluster-worker nodes.')
parser.add_argument('-l',
                    '--logdir',
                    action='store',
                    default=None,
                    help='path to a directory where the logs will be stored',
                    dest='logdir')

args = parser.parse_args()
output = cluster_worker.up(args.image, args.bin, args.dns, args.uid,
                           args.config_path, args.logdir)

print(json.dumps(output))
Esempio n. 12
0
#!/usr/bin/env python
# coding=utf-8
"""Authors: Łukasz Opioła, Konrad Zemek
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script that brings up a set of appmock instances.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function
import json

from environment import appmock, common

parser = common.standard_arg_parser('Bring up appmock nodes.')
parser.add_argument('-l',
                    '--logdir',
                    action='store',
                    default=None,
                    help='path to a directory where the logs will be stored',
                    dest='logdir')

args = parser.parse_args()
config = appmock.up(args.image, args.bin, args.dns, args.uid, args.config_path,
                    args.logdir)
print(json.dumps(config))
Esempio n. 13
0
"""Author: Krzysztof Trzepla
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script to brings up a set of onepanel nodes. They can create separate
clusters.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function
import json

from environment import common, panel


parser = common.standard_arg_parser('Bring up onepanel nodes.')
parser.add_argument(
    'release_path',
    action='store',
    help='path to the release directory of component to be installed')

parser.add_argument(
    '-sp', '--storage_path',
    action='append',
    default=[],
    help='path to the storage used by installed component',
    dest='storage_paths')

args = parser.parse_args()
output = panel.up(args.image, args.bin, args.dns, args.uid, args.config_path,
                  args.release_path, args.storage_paths)
Esempio n. 14
0
"""Author: Michal Zmuda
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script to brings up a set of cluster nodes. They can form separate
clusters.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function
import json
import os
from environment import common, cluster_worker, cluster_manager, dns, \
    dockers_config

parser = common.standard_arg_parser(
    'Bring up bare cluster nodes (workers and cms).')
parser.add_argument('-i-',
                    '--image',
                    action='store',
                    default=None,
                    help='docker image to use for the container',
                    dest='image')
parser.add_argument('-l',
                    '--logdir',
                    action='store',
                    default=None,
                    help='path to a directory where the logs will be stored',
                    dest='logdir')
parser.add_argument('-bw',
                    '--bin-worker',
                    action='store',
Esempio n. 15
0
#!/usr/bin/env python
# coding=utf-8
"""Authors: Tomasz Lichoń, Konrad Zemek
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script to bring up a set of Global Registry nodes along with databases.
They can create separate clusters.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function
import json

from environment import common, globalregistry

parser = common.standard_arg_parser('Bring up globalregistry nodes.')
parser.add_argument('-l',
                    '--logdir',
                    action='store',
                    default=None,
                    help='path to a directory where the logs will be stored',
                    dest='logdir')

args = parser.parse_args()
output = globalregistry.up(args.image, args.bin, args.dns, args.uid,
                           args.config_path, args.logdir)
print(json.dumps(output))
Esempio n. 16
0
"""Authors: Łukasz Opioła, Konrad Zemek
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script that prepares a set dockers with oneclient instances that are
configured and ready to start.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function
import json

from environment import client, common


parser = common.standard_arg_parser(
    'Set up dockers with oneclient preconfigured.')
parser.add_argument(
    '-l', '--logdir',
    action='store',
    default=None,
    help='path to a directory where the logs will be stored',
    dest='logdir')

args = parser.parse_args()
output = client.up(args.image, args.bin, args.dns, args.uid,
                   args.config_path, args.logdir)

print(json.dumps(output))
Esempio n. 17
0
"""Author: Konrad Zemek
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script to brings up a set of oneprovider nodes. They can create separate
clusters.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function
import json
import os

from environment import common, provider_worker, cluster_manager, dns

parser = common.standard_arg_parser(
    'Bring up oneprovider nodes (workers and cms).')
parser.add_argument(
    '-l', '--logdir',
    action='store',
    default=None,
    help='path to a directory where the logs will be stored',
    dest='logdir')
parser.add_argument(
    '-bw', '--bin-worker',
    action='store',
    default=os.getcwd(),
    help='the path to oneprovider repository (precompiled)',
    dest='bin_op_worker')
parser.add_argument(
    '-bcm', '--bin-cm',
    action='store',
Esempio n. 18
0
#!/usr/bin/env python
"""Author: Konrad Zemek
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script to brings up a set of oneprovider nodes. They can create separate
clusters.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function
import json

from environment import common, provider_worker

parser = common.standard_arg_parser('Bring up oneprovider worker nodes.')
parser.add_argument('-l',
                    '--logdir',
                    action='store',
                    default=None,
                    help='path to a directory where the logs will be stored',
                    dest='logdir')

args = parser.parse_args()
output = provider_worker.up(args.image, args.bin, args.dns, args.uid,
                            args.config_path, args.logdir)

print(json.dumps(output))
Esempio n. 19
0
#!/usr/bin/env python
"""Author: Tomasz Lichon
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script to bring up a set of oneprovider ccm nodes. They can create separate
clusters.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function
import json

from environment import common, provider_ccm

parser = common.standard_arg_parser('Bring up op_ccm nodes.')
parser.add_argument('-l',
                    '--logdir',
                    action='store',
                    default=None,
                    help='path to a directory where the logs will be stored',
                    dest='logdir')

args = parser.parse_args()
output = provider_ccm.up(args.image, args.bin, args.dns, args.uid,
                         args.config_path, args.logdir)

print(json.dumps(output))
Esempio n. 20
0
#!/usr/bin/env python
"""Author: Krzysztof Trzepla
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script to brings up a set of onepanel nodes. They can create separate
clusters.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function

import json
import socket

from environment import common, panel

parser = common.standard_arg_parser('Bring up onepanel nodes.')

parser.add_argument('--gr-ip',
                    action='store',
                    default=socket.gethostbyname('onedata.org'),
                    help='Global Registry IP address',
                    dest='gr_ip')

args = parser.parse_args()
output = panel.up(args.image, args.bin, args.dns, args.uid, args.config_path,
                  args.gr_ip)

print(json.dumps(output))
Esempio n. 21
0
Copyright (C) 2015 ACK CYFRONET AGH
This software is released under the MIT license cited in 'LICENSE.txt'

A script to bring up a set of onezone nodes along with databases.
They can create separate clusters.
Run the script with -h flag to learn about script's running options.
"""

from __future__ import print_function

import json
import os

from environment import common, dns, env, cluster_manager, zone_worker

parser = common.standard_arg_parser('Bring up zone nodes (workers and cms).')
parser.add_argument(
    '-l', '--logdir',
    action='store',
    default=None,
    help='path to a directory where the logs will be stored',
    dest='logdir')
parser.add_argument(
    '-boz', '--bin-oz',
    action='store',
    default=os.getcwd(),
    help='the path to oz_worker repository (precompiled)',
    dest='bin_oz')
parser.add_argument(
    '-bcm', '--bin-cm',
    action='store',