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
.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:11295100
Created April 25, 2014 16:21
Nova API timestamp formats
$> git grep '20[0-9][0-9]-' doc/api_samples/ | wc -l
509
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
230
with zero offset TZ:
diff --git a/nova/tests/api/openstack/compute/test_servers.py b/nova/tests/api/openstack/compute/test_servers.py
index 22dc9d4..7559896 100644
--- a/nova/tests/api/openstack/compute/test_servers.py
+++ b/nova/tests/api/openstack/compute/test_servers.py
@@ -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': '/',
@markmc
markmc / console
Last active August 29, 2015 13:56
$> python ./test-notification-server.py
$> python test-notification.py --config-file ./test.conf --debug
$> git reset --hard 5315399
$> python test-notification-old.py --config-file ./test.conf --debug
@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)