commit 8a20895fab85bfa57244545a3ebd65a939ff841e
Author: Robert Church <email address hidden>
Date: Mon May 20 23:17:17 2019 -0400
Check patching api prior to uploading managed app
The patching operation check is happening too late when uploading a
platform managed application. If the patching API is not responding, the
managed application will be created in the database and end up stuck in
the uploading state as the upload will not proceed.
Move the check to the proper location to avoid prematurely creating the
application if it can't be loaded until patch dependencies are verified.
Also, prior to spawning the greenthread for application apply, save the
state to 'applying'. This will prevent multiple audit cycles from
starting greenthreads for the same action.
Change-Id: Iada51635a6965acb404be05cfd4d9ef167aebe9f
Closes-Bug: #1829791
Signed-off-by: Robert Church <email address hidden>
Reviewed: https:/ /review. opendev. org/660248 /git.openstack. org/cgit/ starlingx/ config/ commit/ ?id=8a20895fab8 5bfa57244545a3e bd65a939ff841e
Committed: https:/
Submitter: Zuul
Branch: master
commit 8a20895fab85bfa 57244545a3ebd65 a939ff841e
Author: Robert Church <email address hidden>
Date: Mon May 20 23:17:17 2019 -0400
Check patching api prior to uploading managed app
The patching operation check is happening too late when uploading a
platform managed application. If the patching API is not responding, the
managed application will be created in the database and end up stuck in
the uploading state as the upload will not proceed.
Move the check to the proper location to avoid prematurely creating the
application if it can't be loaded until patch dependencies are verified.
Also, prior to spawning the greenthread for application apply, save the
state to 'applying'. This will prevent multiple audit cycles from
starting greenthreads for the same action.
Change-Id: Iada51635a6965a cb404be05cfd4d9 ef167aebe9f
Closes-Bug: #1829791
Signed-off-by: Robert Church <email address hidden>