Exemple #1
0
def make(parser):
    """Check Environment Object"""
    # choices is something like ['ntp', 'selinux', 'disk', 'network'],
    # which depends on the functions you define below
    parser.add_argument("-n", dest="OBJECT_NAME", choices=[i.split("_")[1] for i in register.all], help="Object Name")
    common.add_common_opt(parser)
    parser.set_defaults(func=env)
Exemple #2
0
def make(parser):
    '''Check cluster'''
    parser.add_argument(
        '-n',
        dest='CLUSTER_NAME',
        choices=['mysql','rabbit','ceph','pacemaker'],
        help='Cluster Name',
    )
    common.add_common_opt(parser)
    parser.set_defaults(func=cls)
Exemple #3
0
def make(parser):
    '''Check cluster'''
    parser.add_argument(
        '-n',
        dest='CLUSTER_NAME',
        choices=['mysql', 'rabbit', 'ceph', 'pacemaker'],
        help='Cluster Name',
    )
    common.add_common_opt(parser)
    parser.set_defaults(func=cls)
Exemple #4
0
def make(parser):
    '''Check Environment Object'''
    # choices is something like ['ntp', 'selinux', 'disk', 'network'],
    # which depends on the functions you define below
    parser.add_argument(
        '-n',
        dest='OBJECT_NAME',
        choices=[i.split('_')[1] for i in register.all],
        help='Object Name',
    )
    common.add_common_opt(parser)
    parser.set_defaults(func=env)
Exemple #5
0
def make(parser):
    '''Check Environment Object'''
    # choices is something like ['ntp', 'selinux', 'disk', 'network'],
    # which depends on the functions you define below
    parser.add_argument(
        '-n',
        dest='OBJECT_NAME',
        choices=[i.split('_')[1] for i in register.all],
        help='Object Name',
    )
    common.add_common_opt(parser)
    parser.set_defaults(func=env)
Exemple #6
0
def make(parser):
    '''Check OpenStack Compent'''
    parser.add_argument(
        '--profile',
        dest='PROFILE',
        action='store_true',
        default=False,
        help='Check Profile',
    )
    parser.add_argument(
        '--service',
        dest='SERVICE',
        action='store_true',
        default=False,
        help='Check Service Status',
    )
    parser.add_argument(
        '--controller',
        dest='CONTROLLER',
        action='store_true',
        default=False,
        help='Check All Controller Node',
    )
    parser.add_argument(
        '--compute',
        dest='COMPUTE',
        action='store_true',
        default=False,
        help='Check All Compute Node',
    )
    parser.add_argument(
        '--mongo',
        dest='MONGO',
        action='store_true',
        default=False,
        help='Check All Mongo Node',
    )
    parser.add_argument(
        '--ceph-osd',
        dest='CEPH_OSD',
        action='store_true',
        default=False,
        help='Check All Ceph-osd Node',
    )
    common.add_common_opt(parser)
    parser.set_defaults(func=stack)
Exemple #7
0
def make(parser):
    '''Check OpenStack Compent'''
    parser.add_argument(
        '--profile',
        dest='PROFILE',
        action='store_true',
        default=False,
        help='Check Profile',
    )
    parser.add_argument(
        '--service',
        dest='SERVICE',
        action='store_true',
        default=False,
        help='Check Service Status',
    )
    parser.add_argument(
        '--controller',
        dest='CONTROLLER',
        action='store_true',
        default=False,
        help='Check All Controller Node',
    )
    parser.add_argument(
        '--compute',
        dest='COMPUTE',
        action='store_true',
        default=False,
        help='Check All Compute Node',
    )
    parser.add_argument(
        '--mongo',
        dest='MONGO',
        action='store_true',
        default=False,
        help='Check All Mongo Node',
    )
    common.add_common_opt(parser)
    parser.set_defaults(func=stack)