1000: Fix authentication when deleting service 45/8645/4
authorDominik Fleischmann <dominik.fleischmann@canonical.com>
Wed, 26 Feb 2020 18:58:25 +0000 (19:58 +0100)
committerisraelad <adam.israel@canonical.com>
Thu, 27 Feb 2020 15:09:56 +0000 (16:09 +0100)
commite66c543727c7ef4edb69db899c2481203d6e47fa
treeac1c165c4a1d302eb602a48880a3f3026d52e842
parentbc269eb13d444b0e382a38a710e13abb87f5c342
1000: Fix authentication when deleting service

This fixes 1000 where the creation of k8sclusters
was failing once a k8scluster had been deleted. This
was due to N2VC not logging out correctly from the
juju controller. Error handling was added to the
add_model funciton.

https://osm.etsi.org/bugzilla/show_bug.cgi?id=1000

Change-Id: I144ddf7ed16a3aa65e145459e49f41b9fd936353
Signed-off-by: Dominik Fleischmann <dominik.fleischmann@canonical.com>
(cherry picked from commit 1ac78b3b0c1440f4c69834387c7ceafdff27ac28)
n2vc/k8s_juju_conn.py