SAP-samples / btp-resource-consumption-monitor

Monitors the CPEA credit consumption of your global account and alerts on increased usage
Apache License 2.0
30 stars 6 forks source link

Error while deploying #7

Closed alokva closed 5 months ago

alokva commented 5 months ago

Hi,

I'm getting this below error while deploying the code. I've a subaccount with HANA Cloud and SAP build Workzone, also I made sure all the entitlements are available in this subaccount.

Also one suggestion, mar file name is btp-resource-consumption_1.0.0.mtar not BTPResourceConsumption_1.0.0.mtar so please change that accordingly.

Error with creating a client for content service "btprc-dest": Error retrieving required property "uaa" for service key "btprc-dest-key" for service "btprc-dest"

Thanks Alok Varma

alokva commented 5 months ago

This error I'm getting in the 1st deployment.

alokva commented 5 months ago

One more confirmation I need, do we need the SAP Work zone in the same subaccount as HANA Cloud ?

tedharrisLW commented 5 months ago

I am getting this error as well with everything in the same subaccount.

willemi069808 commented 5 months ago

Hi,

Thank you for opening this issue and spotting the error. This has been corrected now in 6bbcc08.

Regarding the location of HANA Cloud: your HANA Cloud database instance can sit in any CF org, space, or even other subaccount as long as you stay within the same region (e.g. eu20, ap10, ...). If you want to use a remote HANA Cloud database instance you have to make sure this HANA Cloud instance has been mapped/shared with the org/space in which you deploy the application (and the hdi instance). See SAP Help - Map an SAP HANA Database to another Environment Context, or these quick steps for HANA Cloud Central:

  1. On the All Instances page, click the "..." (More) icon in the Actions column.
  2. Select Manage Configuration.
  3. Select the Instance Mapping tab to show existing mappings.
  4. Click the Edit button to add or delete a mapping.

Regarding the location of SAP Work Zone: Your SAP Work Zone subscription should reside in the same subaccount/org as where you deploy the application (and the ui5 applications are added to the HTML5 Application Repository Service). This is not necessarily the same subaccount as where your HANA Cloud database instance is deployed as mentioned above.

Hope this resolves the query

alokva commented 5 months ago

Thank you for the deployment fix. But this deployment should create the destination btprc-srv in the subaccount but it didn't create and due to this I'm not able to complete Step 2 of Work zone content where we need to specify the Runtime destination. Can you pls let me know if we are missing something in our yaml file ?

Thanks Alok

alokva commented 5 months ago

Pls ignore, it did create. I was looking into a wrong subaccount.

Thanks

alokva commented 5 months ago

It worked for me completely and now I'm able to see the dashboard from Work zone.