HPA Score Objective function support 63/63163/3
authorDileep Ranganathan <dileep.ranganathan@intel.com>
Wed, 22 Aug 2018 16:18:49 +0000 (09:18 -0700)
committerDileep Ranganathan <dileep.ranganathan@intel.com>
Tue, 11 Sep 2018 12:14:39 +0000 (05:14 -0700)
commit6ec674c56f4965606a4f865ac327c30d3ce4a53e
tree99261055841235aeaea4b856b7085d711bcc83dd
parent34aa9a8c6153e9d0ccf757f91783077cc257556e
HPA Score Objective function support

Implemented HPA Score objective function for cross cloud-region
best candidate selection.
Added Unit tests for HPA Score multi objective function
Added Unit tests to check if there is a corresponding HPA policy/constraint

Change-Id: I0787080657c0b7deb3ffcb7560859e3e5c928b77
Issue-ID: OPTFRA-313
Signed-off-by: Dileep Ranganathan <dileep.ranganathan@intel.com>
conductor/conductor/controller/translator.py
conductor/conductor/data/plugins/inventory_provider/hpa_utils.py
conductor/conductor/data/service.py
conductor/conductor/solver/request/functions/hpa_score.py [new file with mode: 0755]
conductor/conductor/solver/request/objective.py
conductor/conductor/solver/request/parser.py
conductor/conductor/tests/unit/controller/hpa_constraints.json [new file with mode: 0644]
conductor/conductor/tests/unit/controller/test_translator.py
conductor/conductor/tests/unit/data/plugins/inventory_provider/test_aai.py
conductor/conductor/tests/unit/data/test_service.py