Skip to content

Instantly share code, notes, and snippets.

View markmc's full-sized avatar

Mark McLoughlin markmc

View GitHub Profile
[
{
"type": "build_system",
"req": "poetry-core>=1.0.0"
},
{
"type": "build_system",
"req": "flit_core >=3.8,<4"
},
{
@markmc
markmc / gist:f8a78d7cea7252a9e0f29dadcfaa1253
Last active May 16, 2019 06:11
4.1.0-rc.3-kni.0 build details
$ git branch
[..]
master
* payload-kubevirt
$ git rev-parse HEAD
9b6280b717cea4a68d3a057350f3af4666da1a52
[markmc@dell-r630-011 release]$ git diff
diff --git a/release/prep_release.sh b/release/prep_release.sh
index 5b9609b..36dcd18 100755
--- a/release/prep_release.sh
@markmc
markmc / client.py
Created May 31, 2013 15:07
Playing with kombu and async processing
import kombu.connection
import kombu.entity
import kombu.messaging
params = {
'hostname': 'localhost',
'port': 5672,
'virtual_host': '/',
}
.config
.config/InSilmaril
.config/gtk-2.0
.config/gnome-session
.config/sealert.conf
.config/dleyna-server-service.conf
.config/autostart
.config/dconf
.config/goa-1.0
.config/user-dirs.locale
@markmc
markmc / gist:8472575
Last active January 3, 2016 13:58
A nova/oslo.messaging rebase
commit: de2218e
merge-base: ce71b66
onto: d34a04d
git diff ce71b66..d34a04d
CONFLICT (content): Merge conflict in requirements.txt
- easy
CONFLICT (content): Merge conflict in nova/utils.py
@markmc
markmc / gist:7908899
Created December 11, 2013 11:34
rst enum list

There can be multiple form of actions, but two have been implemented so far:

  1. http call back: you provide a URL to be called whenever the alarm has been set off. The payload of the request contains all the details of why the alarm went off.
  2. log: mostly useful for debugging, stores alarms in a log file.
@markmc
markmc / 0-server.py
Last active December 30, 2015 11:38
Sample oslo.messaging server with some config options set, but not using config files
import eventlet
eventlet.monkey_patch(os=False)
import logging
from oslo import messaging
logging.basicConfig(level=logging.DEBUG)
@markmc
markmc / gist:7823230
Created December 6, 2013 12:50
Sample oslo.messaging server which doesn't use config files
import eventlet
eventlet.monkey_patch(os=False)
import logging
from oslo.config import cfg
from oslo import messaging
logging.basicConfig(level=logging.DEBUG)

os-apply-config

Apply configuration from cloud metadata (JSON)

What does it do?

Oslo Rootwrap

The Oslo Rootwrap allows fine filtering of shell commands to run as root from OpenStack services.

Unlike other Oslo deliverables, it should not be used as a Python library, but called as a separate process through the oslo-rootwrap command: