Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 1 | |
Smokowski, Steven | a10606e | 2019-04-26 21:10:25 -0400 | [diff] [blame] | 2 | create table IF NOT EXISTS ACTIVATE_OPERATIONAL_ENV_SERVICE_MODEL_DISTRIBUTION_STATUS ( |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 3 | REQUEST_ID varchar(255) not null, |
| 4 | OPERATIONAL_ENV_ID varchar(255) not null, |
| 5 | SERVICE_MODEL_VERSION_ID varchar(255) not null, |
| 6 | SERVICE_MOD_VER_FINAL_DISTR_STATUS varchar(255), |
| 7 | RECOVERY_ACTION varchar(255), |
| 8 | RETRY_COUNT_LEFT varchar(255), |
| 9 | WORKLOAD_CONTEXT varchar(255), |
| 10 | CREATE_TIME datetime, |
| 11 | MODIFY_TIME datetime, |
Benjamin, Max (mb388a) | 1414f93 | 2019-03-14 21:06:49 -0400 | [diff] [blame] | 12 | VNF_OPERATIONAL_ENV_ID varchar(255) not null, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 13 | primary key (REQUEST_ID,OPERATIONAL_ENV_ID, SERVICE_MODEL_VERSION_ID) |
| 14 | ); |
| 15 | |
Smokowski, Steven | a10606e | 2019-04-26 21:10:25 -0400 | [diff] [blame] | 16 | create table IF NOT EXISTS OPERATION_STATUS ( |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 17 | SERVICE_ID varchar(255) not null, |
| 18 | OPERATION_ID varchar(255) not null, |
| 19 | SERVICE_NAME varchar(255), |
| 20 | OPERATION_TYPE varchar(255), |
| 21 | USER_ID varchar(255), |
| 22 | RESULT varchar(255), |
| 23 | OPERATION_CONTENT varchar(255), |
| 24 | PROGRESS varchar(255), |
| 25 | REASON varchar(255), |
| 26 | OPERATE_AT datetime, |
| 27 | FINISHED_AT datetime, |
| 28 | primary key (SERVICE_ID,OPERATION_ID) |
| 29 | ); |
| 30 | |
| 31 | |
Chan, Mercy | 1711d55 | 2019-11-07 12:06:57 -0500 | [diff] [blame] | 32 | INSERT INTO PUBLIC.OPERATION_STATUS (SERVICE_ID, OPERATION_ID, OPERATION_TYPE, USER_ID, RESULT, OPERATION_CONTENT, PROGRESS, REASON, OPERATE_AT, FINISHED_AT) |
| 33 | SELECT * FROM (SELECT 'serviceId', 'operationId', 'operationType', 'userId', 'result', 'operationContent', 'progress', 'reason', '2016-11-24 13:19:1' AS OPERATE_AT, '2016-11-24 13:19:10' AS FINISHED_AT) AS tmp |
| 34 | WHERE NOT EXISTS ( |
| 35 | SELECT SERVICE_ID, OPERATION_ID FROM OPERATION_STATUS WHERE |
| 36 | SERVICE_ID = 'serviceId' and OPERATION_ID = 'operationId' |
| 37 | ) LIMIT 1; |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 38 | |
Chan, Mercy | 1711d55 | 2019-11-07 12:06:57 -0500 | [diff] [blame] | 39 | create table IF NOT EXISTS RESOURCE_OPERATION_STATUS ( |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 40 | SERVICE_ID varchar(255) not null, |
| 41 | OPERATION_ID varchar(255) not null, |
| 42 | RESOURCE_TEMPLATE_UUID varchar(255) not null, |
| 43 | OPER_TYPE varchar(255), |
| 44 | RESOURCE_INSTANCE_ID varchar(255), |
| 45 | JOB_ID varchar(255), |
| 46 | STATUS varchar(255), |
| 47 | PROGRESS varchar(255), |
| 48 | ERROR_CODE varchar(255) , |
| 49 | STATUS_DESCRIPOTION varchar(255) , |
| 50 | primary key (SERVICE_ID,OPERATION_ID,RESOURCE_TEMPLATE_UUID) |
| 51 | ); |
| 52 | |
Chan, Mercy | 1711d55 | 2019-11-07 12:06:57 -0500 | [diff] [blame] | 53 | DROP TABLE PUBLIC.INFRA_ACTIVE_REQUESTS IF EXISTS; |
| 54 | |
Smokowski, Steven | a10606e | 2019-04-26 21:10:25 -0400 | [diff] [blame] | 55 | CREATE TABLE IF NOT EXISTS PUBLIC.INFRA_ACTIVE_REQUESTS( |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 56 | REQUEST_ID VARCHAR NOT NULL SELECTIVITY 100, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 57 | REQUEST_STATUS VARCHAR SELECTIVITY 1, |
| 58 | STATUS_MESSAGE longtext SELECTIVITY 36, |
Benjamin, Max (mb388a) | 61affc6 | 2018-11-05 11:00:36 -0500 | [diff] [blame] | 59 | ROLLBACK_STATUS_MESSAGE longtext SELECTIVITY 36, |
Benjamin, Max (mb388a) | be24ada | 2018-11-10 11:58:39 -0500 | [diff] [blame] | 60 | FLOW_STATUS longtext SELECTIVITY 36, |
| 61 | RETRY_STATUS_MESSAGE longtext SELECTIVITY 36, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 62 | PROGRESS VARCHAR SELECTIVITY 1, |
| 63 | START_TIME VARCHAR, |
| 64 | END_TIME VARCHAR, |
| 65 | SOURCE VARCHAR SELECTIVITY 2, |
| 66 | VNF_ID VARCHAR SELECTIVITY 15, |
Yulian Han | cd30f0c | 2020-01-02 00:31:28 +0800 | [diff] [blame^] | 67 | PNF_ID VARCHAR SELECTIVITY 15, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 68 | VNF_NAME VARCHAR SELECTIVITY 11, |
| 69 | VNF_TYPE VARCHAR SELECTIVITY 5, |
| 70 | SERVICE_TYPE VARCHAR SELECTIVITY 1, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 71 | TENANT_ID VARCHAR SELECTIVITY 2, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 72 | VNF_PARAMS VARCHAR SELECTIVITY 1, |
| 73 | VNF_OUTPUTS VARCHAR SELECTIVITY 3, |
| 74 | REQUEST_BODY VARCHAR SELECTIVITY 79, |
| 75 | RESPONSE_BODY VARCHAR SELECTIVITY 7, |
| 76 | LAST_MODIFIED_BY VARCHAR SELECTIVITY 2, |
| 77 | MODIFY_TIME VARCHAR, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 78 | VOLUME_GROUP_ID VARCHAR SELECTIVITY 2, |
| 79 | VOLUME_GROUP_NAME VARCHAR SELECTIVITY 3, |
| 80 | VF_MODULE_ID VARCHAR SELECTIVITY 5, |
| 81 | VF_MODULE_NAME VARCHAR SELECTIVITY 8, |
| 82 | VF_MODULE_MODEL_NAME VARCHAR SELECTIVITY 3, |
Chan, Mercy | db07343 | 2019-09-09 16:41:56 -0400 | [diff] [blame] | 83 | CLOUD_REGION VARCHAR SELECTIVITY 1, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 84 | CALLBACK_URL VARCHAR SELECTIVITY 1, |
| 85 | CORRELATOR VARCHAR SELECTIVITY 1, |
| 86 | NETWORK_ID VARCHAR SELECTIVITY 2, |
| 87 | NETWORK_NAME VARCHAR SELECTIVITY 4, |
| 88 | NETWORK_TYPE VARCHAR SELECTIVITY 1, |
| 89 | REQUEST_SCOPE VARCHAR SELECTIVITY 1, |
| 90 | REQUEST_ACTION VARCHAR SELECTIVITY 1, |
| 91 | SERVICE_INSTANCE_ID VARCHAR SELECTIVITY 34, |
| 92 | SERVICE_INSTANCE_NAME VARCHAR SELECTIVITY 25, |
| 93 | REQUESTOR_ID VARCHAR SELECTIVITY 2, |
| 94 | CONFIGURATION_ID VARCHAR SELECTIVITY 1, |
| 95 | CONFIGURATION_NAME VARCHAR SELECTIVITY 2, |
| 96 | OPERATIONAL_ENV_ID VARCHAR SELECTIVITY 1, |
Benjamin, Max (mb388a) | 61affc6 | 2018-11-05 11:00:36 -0500 | [diff] [blame] | 97 | OPERATIONAL_ENV_NAME VARCHAR SELECTIVITY 1, |
Benjamin, Max (mb388a) | 7feaa94 | 2018-11-10 12:29:48 -0500 | [diff] [blame] | 98 | INSTANCE_GROUP_ID VARCHAR SELECTIVITY 1, |
| 99 | INSTANCE_GROUP_NAME VARCHAR SELECTIVITY 1, |
Plummer, Brittany | a5af334 | 2019-05-31 11:48:34 -0400 | [diff] [blame] | 100 | REQUEST_URL VARCHAR SELECTIVITY 1, |
Plummer, Brittany | b7cde44 | 2019-06-09 10:38:55 -0400 | [diff] [blame] | 101 | ORIGINAL_REQUEST_ID VARCHAR SELECTIVITY 1, |
Plummer, Brittany | b75b28b | 2019-06-26 10:58:22 -0400 | [diff] [blame] | 102 | EXT_SYSTEM_ERROR_SOURCE VARCHAR SELECTIVITY 1, |
| 103 | ROLLBACK_EXT_SYSTEM_ERROR_SOURCE VARCHAR SELECTIVITY 1 |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 104 | ); |
| 105 | |
Chan, Mercy | 1711d55 | 2019-11-07 12:06:57 -0500 | [diff] [blame] | 106 | INSERT INTO PUBLIC.INFRA_ACTIVE_REQUESTS(REQUEST_ID, REQUEST_STATUS, STATUS_MESSAGE, PROGRESS, START_TIME, END_TIME, SOURCE, VNF_ID, VNF_NAME, VNF_TYPE, SERVICE_TYPE, TENANT_ID, VNF_PARAMS, VNF_OUTPUTS, REQUEST_BODY, RESPONSE_BODY, LAST_MODIFIED_BY, MODIFY_TIME, VOLUME_GROUP_ID, VOLUME_GROUP_NAME, VF_MODULE_ID, VF_MODULE_NAME, VF_MODULE_MODEL_NAME, CLOUD_REGION, CALLBACK_URL, CORRELATOR, NETWORK_ID, NETWORK_NAME, NETWORK_TYPE, REQUEST_SCOPE, REQUEST_ACTION, SERVICE_INSTANCE_ID, SERVICE_INSTANCE_NAME, REQUESTOR_ID, CONFIGURATION_ID, CONFIGURATION_NAME, OPERATIONAL_ENV_ID, OPERATIONAL_ENV_NAME, REQUEST_URL) VALUES |
| 107 | ('00032ab7-3fb3-42e5-965d-8ea592502017', 'COMPLETE', 'Vf Module has been deleted successfully.', '100', '2016-12-22 18:59:54', '2016-12-22 19:00:28', 'VID', 'b92f60c8-8de3-46c1-8dc1-e4390ac2b005', null, null, null, '6accefef3cb442ff9e644d589fb04107', null, null, '{"modelInfo":{"modelType":"vfModule","modelName":"vSAMP10aDEV::base::module-0"},"requestInfo":{"source":"VID"},"cloudConfiguration":{"tenantId":"6accefef3cb442ff9e644d589fb04107","lcpCloudRegionId":"mtn6"}}', null, 'BPMN', '2016-12-22 19:00:28', null, null, 'c7d527b1-7a91-49fd-b97d-1c8c0f4a7992', null, 'vSAMP10aDEV::base::module-0', 'mtn6', null, null, null, null, null, 'vfModule', 'deleteInstance', 'e3b5744d-2ad1-4cdd-8390-c999a38829bc', null, null, null, null, null, null, 'http://localhost:8080/onap/so/infra/serviceInstantiation/v7/serviceInstances'), |
| 108 | ('00093944-bf16-4373-ab9a-3adfe730ff2d', 'FAILED', 'Error: Locked instance - This service (MSODEV_1707_SI_vSAMP10a_011-4) already has a request being worked with a status of IN_PROGRESS (RequestId - 278e83b1-4f9f-450e-9e7d-3700a6ed22f4). The existing request must finish or be cleaned up before proceeding.', '100', '2017-07-11 18:33:26', '2017-07-11 18:33:26', 'VID', null, null, null, null, '19123c2924c648eb8e42a3c1f14b7682', null, null, '{"modelInfo":{"modelInvariantId":"9647dfc4-2083-11e7-93ae-92361f002671","modelType":"service","modelName":"MSOTADevInfra_vSAMP10a_Service","modelVersion":"1.0","modelVersionId":"5df8b6de-2083-11e7-93ae-92361f002671"},"requestInfo":{"source":"VID","instanceName":"MSODEV_1707_SI_vSAMP10a_011-4","suppressRollback":false,"requestorId":"xxxxxx"},"subscriberInfo":{"globalSubscriberId":"MSO_1610_dev","subscriberName":"MSO_1610_dev"},"cloudConfiguration":{"tenantId":"19123c2924c648eb8e42a3c1f14b7682","lcpCloudRegionId":"mtn6"},"requestParameters":{"subscriptionServiceType":"MSO-dev-service-type","userParams":[{"name":"someUserParam","value":"someValue"}],"aLaCarte":true,"autoBuildVfModules":false,"cascadeDelete":false,"usePreload":true,"alaCarteSet":true,"alaCarte":true}}', null, 'APIH', null, null, null, null, null, null, 'mtn6', null, null, null, null, null, 'service', 'createInstance', null, 'MSODEV_1707_SI_vSAMP10a_011-4', 'xxxxxx', null, null, null, null, 'http://localhost:8080/onap/so/infra/serviceInstantiation/v7/serviceInstances'), |
| 109 | ('001619d2-a297-4a4b-a9f5-e2823c88458f', 'COMPLETE', 'COMPLETED', '100', '2016-07-01 14:11:42', '2017-05-02 16:03:34', 'PORTAL', null, 'test-vscp', 'elena_test21', null, '381b9ff6c75e4625b7a4182f90fc68d3', null, null, STRINGDECODE('<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<vnf-request xmlns=\"http://org.onap.so/mso/infra/vnf-request/v1\">\n <request-info>\n <request-id>001619d2-a297-4a4b-a9f5-e2823c88458f</request-id>\n <action>CREATE_VF_MODULE</action>\n <source>PORTAL</source>\n </request-info>\n <vnf-inputs>\n <vnf-name>test-vscp</vnf-name>\n <vf-module-name>moduleName</vf-module-name>\n <vnf-type>elena_test21</vnf-type>\n <vf-module-model-name>moduleModelName</vf-module-model-name>\n <asdc-service-model-version>1.0</asdc-service-model-version>\n <service-id>a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb</service-id>\n <aic-cloud-region>mtn9</aic-cloud-region>\n <tenant-id>381b9ff6c75e4625b7a4182f90fc68d3</tenant-id>\n <persona-model-id></persona-model-id>\n <persona-model-version></persona-model-version>\n <is-base-vf-module>false</is-base-vf-module>\n </vnf-inputs>\n <vnf-params xmlns:tns=\"http://org.onap.so/mso/infra/vnf-request/v1\"/>\n</vnf-request>\n'), 'NONE', 'RDBTEST', '2016-07-01 14:11:42', null, null, null, 'MODULENAME1', 'moduleModelName', 'mtn9', null, null, null, null, null, 'vfModule', 'createInstance', null, null, null, null, null, null, null, 'http://localhost:8080/onap/so/infra/serviceInstantiation/v7/serviceInstances'); |
| 110 | |
| 111 | |
| 112 | INSERT INTO PUBLIC.INFRA_ACTIVE_REQUESTS(REQUEST_ID, REQUEST_STATUS, STATUS_MESSAGE, PROGRESS, START_TIME, END_TIME, SOURCE, VNF_ID, VNF_NAME, VNF_TYPE, SERVICE_TYPE, TENANT_ID, VNF_PARAMS, VNF_OUTPUTS, REQUEST_BODY, RESPONSE_BODY, LAST_MODIFIED_BY, MODIFY_TIME, VOLUME_GROUP_ID, VOLUME_GROUP_NAME, VF_MODULE_ID, VF_MODULE_NAME, VF_MODULE_MODEL_NAME, CLOUD_REGION, CALLBACK_URL, CORRELATOR, NETWORK_ID, NETWORK_NAME, NETWORK_TYPE, REQUEST_SCOPE, REQUEST_ACTION, SERVICE_INSTANCE_ID, SERVICE_INSTANCE_NAME, REQUESTOR_ID, CONFIGURATION_ID, CONFIGURATION_NAME, OPERATIONAL_ENV_ID, OPERATIONAL_ENV_NAME, REQUEST_URL) VALUES |
| 113 | ('00164b9e-784d-48a8-8973-bbad6ef818ed', 'COMPLETE', 'Service Instance was created successfully.', '100', '2017-09-28 12:45:51', '2017-09-28 12:45:53', 'VID', null, null, null, null, '19123c2924c648eb8e42a3c1f14b7682', null, null, '{"modelInfo":{"modelCustomizationName":null,"modelInvariantId":"52b49b5d-3086-4ffd-b5e6-1b1e5e7e062f","modelType":"service","modelNameVersionId":null,"modelName":"MSO Test Network","modelVersion":"1.0","modelCustomizationUuid":null,"modelVersionId":"aed5a5b7-20d3-44f7-90a3-ddbd16f14d1e","modelCustomizationId":null,"modelUuid":null,"modelInvariantUuid":null,"modelInstanceName":null},"requestInfo":{"billingAccountNumber":null,"callbackUrl":null,"correlator":null,"orderNumber":null,"productFamilyId":null,"orderVersion":null,"source":"VID","instanceName":"DEV-MTN6-3100-0927-1","suppressRollback":false,"requestorId":"xxxxxx"},"relatedInstanceList":null,"subscriberInfo":{"globalSubscriberId":"MSO_1610_dev","subscriberName":"MSO_1610_dev"},"cloudConfiguration":{"aicNodeClli":null,"tenantId":"19123c2924c648eb8e42a3c1f14b7682","lcpCloudRegionId":"mtn6"},"requestParameters":{"subscriptionServiceType":"MSO-dev-service-type","userParams":[{"name":"someUserParam","value":"someValue"}],"aLaCarte":true,"autoBuildVfModules":false,"cascadeDelete":false,"usePreload":true,"alaCarte":true},"project":null,"owningEntity":null,"platform":null,"lineOfBusiness":null}', null, 'CreateGenericALaCarteServiceInstance', '2017-09-28 12:45:52', null, null, null, null, null, 'mtn6', null, null, null, null, null, 'service', 'createInstance', 'b2f59173-b7e5-4e0f-8440-232fd601b865', 'DEV-MTN6-3100-0927-1', 'md5621', null, null, null, null, 'http://localhost:8080/onap/so/infra/serviceInstantiation/v7/serviceInstances'), |
| 114 | ('00173cc9-5ce2-4673-a810-f87fefb2829e', 'FAILED', 'Error parsing request. No valid instanceName is specified', '100', '2017-04-14 21:08:46', '2017-04-14 21:08:46', 'VID', null, null, null, null, 'a259ae7b7c3f493cb3d91f95a7c18149', null, null, '{"modelInfo":{"modelInvariantId":"ff6163d4-7214-459e-9f76-507b4eb00f51","modelType":"service","modelName":"ConstraintsSrvcVID","modelVersion":"2.0","modelVersionId":"722d256c-a374-4fba-a14f-a59b76bb7656"},"requestInfo":{"productFamilyId":"LRSI-OSPF","source":"VID","requestorId":"xxxxxx"},"subscriberInfo":{"globalSubscriberId":"a9a77d5a-123e-4ca2-9eb9-0b015d2ee0fb"},"cloudConfiguration":{"tenantId":"a259ae7b7c3f493cb3d91f95a7c18149","lcpCloudRegionId":"mtn16"},"requestParameters":{"subscriptionServiceType":"Mobility","userParams":[{"name":"neutronport6_name","value":"8"},{"name":"neutronnet5_network_name","value":"8"},{"name":"contrailv2vlansubinterface3_name","value":"false"}]}}', null, 'APIH', null, null, null, null, null, null, 'mtn16', null, null, null, null, null, 'service', 'createInstance', null, null, null, null, null, null, null, 'http://localhost:8080/onap/so/infra/serviceInstantiation/v7/serviceInstances'), |
| 115 | ('0017f68c-eb2d-45bb-b7c7-ec31b37dc349', 'UNLOCKED', null, '20', '2017-09-26 16:09:29', null, 'VID', null, null, null, null, null, null, null, '{"modelInfo":{"modelCustomizationName":null,"modelInvariantId":"1587cf0e-f12f-478d-8530-5c55ac578c39","modelType":"configuration","modelNameVersionId":null,"modelName":null,"modelVersion":null,"modelCustomizationUuid":null,"modelVersionId":"36a3a8ea-49a6-4ac8-b06c-89a545444455","modelCustomizationId":"68dc9a92-214c-11e7-93ae-92361f002671","modelUuid":null,"modelInvariantUuid":null,"modelInstanceName":null},"requestInfo":{"billingAccountNumber":null,"callbackUrl":null,"correlator":null,"orderNumber":null,"productFamilyId":null,"orderVersion":null,"source":"VID","instanceName":null,"suppressRollback":false,"requestorId":"xxxxxx"},"relatedInstanceList":[{"relatedInstance":{"instanceName":null,"instanceId":"9e15a443-af65-4f05-9000-47ae495e937d","modelInfo":{"modelCustomizationName":null,"modelInvariantId":"de19ae10-9a25-11e7-abc4-cec278b6b50a","modelType":"service","modelNameVersionId":null,"modelName":"MSOTADevInfra_Configuration_Service","modelVersion":"1.0","modelCustomizationUuid":null,"modelVersionId":"ee938612-9a25-11e7-abc4-cec278b6b50a","modelCustomizationId":null,"modelUuid":null,"modelInvariantUuid":null,"modelInstanceName":null},"instanceDirection":null}}],"subscriberInfo":null,"cloudConfiguration":{"aicNodeClli":null,"tenantId":null,"lcpCloudRegionId":"mtn6"},"requestParameters":{"subscriptionServiceType":null,"userParams":[],"aLaCarte":false,"autoBuildVfModules":false,"cascadeDelete":false,"usePreload":true,"alaCarte":false},"project":null,"owningEntity":null,"platform":null,"lineOfBusiness":null}', null, 'APIH', '2017-09-26 16:09:29', null, null, null, null, null, 'mtn6', null, null, null, null, null, 'configuration', 'activateInstance', '9e15a443-af65-4f05-9000-47ae495e937d', null, 'xxxxxx', '26ef7f15-57bb-48df-8170-e59edc26234c', null, null, null, 'http://localhost:8080/onap/so/infra/serviceInstantiation/v7/serviceInstances'); |
| 116 | |
| 117 | INSERT INTO PUBLIC.INFRA_ACTIVE_REQUESTS(REQUEST_ID, REQUEST_STATUS, START_TIME, END_TIME, SERVICE_INSTANCE_ID, SERVICE_INSTANCE_NAME ) VALUES |
| 118 | ('a5294d37-21db-4e3a-ae04-57412adcb4ac', 'COMPLETE', '2019-01-01 12:45:00', '2019-01-01 12:50:00', 'f7712652-b516-4925-a243-64550d26fd84', 'ShouldReturnInSearchQuery_1'), |
| 119 | ('9383dc81-7a6c-4673-8082-650d50a82a1a', 'IN_PROGRESS', '2019-01-01 12:55:00', null, 'f7712652-b516-4925-a243-64550d26fd84', 'ShouldReturnInSearchQuery_2'), |
| 120 | ('a1abeab2-f8ef-43ab-b76c-9c3c2cb9980f', 'FAILED', '2019-01-01 13:00:00', '2019-01-01 14:00:00', 'f7712652-b516-4925-a243-64550d26fd84', 'ShouldReturnInSearchQuery_3'), |
| 121 | ('81b8e152-ee89-49f4-b82b-08b0dcae27cd', 'COMPLETE', '2019-01-01 14:10:00', '2019-01-01 15:00:00', 'f7712652-b516-4925-a243-64550d26fd84', 'SHOULD_NOT_RETURN_1'), |
| 122 | ('0c28cad2-ff79-4dfa-a04a-9e44996fd7f7', 'IN_PROGRESS', '2019-01-01 13:30:00', '2019-01-01 15:00:00', 'f7712652-b516-4925-a243-64550d26fd84', 'SHOULD_NOT_RETURN_2'), |
| 123 | ('d0d995a7-549b-4e7e-9101-2bab17ec24ea', 'IN_PROGRESS', '2019-01-01 11:15:00', null, 'f7712652-b516-4925-a243-64550d26fd84', 'SHOULD_NOT_RETURN_3'); |
| 124 | |
| 125 | |
| 126 | DROP TABLE PUBLIC.ARCHIVED_INFRA_REQUESTS IF EXISTS; |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 127 | |
| 128 | CREATE CACHED TABLE PUBLIC.ARCHIVED_INFRA_REQUESTS( |
| 129 | REQUEST_ID VARCHAR NOT NULL SELECTIVITY 100, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 130 | REQUEST_STATUS VARCHAR SELECTIVITY 1, |
| 131 | STATUS_MESSAGE longtext SELECTIVITY 36, |
Benjamin, Max (mb388a) | 61affc6 | 2018-11-05 11:00:36 -0500 | [diff] [blame] | 132 | ROLLBACK_STATUS_MESSAGE longtext SELECTIVITY 36, |
Benjamin, Max (mb388a) | be24ada | 2018-11-10 11:58:39 -0500 | [diff] [blame] | 133 | FLOW_STATUS longtext SELECTIVITY 36, |
| 134 | RETRY_STATUS_MESSAGE longtext SELECTIVITY 36, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 135 | PROGRESS VARCHAR SELECTIVITY 1, |
| 136 | START_TIME VARCHAR, |
| 137 | END_TIME VARCHAR, |
| 138 | SOURCE VARCHAR SELECTIVITY 2, |
| 139 | VNF_ID VARCHAR SELECTIVITY 15, |
| 140 | VNF_NAME VARCHAR SELECTIVITY 11, |
| 141 | VNF_TYPE VARCHAR SELECTIVITY 5, |
| 142 | SERVICE_TYPE VARCHAR SELECTIVITY 1, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 143 | TENANT_ID VARCHAR SELECTIVITY 2, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 144 | VNF_PARAMS VARCHAR SELECTIVITY 1, |
| 145 | VNF_OUTPUTS VARCHAR SELECTIVITY 3, |
| 146 | REQUEST_BODY VARCHAR SELECTIVITY 79, |
| 147 | RESPONSE_BODY VARCHAR SELECTIVITY 7, |
| 148 | LAST_MODIFIED_BY VARCHAR SELECTIVITY 2, |
| 149 | MODIFY_TIME VARCHAR, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 150 | VOLUME_GROUP_ID VARCHAR SELECTIVITY 2, |
| 151 | VOLUME_GROUP_NAME VARCHAR SELECTIVITY 3, |
| 152 | VF_MODULE_ID VARCHAR SELECTIVITY 5, |
| 153 | VF_MODULE_NAME VARCHAR SELECTIVITY 8, |
| 154 | VF_MODULE_MODEL_NAME VARCHAR SELECTIVITY 3, |
Chan, Mercy | db07343 | 2019-09-09 16:41:56 -0400 | [diff] [blame] | 155 | CLOUD_REGION VARCHAR SELECTIVITY 1, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 156 | CALLBACK_URL VARCHAR SELECTIVITY 1, |
| 157 | CORRELATOR VARCHAR SELECTIVITY 1, |
| 158 | NETWORK_ID VARCHAR SELECTIVITY 2, |
| 159 | NETWORK_NAME VARCHAR SELECTIVITY 4, |
| 160 | NETWORK_TYPE VARCHAR SELECTIVITY 1, |
| 161 | REQUEST_SCOPE VARCHAR SELECTIVITY 1, |
| 162 | REQUEST_ACTION VARCHAR SELECTIVITY 1, |
| 163 | SERVICE_INSTANCE_ID VARCHAR SELECTIVITY 34, |
| 164 | SERVICE_INSTANCE_NAME VARCHAR SELECTIVITY 25, |
| 165 | REQUESTOR_ID VARCHAR SELECTIVITY 2, |
| 166 | CONFIGURATION_ID VARCHAR SELECTIVITY 1, |
| 167 | CONFIGURATION_NAME VARCHAR SELECTIVITY 2, |
| 168 | OPERATIONAL_ENV_ID VARCHAR SELECTIVITY 1, |
Benjamin, Max (mb388a) | 61affc6 | 2018-11-05 11:00:36 -0500 | [diff] [blame] | 169 | OPERATIONAL_ENV_NAME VARCHAR SELECTIVITY 1, |
Benjamin, Max (mb388a) | 7feaa94 | 2018-11-10 12:29:48 -0500 | [diff] [blame] | 170 | INSTANCE_GROUP_ID VARCHAR SELECTIVITY 1, |
| 171 | INSTANCE_GROUP_NAME VARCHAR SELECTIVITY 1, |
Benjamin, Max (mb388a) | 61affc6 | 2018-11-05 11:00:36 -0500 | [diff] [blame] | 172 | REQUEST_URL VARCHAR SELECTIVITY 1 |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 173 | ); |
| 174 | |
Smokowski, Steven | a10606e | 2019-04-26 21:10:25 -0400 | [diff] [blame] | 175 | CREATE TABLE IF NOT EXISTS cloud_api_requests( |
| 176 | `ID` INT(13) NOT NULL AUTO_INCREMENT, |
| 177 | `REQUEST_BODY` LONGTEXT NOT NULL, |
| 178 | `CLOUD_IDENTIFIER` VARCHAR(200) NULL, |
| 179 | `SO_REQUEST_ID` VARCHAR(45) NOT NULL, |
| 180 | `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, |
| 181 | PRIMARY KEY (`ID`), |
| 182 | CONSTRAINT fk_cloud_api_req_infra_requests |
| 183 | FOREIGN KEY (SO_REQUEST_ID) |
| 184 | REFERENCES infra_active_requests (REQUEST_ID)); |
| 185 | |
Chan, Mercy | 1711d55 | 2019-11-07 12:06:57 -0500 | [diff] [blame] | 186 | |
| 187 | DROP TABLE PUBLIC.SITE_STATUS IF EXISTS; |
| 188 | |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 189 | CREATE CACHED TABLE PUBLIC.SITE_STATUS( |
| 190 | SITE_NAME VARCHAR NOT NULL, |
| 191 | STATUS VARCHAR, |
| 192 | CREATION_TIMESTAMP VARCHAR |
| 193 | ); |
| 194 | |
| 195 | INSERT INTO PUBLIC.SITE_STATUS(SITE_NAME, STATUS, CREATION_TIMESTAMP) VALUES |
| 196 | ('testSite', '0', '2017-11-30 15:48:09'), |
| 197 | ('test name', null, null), |
| 198 | ('test name2', '1', null), |
| 199 | ('test name3', '1', null), |
| 200 | ('test name4', '1', '2017-11-30 15:48:09'), |
| 201 | ('test name update', '0', null); |
| 202 | |
Chan, Mercy | 1711d55 | 2019-11-07 12:06:57 -0500 | [diff] [blame] | 203 | DROP TABLE PUBLIC.WATCHDOG_DISTRIBUTIONID_STATUS IF EXISTS; |
| 204 | |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 205 | CREATE CACHED TABLE PUBLIC.WATCHDOG_DISTRIBUTIONID_STATUS( |
| 206 | DISTRIBUTION_ID VARCHAR NOT NULL, |
| 207 | DISTRIBUTION_ID_STATUS VARCHAR, |
Benjamin, Max (mb388a) | 20e1b65 | 2019-02-24 10:42:15 -0500 | [diff] [blame] | 208 | LOCK_VERSION int, |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 209 | CREATE_TIME VARCHAR, |
| 210 | MODIFY_TIME VARCHAR |
| 211 | ); |
| 212 | |
| 213 | |
Benjamin, Max (mb388a) | 20e1b65 | 2019-02-24 10:42:15 -0500 | [diff] [blame] | 214 | INSERT INTO PUBLIC.WATCHDOG_DISTRIBUTIONID_STATUS(DISTRIBUTION_ID, DISTRIBUTION_ID_STATUS, LOCK_VERSION, CREATE_TIME, MODIFY_TIME) VALUES |
| 215 | ('1533c4bd-a3e3-493f-a16d-28c20614415e', '', 0, '2017-11-30 15:48:09', '2017-11-30 15:48:09'), |
| 216 | ('55429711-809b-4a3b-9ee5-5120d46d9de0', '', 0, '2017-11-30 16:35:36', '2017-11-30 16:35:36'), |
| 217 | ('67f0b2d1-9013-4b2b-9914-bbe2288284fb', '', 0, '2017-11-30 15:54:39', '2017-11-30 15:54:39'); |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 218 | |
Chan, Mercy | 1711d55 | 2019-11-07 12:06:57 -0500 | [diff] [blame] | 219 | DROP TABLE PUBLIC.WATCHDOG_PER_COMPONENT_DISTRIBUTION_STATUS IF EXISTS; |
| 220 | |
| 221 | |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 222 | CREATE CACHED TABLE PUBLIC.WATCHDOG_PER_COMPONENT_DISTRIBUTION_STATUS( |
| 223 | DISTRIBUTION_ID VARCHAR NOT NULL, |
| 224 | COMPONENT_NAME VARCHAR NOT NULL, |
| 225 | COMPONENT_DISTRIBUTION_STATUS VARCHAR, |
| 226 | CREATE_TIME VARCHAR, |
| 227 | MODIFY_TIME VARCHAR |
| 228 | ); |
| 229 | |
| 230 | |
| 231 | INSERT INTO PUBLIC.WATCHDOG_PER_COMPONENT_DISTRIBUTION_STATUS(DISTRIBUTION_ID, COMPONENT_NAME, COMPONENT_DISTRIBUTION_STATUS, CREATE_TIME, MODIFY_TIME) VALUES |
| 232 | ('1533c4bd-a3e3-493f-a16d-28c20614415e', 'MSO', 'COMPONENT_DONE_OK', '2017-11-30 15:48:09', '2017-11-30 15:48:09'), |
| 233 | ('55429711-809b-4a3b-9ee5-5120d46d9de0', 'MSO', 'COMPONENT_DONE_ERROR', '2017-11-30 16:35:36', '2017-11-30 16:35:36'), |
| 234 | ('67f0b2d1-9013-4b2b-9914-bbe2288284fb', 'MSO', 'COMPONENT_DONE_OK', '2017-11-30 15:54:39', '2017-11-30 15:54:39'); |
| 235 | |
Chan, Mercy | 1711d55 | 2019-11-07 12:06:57 -0500 | [diff] [blame] | 236 | DROP TABLE PUBLIC.WATCHDOG_SERVICE_MOD_VER_ID_LOOKUP IF EXISTS; |
| 237 | |
Benjamin, Max (mb388a) | 5a6a6de | 2018-07-30 15:56:09 -0400 | [diff] [blame] | 238 | CREATE CACHED TABLE PUBLIC.WATCHDOG_SERVICE_MOD_VER_ID_LOOKUP( |
| 239 | DISTRIBUTION_ID VARCHAR NOT NULL, |
| 240 | SERVICE_MODEL_VERSION_ID VARCHAR NOT NULL, |
| 241 | CREATE_TIME VARCHAR, |
| 242 | MODIFY_TIME VARCHAR |
| 243 | ); |
| 244 | |
| 245 | |
| 246 | INSERT INTO PUBLIC.WATCHDOG_SERVICE_MOD_VER_ID_LOOKUP(DISTRIBUTION_ID, SERVICE_MODEL_VERSION_ID, CREATE_TIME, MODIFY_TIME) VALUES |
| 247 | ('1533c4bd-a3e3-493f-a16d-28c20614415e', '7e813ab5-88d3-4fcb-86c0-498c5d7eef9a', '2017-11-30 15:48:08', '2017-11-30 15:48:08'), |
| 248 | ('55429711-809b-4a3b-9ee5-5120d46d9de0', 'cc031e75-4442-4d1a-b774-8a2b434e0a50', '2017-11-30 16:35:36', '2017-11-30 16:35:36'), |
| 249 | ('67f0b2d1-9013-4b2b-9914-bbe2288284fb', 'eade1e9d-c1ec-4ef3-bc31-60570fba1573', '2017-11-30 15:54:39', '2017-11-30 15:54:39'); |
| 250 | |
| 251 | ALTER TABLE PUBLIC.INFRA_ACTIVE_REQUESTS ADD CONSTRAINT PUBLIC.CONSTRAINT_E PRIMARY KEY(REQUEST_ID); |
| 252 | ALTER TABLE PUBLIC.SITE_STATUS ADD CONSTRAINT PUBLIC.CONSTRAINT_C PRIMARY KEY(SITE_NAME); |
| 253 | ALTER TABLE PUBLIC.WATCHDOG_DISTRIBUTIONID_STATUS ADD CONSTRAINT PUBLIC.CONSTRAINT_7 PRIMARY KEY(DISTRIBUTION_ID); |
| 254 | ALTER TABLE PUBLIC.WATCHDOG_PER_COMPONENT_DISTRIBUTION_STATUS ADD CONSTRAINT PUBLIC.CONSTRAINT_D PRIMARY KEY(DISTRIBUTION_ID, COMPONENT_NAME); |
| 255 | ALTER TABLE PUBLIC.WATCHDOG_SERVICE_MOD_VER_ID_LOOKUP ADD CONSTRAINT PUBLIC.CONSTRAINT_6 PRIMARY KEY(DISTRIBUTION_ID, SERVICE_MODEL_VERSION_ID); |
Benjamin, Max (mb388a) | 69455a2 | 2018-09-04 11:21:02 -0400 | [diff] [blame] | 256 | ALTER TABLE PUBLIC.WATCHDOG_PER_COMPONENT_DISTRIBUTION_STATUS ADD CONSTRAINT PUBLIC.CONSTRAINT_DE FOREIGN KEY(DISTRIBUTION_ID) REFERENCES PUBLIC.WATCHDOG_DISTRIBUTIONID_STATUS(DISTRIBUTION_ID) NOCHECK; |