
SAP LaMa Adapter for GCP
By design SAP LaMa comes with two (2) built-in cloud adapter, Azure and AWS, so in order to provide clients the ability to use the tool in its true form, Google has decided to release its own adapter (free of charge) for you to install.
SAP LaMa default Adapter
Let’s have a look now at how to articulate SAP LaMa, here I’m referring to the deployment of SAP LaMa itself. You can run it on a hybrid model (different platform than GCP) which will be required for you to have a dedicated service account with the necessary permission to authenticate and administer your managed system in the project they belong to or at the upper level.
You will also need to think about your connectivity and DNS resolution.
SAP LaMa Adapter Option 1
SAP LaMa Adapter Option 2
SAP LaMa GCP Host Extension
I will not detail how to install the Host Agent and Adaptive Extension. Instead, I will focus on the install of the GCP Host Agent Extension. Note that the package extension is part of the full package for SAP LaMa.
I start by downloading the package by running wget $(curl https://storage.googleapis.com/cloudsapdeploy/lama-connector/LATEST.txt) and extract the content.
GCP Connector Download
And finally, run the install.sh script.
GCP Connector Script Installation
I will recommend you to take a GMI (Google Machine Image) once your system preparation is completed, by doing so you will have a standard based image for your future deployment.
However, be mindful of the OS version or release (SLES vs SLES for SAP).
From the GCP console, under Compute Engine, select Machine Images and create your image from the source vm.
Google Machine Image
In the project, I want to manage my sap environment, I will first create a custom role that will be assigned to my service account. From the GCP console, under IAM & Admin select Roles.
GCP Role Console
And create a new role, provide the necessary information and most important give the right set of permissions.
GCP Custom Role Creation
From the Add permission, filter the role and select compute/admin.
GCP Role Permission
The list of permissions will show up, you can select all of them but the problem if you do that is the fact that your user will inherit unnecessary permissions which can create a security breach.
Instead of typing everything out, 😉 I will lead you to the following page for the full list of permission: Required IAM resource permissions for the Connector for LaMa
SAP LaMa Full Custom Permission
Once created you will see your custom role.
SAP LaMa Custom Enabled
Let’s create the service account from the GCP console now, under IAM & Admin, select Service Accounts and + Create Service Account.
GCP Service Account Creation
The creation of the account is pretty straightforward. Simply give a name and provide the custom role created in the earlier step.
GCP Service Account Role Assignment
Once created, select your service account and click on the KEYS tab to create a key. This one will be used for connectivity purposes since we don’t specify the password for the SA.
GCP Service Account KEYS
Create the new Key and use the JSON format.
Service Account Key Creation
Service Account Key JSON Format
Service Account Key Active and Download
So, now that our GCP environment is prepared to hold and manage the SAP environment by SAP LaMa, I’m going to proceed with the installation of the adapter.
First of all, to allow the communication between the adapter and GCP API, a Google CA certificate is needed, go to the Google Trust Services at https://pki.goog/repository/
Google CA Certificate Repository
From the Subordinate CAs, download the GTS CA 1C3 certificate
Google GTS CA Certificate Download
And upload the certificate from NWA.
SAP Netweaver Certificates and Keys
From the Key Storage Views, select TrustedCAs and click on Import Entry.
SAP Netweaver TruestedCAs
Import the certificate as X.509
Import Google Certificate
Once done you should have the following:
Google Certificate Details
We also want to avoid using IPv6 from SAP LaMa, I will add the following parameter in the Java System Properties and restart your instance.
Netweavre IPv6 avoid
We are now ready to proceed with the installation of the adapter, I will run the installation by using the j2ee deployment script. My ear adapter is stored in my /tmp/sap location.
SAP LaMa GCP Connector Deployment
Once done, from SAP LaMa interface the new Google Adapter is now available so I can make the necessary configuration.
SAP LaMa Cloud Manager
Note that the value needs to be in one line from { to }
GCP Service Account Key Content Detail
SAP LaMa Cloud Manager GCP Configuration
Before saving, test the configuration to ensure it’s all good.
GCP Cloud Adapter Testing
Because the adapter brings capabilities to compute and storage operations, on Storage Manager and Virtualization managers new entries should appear with the suffix of the Label.
SAP LaMa Storage Managers
SAP LaMa Virtualiztion Managers
Finally, if I check under Advanced Operations the virtualization tab, I will see my project with my existing VM and storage attached to each of them.
SAP LaMa Advanced Operations
On the GCP side.
GCP Console Compute Engine Instances
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
11 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |