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 kubernetes import client, config, watch | |
from pprint import pprint, pformat | |
import argparse | |
import logging | |
import urllib3 | |
import threading | |
import signal | |
import time | |
import json | |
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
# Ubuntu install wget | |
apt-get install wget -y | |
# CentOS install wget | |
yum install -y wget | |
# Get the script | |
wget https://raw.githubusercontent.com/nuriel77/iri-playbook/master/roles/iri/files/block_tor.sh -O /usr/local/bin/block_tor.sh && chmod +x /usr/local/bin/block_tor.sh | |
# Run the script for the first time |
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
# Run curl to get the oracle package: | |
curl -H 'Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie' -LO http://download.oracle.com/otn-pub/java/jdk/8u162-b12/0da788060d494f5095bf8624735fa2f1/jdk-8u162-linux-x64.tar.gz | |
# mkdir in /opt and untar it | |
mkdir -p /opt/jdk && tar -zxvf jdk-8u162-linux-x64.tar.gz -C /opt/jdk/ | |
# Link executables: | |
update-alternatives --install /usr/bin/java java /opt/jdk/jdk1.8.0_162/bin/java 100 | |
update-alternatives --install /usr/bin/javac javac /opt/jdk/jdk1.8.0_162/bin/javac 100 |
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 | |
function usage(){ | |
cat <<EOF | |
This script will run curl commands to the API endpoint. | |
If any of the tests fails this script will return failure. | |
-a [address] API endpoint | |
-t [seconds] Seconds until connection timeout |
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
# | |
# A fatal error has been detected by the Java Runtime Environment: | |
# | |
# SIGSEGV (0xb) at pc=0x00007f55ac6dd112, pid=14815, tid=0x00007f55ac3b0700 | |
# | |
# JRE version: OpenJDK Runtime Environment (8.0_141-b16) (build 1.8.0_141-b16) | |
# Java VM: OpenJDK 64-Bit Server VM (25.141-b16 mixed mode linux-amd64 compressed oops) | |
# Problematic frame: | |
# C [librocksdbjni6170663081901826394.so+0x22b112] rocksdb::DBImpl::NewIterator(rocksdb::ReadOptions const&, rocksdb::ColumnFamilyHandle*)+0x92 | |
# |
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 keystoneauth1 import identity | |
from keystoneauth1 import session | |
from ironicclient import client as ironic_client | |
from novaclient import client as nova_client | |
from os import environ | |
import getopt | |
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
// /etc/sensu/conf.d/sensu-checks.json | |
{ | |
"checks": { | |
"check-aodh-evaluator": { | |
"command": "systemctl is-active openstack-aodh-evaluator || exit 2", | |
"subscribers": ["overcloud-ceilometer-aodh-evaluator"], | |
"interval": 60 | |
}, |
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 | |
# This script will correct the "\n\\n" bug in hosts file | |
# Src: https://bugs.launchpad.net/tripleo/+bug/1655375 | |
# It will prevent from rebuild and redeployment to | |
# create a /etc/hosts file with this error. | |
# The nodes data is saved on swift on the undercloud | |
# and being pulled by the os-refresh-config process. | |
if [ "$OS_CLOUDNAME" != "undercloud" ] | |
then |
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 keystoneauth1 import identity | |
from keystoneauth1 import session | |
from neutronclient.v2_0 import client | |
from subprocess import call | |
from os import environ | |
import sys | |
""" Remove all network components """ |
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 xml.etree.ElementTree as ET | |
import libvirt | |
import sys | |
import re | |
""" Find all mac addresses from domains | |
to be able to generate the instackenv.json | |
manually """ |