Fixes stale undercloud delorean repos 49/52249/2
authorTim Rozet <trozet@redhat.com>
Fri, 16 Feb 2018 15:45:55 +0000 (10:45 -0500)
committerTim Rozet <trozet@redhat.com>
Fri, 16 Feb 2018 15:59:39 +0000 (10:59 -0500)
commit2beef21903d7a36bdac19b3170003043693562dd
tree16915957eccb08d19f1a5442fb6f5528416c72c8
parent2111e5a85f8d0a894e1a7684c2e1a6d897091c9d
Fixes stale undercloud delorean repos

When we build artifacts for release, we try to freeze the disk images
and artifacts we use for deployment.  This includes the delorean repo
which provides OpenStack packages.  This repo however expires after a
couple months and then if any packages were missing in the Undercloud
released artifact, they will attempt to be downloaded during install
and fail.

This patch adds some logic to detect if there is internet connectivity,
and if so then download and update the delorean repo on the undercloud.

JIRA: APEX-565

Change-Id: I58c28437fb5c5b179033c939377fd97aefbf427c
Signed-off-by: Tim Rozet <trozet@redhat.com>
apex/common/utils.py
apex/deploy.py
apex/tests/test_apex_undercloud.py
apex/undercloud/undercloud.py