Esempio n. 1
0
    volume_list = []  # empty list of vols = show them all

    # default behaviours
    if volume_request and args:
        volume_list = args

    if state_request:
        self_heal_backlog = False

    if options.everything:
        state_request = True
        volume_request = True

    if options.output_mode != 'console':
        self_heal_backlog = False

    # Create a cluster object. This simply creates the structure of 
    # the object and populates the glusterfs version 
    cluster = Cluster()

    cluster.output_mode = options.output_mode

    if version_ok(cluster.glfs_version, cfg.min_version):

        main()

    else:

        print "gstatus is not compatible with this version of glusterfs %s" % cluster.glfs_version
        exit(16)
Esempio n. 2
0
    if volume_request and args:
        volume_list = args

    if state_request:
        self_heal_backlog = False

    if options.everything:
        state_request = True
        volume_request = True

    if options.output_mode != 'console':
        self_heal_backlog = False

    # Create a cluster object. This simply creates the structure of
    # the object and populates the glusterfs version
    cluster = Cluster()

    cluster.output_mode = options.output_mode

    # Disable the buggy version check, version check was done to figure if the
    # glusterfs version used supported snapshot. Current users are expected to
    # already have upgraded to a `snapshot supported' versions.
    # Most of the recent issues are due to version check than other usability
    # issues. GlusterFS below 3.12 are not supported anyway. 3.12 or above
    # include snapshot support

    # if version_ok(cluster.glfs_version, cfg.min_version):
    main()

    # else: