This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from graphviz import Graph | |
import sys | |
import time | |
import re | |
from collections import OrderedDict | |
from hashlib import md5 | |
graph = Graph("config_info") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import os | |
import errno | |
from argparse import ArgumentParser | |
from swift.container.backend import ContainerBroker | |
parser = ArgumentParser() | |
parser.add_argument('-v', '--verbose', help='line oriented output', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################### | |
## | |
## Alertmanager YAML configuration for routing. | |
## | |
## Will route alerts with a code_owner label to the slack-code-owners receiver | |
## configured above, but will continue processing them to send to both a | |
## central Slack channel (slack-monitoring) and PagerDuty receivers | |
## (pd-warning and pd-critical) | |
## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Allow extra connections to a SwiftStack controller or node through the firewall. | |
# We require firewall-cmd be installed for this, or else we warn the user. | |
# On startup this script adds a new input chain called localrules-in... | |
# | |
# - To the INPUT chain if on a node; | |
# - To the IN_public_allow chain if on a controller. | |
# | |
# For Enterprise Linux 7 only; for IPv4 only. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# | |
# This looks at what's expired in the expiring objects queue, asks the object | |
# servers for the current real state of the objects, and then logs it's | |
# findings. If the object has been deleted but the tombstone timestamp is | |
# with-in a small delta of the queue entry because of lp bug #1741371 - we'll | |
# clean-up those queue entries. | |
import argparse | |
import logging | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import argparse | |
import hashlib | |
import sys | |
from eventlet import GreenPile | |
from swift.common import storage_policy | |
from swift.common import utils | |
from swift.common.bufferedhttp import http_connect |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
import os | |
import errno | |
from argparse import ArgumentParser | |
from collections import defaultdict | |
import shutil | |
import logging | |
import thread | |
import threading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
import errno | |
from argparse import ArgumentParser | |
from collections import defaultdict | |
from itertools import islice | |
from swift.common.storage_policy import split_policy_string | |
from swift.obj.diskfile import get_data_dir | |
from swift.common.ring import Ring |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from swift.container.replicator import ContainerReplicator | |
from swift.common.utils import parse_options | |
from swift.common.daemon import run_daemon | |
from optparse import OptionParser | |
from swift.common import db_replicator | |
from swift.common.utils import list_from_csv | |
orig_roundrobin = db_replicator.roundrobin_datadirs |
NewerOlder