nfv/nfv
Bart Wensley 0a170a5f11 Allow VIM to start before OpenStack pods
In the pre-kubernetes world, the VIM was always guaranteed
to start after the OpenStack services were up and running
(e.g. rabbitmq, nova, cinder). This ordering was enforced
by Service Management. The initialization code in the VIM
is based on this assumption, so the VIM simply exits when
one of the required OpenStack services is not present.

In kubernetes deployments, the OpenStack services are all
running in pods, which do not come up until after the VIM
(which is a baremetal service) has already intialized.
This happens (for example) when an AIO-SX host is
rebooted (e.g. after being unlocked). In this case, the
VIM will repeatedly exit until the OpenStack services it
needs come up. This is undesirable because the VIM is
a key component and the lack of a VIM prevents other
system operations from being done (e.g. host lock).

The solution is to allow the VIM to come up before any
of the OpenStack pods are running. The specific issue
was with the rabbitmq pod, which was preventing the
VIM's compute plugin from being initialized. The
solution is to have the VIM query rabbitmq for the
exchange it needs, prior to attempting to initialize
the compute plugin. The VIM will continue to do this
until the rabbitmq pod is available and allow other
VIM components to continue to run.

Change-Id: Iaf2403d361da6f32c7bccc3d27726562887a7524
Story: 2003910
Task: 28556
Signed-off-by: Bart Wensley <barton.wensley@windriver.com>
2018-12-17 12:24:36 -06:00
..
centos Merge "replace hardcoded system paths by variables in stx config files" 2018-11-06 19:42:49 +00:00
nfv-client Change compute node to worker node personality 2018-12-14 14:15:16 -05:00
nfv-common Cleanup pylint unnecessary-pass warnings 2018-12-03 15:30:43 -06:00
nfv-debug-tools/histogram_analysis Add bugbear to flake8 and cleanup some errors 2018-09-13 14:12:48 -05:00
nfv-docs Clean up imports based on flake8 2018-09-20 16:43:28 -05:00
nfv-plugins Allow VIM to start before OpenStack pods 2018-12-17 12:24:36 -06:00
nfv-tests Change compute node to worker node personality 2018-12-14 14:15:16 -05:00
nfv-tools Clean up imports based on flake8 2018-09-20 16:43:28 -05:00
nfv-vim Allow VIM to start before OpenStack pods 2018-12-17 12:24:36 -06:00
.coveragerc Convert NFV unit tests from nose to stestr 2018-09-18 12:56:44 -05:00
.gitignore Add bugbear to flake8 and cleanup some errors 2018-09-13 14:12:48 -05:00
.stestr.conf Convert NFV unit tests from nose to stestr 2018-09-18 12:56:44 -05:00
PKG-INFO StarlingX open source release updates 2018-05-31 07:36:51 -07:00
pylint.rc Fix bad-indentation in the nfv code 2018-12-04 09:31:40 -06:00
tox.ini Replace iter methods with python3 compatable calls 2018-11-27 14:35:20 -06:00