Creating your own VNF charm (Release ONE)

From OSM Public Wiki
Revision as of 23:10, 4 January 2017 by Israelad (talk | contribs)
Jump to: navigation, search

Creating a VNF proxy charm

What is a charm

A charm is a collection of scripts and metadata that encapsulate the distilled DevOps knowledge of experts in a particular product. These charms make it easy to reliably and repeatedly deploy applications, then scale them as required with minimal effort.

Driven by Juju, these charms manage the complete lifecycle of the application, including installation, configuration, clustering, and scaling.

What is a proxy charm

OSM Release One supports a limited version of charms that we call "proxy charms". The SO runs "actions" in the charm, which are then executed via ssh on the virtual machine, instantiated by the RO, running your VNF image. The diagram below illustrates that workflow.

+---------------------+    +---------------------+
|                     <----+                     |
|  Resource           |    |  Service            |
|  Orchestrator (RO)  +---->  Orchestrator (SO)  |
|                     |    |                     |
+------------------+--+    +-------+----^--------+
                   |               |    |
                   |               |    |
                   |               |    |
             +-----v-----+       +-v----+--+
             |           <-------+         |
             |  Virtual  |       |  Proxy  |
             |  Machine  |       |  Charm  |
             |           +------->         |
             +-----------+       +---------+

Creating a proxy charm

Layers

Actions

Building