diff options
author | Tim Rozet <trozet@redhat.com> | 2018-07-25 15:58:14 -0400 |
---|---|---|
committer | Tim Rozet <trozet@redhat.com> | 2018-07-25 15:58:14 -0400 |
commit | 1fcda2f1a2d22f1161ab604841e819a1e1550116 (patch) | |
tree | cc11471b3cd59631807089191f24841beedc1d5c /odl-pipeline/lib/odl_reinstaller | |
parent | 4b6630459f3cebb78ee21922f7976820ab04690b (diff) |
Change ODL check url to be diagstatus
With OOO the password is no longer hardcoded to 'admin' and is
dynamically generated a run time. This causes this curl check to fail.
Instead, use the diagstatus URL which is new in ODL and provides a more
accurate way (without authentication) to check if ODL is ready.
Change-Id: I7eb034cd3f20c5f5daa52a1e9b2d8e2a52118f6e
Signed-off-by: Tim Rozet <trozet@redhat.com>
Diffstat (limited to 'odl-pipeline/lib/odl_reinstaller')
-rw-r--r-- | odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py b/odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py index 7e444a8..9a8973f 100644 --- a/odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py +++ b/odl-pipeline/lib/odl_reinstaller/odl_reinstaller.py @@ -28,8 +28,6 @@ ODL_AAA_JAR = '/opt/opendaylight/bin/aaa-cli-jar.jar' class ODLReInstaller(Service): def __init__(self): - self.netvirt_url = "restconf/operational/network-topology:" \ - "network-topology/topology/netvirt:1" self.nodes = None self.odl_node = None @@ -80,12 +78,12 @@ class ODLReInstaller(Service): self.reinstall_odl(self.odl_node, odl_artifact) # Wait for ODL to come back up - full_netvirt_url = "http://{}:8081/{}".format( - self.odl_node.config['address'], self.netvirt_url) + full_netvirt_url = "http://{}:8081/diagstatus".format( + self.odl_node.config['address']) counter = 1 while counter <= 10: try: - self.odl_node.execute("curl --fail -u admin:admin {}".format( + self.odl_node.execute("curl --fail {}".format( full_netvirt_url)) LOG.info("New OpenDaylight NetVirt is Up") break |