Fixed HPA matching when no flavor is found 27/41027/3
authorDileep Ranganathan <dileep.ranganathan@intel.com>
Wed, 4 Apr 2018 11:53:43 +0000 (04:53 -0700)
committerDileep Ranganathan <dileep.ranganathan@intel.com>
Fri, 6 Apr 2018 10:15:27 +0000 (03:15 -0700)
commitb54b9a32922943c5aa7e1f28bfedcc04ba475e99
tree153b259bf40c175d5b7c1d9bb85a6297448a8863
parent68b2d33d8e202afca035a6bb9b1c63227c44d7e7
Fixed HPA matching when no flavor is found

When no matching flavor is found the candidate list
should be discarded and the solution should be not_found.
Refactored the logic if there is already flavor_mapping.

Change-Id: I24ea91436a5a5c78698801f435a6deb9e9d447e9
Issue-ID: OPTFRA-213
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
conductor/conductor/data/service.py
conductor/conductor/solver/optimizer/constraints/hpa.py
conductor/conductor/tests/unit/solver/test_hpa.py