M17 Azure Well Delivery: Resource not found for some well delivery queries
Using the postoman collection: https://community.opengroup.org/osdu/platform/pre-shipping/-/blob/main/R3-M17/QA_Artifacts_M17/envFilesAndCollections/WellDelivery%20DDMS%20CI-CD%20v3.1.postman_collection.json,
The UC5 well_activity_programs_latest_reference_tree and well_activity_programs_version_reference_tree request are both failing.
curl --location 'https://osdu-ship.msft-osdu-test.org/api/well-delivery/wellActivityPrograms/v1/reference_tree/by_well/wellWD_autotest8483666' \
--header 'data-partition-id: opendes' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer ...' \
--data ''
Response:
{
"message": "{\"innerErrorMessage\":\"[\\\"Resource Not Found. Learn more: https://aka.ms/cosmosdb-tsg-not-found\\\"]\",\"cosmosDiagnostics\":{\"userAgent\":\"azsdk-java-cosmos/4.30.0 Linux/5.15.0-1034-azure JRE/1.8.0_332\",\"activityId\":\"9bfb7750-e866-11ed-9fa8-c9919cb20633\",\"requestLatencyInMs\":331,\"requestStartTimeUTC\":\"2023-05-01T21:24:51.960Z\",\"requestEndTimeUTC\":\"2023-05-01T21:24:52.291Z\",\"responseStatisticsList\":[{\"storeResult\":{\"storePhysicalAddress\":\"rntbd://cdb-ms-prod-westus1-fd59.documents.azure.com:14064/apps/787694ff-190a-4607-aa8d-54f0f1a41975/services/bd955dca-51e0-42d9-abc1-64016ab55210/partitions/fac64386-f1cb-4078-aa6d-8bf3e742d036/replicas/133232889161297995s/\",\"lsn\":10,\"globalCommittedLsn\":10,\"partitionKeyRangeId\":\"0\",\"isValid\":true,\"statusCode\":404,\"subStatusCode\":0,\"isGone\":false,\"isNotFound\":true,\"isInvalidPartition\":false,\"isThroughputControlRequestRateTooLarge\":false,\"requestCharge\":1.0,\"itemLSN\":-1,\"sessionToken\":\"0:-1#10\",\"backendLatencyInMs\":0.218,\"exceptionMessage\":\"[\\\"Resource Not Found. Learn more: https://aka.ms/cosmosdb-tsg-not-found\\\"]\",\"exceptionResponseHeaders\":\"{x-ms-last-state-change-utc=Tue, 18 Apr 2023 22:56:59.285 GMT, x-ms-request-duration-ms=0.218, x-ms-session-token=0:-1#10, lsn=10, x-ms-request-charge=1.00, x-ms-schemaversion=1.15, x-ms-transport-request-id=192, x-ms-number-of-read-regions=0, x-ms-activity-id=9bfb7750-e866-11ed-9fa8-c9919cb20633, x-ms-xp-role=2, x-ms-global-Committed-lsn=10, x-ms-documentdb-partitionkeyrangeid=0, x-ms-cosmos-llsn=10, x-ms-serviceversion= version=2.14.0.0}\",\"transportRequestTimeline\":[{\"eventName\":\"created\",\"startTimeUTC\":\"2023-05-01T21:24:51.961Z\",\"durationInMicroSec\":0},{\"eventName\":\"queued\",\"startTimeUTC\":\"2023-05-01T21:24:51.961Z\",\"durationInMicroSec\":0},{\"eventName\":\"channelAcquisitionStarted\",\"startTimeUTC\":\"2023-05-01T21:24:51.961Z\",\"durationInMicroSec\":290000},{\"eventName\":\"pipelined\",\"startTimeUTC\":\"2023-05-01T21:24:52.251Z\",\"durationInMicroSec\":1000},{\"eventName\":\"transitTime\",\"startTimeUTC\":\"2023-05-01T21:24:52.252Z\",\"durationInMicroSec\":38000},{\"eventName\":\"decodeTime\",\"startTimeUTC\":\"2023-05-01T21:24:52.290Z\",\"durationInMicroSec\":0},{\"eventName\":\"received\",\"startTimeUTC\":\"2023-05-01T21:24:52.290Z\",\"durationInMicroSec\":1000},{\"eventName\":\"completed\",\"startTimeUTC\":\"2023-05-01T21:24:52.291Z\",\"durationInMicroSec\":0}],\"rntbdRequestLengthInBytes\":459,\"rntbdResponseLengthInBytes\":256,\"requestPayloadLengthInBytes\":0,\"responsePayloadLengthInBytes\":256,\"channelTaskQueueSize\":1,\"pendingRequestsCount\":1,\"serviceEndpointStatistics\":{\"availableChannels\":0,\"acquiredChannels\":0,\"executorTaskQueueSize\":0,\"inflightRequests\":1,\"lastSuccessfulRequestTime\":\"2023-05-01T21:24:51.961Z\",\"lastRequestTime\":\"2023-05-01T21:24:51.961Z\",\"createdTime\":\"2023-05-01T21:24:51.961Z\",\"isClosed\":false,\"cerMetrics\":{}}},\"requestResponseTimeUTC\":\"2023-05-01T21:24:52.291Z\",\"requestResourceType\":\"Document\",\"requestOperationType\":\"Read\"}],\"supplementalResponseStatisticsList\":[],\"addressResolutionStatistics\":{},\"regionsContacted\":[\"west us\"],\"retryContext\":{\"statusAndSubStatusCodes\":null,\"retryLatency\":0,\"retryCount\":0},\"metadataDiagnosticsContext\":{\"metadataDiagnosticList\":null},\"serializationDiagnosticsContext\":{\"serializationDiagnosticsList\":null},\"gatewayStatistics\":null,\"systemInformation\":{\"usedMemory\":\"1650732 KB\",\"availableMemory\":\"14790612 KB\",\"systemCpuLoad\":\"(2023-05-01T21:24:27.158Z 3.8%), (2023-05-01T21:24:32.158Z 6.5%), (2023-05-01T21:24:37.158Z 5.6%), (2023-05-01T21:24:42.158Z 3.8%), (2023-05-01T21:24:47.158Z 3.9%), (2023-05-01T21:24:52.158Z 4.2%)\",\"availableProcessors\":4},\"clientCfgs\":{\"id\":1,\"machineId\":\"vmId:13ac5b68-2cac-4e84-8beb-b37e0a5d6396\",\"connectionMode\":\"DIRECT\",\"numberOfClients\":1,\"connCfg\":{\"rntbd\":\"(cto:PT5S, nrto:PT5S, icto:PT0S, ieto:PT1H, mcpe:130, mrpc:30, cer:true)\",\"gw\":\"(cps:1000, nrto:PT1M, icto:PT1M, p:false)\",\"other\":\"(ed: true, cs: false)\"},\"consistencyCfg\":\"(consistency: null, mm: true, prgns: [])\"}}}"
}
curl --location 'https://osdu-ship.msft-osdu-test.org/api/well-delivery/wellActivityPrograms/v1/reference_tree/by_well/wellWD_autotest8483666/1682975893634' \
--header 'data-partition-id: opendes' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyIsImtpZCI6Ii1LSTNROW5OUjdiUm9meG1lWm9YcWJIWkdldyJ9.eyJhdWQiOiJhYjMy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MVEVqVkFBIiwidmVyIjoiMS4wIn0.jTYEPc26tIPQTQhXlpDX8xD62VDezZVn5WDUp3VYPsm4BwCzfppZ0MgXtKwk-0SSKLBHm-QKvpF8WuYvKMDzQ-tACvq8cJHiw705QrESEJNGVhZl5pbHH3t4Y7WhfjUT6SMVngy_nnB21UF5tO82J_SngZ9hdEMr90IZ4crg48NHGq3HQoSgn4YbSVyG_7dlmD3ymor_dshlHT_prCorM4iqxUmU1z6FcyZAiNdAk0fInbSl5SgMAGOgNjhHuiAYjc6jgDt9VQMQxX8iIyby83QEmYVG0GI1J_40VZnCuChBi7vu0Q_Gqsv4T-myy468Ueg5dNsRh2zTUWtr4z2TkQ' \
--data ''
Response:
{
"message": "{\"innerErrorMessage\":\"[\\\"Resource Not Found. Learn more: https://aka.ms/cosmosdb-tsg-not-found\\\"]\",\"cosmosDiagnostics\":{\"userAgent\":\"azsdk-java-cosmos/4.30.0 Linux/5.15.0-1034-azure JRE/1.8.0_332\",\"activityId\":\"8b993695-e868-11ed-9fa8-c9919cb20633\",\"requestLatencyInMs\":40,\"requestStartTimeUTC\":\"2023-05-01T21:38:43.467Z\",\"requestEndTimeUTC\":\"2023-05-01T21:38:43.507Z\",\"responseStatisticsList\":[{\"storeResult\":{\"storePhysicalAddress\":\"rntbd://cdb-ms-prod-westus1-fd59.documents.azure.com:14028/apps/787694ff-190a-4607-aa8d-54f0f1a41975/services/bd955dca-51e0-42d9-abc1-64016ab55210/partitions/fac64386-f1cb-4078-aa6d-8bf3e742d036/replicas/133232889161297997s/\",\"lsn\":10,\"globalCommittedLsn\":0,\"partitionKeyRangeId\":\"0\",\"isValid\":true,\"statusCode\":404,\"subStatusCode\":0,\"isGone\":false,\"isNotFound\":true,\"isInvalidPartition\":false,\"isThroughputControlRequestRateTooLarge\":false,\"requestCharge\":1.0,\"itemLSN\":-1,\"sessionToken\":\"0:-1#10\",\"backendLatencyInMs\":0.239,\"exceptionMessage\":\"[\\\"Resource Not Found. Learn more: https://aka.ms/cosmosdb-tsg-not-found\\\"]\",\"exceptionResponseHeaders\":\"{x-ms-last-state-change-utc=Tue, 18 Apr 2023 07:25:36.131 GMT, x-ms-request-duration-ms=0.239, x-ms-session-token=0:-1#10, lsn=10, x-ms-request-charge=1.00, x-ms-schemaversion=1.15, x-ms-transport-request-id=206, x-ms-number-of-read-regions=0, x-ms-activity-id=8b993695-e868-11ed-9fa8-c9919cb20633, x-ms-xp-role=1, x-ms-global-Committed-lsn=0, x-ms-documentdb-partitionkeyrangeid=0, x-ms-cosmos-llsn=10, x-ms-serviceversion= version=2.14.0.0}\",\"transportRequestTimeline\":[{\"eventName\":\"created\",\"startTimeUTC\":\"2023-05-01T21:38:43.468Z\",\"durationInMicroSec\":0},{\"eventName\":\"queued\",\"startTimeUTC\":\"2023-05-01T21:38:43.468Z\",\"durationInMicroSec\":0},{\"eventName\":\"channelAcquisitionStarted\",\"startTimeUTC\":\"2023-05-01T21:38:43.468Z\",\"durationInMicroSec\":0},{\"eventName\":\"pipelined\",\"startTimeUTC\":\"2023-05-01T21:38:43.468Z\",\"durationInMicroSec\":0},{\"eventName\":\"transitTime\",\"startTimeUTC\":\"2023-05-01T21:38:43.468Z\",\"durationInMicroSec\":38000},{\"eventName\":\"decodeTime\",\"startTimeUTC\":\"2023-05-01T21:38:43.506Z\",\"durationInMicroSec\":0},{\"eventName\":\"received\",\"startTimeUTC\":\"2023-05-01T21:38:43.506Z\",\"durationInMicroSec\":1000},{\"eventName\":\"completed\",\"startTimeUTC\":\"2023-05-01T21:38:43.507Z\",\"durationInMicroSec\":0}],\"rntbdRequestLengthInBytes\":455,\"rntbdResponseLengthInBytes\":256,\"requestPayloadLengthInBytes\":0,\"responsePayloadLengthInBytes\":256,\"channelTaskQueueSize\":1,\"pendingRequestsCount\":1,\"serviceEndpointStatistics\":{\"availableChannels\":1,\"acquiredChannels\":0,\"executorTaskQueueSize\":0,\"inflightRequests\":1,\"lastSuccessfulRequestTime\":\"2023-05-01T21:35:28.893Z\",\"lastRequestTime\":\"2023-05-01T21:35:28.677Z\",\"createdTime\":\"2023-05-01T21:35:28.677Z\",\"isClosed\":false,\"cerMetrics\":{}}},\"requestResponseTimeUTC\":\"2023-05-01T21:38:43.507Z\",\"requestResourceType\":\"Document\",\"requestOperationType\":\"Read\"}],\"supplementalResponseStatisticsList\":[],\"addressResolutionStatistics\":{},\"regionsContacted\":[\"west us\"],\"retryContext\":{\"statusAndSubStatusCodes\":null,\"retryLatency\":0,\"retryCount\":0},\"metadataDiagnosticsContext\":{\"metadataDiagnosticList\":null},\"serializationDiagnosticsContext\":{\"serializationDiagnosticsList\":null},\"gatewayStatistics\":null,\"systemInformation\":{\"usedMemory\":\"2115568 KB\",\"availableMemory\":\"14325776 KB\",\"systemCpuLoad\":\"(2023-05-01T21:38:17.158Z 5.2%), (2023-05-01T21:38:22.158Z 4.1%), (2023-05-01T21:38:27.158Z 4.8%), (2023-05-01T21:38:32.158Z 14.5%), (2023-05-01T21:38:37.158Z 6.9%), (2023-05-01T21:38:42.158Z 3.3%)\",\"availableProcessors\":4},\"clientCfgs\":{\"id\":1,\"machineId\":\"vmId:13ac5b68-2cac-4e84-8beb-b37e0a5d6396\",\"connectionMode\":\"DIRECT\",\"numberOfClients\":1,\"connCfg\":{\"rntbd\":\"(cto:PT5S, nrto:PT5S, icto:PT0S, ieto:PT1H, mcpe:130, mrpc:30, cer:true)\",\"gw\":\"(cps:1000, nrto:PT1M, icto:PT1M, p:false)\",\"other\":\"(ed: true, cs: false)\"},\"consistencyCfg\":\"(consistency: null, mm: true, prgns: [])\"}}}"
}
The previous requests seemed to have passed. Details on the specific steps I performed can be found here: M17-Azure-Well-Delivery-steps-Michael.docx