Skip to content

Instantly share code, notes, and snippets.

@dizz
dizz / cloud-orch-lab.yaml
Last active July 1, 2016 12:05
lab answer
heat_template_version: 2013-05-23
description: >
This template sets up a 2 node wordpress installation
parameters:
key_name:
type: string
description: Name of keypair to assign to servers
default: edmo-admin-lisa # TODO to be filled
@dizz
dizz / SO log 2
Created September 21, 2015 18:57
MainThread DEBUG 09/21/2015 04:33:00 PM: DNSaaS SOE init for tenant:mcn-dns in testbed: ubern in region: UBern
MainThread DEBUG 09/21/2015 04:33:00 PM: DNSaaS SOD init
MainThread DEBUG 09/21/2015 04:33:00 PM: Starting SOD thread...
Thread-1 DEBUG 09/21/2015 04:33:00 PM: DNSaaS SOD - Waiting for deploy and provisioning to finish
MainThread DEBUG 09/21/2015 04:33:00 PM: DNSaaS SOE design
10.1.3.1 - - [21/Sep/2015 16:33:00] "PUT /orchestrator/default HTTP/1.1" 201 2
MainThread DEBUG 09/21/2015 04:33:00 PM: Deploy service dependencies
MainThread INFO 09/21/2015 04:33:00 PM: ============ DEPLOY ============
MainThread INFO 09/21/2015 04:33:00 PM: ---> Creation of service dependencies is complete. Endpoints: []
MainThread INFO 09/21/2015 04:33:00 PM: ---> All services are now deployed.
@dizz
dizz / SO log
Created September 21, 2015 18:54
MainThread DEBUG 09/21/2015 04:22:01 PM: DNSaaS SOE init for tenant:mcn-dns in testbed: ubern in region: UBern
MainThread DEBUG 09/21/2015 04:22:01 PM: DNSaaS SOD init
MainThread DEBUG 09/21/2015 04:22:01 PM: Starting SOD thread...
Thread-1 DEBUG 09/21/2015 04:22:01 PM: DNSaaS SOD - Waiting for deploy and provisioning to finish
MainThread DEBUG 09/21/2015 04:22:01 PM: DNSaaS SOE design
10.1.3.1 - - [21/Sep/2015 16:22:01] "PUT /orchestrator/default HTTP/1.1" 201 2
MainThread DEBUG 09/21/2015 04:22:01 PM: Deploy service dependencies
MainThread INFO 09/21/2015 04:22:01 PM: ============ DEPLOY ============
MainThread INFO 09/21/2015 04:22:01 PM: ---> Creation of service dependencies is complete. Endpoints: []
MainThread INFO 09/21/2015 04:22:01 PM: ---> All services are now deployed.
@dizz
dizz / gist:40107d203601491f5ba5
Created February 9, 2015 18:05
DSS e2e instantiation
/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users/andy/Source/MCN/Source/mcn-demo/e2e-sm/bundle/wsgi/so.py
MainThread INFO 02/09/2015 06:57:23 PM: * Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#cdn' is instantiated at: http://cdn.cloudcomplab.ch:8888
MainThread INFO 02/09/2015 06:57:24 PM: * Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#maas' is instantiated at: http://maas.cloudcomplab.ch:8888
MainThread INFO 02/09/2015 06:57:24 PM: * Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#rcb' is instantiated at: http://rcb.cloudcomplab.ch:8888
MainThread INFO 02/09/2015 06:57:24 PM: * Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#dnsaas' is instantiated at: http://dnsaas.cloudcomplab.ch:8888
MainThread INFO 02/09/2015 06:57:24 PM: * Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#dss' is instantiated at: http://dss.cloudcomplab.ch:8888
MainThread INFO 02/09/20
@dizz
dizz / gist:74432817fc72626290bf
Created February 9, 2015 14:33
Exception in DSS SO - needs to use the mcn-tub key
54.154.219.221 - - [09/Feb/2015:14:27:41 +0000] "PUT /orchestrator/default HTTP/1.1" 201 2 "-" "python-requests/2.2.1 CPython/2.7.6 Linux/3.13.0-36-generic"
[Mon Feb 09 14:27:42 2015] [error] Dummy-4 \t DEBUG 02/09/2015 02:27:42 PM: \tExecuting deployment logic
[Mon Feb 09 14:27:42 2015] [error] [client 127.8.166.1] mod_wsgi (pid=21686): Exception occurred processing WSGI script '/var/lib/openshift/54d8c32dac3c3083df000036/app-root/runtime/repo/wsgi/application'.
[Mon Feb 09 14:27:42 2015] [error] [client 127.8.166.1] Traceback (most recent call last):
[Mon Feb 09 14:27:42 2015] [error] [client 127.8.166.1] File "/var/lib/openshift/54d8c32dac3c3083df000036/python/virtenv/lib/python2.7/site-packages/sdk/mcn/occi_ext.py", line 78, in __call__
[Mon Feb 09 14:27:42 2015] [error] [client 127.8.166.1] tenant_name=environ['HTTP_X_TENANT_NAME'])
[Mon Feb 09 14:27:42 2015] [error] [client 127.8.166.1] File "/var/lib/openshift/54d8c32dac3c3083df000036/python/virtenv/lib/python2.7/site-packages/occi/wsgi.py", li
@dizz
dizz / gist:b9a5b858c0952c4f39b2
Created February 9, 2015 07:42
e2e: cdn, maas, rcb, dns, ran, ims
/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users/andy/Source/MCN/Source/mcn-demo/e2e-sm/bundle/wsgi/so.py
MainThread INFO 02/09/2015 12:29:38 AM: * Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#cdn' is instantiated at: http://cdn.cloudcomplab.ch:8888
MainThread INFO 02/09/2015 12:29:39 AM: * Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#maas' is instantiated at: http://maas.cloudcomplab.ch:8888
MainThread INFO 02/09/2015 12:29:39 AM: * Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#rcb' is instantiated at: http://rcb.cloudcomplab.ch:8888
MainThread INFO 02/09/2015 12:29:39 AM: * Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#dnsaas' is instantiated at: http://dnsaas.cloudcomplab.ch:8888
MainThread INFO 02/09/2015 12:29:39 AM: * Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#ran' is instantiated at: http://ran.cloudcomplab.ch:8888
MainThread INFO 02/09/20
@dizz
dizz / gist:25318e57f335c046b172
Created February 8, 2015 21:27
IMS SO exception
[Sun Feb 08 21:23:41 2015] [error] 2015-02-08 21:23:41,662_10925:/var/lib/openshift/54d7d027ac3c306c4800048d/app-root/runtime/repo/util/SysUtil.py:238 [DEBUG] Credentials: {'username': 'mcntub', 'tenant_name': 'mcntub', 'password': '*4mcntub#*4mcntub#', 'auth_url': 'http://bart.cloudcomplab.ch:5000/v2.0'}
[Sun Feb 08 21:23:41 2015] [error] 2015-02-08 21:23:41,662_10925:/var/lib/openshift/54d7d027ac3c306c4800048d/python/virtenv/lib/python2.7/site-packages/keystoneclient/auth/identity/v2.py:76 [DEBUG] Making authentication request to http://bart.cloudcomplab.ch:5000/v2.0/tokens
[Sun Feb 08 21:23:42 2015] [error] 2015-02-08 21:23:42,301_10925:/var/lib/openshift/54d7d027ac3c306c4800048d/app-root/runtime/repo/util/SysUtil.py:38 [DEBUG] Using /var/lib/openshift/54d7d027ac3c306c4800048d/app-root/runtime/repo//emm.properties file
[Sun Feb 08 21:23:42 2015] [error] [client 127.13.87.129] mod_wsgi (pid=10925): Exception occurred processing WSGI script '/var/lib/openshift/54d7d027ac3c306c4800048d/app-root/runtime/repo/w
@dizz
dizz / gist:1fba0bfbd5709d74bd6c
Created February 7, 2015 15:07
IMS missing dependency
[Sat Feb 07 15:06:03 2015] [error] [client 127.6.108.129] mod_wsgi (pid=7965): Exception occurred processing WSGI script '/var/lib/openshift/54d6292dac3c30c51200010e/app-root/runtime/repo/wsgi/application'.
[Sat Feb 07 15:06:03 2015] [error] [client 127.6.108.129] Traceback (most recent call last):
[Sat Feb 07 15:06:03 2015] [error] [client 127.6.108.129] File "/var/lib/openshift/54d6292dac3c30c51200010e/app-root/runtime/repo/wsgi/application", line 23, in <module>
[Sat Feb 07 15:06:03 2015] [error] [client 127.6.108.129] from util.InitSO import InitSO
[Sat Feb 07 15:06:03 2015] [error] [client 127.6.108.129] File "/var/lib/openshift/54d6292dac3c30c51200010e/app-root/runtime/repo/util/InitSO.py", line 21, in <module>
[Sat Feb 07 15:06:03 2015] [error] [client 127.6.108.129] from core.SecurityGroupOrchestrator import SecurityGroupOrchestrator
[Sat Feb 07 15:06:03 2015] [error] [client 127.6.108.129] File "/var/lib/openshift/54d6292dac3c30c51200010e/app-root/runtime/repo/core/SecurityGroupOrchestr
@dizz
dizz / gist:91281f41f73d8c56dcd2
Created February 5, 2015 16:39
listing instance IDs
[andy:~/Desktop]$ curl -v -X GET http://160.85.4.53:8888/test-dns/ -H 'X-Auth-Token: '$KID -H 'X-Tenant-Name: '$TENANT
* Hostname was NOT found in DNS cache
* Trying 160.85.4.53...
* Connected to 160.85.4.53 (160.85.4.53) port 8888 (#0)
> GET /test-dns/ HTTP/1.1
> User-Agent: curl/7.37.1
> Host: 160.85.4.53:8888
> Accept: */*
> X-Auth-Token: 5bd4cefafa4c407f9b57767bfbbefbbf
> X-Tenant-Name: admin
@dizz
dizz / gist:09828661811dedcff621
Created February 4, 2015 12:19
heat create with softconfig - fixed. this confirms the fix
from heatclient import client
from sdk.mcn import util
if __name__ == '__main__':
tenant_name = 'admin'
token = ''
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'