Skip to content

Instantly share code, notes, and snippets.

@markmc
markmc / gist:f8a78d7cea7252a9e0f29dadcfaa1253
Last active May 16, 2019
4.1.0-rc.3-kni.0 build details
View gist:f8a78d7cea7252a9e0f29dadcfaa1253
$ 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
Playing with kombu and async processing
View client.py
import kombu.connection
import kombu.entity
import kombu.messaging
params = {
'hostname': 'localhost',
'port': 5672,
'virtual_host': '/',
}
View gist:105d14263b46108e2435
.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 Jan 3, 2016
A nova/oslo.messaging rebase
View gist:8472575
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
View gist:7908899

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 Dec 30, 2015
Sample oslo.messaging server with some config options set, but not using config files
View 0-server.py
import eventlet
eventlet.monkey_patch(os=False)
import logging
from oslo import messaging
logging.basicConfig(level=logging.DEBUG)
@markmc
markmc / gist:7823230
Created Dec 6, 2013
Sample oslo.messaging server which doesn't use config files
View gist:7823230
import eventlet
eventlet.monkey_patch(os=False)
import logging
from oslo.config import cfg
from oslo import messaging
logging.basicConfig(level=logging.DEBUG)
View gist:7766570

os-apply-config

Apply configuration from cloud metadata (JSON)

What does it do?

View gist:7747902

os-apply-config

Apply configuration from cloud metadata (JSON).

What does it do?

It turns metadata from one or more JSON files like this:

{"keystone": {"database": {"host": "127.0.0.1", "user": "keystone", "password": "foobar"}}}

View gist:7747907

os-apply-config

Apply configuration from cloud metadata (JSON).

What does it do?

It turns metadata from one or more JSON files like this: