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
# | |
# Ansible playbook to prepare the undercloud machine. | |
# Will preform all steps until custom steps are to be taken -- | |
# which are: providing a custom undercloud.conf and running | |
# openstack install undercloud command and so on... | |
# Root SSH access to the remote machine has to be configured. | |
# Edit vars as necessary. | |
# | |
# If this is the first time you are using Ansible on a host, |
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
# Shutting down a node with two OSDs | |
# "noout" flag is set, meaning no count down starts (default 300 sec) | |
# There will be no data re-placement. | |
######################################################################## | |
[root@overcloud-controller-0 ~]# ceph -w | |
cluster ce7cc1f4-bccc-11e6-a544-525400ac16ed | |
health HEALTH_WARN | |
80 pgs stale | |
1 requests are blocked > 32 sec | |
2/6 in osds are down |
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
heat_template_version: 2014-10-16 | |
description: > | |
Wipe and convert all disks to GPT (except the disk containing the root file system) | |
resources: | |
userdata: | |
type: OS::Heat::MultipartMime | |
properties: | |
parts: |
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 | |
set -x | |
set -e | |
source ~/overcloudrc | |
if ! test -f CentOS-7-x86_64-GenericCloud.qcow2;then | |
wget http://cloud.centos.org/centos/7/images/CentOS-7-x86_64-GenericCloud.qcow2.xz | |
unxz CentOS-7-x86_64-GenericCloud.qcow2.xz | |
fi |
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 novaclient import client | |
from subprocess import call | |
from os import environ, system, getuid | |
import sys | |
import re | |
""" | |
Script to set hostnames / IP addresses mapping | |
in /etc/hosts |
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 """ |
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
for i in {0..2}; do ssh heat-admin@controller${i} "sudo systemctl enable openstack-cinder-api && sudo systemctl restart openstack-cinder-api && sudo sed -i 's/^enabled_apis=metadata/enabled_apis=metadata,osapi_compute/' /etc/nova/nova.conf && sudo systemctl restart openstack-nova-api";done |
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
# Create a file with: | |
export DIB_DHCP_TIMEOUT=75 | |
export DIB_YUM_REPO_CONF="/etc/yum.repos.d/delorean*" | |
export DIB_YUM_REPO_CONF="$DIB_YUM_REPO_CONF /etc/yum.repos.d/CentOS-Ceph-Jewel.repo" | |
export STABLE_RELEASE="newton" | |
openstack overcloud image build --all | |
# Run above file (in screen) | |
# 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
racadm -r 10.166.5.6 -u root -p calvin sslkeyupload -t 1 -f D:\idrac_cert\wild_cert.key | |
racadm -r 10.166.5.6 -u root -p calvin sslcertupload -t 1 -f D:\idrac_cert\wild_cert.cer |
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 """ |
OlderNewer