Skip to content

Instantly share code, notes, and snippets.

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

Walter A. Boring IV hemna

🏠
Working from home
  • Appomattox, VA
View GitHub Profile
import aprslib
import asyncio
import signal
import logging
from aioax25 import kiss as kiss
from aioax25.aprs import APRSInterface
from aioax25 import interface
from aioax25 import frame as axframe
import re
import aprslib
import asyncio
import signal
import logging
from aioax25 import kiss as kiss
from aioax25.aprs import APRSInterface
from aioax25 import interface
import sys
diff --git a/cinder/volume/api.py b/cinder/volume/api.py
index 496424dde..d2a065be3 100644
--- a/cinder/volume/api.py
+++ b/cinder/volume/api.py
@@ -1741,14 +1741,14 @@ class API(base.Base):
'migration_policy': migration_policy,
'quota_reservations': reservations,
'old_reservations': old_reservations,
- 'resource_properties': {
- 'availability_zone': volume.availability_zone
diff --git a/devstack/lib/ceph b/devstack/lib/ceph
index 375dd9f..8207553 100755
--- a/devstack/lib/ceph
+++ b/devstack/lib/ceph
@@ -27,7 +27,7 @@ set +o xtrace
# Defaults
# --------
-CEPH_RELEASE=${CEPH_RELEASE:-hammer}
+CEPH_RELEASE=${CEPH_RELEASE:-luminous}
require 'yaml'
CONFIG = YAML.load(File.open(File.join(File.dirname(__FILE__), "config.yaml"), File::RDONLY).read)
VAGRANTFILE_API_VERSION = "2" if not defined? VAGRANTFILE_API_VERSION
# The libvirt plugin needs a recent version of Vagrant
Vagrant.require_version ">=1.6.5"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
INFO global: Vagrant version: 2.2.5
INFO global: Ruby version: 2.4.5
INFO global: RubyGems version: 2.6.14.3
INFO global: VAGRANT_USR_DIR="/tmp/.mount_vagranTTAhOm/usr"
INFO global: VAGRANT_APPIMAGE_LD_LIBRARY_PATH="/tmp/.mount_vagranTTAhOm/usr/lib/:/tmp/.mount_vagranTTAhOm/usr/lib/i386-linux-gnu/:/tmp/.mount_vagranTTAhOm/usr/lib/x86_64-linux-gnu/:/tmp/.mount_vagranTTAhOm/usr/lib32/:/tmp/.mount_vagranTTAhOm/usr/lib64/:/tmp/.mount_vagranTTAhOm/lib/:/tmp/.mount_vagranTTAhOm/lib/i386-linux-gnu/:/tmp/.mount_vagranTTAhOm/lib/x86_64-linux-gnu/:/tmp/.mount_vagranTTAhOm/lib32/:/tmp/.mount_vagranTTAhOm/lib64/::/usr/local/lib64:/usr/local/lib:/lib:/lib64:/usr/lib:/usr/lib64:"
INFO global: VAGRANT_PKG_CONFIG_PATH="/tmp/.mount_vagranTTAhOm/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/x86_64-linux-gnu/pkgconfig:/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig"
INFO global: VAGRANT_DEFAULT_PROVIDER="libvirt"
INFO global: VAGRANT_INS
@hemna
hemna / install_pyenv.sh
Created April 10, 2019 17:53
install pyenv and then install python 3.6.3 in that pyenv
# !/bin/bash
# Step 1. Install pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc
echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bashrc
source ~/.bashrc
@hemna
hemna / setuphost.sh
Last active December 21, 2018 18:05
#!/bin/bash
# script to setup my crowbar host environment after it's up
# Run with:
# wget -O setuphost.sh https://gist.github.com/hemna/196f8b06125c094853d5cbbd00342563/raw | bash
mkdir ~/.ssh
cat > ~/.ssh/config <<'_EOF_'
Host github.com
StrictHostKeyChecking no
_EOF_
#!/bin/bash
logit () {
DATE=`date`
echo -e "$DATE $1" >> ~/bounce.log
echo -e "$DATE $1"
}
logit "START START START"
# Copyright 2018 OpenStack Foundation
#
# Licensed under the Apache License, Version 2.0 (the "License"); you may
# not use this file except in compliance with the License. You may obtain
# a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT