Skip to content

Instantly share code, notes, and snippets.

View Mudpuppy12's full-sized avatar
🏠
Working from home

Dennis DeMarco Mudpuppy12

🏠
Working from home
View GitHub Profile
TASK: [Installing preq pip packages for lem toolset] **************************
failed: [578160-infra01.eng-lon3-2.rpc.rackspace.com] => {"cmd": "/usr/bin/pip install paramiko", "failed": true}
msg: stdout: Downloading/unpacking paramiko
Downloading/unpacking pyasn1>=0.1.7 (from paramiko)
Downloading pyasn1-0.1.9-py2.py3-none-any.whl
Downloading/unpacking cryptography>=1.1 (from paramiko)
Running setup.py (path:/tmp/pip_build_root/cryptography/setup.py) egg_info for package cryptography
no previously-included directories found matching 'docs/_build'
warning: no previously-included files matching '*' found under directory 'vectors'
@Mudpuppy12
Mudpuppy12 / gist:db9f2a2b4ab62babd72a1edddd4b5273
Last active May 4, 2017 15:14
Example Iris Session / Basic Auth
// main.go
package main
import (
"time"
"github.com/kataras/iris"
"github.com/kataras/iris/config"
"github.com/kataras/iris/middleware/basicauth"
"github.com/kataras/iris/middleware/logger"
denn8098@MN80JQG3QN:/tmp$ diff -u f5-config.py ~/PycharmProjects/rpc_lem/lem-aide/user-tools/f5_config.py
--- f5-config.py 2016-08-03 12:18:47.000000000 -0500
+++ /Users/denn8098/PycharmProjects/rpc_lem/lem-aide/user-tools/f5_config.py 2016-03-31 15:07:50.000000000 -0500
@@ -16,17 +16,32 @@
# (c) 2014, Kevin Carter <[email protected]>
import argparse
import json
-import os
+import os,sys
#!/usr/bin/env bash
# Just a note, if your running this on a mac, sed sux, use gsed as it's not the same on ubuntu
if [ -z "$LAB_NAME" ]; then
echo "Need to set LAB_NAME before using."
exit
fi
UPPER_NAME="${LAB_NAME^^}"
FCFS-IAD3-4:
account: 4788235
availability_type: FCFS
dc: IAD3
dc_id: 1
external_api_endpoint: 204.232.135.162
first_ip: 4
fw_id: 7
hw_type: Dell
internal_api_endpoint: null
cidr_networks:
container: 172.25.240.0/22
storage: 172.25.244.0/22
tunnel: 172.25.236.0/22
compute_hosts:
578147-compute03:
ip: 172.25.240.5
672157-compute01:
ip: 172.25.240.12
672158-compute02:
#!/usr/bin/env python
## Made to clean up duplicate entries for KiR
## Proof of concept as
##
##
## curl https://iad3.kir.kickstart.rackspace.com/dc/api/inventory/get_ids_by_server_number/605090 | python -m json.tool \
## | grep 'id' | awk '{print $2}' | tr -d '"' | tr -d ',' | while read object_id; do echo $object_id; sleep 1; \
## curl https://iad3.kir.kickstart.rackspace.com/dc/api/inventory/remove/$object_id; echo; echo; sleep 1; done
Asynchronous exception for node 0cdf4f61-2b3e-4ad9-8da9-c5691a30b9c4: |
| | Node failed to check cleaning progress. Exception: |
| | HTTPConnectionPool(host='172.30.245.227', port=9999): Max retries |
| | exceeded with url: /v1/commands (Caused by |
| | NewConnectionError('<requests.packages.urllib3.connection.HTTPConnection |
| | object at 0x7f983ace1850>: Failed to establish a new connection: [Errno |
| | 110] ETIMEDOUT',)) |
| name | 729497
root@729100-infra01-utility-container-5b22864e:~# i2 node-show 729507
+------------------------+--------------------------------------------------------------------------+
| Property | Value |
+------------------------+--------------------------------------------------------------------------+
| chassis_uuid | |
| clean_step | {} |
| console_enabled | False |
| created_at | 2017-03-07T20:26:23+00:00 |
| driver | agent_ipmitool |
| driver_info | {u'ipmi_password': u'******', u'ipmi_address': u'10.15.243.238', |
root@725159-infra01-utility-container-5fe3f4bf:~# openstack stack create --template testheat.yml puppystack
ERROR: Property error: : resources.test_vm.properties.image: : Error validating value 'ubuntu-14.04-cloud': No images matching {'name': u'ubuntu-14.04-cloud'}. (HTTP 404)
root@725159-infra01-utility-container-5fe3f4bf:~# glance image-list | grep ubuntu-14.04-cloud
| 04641ea0-f24e-45cb-ab81-2400fbbd5e0b | ubuntu-14.04-cloud
|