Skip to content

Instantly share code, notes, and snippets.

root@xen:~# history
1 ifconfig
2 apt-get update
3 apt-get -y upgrade
4 apt-cache search xen
5 aptitude show xen-hypervisor-4.4-amd64
6 aptitude show xen-hypervisor-amd64
7 apt-get install -y xen-hypervisor-4.4-amd64 xen-utils-4.4 xen-tools xen-docs-4.4
8 apt-get install -y xen-hypervisor-4.4-amd64 xen-utils-4.4 xen-tools
9 apt-get install virtinst python-libvirt virt-viewer virt-manager
andy@xen:~$ history
1 sudo -i
2 clear
3 sudo -i
4 clear
5 ls
6 ls -G
7 ls --color
8 cd mirage-skeleton/
9 ls
update done- 15:06:47Z
update - 15:06:13Z
create done- 14:58:09Z
create - 14:56:28Z
+---------------+--------------------------------------+-------------------------------------+--------------------+----------------------+
| resource_name | id | resource_status_reason | resource_status | event_time |
+---------------+--------------------------------------+-------------------------------------+--------------------+----------------------+
| test1 | 2c15fa1c-3b5c-40fc-9627-9c0ac0dfddb3 | Stack CREATE started | CREATE_IN_PROGRESS | 2015-11-23T14:56:28Z |
| config | 7205b903-5f9a-491d-82bb-1a2dab0982c4 | state changed | CREATE_IN_PROGRESS | 2015-11-23T14:56:29Z |
@dizz
dizz / AAA heat deploy and provision
Last active November 23, 2015 15:50
AAA heat deploy and provision
update done- 15:39:02Z
update - 15:38:40Z
create done- 15:32:20Z
create dep - 15:31:27Z
create - 15:30:05Z
+----------------------------------+--------------------------------------+-------------------------------------+--------------------+----------------------+
| resource_name | id | resource_status_reason | resource_status | event_time |
+----------------------------------+--------------------------------------+-------------------------------------+--------------------+----------------------+
| test-aaa | f86cede1-468e-4f76-b18c-2c0664ac17ab | Stack CREATE started | CREATE_IN_PROGRESS | 2015-11-23T15:30:05Z |
@dizz
dizz / gist:6c5ac243500262361d6d
Created October 28, 2015 13:26
ims provisioning error
E2E SO
Thread-9 INFO 10/28/2015 01:24:27 PM: Provisioning service instance: http://ims.cloudcomplab.ch:8890/ims/soims86fa39a265f6172f
Thread-9 INFO 10/28/2015 01:24:27 PM: Sending headers: {'X-OCCI-Attribute': u'mcn.endpoint.forwarder="130.92.70.234", mcn.endpoint.maas="130.92.70.235", mcn.endpoint.api="130.92.70.233"', 'X-Tenant-Name': 'mcntub', 'Content-type': 'text/occi', 'X-Auth-Token': 'f84a4ebe4e3447f9a328cf0dd2cc06a2'}
Thread-9 ERROR 10/28/2015 01:24:32 PM: HTTP Error: should do something more here!500 Server Error: Internal Server Error for url: http://ims.cloudcomplab.ch:8890/ims/soims86fa39a265f6172f
Exception in thread Thread-9:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/env/lib/python2.7/site-packages/sm/so/service_orchestrator.py", line 577, in run
@dizz
dizz / gist:71a1a6ae4e2ec03fe68c
Created October 27, 2015 14:33
ims so error
E2E SO - Error with IMS
Thread-9 INFO 10/27/2015 02:25:39 PM: Provisioning service instance: http://ims.cloudcomplab.ch:8890/ims/soims95da51ffd4d30bb9
Thread-9 INFO 10/27/2015 02:25:39 PM: Sending headers: {'X-OCCI-Attribute': u'mcn.endpoint.forwarder="130.92.70.144", mcn.endpoint.maas="130.92.70.135", mcn.endpoint.api="130.92.70.139"', 'X-Tenant-Name': 'mcntub', 'Content-type': 'text/occi', 'X-Auth-Token': 'f84a4ebe4e3447f9a328cf0dd2cc06a2'}
Thread-9 ERROR 10/27/2015 02:25:47 PM: HTTP Error: should do something more here!500 Server Error: Internal Server Error for url: http://ims.cloudcomplab.ch:8890/ims/soims95da51ffd4d30bb9
Exception in thread Thread-9:
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
self.run()
File "/env/lib/python2.7/site-packages/sm/so/service_orchestrator.py", line 577, in run
@dizz
dizz / dns.py
Last active October 15, 2015 20:42
update of dns method
def get_dnsaas(token, **kwargs):
"""
Return a instance of the DNSaaS.
A new instance is deployed if don't exist one
:param token: The token
"""
if kwargs['tenant_name'] is not None:
tenant = kwargs['tenant_name']
else:
tenant = 'demo'
/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users/andy/Source/MCN/Source/demo-e2e/bundle/wsgi/application
MainThread DEBUG 10/15/2015 01:56:08 PM: Executing design logic
MainThread INFO 10/15/2015 01:56:12 PM: Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#maas' can be instantiated at: http://178.22.67.144:8894
MainThread INFO 10/15/2015 01:56:15 PM: Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#dnsaas' can be instantiated at: http://dnsaas.cloudcomplab.ch:8893
MainThread INFO 10/15/2015 01:56:17 PM: Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#ims' can be instantiated at: http://ims.cloudcomplab.ch:8890
MainThread INFO 10/15/2015 01:56:20 PM: Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#epc' can be instantiated at: http://epc.cloudcomplab.ch:8888
127.0.0.1 - - [15/Oct/2015 13:56:20] "PUT /orchestrator/default HTTP/1.1" 201 2
MainThread DEBUG 10/15/2015 01:57:02 PM:
/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users/andy/Source/MCN/Source/demo-e2e/bundle/wsgi/application
MainThread DEBUG 10/15/2015 10:55:54 AM: Executing design logic
MainThread INFO 10/15/2015 10:55:58 AM: Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#dnsaas' can be instantiated at: http://dnsaas.cloudcomplab.ch:8893
MainThread INFO 10/15/2015 10:56:01 AM: Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#dssaas' can be instantiated at: http://dss.cloudcomplab.ch:8891
MainThread INFO 10/15/2015 10:56:04 AM: Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#aaa' can be instantiated at: http://aaa.cloudcomplab.ch:8897
MainThread INFO 10/15/2015 10:56:07 AM: Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#maas' can be instantiated at: http://178.22.67.144:8894
MainThread INFO 10/15/2015 10:56:09 AM: Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#icnaas' can
@dizz
dizz / gist:3718f03f7f88139fbe22
Created October 7, 2015 15:26
2 service composition
/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/bin/python2.7 /Users/andy/Source/MCN/Source/demo-e2e/bundle/wsgi/application
127.0.0.1 - - [07/Oct/2015 17:19:57] "GET /-/ HTTP/1.1" 200 2
MainThread DEBUG 10/07/2015 05:20:09 PM: Executing design logic
MainThread INFO 10/07/2015 05:20:12 PM: Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#demo1' can be instantiated at: http://d1.cloudcomplab.ch:8888
MainThread INFO 10/07/2015 05:20:15 PM: Service type: u'http://schemas.mobile-cloud-networking.eu/occi/sm#demo2' can be instantiated at: http://d2.cloudcomplab.ch:8889
127.0.0.1 - - [07/Oct/2015 17:20:15] "PUT /orchestrator/default HTTP/1.1" 201 2
MainThread DEBUG 10/07/2015 05:20:29 PM: Deploy service dependencies
Thread-1 INFO 10/07/2015 05:20:29 PM: ============ DEPLOY ============
Thread-1 INFO 10/07/2015 05:20:29 PM: Deploying service dependencies...
Thread-1 INFO 10/07/2015 05:20:29 PM: Deploying required services for http://schemas.mobile-cloud