Skip to Content
0
5 days ago

Deployment error after adding a reference to NSS service

107 Views Last edit 5 days ago 2 rev

Hi all,

I’m working on a node.js project that creates a MTA archive with 2 HTML5 applications. These apps should use managed app-router and should be configured for start in Launchpad Service. They must consume the SAP NSS (Network Spatial Service), so that the UI controls in the browser can have access to the service API. The service is running in the Cloud Foundry landscape where the MTA archive should be deployed.

The attached mta-copyyaml.txt works correctly. The commented blocks between lines 20-26, 31-36, 124- 133 should add the dependency to the NSS service( see the screenshot):

screenshot-2022-01-15-at-094036.png

The change in lines 41, 42 just reorder the properties and is not important.

When these blocks are commented, everything is working fine.

Now I want to add the dependency to the NSS service, and I uncommented the blocks. Also I have adapted the xs-app.json files for both applications (the content for now is not in the scope).

The build was working fine, but during the deployment I received the following error:

> cf deploy mta_archives/catenax.nss.mta_0.0.1.mtar

Deploying multi-target app archive mta_archives/catenax.nss.mta_0.0.1.mtar in org ...

Uploading 1 files...

/workspaces/NodeJS/catenax-nss/mta_archives/catenax.nss.mta_0.0.1.mtar

OK

Operation ID: a271b703-75e3-11ec-8839-eeee0a98d476

Deploying in org … and space …

Detected MTA schema version: "3"

Detected deployed MTA with namespace "null", ID "catenax.nss.mta" and version "0.0.1"

Detected new MTA version: "0.0.1"

Deployed MTA version: "0.0.1"

Processing service "catenax-nss-nss-service"...

Creating service "catenax-nss-nss-service" from MTA resource "nss_svc_catenax-nss"...

Processing service "catenax-nss-xsuaa-service"...

Processing service "catenax-nss-destination-service"...

Processing service "catenax-nss-html5-app-host-service"...

Setting service "catenax-nss-xsuaa-service" parameters from "xs-security.json"

Updating service "catenax-nss-xsuaa-service"...

Updating service "catenax-nss-destination-service"...

1 of 1 done

1 of 1 done

1 of 1 done

Service key "catenax-nss_html_repo_host-key" for service "catenax-nss-html5-app-host-service" already exists

Service key "uaa_catenax-nss-key" for service "catenax-nss-xsuaa-service" already exists

Creating service key "nss_svc_catenax-nss-key" for service "catenax-nss-nss-service"...

Service key "catenax-nss-destination-content-catenax-nss-destination-service-credentials" for service "catenax-nss-destination-service" already exists

Deploying content module "catenax-nss-destination-content" in target service "catenax-nss-destination-service"...

[catenax-nss-destination-content] [ERROR] Property [sap.cloud.service] is not editable

Content deployment for module "catenax-nss-destination-content" to resource "catenax-nss-destination-service" failed: Content deployment for module "catenax-nss-destination-content" failed due to invalid content. Download the logs "catenax-nss-destination-content_catenax-nss-destination-service" via the dmol command and check them for more information.

Process failed.

The error is reproducible.

Can you please help me to find what is wrong in my descriptor?

Best regards,

Emil

Attachments

mta-copyyaml.txt (4.6 kB)