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
#!/bin/bash | |
# from https://github.com/cernceph/ceph-scripts/blob/master/tools/scrubbing/autorepair.sh | |
for PG in $(ceph pg ls inconsistent -f json | jq -r .pg_stats[].pgid) | |
do | |
echo Checking inconsistent PG $PG | |
if ceph pg ls repair | grep -wq ${PG} | |
then | |
echo PG $PG is already repairing, skipping | |
continue |
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/python | |
import requests | |
import json | |
import argparse | |
from awsauth import S3Auth | |
def parse_args(): | |
parser = argparse.ArgumentParser( | |
description='RADOSGW address S3 access_key and secret_key' |
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
from pyVim.connect import SmartConnect, SmartConnectNoSSL, Disconnect | |
from pyVmomi import vim | |
import atexit | |
host = " " | |
user = " " | |
password = ' ' | |
serviceInstance = SmartConnectNoSSL(host=host, | |
user=user, |
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/python | |
import requests | |
import json | |
import argparse | |
from awsauth import S3Auth | |
def parse_args(): | |
parser = argparse.ArgumentParser( | |
description='RADOSGW address S3 access_key and secret_key' |
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
--- | |
# sosreport runner/fetcher | |
# usage: | |
# ansible-playbook sosreport.yaml —limit=<node/nodes> -e "dest=~/temp name=<name> case_id=<case/ticket>" | |
- hosts: all | |
gather_facts: false | |
vars: | |
sos_path: "{{ dest }}/{{ case_id }}/{{ run_time }}" |