Skip to content

Instantly share code, notes, and snippets.

@dizz
dizz / gist:dfdf9cf39ae3d6632d7e
Created February 4, 2015 07:52
DSS creation (so log)
[dsssrvinst7ce164b111e815a6-mcn.apps.cloudcomplab.ch 54d14442ac3c30ce7500000e]\> tail -f app-root/logs/python.log
[Tue Feb 03 21:57:41 2015] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:openshift_t:s0:c5,c950
[Tue Feb 03 21:57:41 2015] [notice] Digest: generating secret for digest authentication ...
[Tue Feb 03 21:57:41 2015] [notice] Digest: done
[Tue Feb 03 21:57:41 2015] [notice] Apache/2.2.15 (Unix) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
[Tue Feb 03 21:57:45 2015] [notice] caught SIGWINCH, shutting down gracefully
- - - [03/Feb/2015:21:57:45 +0000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.15 (CentOS) (internal dummy connection)"
[Tue Feb 03 21:58:58 2015] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:openshift_t:s0:c5,c950
[Tue Feb 03 21:58:58 2015] [notice] Digest: generating secret for digest authentication ...
[Tue Feb 03 21:58:58 2015] [notice] Digest: done
@dizz
dizz / gist:cb2148a2fc3d9a9e2730
Created February 3, 2015 21:39
DSS SO Error
[dsssrvinstce912ab1732770b7-mcn.apps.cloudcomplab.ch 54d13ec6ac3c300e600002bc]\> tail -f app-root/logs/python.log
[Tue Feb 03 21:34:17 2015] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:openshift_t:s0:c6,c663
[Tue Feb 03 21:34:17 2015] [notice] Digest: generating secret for digest authentication ...
[Tue Feb 03 21:34:17 2015] [notice] Digest: done
[Tue Feb 03 21:34:17 2015] [notice] Apache/2.2.15 (Unix) mod_wsgi/3.4 Python/2.7.5 configured -- resuming normal operations
- - - [03/Feb/2015:21:34:21 +0000] "OPTIONS * HTTP/1.0" 200 - "-" "Apache/2.2.15 (CentOS) (internal dummy connection)"
[Tue Feb 03 21:34:21 2015] [notice] caught SIGWINCH, shutting down gracefully
[Tue Feb 03 21:35:56 2015] [notice] SELinux policy enabled; httpd running as context unconfined_u:system_r:openshift_t:s0:c6,c663
[Tue Feb 03 21:35:56 2015] [notice] Digest: generating secret for digest authentication ...
[Tue Feb 03 21:35:56 2015] [notice] Digest: done
[andy:~/Desktop]$ curl -v -X GET http://127.0.0.1:8888/demo-epc/54d0ac1cac3c309475000211 -H 'Content-type: text/occi' -H 'X-Auth-Token: '$KID -H 'X-Tenant-Name: '$TENANT -H 'Accept: application/occi+json'
* 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 /demo-epc/54d0ac1cac3c309475000211 HTTP/1.1
> User-Agent: curl/7.37.1
> Host: 127.0.0.1:8888
> Content-type: text/occi
> X-Auth-Token: 5bd4cefafa4c407f9b57767bfbbefbbf
> X-Tenant-Name: admin
[andy:~/Desktop]$ curl -v -X GET http://127.0.0.1:8888/demo-epc/54d0a1d8ac3c3079f80000d8 -H 'Content-type: text/occi' -H 'X-Auth-Token: '$KID -H 'X-Tenant-Name: '$TENANT
* 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 /demo-epc/54d0a1d8ac3c3079f80000d8 HTTP/1.1
> User-Agent: curl/7.37.1
> Host: 127.0.0.1:8888
> Accept: */*
> Content-type: text/occi
> X-Auth-Token: 5bd4cefafa4c407f9b57767bfbbefbbf
@dizz
dizz / hea
Created February 2, 2015 12:29
how i hate heat!
from heatclient import client
from sdk.mcn import util
if __name__ == '__main__':
tenant_name = 'admin'
token = '5bd4cefafa4c407f9b57767bfbbefbbf'
endpoint = 'http://bart.cloudcomplab.ch:35357/v2.0'
template_path = '/Users/andy/Desktop/soft-config.yaml'
# template_path = '/Users/andy/Source/MCN/Source/mcn-demo/d-ran-sm/bundle/data/test.yaml'
@dizz
dizz / gist:feb556a67c38a0120898
Created January 30, 2015 14:12
service def; interface, service & parameters dependencies
{
"service_type": "http://schemas.mobile-cloud-networking.eu/occi/sm#test-e2e",
"service_description": "End-to-end service",
"service_attributes": {
"mcn.endpoint.pgw_u-sgw_u": "immutable",
"mcn.endpoint.nat": "immutable",
"mcn.endpoint.rcb.mgt": "immutable",
"mcn.endpoint.enodeb": "immutable",
"mcn.endpoint.dns": "immutable",
"mcn.endpoint.p-i-s-cscf": "immutable",
@dizz
dizz / gist:2f65c91345bf8366a47f
Created January 26, 2015 12:12
create service, get service, get service collecetion
[andy:~]$ curl -v -X POST http://127.0.0.1:8888/test-epc/ -H 'Category: test-epc; scheme="http://schemas.mobile-cloud-networking.eu/occi/sm#"; class="kind";' -H 'Content-type: text/occi' -H 'X-Auth-Token: '$KID -H 'X-Tenant-Name: '$TENANT
* 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)
> POST /test-epc/ HTTP/1.1
> User-Agent: curl/7.37.1
> Host: 127.0.0.1:8888
> Accept: */*
> Category: test-epc; scheme="http://schemas.mobile-cloud-networking.eu/occi/sm#"; class="kind";
> Content-type: text/occi
@dizz
dizz / test2
Created January 19, 2015 21:57
2 nodes, 2 ports, 2 FIPs
heat_template_version: 2013-05-23
description: Simple template to deploy a single compute instance
parameters:
private_mgmt_net:
type: string
description: >
ID of private network mgmt
default: 2faa7292-59f4-4cf6-aa28-e3cdcc2634d7
@dizz
dizz / test1.yaml
Created January 19, 2015 21:56
1 node, port and FIP
heat_template_version: 2013-05-23
description: Simple template to deploy a single compute instance
parameters:
private_mgmt_net:
type: string
description: >
ID of private network mgmt
default: 2faa7292-59f4-4cf6-aa28-e3cdcc2634d7
@dizz
dizz / gist:30d840769a2e0b04a0c1
Created December 7, 2014 17:28
e2e GET output
[andy:...urce/mcn-demo/sm-deployment]$ curl -v -X GET http://e2e.cloudcomplab.ch:8888/e2e/5484878fac3c30e2290007e6 -H 'Content-type: text/occi' -H 'X-Auth-Token: '$KID -H 'X-Tenant-Name: '$TENANT (master✱)
* Hostname was NOT found in DNS cache
* Trying 160.85.4.34...
* Connected to e2e.cloudcomplab.ch (160.85.4.34) port 8888 (#0)
> GET /e2e/5484878fac3c30e2290007e6 HTTP/1.1
> User-Agent: curl/7.37.1
> Host: e2e.cloudcomplab.ch:8888
> Accept: */*
> Content-type: text/occi
> X-Auth-Token: d798249590f047da9c4fe3ec1ab6e5f2