Skip to content

Instantly share code, notes, and snippets.

markmc / gist:f8a78d7cea7252a9e0f29dadcfaa1253
Last active May 16, 2019
4.1.0-rc.3-kni.0 build details
View gist:f8a78d7cea7252a9e0f29dadcfaa1253
$ git branch
* payload-kubevirt
$ git rev-parse HEAD
[markmc@dell-r630-011 release]$ git diff
diff --git a/release/ b/release/
index 5b9609b..36dcd18 100755
--- a/release/
View gist:105d14263b46108e2435
markmc / gist:11295100
Created Apr 25, 2014
Nova API timestamp formats
View gist:11295100
$> git grep '20[0-9][0-9]-' doc/api_samples/ | wc -l
with UTC TZ:
$> git grep '20[0-9][0-9]-[0-9][0-9]-[0-9][0-9]T[0-9][0-9]:[0-9][0-9]:[0-9][0-9]Z' doc/api_samples/ | wc -l
with zero offset TZ:
View gist:9484531
diff --git a/nova/tests/api/openstack/compute/ b/nova/tests/api/openstack/compute/
index 22dc9d4..7559896 100644
--- a/nova/tests/api/openstack/compute/
+++ b/nova/tests/api/openstack/compute/
@@ -4308,7 +4308,7 @@ class ServerXMLSerializationTest(test.TestCase):
def test_create(self):
serializer = servers.FullServerTemplate()
- self.body["server"]["adminPass"] = "test_password"
+ self.body["server"]["adminPass"] = u'\u89e3\u7801'
class Kombu(object):
def __init__(self):
self.params = {
'hostname': 'localhost',
'port': 5672,
'virtual_host': '/',
View console
$> python ./
$> python --config-file ./test.conf --debug
$> git reset --hard 5315399
$> python --config-file ./test.conf --debug
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/
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 /
Last active Dec 30, 2015
Sample oslo.messaging server with some config options set, but not using config files
import eventlet
import logging
from oslo import messaging
markmc / gist:7823230
Created Dec 6, 2013
Sample oslo.messaging server which doesn't use config files
View gist:7823230
import eventlet
import logging
from oslo.config import cfg
from oslo import messaging