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
__author__ = 'bot11' | |
''' | |
Hop on to the servers and make the passwordauthentication no | |
''' | |
import sys | |
import paramiko as pm |
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
class Connect: | |
def __init__(self, ip, port): | |
self.ip = ip | |
self.port = port | |
def verify(self): | |
import socket | |
import telnetlib | |
session = None | |
try: |
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
class Connect: | |
def __init__(self, ip, port): | |
self.ip = ip | |
self.port = port | |
def verify(self): | |
import socket | |
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
try: | |
client_socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM) |
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
__author__ = 'root' | |
from keystoneclient.v2_0 import client as keystoneclient | |
from neutronclient.neutron import client as neutronclient | |
import sys | |
kclient = keystoneclient.Client(auth_url="http://localhost:35357/v2.0/", | |
username="admin", tenant_name="admin", | |
password="devstack") |
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
Error description: | |
----------------- | |
'keystone middleware' is not a global requirement but it should be,something went wrong | |
Solution: | |
-------- | |
Update the oslo.config in all directories present at /opt/stack. | |
Change the requirements.txt and egg.info/requires.txt files only. | |
For example in cinder: |
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
[[local|localrc]] | |
HOST_IP=10.0.0.13 | |
# Credentials | |
DATABASE_PASSWORD=devstack | |
ADMIN_PASSWORD=devstack | |
SERVICE_PASSWORD=devstack | |
SERVICE_TOKEN=devstack | |
RABBIT_PASSWORD=devstack |
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
$ apt-get update | |
$ adduser stack | |
$ echo "stack ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers | |
$ apt-get install git | |
$ su stack | |
$ git clone -b stable/icehouse https://git.openstack.org/openstack-dev/devstack | |
$ cd devstack | |
$ vim local.conf | |
[[local|localrc]] | |
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
# list all screens | |
screen -ls | |
# Setup a shared screen | |
screen -d -m -S <sessionname> | |
#Attach to the screen using. | |
#Multiple users can attach to the same screen using the below command and share. | |
screen -x <sessionname> | |
#Kill a screen session |
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
# This is an example simulation setup for ipmi_sim. It creates a single | |
# management controller as a BMC. That will have the standard watchdog | |
# sensor and we add a temperature sensor. | |
# The BMC is the MC at address 20 | |
mc_setbmc 0x20 | |
# Now add the BMC | |
mc_add 0x20 0 no-device-sdrs 0x23 9 8 0x9f 0x1291 0xf02 persist_sdr | |
sel_enable 0x20 1000 0x0a |
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
__author__ = 'bot11' | |
import sys, paramiko | |
hosts = {'host1': '192.168.1.1', | |
'host2': '192.168.1.2'} | |
port = 22 | |
username = 'user' |
OlderNewer