From b5ea98fb1e1d07bb0dcc5ae2c42f1a8f82e0ee02 Mon Sep 17 00:00:00 2001 From: erbel <johannes.erbel@cs.uni-goettingen.de> Date: Tue, 29 Jan 2019 16:35:12 +0100 Subject: [PATCH] Adjusted Readmes --- README.md | 6 +- .../README.md | 21 +- de.ugoe.cs.rwm.mocci.connector/README.md | 8 +- de.ugoe.cs.rwm.mocci.model/README.md | 10 +- doc/initial.md | 45 ++- doc/initialLog.md | 71 +++++ doc/studio.md | 10 +- doc/vertical.md | 68 +++-- doc/verticalLog.md | 287 ++++++++++++++++++ 9 files changed, 467 insertions(+), 59 deletions(-) create mode 100644 doc/initialLog.md create mode 100644 doc/verticalLog.md diff --git a/README.md b/README.md index 19de83d..3170ab1 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,7 @@ [](https://gitlab.gwdg.de/rwm/de.ugoe.cs.rwm.mocci/commits/master) MOCCI is an extension for the [Open Cloud Computing Interface (OCCI)](http://occi-wg.org/about/specification/) to enable a model-driven management of monitoring devices in the cloud, as well as storing their results within an OCCI-compliant runtime model. Together with other tools from the OCCI ecosystem it provides a testing and execution environment for self-adaptive systems. -In the following you will find a getting started guide in which a preconfigured virtualbox image is downloaded to perform example scenarios and an tutorial on how to enrich existing OCCI models with monitoring functionality. -Moreover, an introduction to MOCCI's components is provided, as well as links and description on how to integrate MOCCI with other pre-existing tooling from the OCCI ecosystem. +In the following you will find a getting started guide in which a preconfigured virtualbox image is downloaded to perform example scenarios and an tutorial on how to enrich existing OCCI models with monitoring functionality. Moreover, an introduction to MOCCI's components is provided, as well as links and description on how to integrate MOCCI with other pre-existing tooling from the OCCI ecosystem. The paper submitted to this artifact and the virtualbox image can be found [here](https://owncloud.gwdg.de/index.php/s/5u2ddnyyNlzecM5) with the password bein mocci. ## Getting Started @@ -11,7 +10,7 @@ To get started with MOCCI we provide a hands on experience in form of a virtualb Alternatively, to manually setup the single components instructions can be found at the end of this document. ### Download VirtualBox Image -To get a quick start into MOCCI download the VM image located here: +To get a quick start into MOCCI download the VM image (Mocci) located here: ``` https://owncloud.gwdg.de/index.php/s/5u2ddnyyNlzecM5 password: mocci @@ -32,6 +31,7 @@ Next start the virtual machine: ### Execute Step-by-step example scenarios and tutorials To learn the ropes of MOCCI, we provide step-by-step instructions for three example scenarios, which are based on the same initial deployment model. +It is recommended to execute the tutorials and examples in the following order: 1. [Initial Deployment](doc/initial.md): This tutorial demonstrates how to deploy an initial cloud application getting monitored by MOCCI. 2. [Vertical Scaling](doc/vertical.md): This scenario scales a VM in the initial deployment up and down according to its CPU utilization. diff --git a/de.ugoe.cs.rwm.mocci.connector.dummy/README.md b/de.ugoe.cs.rwm.mocci.connector.dummy/README.md index 3d9cc4c..b391564 100644 --- a/de.ugoe.cs.rwm.mocci.connector.dummy/README.md +++ b/de.ugoe.cs.rwm.mocci.connector.dummy/README.md @@ -1,10 +1,9 @@ # Monitoring Extension Connector Dummy -This component represents the connector dummy for the OCCI monitoring extension. The skeleton for this connector is generated using [OCCI-Studio](https://github.com/occiware/OCCI-Studio). -Hereby, for each element in the monitoring extension a single connector file is present, implementing how to react on different REST requests addressing the corresponding OCCI element. -This dummy is especially useful for testing purposes. Compared to the actual connector, a link to configuration management scripts is not necessary in order to get monitoring data. +Each element in the monitoring extension has a single file in the connector implementing how to react on different REST requests addressing the corresponding OCCI element. +This dummy is especially useful for testing purposes. Compared to the [connector](https://gitlab.gwdg.de/rwm/de.ugoe.cs.rwm.mocci/tree/master/de.ugoe.cs.rwm.mocci.connector) for an actual deployment of sensors, a link to configuration management scripts is not necessary in order to get monitoring data. As soon as a resultprovider is started monitoring results are simulated are passed to the monitorableproperty element of the sensor containing the resultprovider. The simulated values are easy to adjust and does not require a recompilation of the connector, as only the resultprovider.properties file within the connector has to be modified. - +The skeleton for the connector of the OCCI monitoring extension is generated using [OCCI-Studio](https://github.com/occiware/OCCI-Studio). ## Adjusting the Simulation @@ -15,12 +14,18 @@ To configure the simulation of monitoring results the following steps have to be 4. Adjust the values to your liking The adjustment of the file itself is best explained with a small example: -Currently, the file contains the following: +As default the file contains the following: ``` CPU = None,Low,Medium,High,Critical,5000 ``` -* CPU: Represents the monitorable.property to be adjusted. -* 5000: Represents the interval in which monitoring.results are written. -* None-Critical: Represents the simulated monitoring.results. +Hereby, the following information can be adjusted: +* The first string (CPU): represents the monitorable.property to be adjusted by the simulation. +* The last integer (5000): represents the interval in milliseconds in which a new monitoring.result is written. +* Every string between (None-Critical): represents the values to be filled into the monitoring.result property. +For example, to additionally generate monitoring results for MonitorableProperties having its monitoring.property set to Mem, the file could look like this: +``` +CPU = None,Low,Medium,High,Critical,5000 +Mem = Save,Alert,10000 +``` diff --git a/de.ugoe.cs.rwm.mocci.connector/README.md b/de.ugoe.cs.rwm.mocci.connector/README.md index f63d8cd..956f4da 100644 --- a/de.ugoe.cs.rwm.mocci.connector/README.md +++ b/de.ugoe.cs.rwm.mocci.connector/README.md @@ -1,7 +1,6 @@ # Monitoring Extension Connector -This component represents the connector dummy for the OCCI monitoring extension. The skeleton for this connector is generated using [OCCI-Studio](https://github.com/occiware/OCCI-Studio). -Hereby, for each element in the monitoring extension a single connector file is present, implementing how to react on different REST requests addressing the corresponding OCCI element. -As the elements of the monitoring extension mainly inherit from elements of the enhanced platform extension provided by [MoDMaCAO](https://github.com/occiware/MoDMaCAO), the implementation of the lifecycle actions is quite similar. To handle the management of each individual component of a sensor, configuration management scripts have to be attached to them. +Each element in the monitoring extension has a single file in the connector implementing how to react on different REST requests addressing the corresponding OCCI element. +As the elements of the monitoring extension mainly inherit from elements of the enhanced platform extension provided by [MoDMaCAO](https://github.com/occiware/MoDMaCAO), the implementation of the lifecycle actions is quite similar. To handle the management of each individual component of a sensor, configuration management scripts have to be attached to them. Thus, in comparison to the [dummy connector](https://gitlab.gwdg.de/rwm/de.ugoe.cs.rwm.mocci/tree/master/de.ugoe.cs.rwm.mocci.connector.dummy), this connector allows for an actual deployment and management of sensors in a cloud environment. The skeleton for the connector of the OCCI monitoring extension is generated using [OCCI-Studio](https://github.com/occiware/OCCI-Studio). ## Attaching Configuration Management Scripts @@ -16,5 +15,4 @@ actions as described in the configuration management script called glances, loca  - - +*Note:* Currently, MoDMaCAO only provides a connector for [ansible](https://docs.ansible.com/). diff --git a/de.ugoe.cs.rwm.mocci.model/README.md b/de.ugoe.cs.rwm.mocci.model/README.md index 963cb29..e6d805f 100644 --- a/de.ugoe.cs.rwm.mocci.model/README.md +++ b/de.ugoe.cs.rwm.mocci.model/README.md @@ -1,9 +1,7 @@ # Monitoring Extension This component represents the OCCI monitoring extension, we generated using [OCCI-Studio](https://github.com/occiware/OCCI-Studio). The elements introduced in this extension mainly inherit from elements of the enhanced platform extension of [MoDMaCAO](https://github.com/occiware/MoDMaCAO), -as shown in the Figure below. - - +as shown in the Figure below. As any other extension generated with OCCI-Studio the monitoring extension can be [registered as a plugin](https://gitlab.gwdg.de/rwm/de.ugoe.cs.rwm.mocci/blob/master/doc/studio.md) within Eclipse, OCCI-Studio, and the MartServer. ## The Sensor Element The sensor element represents a top level element used to easily manage all monitoring devices it contains. @@ -15,9 +13,11 @@ To specify the object a sensor monitors, it can be connected over a monitorablep The property itself defines two attributes defining the name of the property it monitors, and its results. ## The Monitoring Components -Each monitoring component (datagatherer, dataprocessor, resultprovider) inherit from component. +Each monitoring device (datagatherer, dataprocessor, resultprovider) inherit from component. Thus, each monitoring component gains access to actions to deploy, configure, start, stop, and undeploy it. When not using the dummy connector, the execution of these actions trigger the execution of configuration management scripts linked to the individual monitoring device. The name of the scripts are assigned over user mixins attached to the component, which is located in the roles folder of the MartServer. To define where each monitoring device is deployed placementlinks are used connecting the device to the VM it is deployed on. -Thus, each device can be hosted by different VM. \ No newline at end of file +Thus, each device can be hosted by different VM. + + \ No newline at end of file diff --git a/doc/initial.md b/doc/initial.md index c3da046..41c299f 100644 --- a/doc/initial.md +++ b/doc/initial.md @@ -1,32 +1,53 @@ -# Initial Deployment Scenario -In this scenario a hadoop cluster with one worker node getting monitored is deployed. -This deployment serves as entry point for the other provided scenarios: [Vertical Scaling](./vertical.md), [Horizontal Scaling](./horizontal.md), and [Sensor Creation](./own.md). +# Initial Deployment Tutorial +In this tutorial a hadoop cluster with one worker node getting monitored is deployed. Therefore, the [MartServer](https://github.com/occiware/MartServer) is used in combination with [DOCCI](https://gitlab.gwdg.de/rwm/de.ugoe.cs.rwm.docci) an engine automatically deploying OCCI models. +This deployment serves as entry point for the other provided scenarios: [Vertical Scaling](./vertical.md), [Horizontal Scaling](./horizontal.md), and [Sensor Creation](./own.md) showing how the monitored information can be used in self-adaptive control loops. ## Starting the MartServer -To execute the scenario a MartServer has to be started including these [plugins](../src/test/resources/martserver-plugins). If the getting started VM is used everything is preconfigured only requiring to start the following script. -Start a terminal and navigate to the desktop. The script can be started using the following command: +Start a terminal(Strg-Alt-T) and navigate to the desktop (cd Desktop). The script can be started using the following command: ``` ./startMART.sh ``` -*Note:* If this scenario is not performed in a running cloud environment consider executing the resetMart.sh script first. +If the preconfigured VM is not used: Start the MartServer with these [plugins](../src/test/resources/martserver-plugins) for the test environemt. +For an actual deployment in an OpenStack cloud we used the following [live connectors](../src/test/resources/martserver-plugins/live) including these [ansible roles](../src/test/resources/roles). ## Deploying the Cluster -Now the hadoop cluster can be deployed. Therefore, start the InitialDeployment.java file as an Java Application. This application performs requests to deploy the model shown below. -If the VM is used: Open a terminal and navigate to the VM's desktop and execute the initialDeployment.jar. +Now that the MartServer is started the hadoop cluster can be deployed. Therefore, start the InitialDeployment.java file as an Java Application. This application performs requests to deploy the model shown below. +If the VM is used: Open a terminal(Strg-Alt-T) and navigate to the VM's desktop(cd Desktop) and execute the initialDeployment.jar using the following command. ``` java -jar initialDeployment.jar ``` -After the deployment has been performed. The console running the MartServer puts out the simulated monitoring data in the following form: +### Initial Deployment Application - Output +During execution of the initialDeployment.jar the Executor of the deployment engine is logged. This log shows all OCCI requests that are executed to deploy the hadoop cluster model shown beneath. +For example the network connecting the nodes in the hadoop cluster is created as shown in the following log output. The full log can be found [here](./initialLog.md): +``` +2019-01-29 14:56:47 INFO Executor:329 - PUT http://localhost:8080/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339591/ -H 'Content-Type: text/occi' -H 'Category: network; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind", ipnetwork; scheme="http://schemas.ogf.org/occi/infrastructure/network#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.id="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339591", occi.core.title="HNetwork", occi.core.summary="", occi.network.vlan="0", occi.network.label="", occi.network.state="active", occi.network.state.message="", occi.network.address="10.254.1.1/24"' +``` + +### MartServer - Output +After the deployment has been performed. The sensors are started updating attached monitoring properties according to the interval specified in the dummy connector. The console running the MartServer puts out the simulated monitoring data in the following form: ``` INFO MonProp: CPU, set to: High(ba16f4ee-1601-4192-a259-eae4274aed72) +INFO MonProp: CPU, set to: Low(ba16f4ee-1601-4192-a259-eae4274aed72) +INFO MonProp: CPU, set to: Critical(ba16f4ee-1601-4192-a259-eae4274aed72) ``` -Moreover, you can investigate the deployed OCCI model by opening your browser and query for OCCI entitites: + + +### Browser - Output +Now that everything has been deployed you can investigate the OCCI runtime model by opening your browser and query for OCCI entitites. In the following you find some example queries to query all compute, sensor, and monitorableproperties, as well as a query for the concrete monitored hadoop-worker compute node, and a filter for each monitorableproperty set to Critical. Additional query and filters can be found in the [documentation of the MartServer](https://github.com/occiware/MartServer/blob/master/doc/userdoc.md). It should be noted, that the updated MonitorableProperties can be investigated by **refreshing the browser**. ``` http://localhost:8080/compute http://localhost:8080/sensor http://localhost:8080/monitorableproperty +http://localhost:8080/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf +http://localhost:8080/monitorableproperty?attribute=monitoring.result&value=Critical + ``` -The following figure visualized the initially deployed model: - \ No newline at end of file + +Now that the deployed model shown below is running, the other tutorials can be executed. The following figure visualized the initially deployed model: + + +## Resetting the MartServer +If you plan to execute the other scenarios([Vertical Scaling](./vertical.md), [Horizontal Scaling](./horizontal.md), and [Sensor Creation](./own.md)] do not reset the MartServer. +Otherwise first stop the MartServer it by pressing Ctrl-C in the terminal running it. Thereafter, either start the resetMart.sh script or go to the folder holding the occi model of the MartServer(~/models) and delete the file model-anonymous.occic. This file represents the concrete runtime model stored by the MartServer when he is stopped and started. \ No newline at end of file diff --git a/doc/initialLog.md b/doc/initialLog.md new file mode 100644 index 0000000..940ae60 --- /dev/null +++ b/doc/initialLog.md @@ -0,0 +1,71 @@ +# Initial Deployment Log +This file shows the logging of DOCCI for the initial deployment tutorial. +Hereby, first the User Mixins are deployed (required by MoDMaCAO). +Thereafter, all Resources in the model are deployed followed by Links connecting them. +At the end each application, including sensors are started by performing the deploy, configure and start actions on them. +Sometimes a request fails. When that is the case the request is reperformed up to three times. + +``` +Choosing default initial deployment model +2019-01-23 14:56:45 INFO Executor:199 - POST http://localhost:8080/-/ -H 'Content-Type: text/occi' -H 'Category: hjob; scheme="http://schemas.modmacao.org/usermixins#"; class="mixin"; location="/usermixins/"' +2019-01-23 14:56:45 INFO Executor:199 - POST http://localhost:8080/-/ -H 'Content-Type: text/occi' -H 'Category: hmaster; scheme="http://schemas.modmacao.org/usermixins#"; class="mixin"; location="/usermixins/"' +2019-01-23 14:56:45 INFO Executor:199 - POST http://localhost:8080/-/ -H 'Content-Type: text/occi' -H 'Category: hworker; scheme="http://schemas.modmacao.org/usermixins#"; class="mixin"; location="/usermixins/"' +2019-01-23 14:56:45 INFO Executor:199 - POST http://localhost:8080/-/ -H 'Content-Type: text/occi' -H 'Category: cpugatherer; scheme="http://schemas.modmacao.org/usermixins#"; class="mixin"; location="/usermixins/"' +2019-01-23 14:56:45 INFO Executor:199 - POST http://localhost:8080/-/ -H 'Content-Type: text/occi' -H 'Category: cpuprocessor; scheme="http://schemas.modmacao.org/usermixins#"; class="mixin"; location="/usermixins/"' +2019-01-23 14:56:45 INFO Executor:199 - POST http://localhost:8080/-/ -H 'Content-Type: text/occi' -H 'Category: cpupublisher; scheme="http://schemas.modmacao.org/usermixins#"; class="mixin"; location="/usermixins/"' +2019-01-23 14:56:45 INFO Executor:199 - POST http://localhost:8080/-/ -H 'Content-Type: text/occi' -H 'Category: cpuprocessorlocal; scheme="http://schemas.modmacao.org/usermixins#"; class="mixin"; location="/usermixins/"' +2019-01-23 14:56:47 INFO Executor:329 - PUT http://localhost:8080/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339591/ -H 'Content-Type: text/occi' -H 'Category: network; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind", ipnetwork; scheme="http://schemas.ogf.org/occi/infrastructure/network#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.id="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339591", occi.core.title="HNetwork", occi.core.summary="", occi.network.vlan="0", occi.network.label="", occi.network.state="active", occi.network.state.message="", occi.network.address="10.254.1.1/24"' +2019-01-23 14:56:47 INFO Executor:329 - PUT http://localhost:8080/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255898/ -H 'Content-Type: text/occi' -H 'Category: component; scheme="http://schemas.modmacao.org/occi/platform#"; class="kind", hworker; scheme="http://schemas.modmacao.org/usermixins#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255898", occi.core.title="HWorker", occi.core.summary="", occi.component.state="undeployed", occi.component.state.message=""' +2019-01-23 14:56:47 INFO Executor:329 - PUT http://localhost:8080/network/urn:uuid:7a9fca2c-24fb-473c-aa9c-8dc9e68a432a/ -H 'Content-Type: text/occi' -H 'Category: network; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind", ipnetwork; scheme="http://schemas.ogf.org/occi/infrastructure/network#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.id="urn:uuid:7a9fca2c-24fb-473c-aa9c-8dc9e68a432a", occi.core.title="MonitoringNetwork", occi.core.summary="", occi.network.vlan="0", occi.network.label="", occi.network.state="active", occi.network.state.message="", occi.network.address="100.254.1.1/24"' +2019-01-23 14:56:47 INFO Executor:329 - PUT http://localhost:8080/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/ -H 'Content-Type: text/occi' -H 'Category: compute; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind", ssh_key; scheme="http://schemas.ogf.org/occi/infrastructure/credentials#"; class="mixin", user_data; scheme="http://schemas.ogf.org/occi/infrastructure/compute#"; class="mixin", ubuntu_xenialxerus; scheme="http://schemas.modmacao.org/openstack/swe#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce", occi.core.title="Hadoop-master", occi.core.summary="", occi.compute.architecture="x86", occi.compute.cores="2", occi.compute.hostname="hadoop-master", occi.compute.share="0", occi.compute.speed="0", occi.compute.memory="4096", occi.compute.state="active", occi.compute.state.message="", occi.credentials.ssh.publickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova", occi.compute.userdata="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"' +2019-01-23 14:56:47 INFO Executor:329 - PUT http://localhost:8080/dataprocessor/urn:uuid:1bda25ab-723b-47e7-9704-5134db26ebdc/ -H 'Content-Type: text/occi' -H 'Category: dataprocessor; scheme="http://schemas.ugoe.cs.rwm/monitoring#"; class="kind", cpuprocessor; scheme="http://schemas.modmacao.org/usermixins#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.id="urn:uuid:1bda25ab-723b-47e7-9704-5134db26ebdc", occi.core.title="CPUAggregator"' +2019-01-23 14:56:47 INFO Executor:329 - PUT http://localhost:8080/resultprovider/urn:uuid:588f705e-5279-4847-9337-846af2c86972/ -H 'Content-Type: text/occi' -H 'Category: resultprovider; scheme="http://schemas.ugoe.cs.rwm/monitoring#"; class="kind", cpupublisher; scheme="http://schemas.modmacao.org/usermixins#"; class="mixin", occiresultprovider; scheme="http://schemas.ugoe.cs.rwm/monitoring#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.id="urn:uuid:588f705e-5279-4847-9337-846af2c86972", occi.core.title="CPUProvider", result.provider.endpoint="192.168.35.45:8080"' +2019-01-23 14:56:47 INFO Executor:329 - PUT http://localhost:8080/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/ -H 'Content-Type: text/occi' -H 'Category: component; scheme="http://schemas.modmacao.org/occi/platform#"; class="kind", hmaster; scheme="http://schemas.modmacao.org/usermixins#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897", occi.core.title="HMaster", occi.core.summary="", occi.component.state="undeployed", occi.component.state.message=""' +2019-01-23 14:56:47 INFO Executor:329 - PUT http://localhost:8080/datagatherer/urn:uuid:051affdc-d686-48f8-884c-83fe81718a48/ -H 'Content-Type: text/occi' -H 'Category: datagatherer; scheme="http://schemas.ugoe.cs.rwm/monitoring#"; class="kind", cpugatherer; scheme="http://schemas.modmacao.org/usermixins#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.id="urn:uuid:051affdc-d686-48f8-884c-83fe81718a48", occi.core.title="Glances"' +2019-01-23 14:56:47 INFO Executor:329 - PUT http://localhost:8080/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d -H 'Content-Type: text/occi' -H 'Category: application; scheme="http://schemas.modmacao.org/occi/platform#"; class="kind"' -H 'X-OCCI-Attribute:occi.core.id="urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d", occi.core.title="Hadoopcluster"' +2019-01-23 14:56:47 INFO Executor:329 - PUT http://localhost:8080/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/ -H 'Content-Type: text/occi' -H 'Category: compute; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind", ssh_key; scheme="http://schemas.ogf.org/occi/infrastructure/credentials#"; class="mixin", user_data; scheme="http://schemas.ogf.org/occi/infrastructure/compute#"; class="mixin", ubuntu_xenialxerus; scheme="http://schemas.modmacao.org/openstack/swe#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf", occi.core.title="Hadoop-worker-1", occi.core.summary="", occi.compute.architecture="x86", occi.compute.cores="2", occi.compute.hostname="hadoop-worker-1", occi.compute.share="0", occi.compute.speed="0", occi.compute.memory="4096", occi.compute.state="active", occi.compute.state.message="", occi.credentials.ssh.publickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova", occi.compute.userdata="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"' +2019-01-23 14:56:47 INFO Executor:329 - PUT http://localhost:8080/sensor/urn:uuid:efb0f50a-7a7c-4153-b939-4846d6554dbb/ -H 'Content-Type: text/occi' -H 'Category: sensor; scheme="http://schemas.ugoe.cs.rwm/monitoring#"; class="kind"' -H 'X-OCCI-Attribute:occi.core.id="urn:uuid:efb0f50a-7a7c-4153-b939-4846d6554dbb", occi.core.title="CPUSensor", occi.core.summary="", occi.app.state="undeployed", occi.app.state.message=""' +2019-01-23 14:56:47 INFO Executor:329 - PUT http://localhost:8080/compute/urn:uuid:37829092-c690-494a-98fa-335b2fd660ea/ -H 'Content-Type: text/occi' -H 'Category: compute; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind", ssh_key; scheme="http://schemas.ogf.org/occi/infrastructure/credentials#"; class="mixin", user_data; scheme="http://schemas.ogf.org/occi/infrastructure/compute#"; class="mixin", ubuntu_xenialxerus; scheme="http://schemas.modmacao.org/openstack/swe#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.id="urn:uuid:37829092-c690-494a-98fa-335b2fd660ea", occi.core.title="MonVm", occi.core.summary="", occi.compute.architecture="x86", occi.compute.cores="2", occi.compute.hostname="monVM", occi.compute.share="0", occi.compute.speed="0", occi.compute.memory="4096", occi.compute.state="active", occi.compute.state.message="", occi.credentials.ssh.publickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova", occi.compute.userdata="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj"' +2019-01-23 14:56:47 INFO Executor:329 - PUT http://localhost:8080/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/ -H 'Content-Type: text/occi' -H 'Category: network; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind", runtimeid; scheme="http://schemas.modmacao.org/openstack/runtime#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.id="urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590", occi.core.title="Management Network", openstack.runtime.id="75a4639e-9ce7-4058-b859-8a711b0e2e7b"' +2019-01-23 14:56:47 INFO Executor:329 - PUT http://localhost:8080/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/ -H 'Content-Type: text/occi' -H 'Category: component; scheme="http://schemas.modmacao.org/occi/platform#"; class="kind", hjob; scheme="http://schemas.modmacao.org/usermixins#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896", occi.core.title="HJob", occi.core.summary="", occi.component.state="undeployed", occi.component.state.message=""' +2019-01-23 14:56:47 ERROR Executor:122 - Failed: http://localhost:8080/dataprocessor/urn:uuid:1bda25ab-723b-47e7-9704-5134db26ebdc/ HTTP error code: 500 +2019-01-23 14:56:47 INFO Executor:74 - PUT Failed: CPUAggregator Rerequest in 5s! +2019-01-23 14:56:47 ERROR Executor:122 - Failed: http://localhost:8080/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/ HTTP error code: 500 +2019-01-23 14:56:47 INFO Executor:74 - PUT Failed: HMaster Rerequest in 5s! +2019-01-23 14:56:47 INFO Executor:329 - PUT http://localhost:8080/componentlink/urn:uuid:7890f02b-6f56-4809-865f-d8c686fd9da1 -H 'Content-Type: text/occi' -H 'Category: componentlink; scheme="http://schemas.modmacao.org/occi/platform#"; class="kind"' -H 'X-OCCI-Attribute:occi.core.source="/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d",occi.core.target="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255898/",occi.core.id="urn:uuid:7890f02b-6f56-4809-865f-d8c686fd9da1", occi.core.title="link4"' +2019-01-23 14:56:47 INFO Executor:329 - PUT http://localhost:8080/componentlink/urn:uuid:04cf6483-706d-4a2a-9114-9918ab2bb52a/ -H 'Content-Type: text/occi' -H 'Category: componentlink; scheme="http://schemas.modmacao.org/occi/platform#"; class="kind"' -H 'X-OCCI-Attribute:occi.core.source="/sensor/urn:uuid:efb0f50a-7a7c-4153-b939-4846d6554dbb/",occi.core.target="/datagatherer/urn:uuid:051affdc-d686-48f8-884c-83fe81718a48/",occi.core.id="urn:uuid:04cf6483-706d-4a2a-9114-9918ab2bb52a", occi.core.title="link1"' +2019-01-23 14:56:47 INFO Executor:329 - PUT http://localhost:8080/componentlink/urn:uuid:93f08e31-f350-42b7-a73b-c139eba4a8e3/ -H 'Content-Type: text/occi' -H 'Category: componentlink; scheme="http://schemas.modmacao.org/occi/platform#"; class="kind"' -H 'X-OCCI-Attribute:occi.core.source="/sensor/urn:uuid:efb0f50a-7a7c-4153-b939-4846d6554dbb/",occi.core.target="/resultprovider/urn:uuid:588f705e-5279-4847-9337-846af2c86972/",occi.core.id="urn:uuid:93f08e31-f350-42b7-a73b-c139eba4a8e3", occi.core.title="link3"' +2019-01-23 14:56:52 INFO Executor:329 - PUT http://localhost:8080/dataprocessor/urn:uuid:1bda25ab-723b-47e7-9704-5134db26ebdc/ -H 'Content-Type: text/occi' -H 'Category: dataprocessor; scheme="http://schemas.ugoe.cs.rwm/monitoring#"; class="kind", cpuprocessor; scheme="http://schemas.modmacao.org/usermixins#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.id="urn:uuid:1bda25ab-723b-47e7-9704-5134db26ebdc", occi.core.title="CPUAggregator"' +2019-01-23 14:56:52 INFO Executor:329 - PUT http://localhost:8080/componentlink/urn:uuid:9551c357-59f8-4ac1-8c85-0e886e206b80/ -H 'Content-Type: text/occi' -H 'Category: componentlink; scheme="http://schemas.modmacao.org/occi/platform#"; class="kind"' -H 'X-OCCI-Attribute:occi.core.source="/resultprovider/urn:uuid:588f705e-5279-4847-9337-846af2c86972/",occi.core.target="/dataprocessor/urn:uuid:1bda25ab-723b-47e7-9704-5134db26ebdc/",occi.core.id="urn:uuid:9551c357-59f8-4ac1-8c85-0e886e206b80", occi.core.title="link1"' +2019-01-23 14:56:52 INFO Executor:329 - PUT http://localhost:8080/componentlink/urn:uuid:1a821776-7886-4cb4-8b80-46a8403acf40/ -H 'Content-Type: text/occi' -H 'Category: componentlink; scheme="http://schemas.modmacao.org/occi/platform#"; class="kind"' -H 'X-OCCI-Attribute:occi.core.source="/dataprocessor/urn:uuid:1bda25ab-723b-47e7-9704-5134db26ebdc/",occi.core.target="/datagatherer/urn:uuid:051affdc-d686-48f8-884c-83fe81718a48/",occi.core.id="urn:uuid:1a821776-7886-4cb4-8b80-46a8403acf40", occi.core.title="link1"' +2019-01-23 14:56:52 INFO Executor:329 - PUT http://localhost:8080/componentlink/urn:uuid:9c604867-3135-4fa1-af9e-2bb11018ff5a/ -H 'Content-Type: text/occi' -H 'Category: componentlink; scheme="http://schemas.modmacao.org/occi/platform#"; class="kind"' -H 'X-OCCI-Attribute:occi.core.source="/sensor/urn:uuid:efb0f50a-7a7c-4153-b939-4846d6554dbb/",occi.core.target="/dataprocessor/urn:uuid:1bda25ab-723b-47e7-9704-5134db26ebdc/",occi.core.id="urn:uuid:9c604867-3135-4fa1-af9e-2bb11018ff5a", occi.core.title="link2"' +2019-01-23 14:56:52 INFO Executor:329 - PUT http://localhost:8080/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/ -H 'Content-Type: text/occi' -H 'Category: component; scheme="http://schemas.modmacao.org/occi/platform#"; class="kind", hmaster; scheme="http://schemas.modmacao.org/usermixins#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.id="urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897", occi.core.title="HMaster", occi.core.summary="", occi.component.state="undeployed", occi.component.state.message=""' +2019-01-23 14:56:52 INFO Executor:329 - PUT http://localhost:8080/componentlink/urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef -H 'Content-Type: text/occi' -H 'Category: componentlink; scheme="http://schemas.modmacao.org/occi/platform#"; class="kind"' -H 'X-OCCI-Attribute:occi.core.source="/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d",occi.core.target="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/",occi.core.id="urn:uuid:9aa31c50-c605-4370-aa60-2c7c461051ef", occi.core.title="ComponentLink"' +2019-01-23 14:56:57 INFO Executor:154 - GET http://localhost:8080/network/urn:uuid:7a9fca2c-24fb-473c-aa9c-8dc9e68a432a/ +2019-01-23 14:56:57 INFO Executor:154 - GET http://localhost:8080/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/ +2019-01-23 14:56:57 INFO Executor:154 - GET http://localhost:8080/compute/urn:uuid:37829092-c690-494a-98fa-335b2fd660ea/ +2019-01-23 14:56:57 INFO Executor:154 - GET http://localhost:8080/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339591/ +2019-01-23 14:56:57 INFO Executor:154 - GET http://localhost:8080/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/ +2019-01-23 14:56:57 INFO Executor:329 - PUT http://localhost:8080/networkinterface/urn:uuid:356f7b59-69a7-4df1-9ab5-c0a46b49b9d1/ -H 'Content-Type: text/occi' -H 'Category: networkinterface; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind", ansibleendpoint; scheme="http://schemas.modmacao.org/occi/ansible#"; class="mixin", ipnetworkinterface; scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.source="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/",occi.core.target="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/",occi.core.id="urn:uuid:356f7b59-69a7-4df1-9ab5-c0a46b49b9d1", occi.core.title="Hadoop-worker-1 -> Management Network"' +2019-01-23 14:56:57 INFO Executor:329 - PUT http://localhost:8080/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b917/ -H 'Content-Type: text/occi' -H 'Category: placementlink; scheme="http://schemas.modmacao.org/placement#"; class="kind"' -H 'X-OCCI-Attribute:occi.core.source="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255898/",occi.core.target="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/",occi.core.id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b917", occi.core.title="link1"' +2019-01-23 14:56:57 INFO Executor:329 - PUT http://localhost:8080/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b928/ -H 'Content-Type: text/occi' -H 'Category: placementlink; scheme="http://schemas.modmacao.org/placement#"; class="kind"' -H 'X-OCCI-Attribute:occi.core.source="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255897/",occi.core.target="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/",occi.core.id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b928", occi.core.title="link1"' +2019-01-23 14:56:57 INFO Executor:329 - PUT http://localhost:8080/networkinterface/urn:uuid:3b458e77-f136-426c-90c4-97fce19c8ae8/ -H 'Content-Type: text/occi' -H 'Category: networkinterface; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind", ansibleendpoint; scheme="http://schemas.modmacao.org/occi/ansible#"; class="mixin", ipnetworkinterface; scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.source="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/",occi.core.target="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/",occi.core.id="urn:uuid:3b458e77-f136-426c-90c4-97fce19c8ae8", occi.core.title="Hadoop-master -> Management Network"' +2019-01-23 14:56:57 INFO Executor:329 - PUT http://localhost:8080/placementlink/urn:uuid:275b5bce-084c-46f0-88bc-1f6f31bf3616/ -H 'Content-Type: text/occi' -H 'Category: placementlink; scheme="http://schemas.modmacao.org/placement#"; class="kind"' -H 'X-OCCI-Attribute:occi.core.source="/resultprovider/urn:uuid:588f705e-5279-4847-9337-846af2c86972/",occi.core.target="/compute/urn:uuid:37829092-c690-494a-98fa-335b2fd660ea/",occi.core.id="urn:uuid:275b5bce-084c-46f0-88bc-1f6f31bf3616", occi.core.title="link2"' +2019-01-23 14:56:57 INFO Executor:329 - PUT http://localhost:8080/placementlink/urn:uuid:ff7019e4-a9dc-48dc-83c3-ab77714a25f4/ -H 'Content-Type: text/occi' -H 'Category: placementlink; scheme="http://schemas.modmacao.org/placement#"; class="kind"' -H 'X-OCCI-Attribute:occi.core.source="/dataprocessor/urn:uuid:1bda25ab-723b-47e7-9704-5134db26ebdc/",occi.core.target="/compute/urn:uuid:37829092-c690-494a-98fa-335b2fd660ea/",occi.core.id="urn:uuid:ff7019e4-a9dc-48dc-83c3-ab77714a25f4", occi.core.title="link2"' +2019-01-23 14:56:57 INFO Executor:329 - PUT http://localhost:8080/placementlink/urn:uuid:60cc05ca-4fd7-465b-8fd0-945dcbf8867f/ -H 'Content-Type: text/occi' -H 'Category: placementlink; scheme="http://schemas.modmacao.org/placement#"; class="kind"' -H 'X-OCCI-Attribute:occi.core.source="/datagatherer/urn:uuid:051affdc-d686-48f8-884c-83fe81718a48/",occi.core.target="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/",occi.core.id="urn:uuid:60cc05ca-4fd7-465b-8fd0-945dcbf8867f", occi.core.title="link1"' +2019-01-23 14:56:57 INFO Executor:329 - PUT http://localhost:8080/networkinterface/urn:uuid:ea482951-5c26-471d-aa1b-8e03b1e6096c -H 'Content-Type: text/occi' -H 'Category: networkinterface; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind", ipnetworkinterface; scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.source="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/",occi.core.target="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339591/",occi.core.id="urn:uuid:ea482951-5c26-471d-aa1b-8e03b1e6096c", occi.core.title="link3", occi.networkinterface.address="10.254.1.5"' +2019-01-23 14:56:57 INFO Executor:329 - PUT http://localhost:8080/networkinterface/urn:uuid:03f91178-136f-4023-876e-84509f8a5a2d/ -H 'Content-Type: text/occi' -H 'Category: networkinterface; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind", ipnetworkinterface; scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.source="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/",occi.core.target="/network/urn:uuid:7a9fca2c-24fb-473c-aa9c-8dc9e68a432a/",occi.core.id="urn:uuid:03f91178-136f-4023-876e-84509f8a5a2d", occi.core.title="monNwLink", occi.networkinterface.address="100.254.1.35"' +2019-01-23 14:56:57 INFO Executor:329 - PUT http://localhost:8080/networkinterface/urn:uuid:c8c49905-3d5e-43b2-8d09-fabf92d29722 -H 'Content-Type: text/occi' -H 'Category: networkinterface; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind", ipnetworkinterface; scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.source="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/",occi.core.target="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339591/",occi.core.id="urn:uuid:c8c49905-3d5e-43b2-8d09-fabf92d29722", occi.core.title="link2", occi.networkinterface.address="10.254.1.8"' +2019-01-23 14:56:57 INFO Executor:329 - PUT http://localhost:8080/networkinterface/urn:uuid:00d6889d-b644-44bf-af13-3fe350e926ed/ -H 'Content-Type: text/occi' -H 'Category: networkinterface; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind", ipnetworkinterface; scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.source="/compute/urn:uuid:37829092-c690-494a-98fa-335b2fd660ea/",occi.core.target="/network/urn:uuid:7a9fca2c-24fb-473c-aa9c-8dc9e68a432a/",occi.core.id="urn:uuid:00d6889d-b644-44bf-af13-3fe350e926ed", occi.core.title="link1"' +2019-01-23 14:56:57 INFO Executor:329 - PUT http://localhost:8080/monitorableproperty/urn:uuid:ba16f4ee-1601-4192-a259-eae4274aed72/ -H 'Content-Type: text/occi' -H 'Category: monitorableproperty; scheme="http://schemas.ugoe.cs.rwm/monitoring#"; class="kind"' -H 'X-OCCI-Attribute:occi.core.source="/sensor/urn:uuid:efb0f50a-7a7c-4153-b939-4846d6554dbb/",occi.core.target="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/",occi.core.id="urn:uuid:ba16f4ee-1601-4192-a259-eae4274aed72", occi.core.title="CPU", monitoring.property="CPU"' +2019-01-23 14:56:57 INFO Executor:329 - PUT http://localhost:8080/placementlink/urn:uuid:ff292f08-d263-41b6-88c8-84d33783b929/ -H 'Content-Type: text/occi' -H 'Category: placementlink; scheme="http://schemas.modmacao.org/placement#"; class="kind"' -H 'X-OCCI-Attribute:occi.core.source="/component/urn:uuid:f934d445-d0c8-4f2f-8086-d9f1a8255896/",occi.core.target="/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166ce/",occi.core.id="urn:uuid:ff292f08-d263-41b6-88c8-84d33783b929", occi.core.title="link1"' +2019-01-23 14:56:57 INFO Executor:329 - PUT http://localhost:8080/networkinterface/urn:uuid:22338480-0fc3-4a7a-bf36-806f2ec600fb/ -H 'Content-Type: text/occi' -H 'Category: networkinterface; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind", ansibleendpoint; scheme="http://schemas.modmacao.org/occi/ansible#"; class="mixin", ipnetworkinterface; scheme="http://schemas.ogf.org/occi/infrastructure/networkinterface#"; class="mixin"' -H 'X-OCCI-Attribute:occi.core.source="/compute/urn:uuid:37829092-c690-494a-98fa-335b2fd660ea/",occi.core.target="/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590/",occi.core.id="urn:uuid:22338480-0fc3-4a7a-bf36-806f2ec600fb", occi.core.title="MonVm -> Management Network"' +2019-01-23 14:56:58 INFO Executor:105 - POST http://localhost:8080/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d?action=deploy -H 'Content-Type: text/occi' -H 'Category: deploy; scheme="http://schemas.modmacao.org/occi/platform/application/action#"; class="action"' +2019-01-23 14:56:58 INFO Executor:105 - POST http://localhost:8080/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d?action=configure -H 'Content-Type: text/occi' -H 'Category: configure; scheme="http://schemas.modmacao.org/occi/platform/application/action#"; class="action"' +2019-01-23 14:56:58 INFO Executor:105 - POST http://localhost:8080/application/urn:uuid:a4888ba9-a0ea-48f2-a29e-901c876ab42d?action=start -H 'Content-Type: text/occi' -H 'Category: start; scheme="http://schemas.modmacao.org/occi/platform/application/action#"; class="action"' +2019-01-23 14:56:58 INFO Executor:105 - POST http://localhost:8080/sensor/urn:uuid:efb0f50a-7a7c-4153-b939-4846d6554dbb/?action=deploy -H 'Content-Type: text/occi' -H 'Category: deploy; scheme="http://schemas.modmacao.org/occi/platform/application/action#"; class="action"' +2019-01-23 14:56:58 INFO Executor:105 - POST http://localhost:8080/sensor/urn:uuid:efb0f50a-7a7c-4153-b939-4846d6554dbb/?action=configure -H 'Content-Type: text/occi' -H 'Category: configure; scheme="http://schemas.modmacao.org/occi/platform/application/action#"; class="action"' +2019-01-23 14:56:58 INFO Executor:105 - POST http://localhost:8080/sensor/urn:uuid:efb0f50a-7a7c-4153-b939-4846d6554dbb/?action=start -H 'Content-Type: text/occi' -H 'Category: start; scheme="http://schemas.modmacao.org/occi/platform/application/action#"; class="action"' +2019-01-23 14:56:58 INFO Executor:378 - GET http://localhost:8080/resultprovider + +``` \ No newline at end of file diff --git a/doc/studio.md b/doc/studio.md index 1a47b37..4eff510 100644 --- a/doc/studio.md +++ b/doc/studio.md @@ -4,7 +4,7 @@ 1. Download the [latest release of OCCI-Studio](https://github.com/occiware/OCCI-Studio/releases). 2. Extract OCCI-Studio and start it. -## Installing required plugins +## Installing Required Plugins To initialize the proposed OCCI extensions, the following plugins need to be added to the OCCI-Studio. These allow to correctly depict OCCI models in the textual and graphical editor. To Install plugins the following steps have to be performed: @@ -23,9 +23,9 @@ To easily access our provided example install the gradle plugin within OCCI-Stud https://github.com/eclipse/buildship/blob/master/docs/user/Installation.md ``` -### Mocci -Finally, the Mocci plugin can be installed which registers the OCCI monitoring extension. Therefore, the following steps have to be performed: -1. Navigate to [https://rwm.pages.gwdg.de/de.ugoe.cs.rwm.mocci/model/index.html/](https://rwm.pages.gwdg.de/de.ugoe.cs.rwm.mocci/model/index.html/): +### MOCCI +Finally, the MOCCI plugin can be installed which registers the OCCI monitoring extension. Therefore, the following steps have to be performed: +1. Navigate to [https://rwm.pages.gwdg.de/de.ugoe.cs.rwm.mocci/index.html](https://rwm.pages.gwdg.de/de.ugoe.cs.rwm.mocci/index.html): 2. Press Download Eclipse Plugin Archive 3. Save the updatesite.zip to any destination 4. Then follow the steps to install the plugin given above, but system choose the location of the updatesite.zip @@ -35,7 +35,7 @@ Alternatively, you can build the Eclipse plugin yourself by checking out the pro gradle updateSiteZip ``` -## Visualizing the example +## Visualizing The Example Now that the IDE has been installed and configured, the example model can now be loaded, visualized, and edited. The model can be found within the project under: ``` diff --git a/doc/vertical.md b/doc/vertical.md index 411a533..c94b7ac 100644 --- a/doc/vertical.md +++ b/doc/vertical.md @@ -2,40 +2,66 @@ Prerequisite for this scenario is the [initial deployment](./initial.md) of the hadoop cluster. Thereafter, a MAPE-k loop is initialized that periodically checks whether the CPU utilization of the worker node reaches a critical level. If that is the case a request against the OCCI API is performed, increasing the number of cores and memory available to the machine. +This scenario serves as an example showing how to directly work with the OCCI interface only requiring the execution of REST requests. ## Starting the Adaptation Script In this scenario, a simple bash script is used to check the gathered monitoring data and perform corresponding actions. -This scenario serves as an example on how to directly work with the OCCI API, including the monitoring extension, by simply writing small bash scripts. Before the adaptation script is started make sure that the MartServer is running and the hadoop cluster has been deployed. To start the script execute the [vertical.sh](https://gitlab.gwdg.de/rwm/de.ugoe.cs.rwm.mocci/blob/master/src/main/resources/vertical.sh) script. -In the getting started VM the script is located on the desktop. Create a terminal navigate to the desktop and start the script with the following command: +In the getting started VM the script is located on the desktop. Create a terminal(Ctrl-Alt-T) navigate to the desktop(cd Desktop) and start the script with the following command: ``` ./vertical.sh ``` -When a critical cpu utilization is present in the model the monitored VM is upscaled from 2 to 8 cores. -Otherwise it is downscaled to 2 cores. The current amount of cores can be easiest checked by querying the compute node using a browser: +### Adaptation Script - Output +The output of the script is separated into the individual steps of the MAPE loop: Monitor, Analyze, Plan, and Execute. +Thus, the output looks depending on the adaptive action to be performed similar to: ``` -http://localhost:8080/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/ +Starting MAPE script +Requesting http://localhost:8080/monitorableproperty?attribute=monitoring.result&value=Critical every 3 seconds! +Monitor +{ + "id" : "urn:uuid:ba16f4ee-1601-4192-a259-eae4274aed72", + "kind" : "http://schemas.ugoe.cs.rwm/monitoring#monitorableproperty", + "mixins" : [ ], + "attributes" : { + "monitoring.property" : "CPU", + "monitoring.result" : "Critical" + }, + "actions" : [ ], + "location" : "/monitorableproperty/urn:uuid:ba16f4ee-1601-4192-a259-eae4274aed72", + "source" : { + "location" : "/sensor/urn:uuid:efb0f50a-7a7c-4153-b939-4846d6554dbb", + "kind" : "http://schemas.ugoe.cs.rwm/monitoring#sensor" + }, + "target" : { + "location" : "/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf", + "kind" : "http://schemas.ogf.org/occi/infrastructure#compute" + } +} +Analyze +Critical Compute Detected +Plan: Scale up VM +State: DownScaled +Execute + ``` +In this case the query for VMs detects a Critical CPU utilization resulting in the "Scale up VM" plan. As the current state of the VM which is stored by the script is set to DownScaled a REST request adjusting the amount of cores of the VM is executed. Hereby, the occi.compute.cores attribute is updated from 2 to 8 cores. If the VM has currently has 8 cores and a downscale plan is executed the amount of cores is set to 2. -*Note:* This scenario mainly serves to get started with the OCCI API. Currently, there is no connector implementing the vertical adjustment as shown in this scenario. +Independent of which plan gets executed the REST response is printed in the terminal executing the script. +The response shows the complete information about the updated VM, including its Links, which is rather large. +An example log file from the execution of the script can be found [here](./verticalLog.md). -## Tuning the Scenario -As the adaptation only upscales on a Critical behavior, it may be interesting to tune the simulated monitoring results. -Therefore, the following steps have to be performed: -1. Stop the MartServer (CTRL-C) -2. Navigate to ~/martserver-plugins -3. Open the de.ugoe.cs.rwm.mocci.connecter.dummy.jar with the archive manager. -4. Doubleclick on the resultprovider.properties file -5. Adjust the values to your liking - -The file contains the following: + +### Browser - Output +Again, the browser can be used to query the running OCCI model. As the self-adaptation script adjusts the amount of cores of the worker node in the hadoop cluster, the compute node can be directly queries to gain information about its current state. +Therefore, investigate the occi.compute.core attribute of the worker node using the following query: ``` -CPU = None,Low,Medium,High,Critical,5000 +http://localhost:8080/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/ ``` -* CPU: Represents the monitorable.property to be adjusted. -* 5000: Represents the interval in which monitoring.results are written. -* None-Critical: Represents the simulated monitoring.results. -*Note;* If you want to execute the second scenario please bring the resultprovider.properties file to its original state. \ No newline at end of file +## Tuning the Scenario +As the adaptation only upscales on a Critical behavior, it may be interesting to tune the simulated monitoring results. +Therefore, follow the steps defined the documentation of the [dummy connector](https://gitlab.gwdg.de/rwm/de.ugoe.cs.rwm.mocci/tree/master/de.ugoe.cs.rwm.mocci.connector.dummy). + +*Note*: This scenario mainly serves to get started with the OCCI API. Currently, there is no connector implementing the vertical adjustment as shown in this scenario. \ No newline at end of file diff --git a/doc/verticalLog.md b/doc/verticalLog.md new file mode 100644 index 0000000..0ef22b3 --- /dev/null +++ b/doc/verticalLog.md @@ -0,0 +1,287 @@ +# Vertical Scaling Log +This file shows a short excerpt form the standard output of the vertical.sh script. +Depending on the Monitoring results, an analyzis is performed checking whether the VM has to up- or downscaled followed by an PUT request updating the amount of cores of the VM. + +``` +Starting MAPE script +Requesting http://localhost:8080/monitorableproperty?attribute=monitoring.result&value=Critical every 3 seconds! +Monitor +{ + "id" : "urn:uuid:ba16f4ee-1601-4192-a259-eae4274aed72", + "kind" : "http://schemas.ugoe.cs.rwm/monitoring#monitorableproperty", + "mixins" : [ ], + "attributes" : { + "monitoring.property" : "CPU", + "monitoring.result" : "Critical" + }, + "actions" : [ ], + "location" : "/monitorableproperty/urn:uuid:ba16f4ee-1601-4192-a259-eae4274aed72", + "source" : { + "location" : "/sensor/urn:uuid:efb0f50a-7a7c-4153-b939-4846d6554dbb", + "kind" : "http://schemas.ugoe.cs.rwm/monitoring#sensor" + }, + "target" : { + "location" : "/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf", + "kind" : "http://schemas.ogf.org/occi/infrastructure#compute" + } +} +Analyze +Critical Compute Detected +Plan: Scale up VM +State: UpScaled +Execute +* Trying 127.0.0.1... +* Connected to localhost (127.0.0.1) port 8080 (#0) +> PUT /compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/ HTTP/1.1 +> Host: localhost:8080 +> User-Agent: curl/7.47.0 +> Accept: */* +> Content-Type: text/occi +> Category: compute; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind", ssh_key; scheme="http://schemas.ogf.org/occi/infrastructure/credentials#"; class="mixin", user_data; scheme="http://schemas.ogf.org/occi/infrastructure/compute#"; class="mixin", ubuntu_xenialxerus; scheme="http://schemas.modmacao.org/openstack/swe#"; class="mixin" +> X-OCCI-Attribute:occi.core.id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf", occi.core.title="hadoop-worker-1", occi.core.summary="", occi.compute.architecture="x86", occi.compute.cores="8", occi.compute.hostname="hadoop-worker-1", occi.compute.share="0", occi.compute.speed="0", occi.compute.memory="8192", occi.compute.state="active", occi.compute.state.message="", occi.credentials.ssh.publickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova", occi.compute.userdata="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj" +> +< HTTP/1.1 201 Created +< Date: Tue, 29 Jan 2019 15:11:21 GMT +< Server: OCCIWare MART Server v1.0 OCCI/1.2 +< Accept: text/occi;application/json;application/occi+json;text/plain;text/occi+plain +< Content-Type: application/json +< Location: http://localhost:8080/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf +< Content-Length: 6337 +< +{ + "id" : "urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf", + "kind" : "http://schemas.ogf.org/occi/infrastructure#compute", + "mixins" : [ "http://schemas.ogf.org/occi/infrastructure/credentials#ssh_key", "http://schemas.ogf.org/occi/infrastructure/compute#user_data", "http://schemas.modmacao.org/openstack/swe#ubuntu_xenialxerus" ], + "attributes" : { + "occi.compute.architecture" : "x86", + "occi.compute.cores" : 8, + "occi.compute.hostname" : "hadoop-worker-1", + "occi.compute.share" : 0, + "occi.compute.speed" : 0.0, + "occi.compute.memory" : 8192.0, + "occi.compute.state" : "active", + "occi.compute.state.message" : "", + "occi.credentials.ssh.publickey" : "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova", + "occi.compute.userdata" : "I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj", + "openstack.runtime.id" : "5437eae8-7c47-4834-929c-a314de77d291" + }, + "links" : [ { + "id" : "urn:uuid:356f7b59-69a7-4df1-9ab5-c0a46b49b9d1", + "kind" : "http://schemas.ogf.org/occi/infrastructure#networkinterface", + "mixins" : [ "http://schemas.modmacao.org/occi/ansible#ansibleendpoint", "http://schemas.ogf.org/occi/infrastructure/networkinterface#ipnetworkinterface" ], + "attributes" : { + "occi.networkinterface.interface" : "", + "occi.networkinterface.mac" : "", + "occi.networkinterface.state" : "active", + "occi.networkinterface.state.message" : "", + "occi.networkinterface.address" : "", + "occi.networkinterface.gateway" : "", + "occi.networkinterface.allocation" : "dynamic" + }, + "actions" : [ ], + "location" : "/networkinterface/urn:uuid:356f7b59-69a7-4df1-9ab5-c0a46b49b9d1", + "source" : { + "location" : "/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf", + "kind" : "http://schemas.ogf.org/occi/infrastructure#compute" + }, + "target" : { + "location" : "/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590", + "kind" : "http://schemas.ogf.org/occi/infrastructure#network" + } + }, { + "id" : "urn:uuid:03f91178-136f-4023-876e-84509f8a5a2d", + "kind" : "http://schemas.ogf.org/occi/infrastructure#networkinterface", + "mixins" : [ "http://schemas.ogf.org/occi/infrastructure/networkinterface#ipnetworkinterface" ], + "attributes" : { + "occi.networkinterface.interface" : "", + "occi.networkinterface.mac" : "", + "occi.networkinterface.state" : "active", + "occi.networkinterface.state.message" : "", + "occi.networkinterface.address" : "100.254.1.35", + "occi.networkinterface.gateway" : "", + "occi.networkinterface.allocation" : "dynamic" + }, + "actions" : [ ], + "location" : "/networkinterface/urn:uuid:03f91178-136f-4023-876e-84509f8a5a2d", + "source" : { + "location" : "/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf", + "kind" : "http://schemas.ogf.org/occi/infrastructure#compute" + }, + "target" : { + "location" : "/network/urn:uuid:7a9fca2c-24fb-473c-aa9c-8dc9e68a432a", + "kind" : "http://schemas.ogf.org/occi/infrastructure#network" + } + }, { + "id" : "urn:uuid:c8c49905-3d5e-43b2-8d09-fabf92d29722", + "kind" : "http://schemas.ogf.org/occi/infrastructure#networkinterface", + "mixins" : [ "http://schemas.ogf.org/occi/infrastructure/networkinterface#ipnetworkinterface" ], + "attributes" : { + "occi.networkinterface.interface" : "", + "occi.networkinterface.mac" : "", + "occi.networkinterface.state" : "active", + "occi.networkinterface.state.message" : "", + "occi.networkinterface.address" : "10.254.1.8", + "occi.networkinterface.gateway" : "", + "occi.networkinterface.allocation" : "dynamic" + }, + "actions" : [ ], + "location" : "/networkinterface/urn:uuid:c8c49905-3d5e-43b2-8d09-fabf92d29722", + "source" : { + "location" : "/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf", + "kind" : "http://schemas.ogf.org/occi/infrastructure#compute" + }, + "target" : { + "location" : "/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339591", + "kind" : "http://schemas.ogf.org/occi/infrastructure#network" + } + } ], + "actions" : [ "http://schemas.ogf.org/occi/infrastructure/compute/action#start", "http://schemas.ogf.org/occi/infrastructure/compute/action#stop", "http://schemas.ogf.org/occi/infrastructure/compute/action#restart", "http://schemas.ogf.org/occi/infrastructure/compute/action#suspend", "http://schemas.ogf.org/occi/infrastructure/compute/action#save" ], + "location" : "/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf" +} +* Connection #0 to host localhost left intact +Monitor +{ + "id" : "urn:uuid:ba16f4ee-1601-4192-a259-eae4274aed72", + "kind" : "http://schemas.ugoe.cs.rwm/monitoring#monitorableproperty", + "mixins" : [ ], + "attributes" : { + "monitoring.property" : "CPU", + "monitoring.result" : "Critical" + }, + "actions" : [ ], + "location" : "/monitorableproperty/urn:uuid:ba16f4ee-1601-4192-a259-eae4274aed72", + "source" : { + "location" : "/sensor/urn:uuid:efb0f50a-7a7c-4153-b939-4846d6554dbb", + "kind" : "http://schemas.ugoe.cs.rwm/monitoring#sensor" + }, + "target" : { + "location" : "/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf", + "kind" : "http://schemas.ogf.org/occi/infrastructure#compute" + } +} +Analyze +Critical Compute Detected +Plan: Scale up VM +Monitor +{ } +Analyze +No Crtical Compute Detected +Plan: Scale down VM +State: DownScaled +* Trying 127.0.0.1... +* Connected to localhost (127.0.0.1) port 8080 (#0) +> PUT /compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf/ HTTP/1.1 +> Host: localhost:8080 +> User-Agent: curl/7.47.0 +> Accept: */* +> Content-Type: text/occi +> Category: compute; scheme="http://schemas.ogf.org/occi/infrastructure#"; class="kind", ssh_key; scheme="http://schemas.ogf.org/occi/infrastructure/credentials#"; class="mixin", user_data; scheme="http://schemas.ogf.org/occi/infrastructure/compute#"; class="mixin", ubuntu_xenialxerus; scheme="http://schemas.modmacao.org/openstack/swe#"; class="mixin" +> X-OCCI-Attribute:occi.core.id="urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf", occi.core.title="hadoop-worker-1", occi.core.summary="", occi.compute.architecture="x86", occi.compute.cores="2", occi.compute.hostname="hadoop-worker-1", occi.compute.share="0", occi.compute.speed="0", occi.compute.memory="4096", occi.compute.state="active", occi.compute.state.message="", occi.credentials.ssh.publickey="ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova", occi.compute.userdata="I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj" +> +< HTTP/1.1 201 Created +< Date: Tue, 29 Jan 2019 15:11:27 GMT +< Server: OCCIWare MART Server v1.0 OCCI/1.2 +< Accept: text/occi;application/json;application/occi+json;text/plain;text/occi+plain +< Content-Type: application/json +< Location: http://localhost:8080/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf +< Content-Length: 6337 +< +{ + "id" : "urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf", + "kind" : "http://schemas.ogf.org/occi/infrastructure#compute", + "mixins" : [ "http://schemas.ogf.org/occi/infrastructure/credentials#ssh_key", "http://schemas.ogf.org/occi/infrastructure/compute#user_data", "http://schemas.modmacao.org/openstack/swe#ubuntu_xenialxerus" ], + "attributes" : { + "occi.compute.architecture" : "x86", + "occi.compute.cores" : 2, + "occi.compute.hostname" : "hadoop-worker-1", + "occi.compute.share" : 0, + "occi.compute.speed" : 0.0, + "occi.compute.memory" : 4096.0, + "occi.compute.state" : "active", + "occi.compute.state.message" : "", + "occi.credentials.ssh.publickey" : "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6H7Ydi45BTHid4qNppGAi5mzjbnZgt7bi6xLGmZG9CiLmhMsxOuk3Z05Nn+pmoN98qS0eY8S240PPk5VOlYqBY0vdRAwrZSHHaLdMp6I7ARNrI2KraYduweqz7ZQxPXQfwIeYx2HKQxEF2r+4//Fo4WfgdBkLuulvl/Gw3TUzJNQHvgpaiNo9+PI5CZydHnZbjUkRikS12pT+CbNKj+0QKeQztbCd41aKxDv5H0DjltVRcpPppv4dmiU/zoCAIngWLO1PPgfYWyze8Z9IoyBT7Qdg30U91TYZBuxzXR5lq7Fh64y/IZ/SjdOdSIvIuDjtmJDULRdLJzrvubrKY+YH Generated-by-Nova", + "occi.compute.userdata" : "I2Nsb3VkLWNvbmZpZwoKIyBVcGdyYWRlIHRoZSBpbnN0YW5jZSBvbiBmaXJzdCBib290CiMgKGllIHJ1biBhcHQtZ2V0IHVwZ3JhZGUpCiMKIyBEZWZhdWx0OiBmYWxzZQojIEFsaWFzZXM6IGFwdF91cGdyYWRlCnBhY2thZ2VfdXBncmFkZTogdHJ1ZQoKcGFja2FnZXM6CiAtIHB5dGhvbgoKd3JpdGVfZmlsZXM6CiAgLSBwYXRoOiAvZXRjL25ldHdvcmsvaW50ZXJmYWNlcy5kLzUwLWNsb3VkLWluaXQuY2ZnCiAgICBjb250ZW50OiB8CiAgICAgIGF1dG8gbG8KICAgICAgaWZhY2UgbG8gaW5ldCBsb29wYmFjawogICAgICAKICAgICAgYXV0byBlbnMwCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMAogICAgICBpZmFjZSBlbnMwIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMQogICAgICBpZmFjZSBlbnMxIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMyCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMgogICAgICBpZmFjZSBlbnMyIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMzCiAgICAgIGFsbG93LWhvdHBsdWcgZW5zMwogICAgICBpZmFjZSBlbnMzIGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM0CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNAogICAgICBpZmFjZSBlbnM0IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM1CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNQogICAgICBpZmFjZSBlbnM1IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM2CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNgogICAgICBpZmFjZSBlbnM2IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM3CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zNwogICAgICBpZmFjZSBlbnM3IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM4CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOAogICAgICBpZmFjZSBlbnM4IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnM5CiAgICAgIGFsbG93LWhvdHBsdWcgZW5zOQogICAgICBpZmFjZSBlbnM5IGluZXQgZGhjcAogICAgICAKICAgICAgYXV0byBlbnMxMAogICAgICBhbGxvdy1ob3RwbHVnIGVuczEwCiAgICAgIGlmYWNlIGVuczEwIGluZXQgZGhjcAoKIyMj", + "openstack.runtime.id" : "5437eae8-7c47-4834-929c-a314de77d291" + }, + "links" : [ { + "id" : "urn:uuid:356f7b59-69a7-4df1-9ab5-c0a46b49b9d1", + "kind" : "http://schemas.ogf.org/occi/infrastructure#networkinterface", + "mixins" : [ "http://schemas.modmacao.org/occi/ansible#ansibleendpoint", "http://schemas.ogf.org/occi/infrastructure/networkinterface#ipnetworkinterface" ], + "attributes" : { + "occi.networkinterface.interface" : "", + "occi.networkinterface.mac" : "", + "occi.networkinterface.state" : "active", + "occi.networkinterface.state.message" : "", + "occi.networkinterface.address" : "", + "occi.networkinterface.gateway" : "", + "occi.networkinterface.allocation" : "dynamic" + }, + "actions" : [ ], + "location" : "/networkinterface/urn:uuid:356f7b59-69a7-4df1-9ab5-c0a46b49b9d1", + "source" : { + "location" : "/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf", + "kind" : "http://schemas.ogf.org/occi/infrastructure#compute" + }, + "target" : { + "location" : "/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339590", + "kind" : "http://schemas.ogf.org/occi/infrastructure#network" + } + }, { + "id" : "urn:uuid:03f91178-136f-4023-876e-84509f8a5a2d", + "kind" : "http://schemas.ogf.org/occi/infrastructure#networkinterface", + "mixins" : [ "http://schemas.ogf.org/occi/infrastructure/networkinterface#ipnetworkinterface" ], + "attributes" : { + "occi.networkinterface.interface" : "", + "occi.networkinterface.mac" : "", + "occi.networkinterface.state" : "active", + "occi.networkinterface.state.message" : "", + "occi.networkinterface.address" : "100.254.1.35", + "occi.networkinterface.gateway" : "", + "occi.networkinterface.allocation" : "dynamic" + }, + "actions" : [ ], + "location" : "/networkinterface/urn:uuid:03f91178-136f-4023-876e-84509f8a5a2d", + "source" : { + "location" : "/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf", + "kind" : "http://schemas.ogf.org/occi/infrastructure#compute" + }, + "target" : { + "location" : "/network/urn:uuid:7a9fca2c-24fb-473c-aa9c-8dc9e68a432a", + "kind" : "http://schemas.ogf.org/occi/infrastructure#network" + } + }, { + "id" : "urn:uuid:c8c49905-3d5e-43b2-8d09-fabf92d29722", + "kind" : "http://schemas.ogf.org/occi/infrastructure#networkinterface", + "mixins" : [ "http://schemas.ogf.org/occi/infrastructure/networkinterface#ipnetworkinterface" ], + "attributes" : { + "occi.networkinterface.interface" : "", + "occi.networkinterface.mac" : "", + "occi.networkinterface.state" : "active", + "occi.networkinterface.state.message" : "", + "occi.networkinterface.address" : "10.254.1.8", + "occi.networkinterface.gateway" : "", + "occi.networkinterface.allocation" : "dynamic" + }, + "actions" : [ ], + "location" : "/networkinterface/urn:uuid:c8c49905-3d5e-43b2-8d09-fabf92d29722", + "source" : { + "location" : "/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf", + "kind" : "http://schemas.ogf.org/occi/infrastructure#compute" + }, + "target" : { + "location" : "/network/urn:uuid:29d78078-fb4c-47aa-a9af-b8aaf3339591", + "kind" : "http://schemas.ogf.org/occi/infrastructure#network" + } + } ], + "actions" : [ "http://schemas.ogf.org/occi/infrastructure/compute/action#start", "http://schemas.ogf.org/occi/infrastructure/compute/action#stop", "http://schemas.ogf.org/occi/infrastructure/compute/action#restart", "http://schemas.ogf.org/occi/infrastructure/compute/action#suspend", "http://schemas.ogf.org/occi/infrastructure/compute/action#save" ], + "location" : "/compute/urn:uuid:2e6a73d0-faaa-476a-bd25-ca461dd166cf" +} +* Connection #0 to host localhost left intact +Monitor +{ } +Analyze +No Crtical Compute Detected +Plan: Scale down VM + + +``` \ No newline at end of file -- GitLab