Change Mtce token endpoint lookup to be 'platform'.
The maintenance token request's response parser is looking for nova compute endpoint as a day one implementation when mtce actually managed nova. That is long since changed but this endpoint lookup remained. In the new containterized environment the nova compute endpoint is not always present and when its not mtce fails to get its token. Since mtce needs the token for communication with sysinv this update changes the endpoint lookup type to 'platform' to match that of sysinv. Change-Id: I389b64d345e47f7d7bc062671da7c7cc51ac398f Story: 2004695 Task: 29213 Signed-off-by: Eric MacDonald <eric.macdonald@windriver.com>
This commit is contained in:
parent
9ececd7623
commit
ff8ef3ea8a
@ -1,3 +1,3 @@
|
||||
SRC_DIR="src"
|
||||
TIS_PATCH_VER=141
|
||||
TIS_PATCH_VER=142
|
||||
BUILD_IS_SLOW=5
|
||||
|
@ -847,7 +847,7 @@ int jsonApi_auth_load ( string & hostname,
|
||||
{
|
||||
tuple_obj = _json_object_array_get_idx (svccat_obj, i);
|
||||
entity = _json_get_key_value_string ( tuple_obj, MTC_JSON_AUTH_TYPE );
|
||||
if ( entity == MTC_JSON_AUTH_COMP )
|
||||
if ( entity == MTC_JSON_AUTH_PLATFORM)
|
||||
{
|
||||
found_type = true ;
|
||||
break ;
|
||||
|
@ -40,7 +40,7 @@ typedef struct
|
||||
#define MTC_JSON_AUTH_ISSUE "issued_at"
|
||||
#define MTC_JSON_AUTH_EXPIRE "expires_at"
|
||||
#define MTC_JSON_AUTH_ID "X-Subject-Token"
|
||||
#define MTC_JSON_AUTH_COMP "compute"
|
||||
#define MTC_JSON_AUTH_PLATFORM "platform"
|
||||
#define MTC_JSON_AUTH_INTERFACE "interface" /** looking for admin */
|
||||
#define MTC_JSON_AUTH_ADMIN "admin"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user