Dear Experts,
I'm developing a new CAPM based Project in SAP Cloud Platform, Cloud Foundry and need to access the existing HDI container. Following the below links and it was working fine.
https://developers.sap.com/india/tutorials/xsa-cross-container-access.html
https://answers.sap.com/questions/12706895/how-to-access-hdbcds-mta-project-in-new-business-a.html
However, suddenly the new projects created today is giving the below error during the BUILD. The existing projects with the cross HDI container & synonyms are working fine and BUILD is also fine.
7:33:35 PM (HDB) Error: service ~{hdi-container-service} not found; the service definition does not exist.
7:33:10 PM (Executor) The "task for hdb build" process started.
7:33:10 PM (Executor) Started the "task for hdb build" provision.
7:33:19 PM (Provision) Service provisioning for module: "/zmta_test-hdb"
7:33:19 PM (Provision) Service instance 'zmtatest1-hdizmtatest-hdb-S0008251Do25i9bh/Ve05qRH' for resource 'zmtatest1-hdizmtatest-hdb-S0008251Do25i9bh/Ve05qRH' already exists, no operation will be performed.
7:33:19 PM (Provision) No service instance will be created for the 'hdi_exhdb_bms_shared' resource of the 'org.cloudfoundry.existing-service' type.
7:33:28 PM (Executor) Starting process: "cd /projects/zmta_test1/zmta_test-hdb; export DEVX_MTA_RESOLVED_PLACEHOLDERS="{\"services\":[{\"platformName\":\"zmtatest1-hdizmtatest-hdb-S0008251Do25i9bh/Ve05qRH\",\"resourceName\":\"hdi_zmta_test-hdb\",\"resourceProperties\":{\"TARGET_CONTAINER\":\"~{hdi-container-service}\"},\"resourceType\":\"com.sap.xs.hdi-container\",\"serviceKeyName\":\"SharedDevKey\",\"serviceTarget\":{\"endpoint\":\"https://api.cf.eu10.hana.ondemand.com\",\"org\":\"zcf-cf-dev-org\",\"space\":\"BMS\"}},{\"platformName\":\"hdi_exhdb_bms_shared\",\"resourceName\":\"hdi_exhdb_bms_shared\",\"resourceProperties\":{\"parameters\":{\"service-name\":\"bmurepofinal-hdiexhdbbms-S000825152PqpqUlBGOvjfdvL\"},\"SERVICE_REPLACEMENTS\":[{\"key\":\"exhdb_bms1\",\"service\":\"hdi_exhdb_bms_shared\"}]},\"resourceType\":\"org.cloudfoundry.existing-service\",\"serviceKeyName\":\"SharedDevKey\",\"serviceTarget\":{\"endpoint\":\"https://api.cf.eu10.hana.ondemand.com\",\"org\":\"zcf-dev-org\",\"space\":\"BMS\"}}]}"; export CF_HOME=/projects/.webide/cf/8cf3553b6f308273fcf60b00b8b0d90a; export DEVX_MTA_HDI_BUILD_OPTIONS="{\"IsSelectiveBuild\":false,\"SelectedFiles\":[],\"IsSimulateBuild\":false,\"AdditionalOptions\":{\"migrationtable-development-mode\":false}}"; export PROJECT_PATH=/projects/zmta_test1/zmta_test-hdb; mkdir -p $CF_HOME/.cf/plugins/ && cp -u $CF_PLUGIN_PATH/config.json $CF_HOME/.cf/plugins/config.json 2>/dev/null || :;hdi-space-builder build"
7:33:29 PM (HDB) Executing Build command:
7:33:29 PM (HDB) Temp folder created at: /tmp/hdispacebuilder872146719
7:33:29 PM (HDB) Starting pre-build operations...
7:33:31 PM (HDB) Creating module zip...
7:33:31 PM (HDB) module directory is: /projects/zmta_test1/zmta_test-hdb
7:33:31 PM (HDB) executing NPM install at: /projects/zmta_test1/zmta_test-hdb
7:33:31 PM (HDB) zipping folder.....
7:33:31 PM (HDB) zip created at: /tmp/hdispacebuilder872146719/db.zip
7:33:35 PM (HDB) Failed to retrieve service type: hdi_exhdb_bms_shared
7:33:35 PM (HDB) Failed to retrieve service type: hdi_exhdb_bms_shared
7:33:35 PM (HDB) connected to server
7:33:35 PM (HDB) No protocol version provided, using the latest version: 1.0.0
7:33:35 PM (HDB) Log id: c894751606869b234062fc3dc11b53eb3f802698
7:33:35 PM (HDB) Using protocol version 1.0.0
7:33:35 PM (HDB) FILE TRANSFER READY
7:33:35 PM (HDB) File transfer completed successfully: Checksums match.
7:33:35 PM (HDB) Error: service ~{hdi-container-service} not found; the service definition does not exist.
7:33:36 PM (HDB) (0s 87ms)
7:33:36 PM (HDB)
7:33:36 PM (HDB) Deployment failed with exit code: 1
7:33:36 PM (HDB) STRUCTURED LOG CHECKSUM adc73598408e9dd2eef1d7792a8b2b5128d6d64d800d30e4df21029a30c22dde
7:33:36 PM (HDB) STRUCTURED LOG SIZE198
7:33:36 PM (HDB) SENDING STRUCTURED LOG
7:33:36 PM (HDB) Ended because of error: Deployment failed with exit code: 1
7:33:36 PM (HDB) failed to send data, error:Deployment failed with exit code: 1
7:33:36 PM (HDB) Deployment failed with exit code: 1
7:33:36 PM (HDB) Build command failed : Build failed: Deployment failed with exit code: 1
7:33:36 PM (HDB) Build of /zmta_test1/zmta_test-hdb failed.
Could you pls let me know if any there is anything missed / wrong?
modules:
- name: zmta_test-hdb
type: hdb
path: zmta_test-hdb
requires:
- name: hdi_zmta_test-hdb
properties:
TARGET_CONTAINER: '~{hdi-container-service}'
- name: hdi_exhdb_bms_shared
group: SERVICE_REPLACEMENTS
properties:
key: exhdb_bms1
service: '~{hdi_exhdb_bms_shared-grantor-service}'
resources:
- name: hdi_zmta_test-hdb
properties:
hdi-container-name: ${service-name}
type: com.sap.xs.hdi-container
- name: hdi_exhdb_bms_shared
type: org.cloudfoundry.existing-service
properties:
hdi_exhdb_bms_shared-grantor-service: '${service-name}'
parameters:
service-name: bmurepofinal-hdiexhdbbms-S000825152PqpqUlBGOvjfdvL
Regards,
Chathia.