Skip to content

Instantly share code, notes, and snippets.

Avatar

Alessandro Costantini alexcos78

View GitHub Profile
View collectd_install
root@acostantini-test:~# apt-get install collectd
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following additional packages will be installed:
acl adwaita-icon-theme apg aptdaemon aptdaemon-data aspell aspell-en at-spi2-core avahi-daemon avahi-utils bluez bubblewrap ca-certificates-java cheese-common
collectd-core colord colord-data cpp cpp-9 cracklib-runtime crda cups-pk-helper dbus-x11 dconf-cli default-jre-headless desktop-file-utils dictionaries-common
dns-root-data dnsmasq-base docbook-xml emacsen-common enchant-2 evolution-data-server evolution-data-server-common fontconfig fontconfig-config fonts-dejavu-core
fprintd gcc-9-base gcr gdm3 geoclue-2.0 gir1.2-accountsservice-1.0 gir1.2-atk-1.0 gir1.2-atspi-2.0 gir1.2-freedesktop gir1.2-gck-1 gir1.2-gcr-3
gir1.2-gdesktopenums-3.0 gir1.2-gdkpixbuf-2.0 gir1.2-gdm-1.0 gir1.2-geoclue-2.0 gir1.2-gnomebluetooth-1.0 gir1.2-gnomedesktop-3.0 gir1.2-graphene-1.0 gir1.2-gtk-3.0
View IM_log_direct
2021-05-04 12:42:49,789 - InfrastructureManager - DEBUG - TOSCA: tosca_definitions_version: tosca_simple_yaml_1_0
metadata:
template_name: template
template_version: 1.0.0-SNAPSHOT
template_author: orchestrator
description: "Launch a compute node getting the IP and SSH credentials to access via ssh"
imports:
View IM_log
2021-05-04 12:28:26,670 - InfrastructureManager - DEBUG - TOSCA: tosca_definitions_version: tosca_simple_yaml_1_0
metadata:
template_name: template
template_version: 1.0.0-SNAPSHOT
template_author: orchestrator
description: "Launch a compute node getting the IP and SSH credentials to access via ssh"
imports:
View orchestrator_log
2021-05-04 12:28:20.770 DEBUG req-d14b16a2-49c2-4f97-8d69-b99a12c1e414 - 1 --- [ XNIO-2 task-21] i.r.o.c.f.CustomRequestLoggingFilter : {"headers":{"authorization":"Bearer eyJraWQiOiJyc2ExIiwiYWxnIjoiUlMyNTYifQ.eyJzdWIiOiJiMzcwZThkYi1hOGY1LTRjMGYtODkzZC00MjE5MzAwMDIwOTQiLCJpc3MiOiJodHRwczpcL1wvaW90d2lucy1pYW0uY2xvdWQuY25hZi5pbmZuLml0XC8iLCJuYW1lIjoiQWxlc3NhbmRybyBDb3N0YW50aW5pIiwiZ3JvdXBzIjpbIlRCMDJcL2Nsb3VkIl0sInByZWZlcnJlZF91c2VybmFtZSI6ImFjb3N0YW50aW5pIiwib3JnYW5pc2F0aW9uX25hbWUiOiJpb3R3aW5zIiwiZXhwIjoxNjIwMTM0MDYyLCJpYXQiOjE2MjAxMzA0NjIsImp0aSI6ImNiOTRlMTJiLTRjOTgtNGVhZi1hYzFlLWFiOWM2MDQ2ZWYxMCIsImNsaWVudF9pZCI6ImU4MjE1MDMxLWQxZGMtNDIwMS1iYzhmLTcxODNhOWUwOTQ2MCIsImVtYWlsIjoiYWxlc3NhbmRyby5jb3N0YW50aW5pQGNuYWYuaW5mbi5pdCJ9.AszeulKSU2cSpq9g5IPExoA2kXIio2v1_9J2Lj0TIgxtHZRdJLqD1jAcW3cz5qYsmQz0m6g8ysnJ3luznvl_ynzecJ4OvcYC-LLHCUxnWy_i1e8CsCUD6N_TCBZEo14uabUsOk-PNXqbpUnxFxyxQbX2tcVLpSeCb4dP9E55i6w","X-Forwarded-Prefix":"/orchestrator","Connection":"close","X-Forwarded-Proto":"https","X-Forwarded-For":"131.15
View gist:7528bdf4cd502c61351e818445765a32
2021-03-30 10:52:05.174 INFO req-3b8fd18f-226c-4eb5-a6c4-ec229ae8715f 11eb9145-f2e4-21fe-8f86-0242f1c51fa0 1 --- [askExecutor-452] i.r.o.service.commands.BaseJavaDelegate : Task Get Monitoring - ENDED SUCCESSFULLY
2021-03-30 10:52:05.206 INFO req-3b8fd18f-226c-4eb5-a6c4-ec229ae8715f 11eb9145-f2e4-21fe-8f86-0242f1c51fa0 1 --- [askExecutor-453] i.r.o.service.commands.BaseJavaDelegate : Task Get Providers Rank - STARTED
2021-03-30 10:52:05.247 INFO req-3b8fd18f-226c-4eb5-a6c4-ec229ae8715f 11eb9145-f2e4-21fe-8f86-0242f1c51fa0 1 --- [askExecutor-453] i.r.o.service.commands.BaseJavaDelegate : Task Get Providers Rank - ENDED SUCCESSFULLY
2021-03-30 10:52:05.305 INFO req-3b8fd18f-226c-4eb5-a6c4-ec229ae8715f 11eb9145-f2e4-21fe-8f86-0242f1c51fa0 1 --- [askExecutor-454] i.r.o.service.commands.BaseJavaDelegate : Task Choose Provider and update Deployment - STARTED
2021-03-30 10:52:05.311 DEBUG req-3b8fd18f-226c-4eb5-a6c4-ec229ae8715f 11eb9145-f2e4-21fe-8f86-0242f1c51fa0 1 --- [askExecutor-454] i.r.o.service.comma
View IM_Mirco
021-02-11 16:04:28,089 - ConfManager - INFO - Inf ID: e42e4248-6c81-11eb-8bff-0242ac110005: Ansible successfully configured in the master VM:
 
PLAY [all] *********************************************************************
 
TASK [Set Ansible version from env if defined] *********************************
Thursday 11 February 2021  15:59:27.379736
ok: [131.154.97.197]
 
TASK [Check Python is installed] ***********************************************
Thursday 11 February 2021  15:59:27.480804
View iotwins_deployment_orchestrator_log
2021-01-31 21:45:04.428 DEBUG req-813f9ec1-0115-44e8-b912-aedc9db2abf4 - 1 --- [ XNIO-2 task-19] i.r.o.c.f.CustomRequestLoggingFilter : {"headers":{"X-Forwarded-Prefix":"/orchestrator","Accept":"*/*","User-Agent":"python-requests/2.22.0","Connection":"close","X-Forwarded-Proto":"https","X-Forwarded-For":"131.154.97.163","Host":"iotwins-paas.cloud.cnaf.infn.it","Accept-Encoding":"gzip, deflate","X-Real-IP":"131.154.97.163"},"uri":"/info","type":"request","http_method":"GET","client_ip":"131.154.97.163"}
2021-01-31 21:45:04.453 DEBUG req-813f9ec1-0115-44e8-b912-aedc9db2abf4 - 1 --- [ XNIO-2 task-19] i.r.o.c.f.CustomRequestLoggingFilter : {"headers":{"X-Forwarded-Prefix":"/orchestrator","Accept":"*/*","User-Agent":"python-requests/2.22.0","Connection":"close","X-Forwarded-Proto":"https","X-Forwarded-For":"131.154.97.163","Host":"iotwins-paas.cloud.cnaf.infn.it","Accept-Encoding":"gzip, deflate","X-Real-IP":"131.154.97.163"},"uri":"/info","type":"response","http_method":"GET","client_ip":"131.154.97.163",
View IM_log_curl_OK
2021-01-31 01:16:45,361 - InfrastructureManager - DEBUG - TOSCA: tosca_definitions_version: tosca_simple_yaml_1_0
description: "Launch a compute node getting the IP and SSH credentials to access via ssh"
imports:
- indigo_custom_types: https://raw.githubusercontent.com/indigo-dc/tosca-types/master/custom_types.yaml
topology_template:
inputs:
num_cpus:
View IM_log_pending
2021-01-31 00:44:48,996 - InfrastructureManager - DEBUG - TOSCA: tosca_definitions_version: tosca_simple_yaml_1_0
metadata:
template_name: template
template_version: 1.0.0-SNAPSHOT
template_author: orchestrator
description: "Launch a compute node getting the IP and SSH credentials to access via ssh"
imports:
View IM_iotwins
$ curl -L -i -k -H 'Content-type: text/yaml' -H "Authorization: id = ost; type = OpenStack; host = https://cloud-api-pub.cr.cnaf.infn.it:5000/v3; username = iotwins; password = $IAM_ACCESS_TOKEN; tenant = openid; auth_version = 3.x_oidc_access_token; service_region = sdds;\nid = im; type = InfrastructureManager; token = $IAM_ACCESS_TOKEN" -X POST https://iotwins-paas.cloud.cnaf.infn.it/im/infrastructures --data-binary @"simple_tosca_im.yaml"
HTTP/2 200
server: nginx/1.19.6
date: Fri, 29 Jan 2021 14:08:03 GMT
content-type: text/uri-list
content-length: 95
infid: 5db98326-623b-11eb-b619-0242ac110004
https://iotwins-paas.cloud.cnaf.infn.it/im/infrastructures/5db98326-623b-11eb-b619-0242ac110004