This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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 |