Technical Articles
Self-Service Enablement of Cloud Integration Service on Cloud Foundry Environment
Introduction
SAP Cloud Integration is now available on Cloud Foundry environment of SAP BTP. You can now have CPI tenants running on Cloud Foundry environment, If you are entitled to Cloud Platform Enterprise Agreement (CPEA) license.
In this blog, I will talk about the steps involved in provisioning/decommissioning of a CPI tenant on the Cloud Foundry environment.
Refer my other blog if you want to learn about the self-service provisioning of CPI tenants on Neo environment.
Refer Integration Suite – Simplified Onboarding and Provisioning if you want to Get started with Integration Suite.
Refer Integration Suite – Accessing Cloud Integration Runtime if you want to follow the steps required to access deployed integration flow endpoint
NOTE: This blog is relevant only for the customers migrating from Neo standalone CPI tenant to CF standalone CPI tenant.
Let’s get started.
Overview
- Provisioning: Perform the following steps to provision your tenant and run integration scenarios on Cloud Foundry.
-
- Create a subaccount on the CPEA Global account
- Enable Cloud Foundry on the subaccount to create Org ( Required only for step 7 )
- Subscribe to Process Integration SaaS Application
- Configure the user access to the application
- Provision a tenant
- Create and Deploy integration flows from the design-time of the tenant
- Access the deployed integration flow endpoint through the credentials provided by the Process Integration Runtime instance.
- Enterprise Messaging: Additionally, if you want to run scenarios with JMS message queues you need perform the below step
-
- Activate Enterprise Messaging on the tenant to run scenarios with JMS/AS2/XI (with JMS storage ) adapter
- Decommissioning: To decommission a tenant, you need to simply unsubscribe the service.
Provisioning
1. Create a subaccount:
Create a subaccount on the CPEA Global Account as shown below.
You need to select
-
- Environment as Cloud Foundry
- Provider as Amazon Web Services (AWS)
- Region as Europe (Frankfurt).
2. Enable Cloud Foundry:
Once you have created your subaccount for SAP BTP , you need to enable Cloud Foundry for this account to create Org on the cloud foundry environment as shown below.
Once this step is successful, you would see Org and API Endpoint on CF as shown below
3. Subscribe to Process Integration SaaS Application:
After enabling the Cloud Foundry on the subaccount, you need to subscribe to the Process Integration SaaS Application to provision a CPI tenant on the subaccount. The procedure to subscribe is shown below.
On Successful subscription, you would see the below screen
After the subscription is successful, Attempt to access application with a click on Go To Application would not succeed . You need to additionally configure user access by assigning the roles as mentioned in the next step.
In the upcoming releases, we would be improving this experience by assigning the required roles to the user on the click on Subscribe button ( similar to that of Neo) .
4.Configure the user access to the application
In order to configure the user access, you need to navigate back to Subaccount level as shown below
Create a Role collection:
Create a role collection as shown below.
Click on the newly created role collection name to assign the required roles.
Click on Add Role and assign AuthGroup_Administrator, AuthGroup_BusinessExpert and AuthGroup_IntegrationDeveloper to the role collection.
After all the roles are assigned, you should see the below shown screen.
Assign Role Collection:
Now, you should assign the user to the created role collection. Inorder to do that you need to choose > SAP ID Service and assign role collection to the user.
After the Role Collection assignment is successful, you can access the application by clicking on the Go To Application.
5. Provisioning a CPI tenant
Navigate back to Subaccount > Subscriptions > Process Integration and choose Go To Application
Enter email and password to logon to the application
As soon as you logon, you would see provisioning application with an option to choose the environment of the tenant that you want to provision.
Please be aware of the below impact of the tenant environment
- For Non-Production CPI tenants, as per contract, billing will include only CPI instance charges and additional connections will not be billed.
- For Non-Production CPI tenants, SAP will not commit for any SLAs (Service Level Agreements).
6.Create and Deploy integration flows from the design-time of the tenant
Once tenant provisioning is successful, you can access the tenant URL to access the design time of the tenant as shown below
After accessing the tenant URL,Create a Integration package by navigating to Design > Create as shown below
Create an iflow under the package as shown below
Create a simple integration flow with HTTP Sender adapter as shown below
Save and Deploy the integration flow.
Now navigate to Monitoring > Manage Integration Content to view the status of the deployed integration flow.
During the deployment of first integration flow , the start of the integration flow would take up to 10 minutes.
We will use the deployed iflow endpoint to post message in the next step.
7.Access Deployed Iflow Endpoint
Do not perform this step till the tenant provisioning mentioned in the step#5 is successful.
In order to access the deployed integration flow endpoint through a rest client ( e.g: postman ), you need to create OAuth client .
Follow the below mentioned procedure to achieve this.
Assign Process Integration Runtime entitlement ( Not required for Trial):
You need to be Global Account admin to perform this action.
Navigate to Global Account > Entitlements > Subaccounts > <Select the subaccount of the cpi tenant > > Go as shown below
Configure Entitlements
Add Service Plans
Create Process Integration Runtime service instance:
Inorder to create a service instance, you need to create a space first.
Create Space
Navigate to Process Integration Runtime in Service Marketplace
Create New Instance
Choose Service Plan as integration-flow
Specify Parameters value as:
{
“roles”: [
“ESBMessaging.send”
]
}
Mention Instance Name and Finish
Service Key creation
Create service key
Copy the values of clientId and clientsecret
Post message to the deployed iflow endpoint ( using the clientid as username and clientsecret as password )
8. Accessing Client Certificate based iflow endpoints:
Follow the blog for step-by-step guidance.
That brings me to the end of provisioning steps.
Similar to Neo environment, You can create only one CPI tenant per subaccount .
As of now, we do not support moving the existing CPI tenants from Neo environment to CF environment.
There will not be any difference w.r.t features on Neo and CF. As of now, we have few limitations on CF as mentioned in the release note
Enterprise Messaging:
Now, let me show you how you can run scenarios with AS2/JMS/XI (with JMS storage) adapter scenarios.
You can activate Enterprise Messaging on the tenant by navigating to Process Integration > Go To Application > Enterprise Messaging as shown below.
After successful activation, you would see the below screen
As soon as the Message broker is activated, you would see Message Queues tile appear on Monitoring page of the tenant.
Deactivate Message Broker:
Incase if you no more need JMS scenarios on your tenant, you can deactivate the broker as shown below
Decommissioning:
Sometimes, you may come across cases of deleting few cpi tenants to avoid additional costs.
This can be achieved by following a simple step shown below.
That’s all.
Hope you enjoyed reading the blog on how to provision and decommission a cpi tenant on CF environment.
See you again with another interesting topic.
Hi Appala Naidu,
Very informative blog. Is this feature available for trial CF version?
Regards
Ajay
Stay tuned.. 🙂
Hi Appala Naidu,
Blog is very informative and helpful new CPI consultants, I have tried to setup for trial, but getting following error while creating 'New Instance'.
Hi Appala,
I do not see that CPI is supported on CF yet:
https://help.sap.com/doc/aa1ccd10da6c4337aa737df2ead1855b/Cloud/en-US/3b642f68227b4b1398d2ce1a5351389a.html
Hello Verhoef,
Thanks for your feedback. I will cross-check and get back to you.
Thanks,
Appala
Now the above mentioned page shows the CPI availability on CF.
Hello Appala Naidu,
Thanks for the detailed blog.
CPI PI is enabled in CF environment today and your blog is very helpful for onboarding things.
Regards
Bhanu
Hello Bhanu,
Thank you for your feedback.
Thanks,
Appala
Super detailed blog well done!
Thanks for the detailed blog.
I was able to get the tenant access in CF trail, however when to try to create instance for Runtime i get below error.
Everyone must be crowding up to spin up their own CPI instance! 🙂
I'm getting the same error too!
Thanks for notifying about the issue.We are checking the issue. We will revert to you once fixed.
Thanks,
Appala
Issue has been fixed. Please try again now.
Thanks,
Appala
Hi Appala
Thanks for the quick resolution. I'm able to create the runtime instance now and send a successful message into my sample Hello World CPI flow! Hurray!
Just a few additional comments:-
1) For CPI trial - the first part of Step 7 to configure Entitlement and Service Plan is already in place, so no action required.
2) The JSON snippet provided for the Instance creation has some formatting issues with the double quotes which flags it as an invalid JSON.
3) Undeploying an IFlow does not work - the following error is displayed.
Thanks again for the detailed step on this post, and well done to SAP for getting this self-service trial up and running.
Regards
Eng Swee
Hello Eng Swee,
Thanks for your feedback.
Response for your additional comments.
Thanks,
Appala
Hi Appala ,
Why don't we have "Connectivity Tests" option in CF trial ?
Thanks,
Manoj
Hello Manoj,
This is a limitation in June release release note .
You can consume the feature with July release.
Thanks,
Appala
Thanks a lot, Appala. The undeployment works fine now. 🙂
Hi Appala,
I have this error when opening the application after following the steps in chapter 4, can you advice?
<oauth>
<error_description>Insufficient scope for this resource</error_description>
<error>insufficient_scope</error>
</oauth>
Thank you in advance
Hello,
This would happen,when you do not assign the role-collection to your e-mail.
If you are sure that you followed all the steps mentioned in step 4, try to open the page in incognito mode and check.
Thanks,
Appala
Tried in different browser and that works, thank you!
Hi Appala,
I created the service key and try to logon with basic auth but I get a 403.
HTTP Status 403 – Forbidden</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> Forbidden</p><p><b>Description</b> The server understood the request but refuses to authorize it.
Thanks in advance,
Marco
Hi Appla Naidu,
I was able to get the tenant access in Neo version but when try to open tenant I am getting below Errorr: No server is available to handle request or the application is temporarily down for maintenance. Excuse us for the inconvenience.
can you please help me on this.
Hi Appala Naidu,
Thanks for the very detail steps!
I follow the steps in the blog by using CF trial account and getting error in the tenant provisioning step. The progress meter stuck in 50% for long time and this error is shown:
Have tried few times but no luck
I am getting same error as well. Provisioning reaches 50% and then gives an error. Appala Naidu Uppada – Would you be able to assist with this?
I have already assigned Tenant_Administrator role to my email address.
Hello,
This issue is fixed from our side. Could you please retry again ?
Thanks,
Appala
Thank you, appreciate the quick turnaround.
Hi dear Appala Naidu Uppada ,
I have the same issue:
Hi Appala Naidu ,
Thanks for the steps !
I have followed the steps in the blog by using CF trial account and getting error in the tenant provisioning step. The progress meter stuck in 18% for long time and this error is shown:
Tenant provisioning failed. Please try after sometime.
Have tried few times but no luck
.
Please help !
Hi Appala,
I have the same issue that provisioning process reached 75% and stunk. I would be really appreciated if you can help with this. Thank you!
Hi Appala,
I am having the same issue. The progress bar is stuck at 75% since last 1 day. Request you to kindly help.
Thanks.
Thanks for sharing, Appala. Unfortunately my provisioning process stuck at 75 as well 🙁
Appala. Unfortunately my provisioning process stuck at 75 as well.........
Hi Appala,
Thanks for sharing blog, however, while creating provisioning it is getting stuck at 75%.
I am trying from last 2 days with multiple times.
Could you please help?
Thanks,
Rashmi
any luck so far ...
Hi Appala,
very nice blog! Unfortunately, I have the same problem with the provisioning.
Regards,
Johannes
any luck so far ...
I opened a ticket with SAP, I can tell you what comes out of it
It is stuck at 75. Could you help on this.
Hello,
The issue from ourside is resolved now. Request you to retry the provisioning.
Thanks,
Appala
I am stuck at 75% provisioning as well. Is there any way to cancel the provisioning attempt and retry it? Or do we have to wait until the current request times out? Started my provisioning yesterday and turned off the computer after it got stuck at 75%. Today I am still at 75% when trying to open the service. (Unsubscribe/resubscribe did not work either)
Hi Appala,
Thanks for sharing the blog.
While creating provisioning, it is getting stuck at 75%. Could you please help me on this?
Hi Appala,
Still I'm facing the same issue.
Can you please help me on this ?
Many Thanks
MP
Hi Appala,
I have received the below message after one day,
Tenant provisioning failed. Please try after sometime.
Can you please help me on this ?
Many Thanks
MP
Hi Appala,
I am getting below error while creating service instance.
I also dont see 'Connectivity Tests' option. Is this not available in trial version?
Please have a look.
Thanks,
VS
Hi Appala,
This is great article!. Thanks for sharing.
I have one issue here. I have deployed the integration content, after an hour, the status is still "starting" - The Integration Flow is starting.
Any idea on this?
Thanks
Ferry
Hello Ferry,
Can you share your cpi tenant name ? We will have a look and get back to you.
Thanks,
Appala
Hi,
Is this feature disabled now? I am unable to access my Trial CPI account.
-Rashmi
Hello Appala,
I followed all steps from the article and the provisioning in Cloud Foundry worked for me.
But unfortunately the deployment of the iFlow artifacts don’t work. I always get the following error message:
I tried with different content and ensured, that there are no problems within the iFlow development.
The same issue was already reported here. But no solution was reported.
Best regards,
Thorsten
Note: Managed it by myself. I just deleted the whole subaccount in CF and created it again. For some reason, it works now...
Hi Appala,
I have this error when clicking the provision button.
Please help if possible.
Thnx
Shahid
Hi Appala good day,
I am having also same issue "Tenant provisioning failed. Please try after sometime."
Could you please advise
Kind regards,
Lyon.
Hi Appala Naidu,
I am getting the following error " Tenant provisioning failed. Please try after sometime. "
I tried for three times still the same error.Please find the screen short below.
Let me know how to resolve the issue.
Thanks & Regards,
Shabbir
Tenant provisioning stuck at 94% for 10 hours. Not moving. Any pointers?
Same here. Tried several times, along with subscribing - unsubscribing, or even deletion and re-creation subaccount. Always stuck at 94%.
Hi Appala Naidu,
Thanks for the detailed post.
EDIT: I have successfully completed all the provisioning steps.
While trying to post a request to the endpoint via SOAP UI / Google Postman, I receive the following response.
HTTP Status 403 – Forbidden</h1><hr class="line" /><p><b>Type</b> Status Report</p><p><b>Message</b> Forbidden. Missing CSRF token.</p><p><b>Description</b> The server understood the request but refuses to authorize it.</p><hr class="line" /><h3>Apache Tomcat/8.5.32</h3></body></html>
Request you to advise if any additional authorization is required. I have provided the username (clientID) and password (clientsecret) as per the instructions.
Best Regards,
Krishna Sharma
Hi Appala,
Same issue for me...failed after sometime in provision step. Can you help.
Regards,
Ashish
I too have same issue
" Tenant provisioning has failed. Create service broker instances only after successful provisioning. Please try after some time. "
After training multiple times... Still same issue persists. Please find my account details...please check any issue from SAP.
Subdomain : s0008735205trial
Hi Appala,
From this blog https://blogs.sap.com/2019/06/10/self-service-enablement-of-cloud-integration-service-on-cloud-foundry-environment/
I'm not able to continue after "Create Space". Under "Service Marketplace" I don't see Process Integration Runtime option. I see only "10 Services".
Please help.
Hello, I'm facing the same issue as you. Were you able to fix it?
Regards,
Also my trial account 30 days is going to expire, please let me know how to extend the validity.
Hello Praveen,
You can extend the trial validation by clicking on the top right side section of the acccount.
Thanks,
Appala
Hello,
Similar to Praveen, I do not see "Process Integration" as a subscription option. I have 8 options displayed, and none of them are the required SaaS subscription. I am using a trial account and attempting to follow the below tutorial:
https://developers.sap.com/tutorials/cp-starter-integration-cpi-onboard-subscribe.html
Thank you,
Kyle
Hi Appala,
The iFlow is in starting state. Could you please assist me to start it successfully.
With regards,
Arun J
Hi Dear Appala,
Same issue for me as indicated by Arun, kindly see further details below:
Iflow status seems to be stuck on “The integration Flow is starting” (screenshot below)
On https://launchpad.support.sap.com/#/notes/2524719 it’s mentioned on question 32 this topic as common issue, however the link referred (SAP KBA 2648752) is broken, please could you provide any support on this?
Q: My iFlow is stuck in “Starting” status, how to solve it?
A: You can find all guidance over this issue in the SAP KBA 2648752 – Unable to Deploy Integration Flow.
Many thanks in advance,
Ingrid
Having the same issue on provision part....always getting error. 🙁
Under subscriptions, I am not getting option for SaaS - Process Integration/Orchestration option.
BR,
Rashmi
Same issue for me.. any solution?
for me too.. any solution?
Print
Hi Appala Naidu Uppada ,
I have created CPI account on Cloud Foundry successfully and created credentials also.
Now I am trying to connect SCP with Cloud Connector (CPI --> Cloud Connector --> SAP S4H).
I am able to add my subaccount in Cloud Connector, however it did not generate any Destination in my SCP cockpit.
I tried to create destination manually in cockpit but test connection giving error.
Please help to understand which step I am missing.
Below is the thread open for the same -->
https://answers.sap.com/questions/13090778/cloud-foundy-cpi-cockpit-destination-for-cloud-con.html
BR,
Rashmi
Hello Rashmi,
Request you to open a ticket and attach the necessary screenshots.
Thanks,
Appala
Hi Appala Naidu Uppada
This is trial account, please suggest how to raise ticket for the same?
BR,
Rashmi
Hi,
When I was trying to create an instance in process integration runtime I am facing a service broker error. I am attaching the screenshot below
Even i was trying since the last few days . Can anyone please help to solve this error!!!!!!!!!!!!!!!!!
Even I am facing the same issue. Can anyone please provide a solution to it.
Having the same issue. please provide the solution.
I am also having the same issue. Can anyone help to find the solution.
Can you update your blog because most of the topics covered like process integration runtime is no more. I have been working on PI since 2006 and am really struggling with this product. CPI is really confusing to use and most non-SAP integration developers found PI too tough ... LOL
Hello, nice blog!
I've tried to logon to the application but without success, even though for my colleague it is working... Any idea? could it be my SAP ID?
Hello Sir,
Since I have been following your steps for configuring SAP BTP cockpit, when I was going to subscription I was getting an error of Subscription failed
I was subscribing to SAP Integration Suite and I do not know the drecommissioning process.
Can you please help me out in this ??