Skip to content

Commit

Permalink
Merge pull request #11 from openbaton/develop
Browse files Browse the repository at this point in the history
Merge develop into master
  • Loading branch information
gc4rella committed Mar 3, 2017
2 parents 5a1e5fc + 61ee599 commit d6320a8
Show file tree
Hide file tree
Showing 57 changed files with 711 additions and 265 deletions.
10 changes: 6 additions & 4 deletions docs/autoscaling.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,21 +60,21 @@ The latest stable version AutoScaling Engine can be cloned from this [repository
git clone https://github.com/openbaton/autoscaling.git
```

Once this is done, go inside the cloned folder and make use of the provided script to compile the project as done below:
Once this is done, go inside the cloned folder and make use of the provided script to compile the project and start as done below:

```bash
./autoscaling-engine.sh compile
./autoscaling-engine.sh compile start
```

# Manual configuration of the AutoScaling Engine

This chapter describes what needs to be done before starting the AutoScaling Engine. This includes the configuration file and properties, and also how to make use of monitoring plugin.

## Configuration file
The configuration file must be copied to `etc/openbaton/autoscaling.properties` by executing the following command from inside the repository folder:
The configuration file must be copied to `etc/openbaton/openbaton-ase.properties` by executing the following command from inside the repository folder:

```bash
cp etc/autoscaling.properties /etc/openbaton/autoscaling.properties
cp etc/ase.properties /etc/openbaton/autoscaling.properties
```

If done, check out the following chapter in order to understand the configuration parameters.
Expand Down Expand Up @@ -182,6 +182,7 @@ An example of an AutoScalePolicy can be found below followed by descriptions for
}
]
```
An example using the **TOSCA YAML descriptors** can be found [here][tosca-as].

This AutoScalePolicy indicates an scaling-out operation of two new VNFC Instances if the averaged value of all measurement results of the metric `cpu load` is greater than the threshold of 0.7 (70%).
This condition is checked every 30 seconds as defined via the period. Once the scaling-out is finished it starts a cooldown of 60 seconds. For this cooldown time further scaling requests are rejected by the AutoScaling Engine.
Expand Down Expand Up @@ -239,3 +240,4 @@ Actions types are the operations that can be executed when defined conditions ar
[spring.io]:https://spring.io/
[openbaton]: http://openbaton.org
[openbaton-doc]: http://openbaton.org/documentation
[tosca-as]:tosca-asp.md
9 changes: 6 additions & 3 deletions docs/descriptors/tutorial-dummy-NSR/tutorial-dummy-NSR.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
{
"connection_point":[
{
"virtual_link_reference":"private"
"virtual_link_reference":"private",
"interfaceId":0
}
]
}
Expand Down Expand Up @@ -77,15 +78,17 @@
"connection_point":[
{
"floatingIp":"random",
"virtual_link_reference":"private"
"virtual_link_reference":"private",
"interfaceId":0
}
]
},
{
"connection_point":[
{
"floatingIp":"random",
"virtual_link_reference":"private"
"virtual_link_reference":"private",
"interfaceId":0
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"connection_point":[
{
"floatingIp":"random",
"virtual_link_reference":"private"
"virtual_link_reference":"private",
"interfaceId":0
}
]
}
Expand Down Expand Up @@ -93,7 +94,8 @@
"connection_point":[
{
"floatingIp":"random",
"virtual_link_reference":"private"
"virtual_link_reference":"private",
"interfaceId":0
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
{
"connection_point":[
{
"virtual_link_reference":"private"
"virtual_link_reference":"private",
"interfaceId":0
}
]
}
Expand Down Expand Up @@ -86,7 +87,8 @@
{
"connection_point":[
{
"virtual_link_reference":"private"
"virtual_link_reference":"private",
"interfaceId":0
}
]
}
Expand Down
6 changes: 4 additions & 2 deletions docs/descriptors/tutorial-sipp-fms/sipp-fms-nsd.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
"connection_point":[
{
"floatingIp":"random",
"virtual_link_reference":"private"
"virtual_link_reference":"private",
"interfaceId":0
}
]
}
Expand Down Expand Up @@ -138,7 +139,8 @@
"connection_point":[
{
"floatingIp":"random",
"virtual_link_reference":"private"
"virtual_link_reference":"private",
"interfaceId":0
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@
"connection_point":[
{
"floatingIp":"random",
"virtual_link_reference":"private"
"virtual_link_reference":"private",
"interfaceId":0
}
]
}
Expand Down Expand Up @@ -178,7 +179,8 @@
"connection_point":[
{
"floatingIp":"random",
"virtual_link_reference":"private"
"virtual_link_reference":"private",
"interfaceId":0
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
{
"connection_point":[
{
"virtual_link_reference":"private"
"virtual_link_reference":"private",
"interfaceId":0
}
]
}
Expand Down Expand Up @@ -176,7 +177,8 @@
{
"connection_point":[
{
"virtual_link_reference":"private"
"virtual_link_reference":"private",
"interfaceId":0
}
]
}
Expand Down
Binary file modified docs/fault-management.md
Binary file not shown.
22 changes: 11 additions & 11 deletions docs/fms-sipp-tutorial.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Tutorial: Fault Management System
-----------------------------------------

This tutorial explain how to use the Fault Management System in a simple network service. The network service is composed by a SIPp client and a SIPp server.
The Fault Management System will create a standby SIPp server in order to protect the active SIPp server from failures.
Expand All @@ -10,17 +9,17 @@ In order to execute this scenario, you need to have the following components up

* [NFVO][nfvo-github]
* [OpenStack vim driver][openstack-plugin]
* [Zabbix plugin][zabbix-plugin] + Zabbix Server 2.2v
* [Zabbix plugin][zabbix-plugin] + Zabbix Server (2.2 or 3.0 version)
* [Generic VNFM][generic-vnfm]
* [Fault Management System][fms]
* OpenStack

Start the NFVO and Generic VNFM depending on how you [installed][installation] it.
If you used the bootstrap script for installing you do not have to care about the OpenStack vim driver as it will be installed already.
If you used the bootstrap script for installing you do not have to care about the OpenStack vim driver as it will be installed already, as well as Zabbix Plugin.

## Store the Vim Instance

For registering the Point of Presence of type OpenStack to the NFVO you have to upload a Vim Instance. You can use the following [json descriptor][vim] by changing the values to your needs.
For registering the Point of Presence of type OpenStack to the NFVO you have to upload a Vim Instance. You can use the following [json descriptor][vim-instance-json] by changing the values to your needs.

### Using the dashboard

Expand All @@ -39,13 +38,12 @@ $./openbaton.sh VimInstance-create vim-instance.json

## Store the Network Service Descriptor

Download the [sipp-fms-nsd.json][sipp-fms-nsd] file, and upload it in the catalogue either using the dashboard or the CLI.
Download the [sipp-fms-nsd.json][sipp-fms-nsd] file, make sure that all the parameters fit with your environment and then upload it in the catalogue either using the dashboard or the CLI.
The main parameters you should check before uploading the NSD are: vm_image (make sure you have and Ubuntu image in OpenStack and its name matches the one in this parameter), vimInstanceName (if you only have one vim instance you can leave it empty otherwise you must specify the vim instance name in this parameter or when you will launch the NSD) and flavour_key (make sure you have a flavour in OpenStack matching the one in this parameter).

### Using the dashboard

If you want to use the Dashboard go to `Catalogue -> NS Descriptors` and choose the NSD of your choice by clicking on `Upload NSD` and selecting the Descriptor's json file.

![Onboarding-NSD][nsd-onboarding]
If you want to use the Dashboard go to `Catalogue -> NS Descriptors`, copy the text of NSD "sipp-fms-nsd.json", click `Add NSD -> Upload NSD`, paste the NSD and click `Store NSD`.

### Using the CLI

Expand Down Expand Up @@ -87,7 +85,7 @@ Once this request is processed successfully, it returns the following:
```

## Deploy the Network Service Descriptor
As soon as you onboarded the NSD in the NFVO you can deploy this NSD either by using the dashboard or the CLI.
As soon as you uploaded the NSD in the NFVO you can deploy this NSD either by using the dashboard or the CLI.
This will create a Network Service Record (NSR) and actually launch the Virtual Machines on OpenStack. The network service is composed by two VNFC instances (virtual machines), however the Fault Management System creates a third virtual machine, which consists in the SIPp server in standby.

### Using the dashboard
Expand All @@ -106,7 +104,7 @@ Regarding the SIPp server VNF you should see the following:

Now you can trigger the switch to standby simulating a failure.
Go to Openstack dashboard and terminate the virtual machine which correspond to the ACTIVE SIPp server. As you can expect the SIPp client will loose the connection with the server.
However after 1/2 minutes the FMS will execute the switch to standby. After this action, the standby SIPp server is activated and the client will connect to the new one, so that the network service recovers from the failure.
However after 1/2 minutes the FMS will execute the switch to standby. After this action, the standby SIPp server will be activated and the client will connect to the new one, so that the network service recovers from the failure.

<!---
References
Expand All @@ -123,4 +121,6 @@ References
[sipp-fms-nsd]:descriptors/tutorial-sipp-fms/sipp-fms-nsd.json
[nsd-onboarding]: images/tutorials/tutorial-iperf-NSR/nsd-onboarding.png
[nsr-deploy]: images/tutorials/tutorial-iperf-NSR/nsr-deploy.png
[vnfc-active-standby]:images/tutorials/tutorial-sipp-fms/vnfc-active-standby.png
[vnfc-active-standby]:images/tutorials/tutorial-sipp-fms/vnfc-active-standby.png
[vim-instance-json]:descriptors/vim-instance/openstack-vim-instance.json
[vim-onboarding]: images/tutorials/tutorial-iperf-NSR/vim-onboarding.png
7 changes: 4 additions & 3 deletions docs/how-to-register-event.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ repositories {
}
dependencies {
compile 'org.openbaton:sdk:3.0.0'
compile 'org.openbaton:sdk:3.2.0'
}
```

Expand Down Expand Up @@ -158,7 +158,8 @@ public class RestApi {
private Gson gson = new GsonBuilder().setPrettyPrinting().create();

@RequestMapping(method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
public void receiveEvent(JsonObject event){
public void receiveEvent(@RequestBody String msg){
JsonObject event = new JsonParser().parse(msg).getAsJsonObject();
System.out.println("Received event from NFVO:\n" + event);
String action = event.get("action").getAsString();
System.out.println("The action is: " + action);
Expand All @@ -178,4 +179,4 @@ public class RestApi {
}
}
```
As shown in the example class, the payload is a json string converted to the NetworkServiceRecord or VirtualNetworkFunctionRecord depending on the event. Another note is that the NFVO calls a POST on the specified eventEndpoint (in this case "http://172.0.0.1/event/module"), for that reason the RestApi example class is listening on that path for a POST method.
As shown in the example class, the payload is a json string converted to the NetworkServiceRecord or VirtualNetworkFunctionRecord depending on the event. Another note is that the NFVO calls a POST on the specified eventEndpoint (in this case "http://172.0.0.1/event/module"), for that reason the RestApi example class is listening on that path for a POST method.
Binary file modified docs/images/edit-NSD1.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/edit-NSD2.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/nfvo-how-to-use-gui-NSD-create-file.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/nfvo-how-to-use-gui-NSD-create-form.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/nfvo-how-to-use-gui-NSDlist.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/nfvo-how-to-use-gui-add-user.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/nfvo-how-to-use-gui-launch-config.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/nfvo-how-to-use-gui-overview.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified docs/images/vim-instance-register-new-pop.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/zabbix-plugin-architecture.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Open Baton
# Open Baton
Open Baton is an open source project providing a comprehensive implementation of the ETSI Management and Orchestration (MANO) specification.

## Its main components
Expand Down
1 change: 0 additions & 1 deletion docs/iperf-NSR.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Tutorial: iPerf Network Service
-----------------------------------------

This tutorial explains how to deploy a network service that uses iPerf.
[iPerf][iperf-website] is a tool for active measurements of the maximum achievable bandwidth between two or more machines where an iPerf client connects to an iPerf server.
Expand Down
2 changes: 1 addition & 1 deletion docs/monitoring.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Monitoring
# Monitoring

Open Baton interfaces with monitoring systems using a plugin mechanism.
The plugin mechanism allows Open Baton to easily use multiple monitoring system. The following figure shows how the monitoring plugin communicate with the NFVO.
Expand Down
14 changes: 14 additions & 0 deletions docs/network-slicing.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ For stopping you can use:
# How to use Network Slicing Engine
The currently only supported driver is neutron, which will use the native QoS capabilities of Openstack Mitaka. To use it simply set ```nse.driver=neutron``` in the configuration file. To set QoS policies in your NSD specify the following QoS parameter in the virtual_link of your vnfd configuration.

In JSON:

```
"virtual_link":[
{
Expand All @@ -150,6 +152,18 @@ The currently only supported driver is neutron, which will use the native QoS ca
}
]
```
In YAML:

```yaml
mgmt:
type: tosca.nodes.nfv.VL
properties:
vendor: Fokus
qos:
- minimum_bandwith:BRONZE

```


[nse-repo]: https://github.com/openbaton/network-slicing
[openbaton]: http://openbaton.org
Expand Down

0 comments on commit d6320a8

Please sign in to comment.