Add juju support to lcm 40/5840/15
authorAdam Israel <adam.israel@canonical.com>
Mon, 5 Feb 2018 12:52:15 +0000 (13:52 +0100)
committerAdam Israel <adam.israel@canonical.com>
Thu, 8 Feb 2018 10:11:34 +0000 (11:11 +0100)
commitc887cc2fdd02c898ecd1f08d6927043027fd07eb
treed322234ee9569562c6cce870fd48ed765c23db2b
parent0cb7df3190343531e2ccd4b5d404780af678936e
Add juju support to lcm

This adds basic Juju support to the lcm.
- Add a ModelObserver to watch model changes and update nsr_lcm when a
  charm is deployed and either ready or blocked.
- Refactor DeployApplication to take ns and vnf record as parameters and
  extract necessary information to deploy and configure charm
- Add basic checks for proxy/non-proxy charm
- Rebase against latest lcm changes
- Automatically remove a charm when deleting the associated network
  service
- Revert lcm.cfg
- Address changes per discussion this morning

TODO:
- Finish adding non-proxy charm support (need to pick appropriate
  example to highlight this)

Signed-off-by: Adam Israel <adam.israel@canonical.com>
Change-Id: Iffd24293722a050630bcb5812d3f15217067b238
lcm/osm_lcm/juju_api.py [new file with mode: 0644]
lcm/osm_lcm/lcm.py
lcm/osm_lcm/vca.py [new file with mode: 0644]