Skip to content

Instantly share code, notes, and snippets.

vagrant@precise64:~/devstack$ neutron port-create --fixed-ip ip_address=10.0.0.7 private
Created a new port:
+-----------------------+---------------------------------------------------------------------------------+
| Field | Value |
+-----------------------+---------------------------------------------------------------------------------+
| admin_state_up | True |
| allowed_address_pairs | |
| device_id | |
| device_owner | |
| fixed_ips | {"subnet_id": "40408b01-b264-4f5a-9734-ff6a42e6ab12", "ip_address": "10.0.0.7"} |
stack@osctrl-cc38-b01:~/devstack$ nova boot --image cirros-031-x86_64-uec --flavor 1 oldvm
stack@osctrl-cc38-b01:~/devstack$ nova list
+--------------------------------------+-------+--------+------------+-------------+------------------------------------------------------------+
| ID | Name | Status | Task State | Power State | Networks |
+--------------------------------------+-------+--------+------------+-------------+------------------------------------------------------------+
| 22e32ee5-b14c-4532-bdb7-88bda05ecd0c | oldvm | ACTIVE | None | Running | default=2001:558:ff22:36:f816:3eff:feeb:1d32, 10.251.2.131 |
+--------------------------------------+-------+--------+------------+-------------+------------------------------------------------------------+
stack@osctrl-cc38-b01:~/devstack$ neutron port-list
@sc68cal
sc68cal / gist:6689999
Last active December 23, 2015 20:29
Neutron QoS API workflow
vagrant@precise64:~$ neutron qos-create --type dscp --policies dscp=26
Created a new qos:
+-------------+--------------------------------------+
| Field | Value |
+-------------+--------------------------------------+
| description | |
| id | d05567c3-38f1-4e20-a6be-5ef5be8d489c |
| policies | {"dscp": "26"} |
| tenant_id | de099da1f23449c8b38e5490e510fd25 |
| type | dscp |

Iptables Driver notes


	/Users/scolli001c/git/openstack/neutron/neutron/tests/unit/test_iptables_firewall.py(307)test_filter_ipv4_egress_icmp()
	-> self._test_prepare_port_filter(rule, ingress, egress)
@sc68cal
sc68cal / gist:6021307
Created July 17, 2013 14:54
San Fransisco visit TODO

Places

  • Chinatown

Food

  • Pier 39 - clam chowder and sour dough bread
doc/source/devref/il8n.rst:Do not use ``locals()`` for formatting messages because:
nova/api/openstack/compute/contrib/coverage_ext.py: "if 'coverInst' not in locals() "
nova/api/openstack/compute/contrib/quotas.py: "integer.") % locals()
nova/api/openstack/compute/plugins/v3/coverage.py: "if 'coverInst' not in locals() "
nova/api/openstack/compute/plugins/v3/quota_sets.py: "integer.") % locals()
nova/cells/weights/mute_child.py: "being treated as mute.") % locals())
nova/cmd/baremetal_deploy_helper.py: 'params %(params)s') % locals())
nova/cmd/manage.py: exec(compile(open(path).read(), path, 'exec'), locals(), globals())
nova/cmd/manage.py: kwargs = dict(((k, v) for k, v in locals().iteritems()
nova/cmd/manage.py: print _("Service %(service)s on host %(host)s enabled.") % locals()
2013-06-05 11:54:42,978 ERROR [quantum.api.v2.resource] update failed
Traceback (most recent call last):
File "/Users/scolli001c/git/openstack/quantum/quantum/api/v2/resource.py", line 82, in resource
result = method(request=request, **args)
File "/Users/scolli001c/git/openstack/quantum/quantum/api/v2/base.py", line 460, in update
allow_bulk=self._allow_bulk)
File "/Users/scolli001c/git/openstack/quantum/quantum/api/v2/base.py", line 556, in prepare_request_body
Controller._verify_attributes(res_dict, attr_info)
File "/Users/scolli001c/git/openstack/quantum/quantum/api/v2/base.py", line 603, in _verify_attributes
raise webob.exc.HTTPBadRequest(msg)
diff --git a/quantum/tests/unit/test_extension_qos.py b/quantum/tests/unit/test_extension_qos.py
index 61e9d33..efdcf40 100644
--- a/quantum/tests/unit/test_extension_qos.py
+++ b/quantum/tests/unit/test_extension_qos.py
@@ -44,7 +44,7 @@ class QoSTestExtensionManager(object):
class QoSTestCase(test_db_plugin.QuantumDbPluginV2TestCase):
def _create_qos(self, policy, fmt):
- data = {'qos': {'policy': policy}, 'tenant_id': 'test_tenant'}
+ data = {'qos': {'policy': policy, 'tenant_id': 'test_tenant'}}
http://www.amazon.com/Embassytown-China-Mieville/dp/0345524497/ref=sr_1_9?s=books&ie=UTF8&qid=1369246016&sr=1-9
http://www.amazon.com/Metaplanetary-Novel-Interplanetary-Civil-War/dp/B0000AA9JX/ref=sr_1_1?s=books&ie=UTF8&qid=1369244652&sr=1-1&keywords=metaplanetary
http://www.amazon.com/Spin-Robert-Charles-Wilson/dp/076534825X/ref=sr_1_1?ie=UTF8&qid=1369244555&sr=8-1&keywords=spin
http://www.amazon.com/s/ref=nb_sb_noss_1?url=search-alias%3Daps&field-keywords=childshood+end
http://www.amazon.com/Leviathan-Wakes-Expanse-James-Corey/dp/0316129089/ref=sr_1_1?ie=UTF8&qid=1369247015&sr=8-1&keywords=leviathan+wakes
Uller:~ macbookpro$ date
Mon May 13 22:09:44 EDT 2013
Uller:~ macbookpro$ sudo opensnoop | grep 'Desktop'
UID PID COMM FD PATH
0 48 revisiond 9 /Users/scollins/Desktop/biweekly_agreement copy.pdf
0 48 revisiond 9 /Users/scollins/Desktop/biweekly_agreement copy.pdf
0 48 revisiond 9 /Users/scollins/Desktop/biweekly_agreement copy.pdf
0 48 revisiond 9 /Users/scollins/Desktop/biweekly_agreement copy.pdf
502 67359 Preview 10 /Users/scollins/Desktop/biweekly_agreement copy.pdf
0 262 filecoordinatio 11 /Users/scollins/Desktop/biweekly_agreement copy.pdf