Skip to content

Instantly share code, notes, and snippets.

@dizz
dizz / gist:9ffa357014dc427c5207
Created December 7, 2014 01:42
e2e with all live services
/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users/andy/Source/MCN/Source/mcn-demo/e2e-sm/bundle/wsgi/so.py
MainThread INFO 12/07/2014 01:27:16 AM: * Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#maas' is created at: http://maas.cloudcomplab.ch:8888/maas/
MainThread INFO 12/07/2014 01:27:17 AM: * Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#rcb' is created at: http://rcb.cloudcomplab.ch:8888/rcb/
MainThread INFO 12/07/2014 01:27:17 AM: * Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#ran' is created at: http://ran.cloudcomplab.ch:8888/ran/
MainThread INFO 12/07/2014 01:27:18 AM: * Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#epc' is created at: http://epc.cloudcomplab.ch:8888/epc/
MainThread INFO 12/07/2014 01:27:18 AM: * Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#ims' is created at: http://ims.cloudcomplab.ch:8888/ims/
MainThread INFO 12/07/2014
@dizz
dizz / gist:e32ace69270a1ac6fecd
Created December 5, 2014 11:53
ims template error
[Fri Dec 05 11:51:39 2014] [error] [client 127.12.143.129] File "/var/lib/openshift/54819bfdac3c30e229000204/python/virtenv/lib/python2.7/site-packages/sdk/mcn/deployment.py", line 136, in deploy
[Fri Dec 05 11:51:39 2014] [error] [client 127.12.143.129] tmp = heat.stacks.create(**body)
[Fri Dec 05 11:51:39 2014] [error] [client 127.12.143.129] File "/var/lib/openshift/54819bfdac3c30e229000204/python/virtenv/lib/python2.7/site-packages/heatclient/v1/stacks.py", line 119, in create
[Fri Dec 05 11:51:39 2014] [error] [client 127.12.143.129] data=kwargs, headers=headers)
[Fri Dec 05 11:51:39 2014] [error] [client 127.12.143.129] File "/var/lib/openshift/54819bfdac3c30e229000204/python/virtenv/lib/python2.7/site-packages/heatclient/common/http.py", line 235, in json_request
[Fri Dec 05 11:51:39 2014] [error] [client 127.12.143.129] resp = self._http_request(url, method, **kwargs)
[Fri Dec 05 11:51:39 2014] [error] [client 127.12.143.129] File "/var/lib/openshift/54819bfdac3c30e229000204/python
@dizz
dizz / gist:1e2497c8eda20cca0bfe
Created December 3, 2014 16:53
correct GET on SO
[andy:...ce/mcn-demo/d-epc-sm/bundle]$ curl -v -X GET http://127.0.0.1:8888/epc/547f3d32ac3c30babe0000e1 -H 'Content-type: text/occi' -H 'X-Auth-Token: '$KID -H 'X-Tenant-Name: '$TENANT (master✱)
* Hostname was NOT found in DNS cache
* Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 8888 (#0)
> GET /epc/547f3d32ac3c30babe0000e1 HTTP/1.1
> User-Agent: curl/7.37.1
> Host: 127.0.0.1:8888
> Accept: */*
> Content-type: text/occi
> X-Auth-Token: 82654f42e8a947f08a37085ac651a62a
@dizz
dizz / gist:1c10de27fa0bac10907d
Created December 3, 2014 14:36
correct sm output
/usr/local/Cellar/python/2.7.8_2/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users/andy/Source/MCN/Source/mcn-demo/d-rcb-sm/rcb-sm.py -c /Users/andy/Source/MCN/Source/mcn-demo/d-rcb-sm/etc/sm.cfg
INFO 12/03/2014 03:33:41 PM: Using configuration file: /Users/andy/Source/MCN/Source/mcn-demo/d-rcb-sm/etc/sm.cfg
INFO 12/03/2014 03:33:43 PM: Service Manager running on interfaces, running on port: 8888
INFO 12/03/2014 03:34:00 PM: CloudController Northbound API: http://cc1.cloudcomplab.ch:8888
INFO 12/03/2014 03:34:01 PM: Client supplied parameters: {'mcn.endpoint.epc.maas.ip': '127.0.0.1'}
DEBUG 12/03/2014 03:34:01 PM: Ensuring SM SSH Key...
DEBUG 12/03/2014 03:34:04 PM: Valid SM SSH is registered with OpenShift.
DEBUG 12/03/2014 03:34:05 PM: Creating SO container...
DEBUG 12/03/2014 03:34:05 PM: Requesting container to execute SO Bundle: http://cc1.cloudcomplab.ch:8888/app/
INFO 12/03/2014 03:34:05 PM: Sending headers: {'Category': 'app; scheme="http://schemas.ogf.org/occi/platform#", python-
@dizz
dizz / stg
Created December 2, 2014 14:40
{
"service_type": "http://schemas.mobile-cloud-networking.eu/occi/sm#e2e",
"service_description": "End to end service",
"service_attributes": {
"occi.attr.test": "required",
"occi.attr.other": "mutable"
},
"service_endpoint": "http://ran.cloudcomplab.ch:8888/e2e/",
"depends_on": [
"http://schemas.openshift.com/template/app#mysql",
2014-11-19 18:48:51.510 1712 INFO heat.engine.service [-] validate_template
2014-11-19 18:55:18.487 1712 INFO heat.engine.service [-] template is {u'outputs': {u'mcn.endpoint.maas': {u'description': u'IP addresses of the MaaS:', u'value': {u'get_attr': [u'zs_floating_ip', u'floating_ip_address']}}}, u'heat_template_version': u'2013-05-23', u'description': u'Globally accessable preconfigured Zabbixserver\n', u'parameters': {u'key_name': {u'default': u'mcn-key', u'type': u'string', u'description': u'Name of key-pair to be used for compute instance', u'label': u'Key Name'}, u'private_mgmt_net': {u'default': u'30e8fc23-bef0-4e94-bf31-2a136d95ff90', u'type': u'string', u'description': u'ID of private network mgmt\n'}, u'public_net': {u'default': u'd6ce8ab6-1be8-4c85-8067-9c77d7600ffa', u'type': u'string', u'description': u'ID of public network net04_ext\n'}}, u'resources': {u'zs_floating_ip': {u'type': u'OS::Neutron::FloatingIP', u'properties': {u'floating_network_id': {u'get_param': u'public_net'}, u'port_id': {u
@dizz
dizz / gist:f8d32fbdf6531d2ede52
Last active August 29, 2015 14:09
service reg and descriptor
dns_service_endpoint = 'http://dns.cloudcomplab.ch:8888/dns/'
maas_service_endpoint = 'http://maas.cloudcomplab.ch:8888/maas/'
rcb_service_endpoint = 'http://rcb.cloudcomplab.ch:8888/rcb/'
ran_service_endpoint = 'http://ran.cloudcomplab.ch:8888/ran/'
epc_service_endpoint = 'http://epc.cloudcomplab.ch:8888/epc/'
ims_service_endpoint = 'http://ims.cloudcomplab.ch:8888/ims/'
cc_service_endpoint = 'http://cc.cloudcomplab.ch:8888/'
# aka mcn sdk, aka keystone
service_reg = {
Verifying that +dizz is my openname (Bitcoin username). https://onename.io/dizz
### Keybase proof
I hereby claim:
* I am dizz on github.
* I am dizz (https://keybase.io/dizz) on keybase.
* I have a public key whose fingerprint is BDD1 3EC5 A660 02BF FE6C F366 8EA0 6A11 9A4A 635A
To claim this, I am signing this object:
➜ mcn_cc git:(master) ./get_modules.sh
Notice: Preparing to install into /Users/andy/Source/MCN/Source/mcn_cc/modules ...
Notice: Downloading from https://forge.puppetlabs.com ...
Notice: Installing -- do not interrupt ...
/Users/andy/Source/MCN/Source/mcn_cc/modules
└─┬ puppetlabs-ntp (v3.0.2)
└── puppetlabs-stdlib (v4.1.0)
Notice: Preparing to install into /Users/andy/Source/MCN/Source/mcn_cc/modules ...
Notice: Downloading from https://forge.puppetlabs.com ...
Notice: Installing -- do not interrupt ...