-
Task
-
Resolution: Won't Do
-
Medium
-
None
-
None
SO CatalogDB exposes REST service allowing querying and puting information about cloudSites. Actually, in order to define a cloud region via this API, user needs to provide region data as well as related identityService record.
Json schema allows passing either "identityService" complex object or "identity_service_id" string that corresponds to existing identityService id.
The point of this task is, to allow creating cloud region by passing "identity_service_id" without providing whole information about existing identityService.
Below please compare current results of POST request with only "identity_service_id":
POST /cloudSite/ HTTP/1.1 Host: infra.kbanka-env:30120 Authorization: Basic YnBlbDpwYXNzd29yZDEk Content-Type: application/json{ "id": "testRegionRef", "region_id": "testRegionRef", "aic_version": "2.5", "clli": "clli2", "orchestrator": "multicloud", "identity_service_id": "DEFAULT_KEYSTONE" }
{ "id" : "testRegionRef", "identityService" : null, "uri" : null, "region_id" : "testRegionRef", "aic_version" : "2.5", "clli" : "clli2", "platform" : null, "orchestrator" : "multicloud", "cloudify_id" : null, "identity_service_id" : null, "last_updated_by" : null, "creation_timestamp" : "2020-03-13T06:56:17.000+0000", "update_timestamp" : "2020-03-13T06:56:17.000+0000", "_links" : { "self" : { "href" : "http://infra.kbanka-env:30120/cloudSite/testRegionRef" }, "cloudSite" : { "href" : "http://infra.kbanka-env:30120/cloudSite/testRegionRef" } } }
and correct result, when user provides entire identityService object itself:
POST /cloudSite/ HTTP/1.1 Host: infra.kbanka-env:30120 Authorization: Basic YnBlbDpwYXNzd29yZDEk Content-Type: application/json{ "id": "testRegionFull", "region_id": "testRegionFull", "aic_version": "2.5", "clli": "clli2", "orchestrator": "multicloud", "identityService": { "id": "DEFAULT_KEYSTONE", "identityServerTypeAsString": "KEYSTONE", "hibernateLazyInitializer": {}, "identity_url": "http://1.2.3.4:5000/v2.0", "mso_id": "vnf_user", "mso_pass": "c124921a3a0efbe579782cde8227681e", "project_domain_name": null, "user_domain_name": null, "admin_tenant": "service", "member_role": "admin", "tenant_metadata": true, "identity_server_type": "KEYSTONE", "identity_authentication_type": "USERNAME_PASSWORD" } }
{ "id" : "testRegionFull", "identityService" : { "id" : "DEFAULT_KEYSTONE", "identityServerTypeAsString" : "KEYSTONE", "hibernateLazyInitializer" : { }, "identity_url" : "http://1.2.3.4:5000/v2.0", "mso_id" : "vnf_user", "mso_pass" : "c124921a3a0efbe579782cde8227681e", "project_domain_name" : null, "user_domain_name" : null, "admin_tenant" : "service", "member_role" : "admin", "tenant_metadata" : true, "identity_server_type" : "KEYSTONE", "identity_authentication_type" : "USERNAME_PASSWORD", "last_updated_by" : null, "creation_timestamp" : "2020-03-12T08:41:33.000+0000", "update_timestamp" : null }, "uri" : null, "region_id" : "testRegionFull", "aic_version" : "2.5", "clli" : "clli2", "platform" : null, "orchestrator" : "multicloud", "cloudify_id" : null, "identity_service_id" : "DEFAULT_KEYSTONE", "last_updated_by" : null, "creation_timestamp" : "2020-03-13T06:54:05.000+0000", "update_timestamp" : "2020-03-13T06:54:05.000+0000", "_links" : { "self" : { "href" : "http://infra.kbanka-env:30120/cloudSite/testRegionFull" }, "cloudSite" : { "href" : "http://infra.kbanka-env:30120/cloudSite/testRegionFull" } } }
- relates to
-
INT-1255 Provide partial robot automation of common steps used in k8s vFW demo
- Closed