Sometimes it might be useful to export resources like Components or Applications from a uDeploy installation and import to another one.
Let’s see how to do it and what problem we could deal with:
First of all let’s export our Component.
Click “Actions” beside the Component, then click “Export“.
Save your .json file
In the other uDeploy installation, go to Components, click the “Import Components” button and upload the .json file exported before.
At this point you could receive an import error.
Watch the uDeploy Server log. Can you see something like this?
2018-02-22 15:52:43,956 CET ERROR https-jsse-nio-0.0.0.0-8444-exec-9 com.urbancode.commons.util.crypto.algs.Crypt1Alg - Did not find any decoding key for name abc123keyxxx
2018-02-22 15:52:43,956 CET ERROR https-jsse-nio-0.0.0.0-8444-exec-9 com.urbancode.ds.web.util.UCDExceptionMapper - The import data contains encrypted values which could not be decrypted. Please ensure that the encryption key from the server which created this file has been added to this server.
com.urbancode.air.i18n.TranslatableException: The import data contains encrypted values which could not be decrypted. Please ensure that the encryption key from the server which created this file has been added to this server
When you want to stop a Cluster or a Server you need a component process well designed or your application process can fail.
Start with a Check Status step. It checks the status of the Server/Cluster and fails if the Server/Cluster is already stopped.
The second step, Stop Server, it doesn’t need explanations.
Then Wait for server or cluster to stop.
Here you can set the:
– Timeout (seconds) to wait for the server or cluster to stop before the step fails.
– Interval (seconds): The time to wait between status checks.
Finally, in case of Wait for Server/cluster to stop timeout we add a Terminate Server/Cluster step.
The first thing to know about WebSphere and UrbanCode Deployintegration is the WebSphere Topology Discovery feature. If you have a big IBM WebSphere Application Server (WAS) environment, full of Cluster, Server and Application, UrbanCode Deploy (uDeploy) can really help you saving you time and makes access to many informations easier .
It makes it easier to set certain properties, such as cell name, node name, cluster name, server name and so on, by allowing you to import them into uDeploy.
One of the most useful thing you can do with UrbanCode Deploy is the “replace tokens” job. SysAdmins deal everyday with differents environments such as DEV, SIT, UAT, PROD. Your application needs different values like hostname, url, port, log level and much more depending on the environment where it’s deployed.
When you need to automate deployment process you must get rid of these values. With UrbanCode Deploy (uDeploy) you can create environment variables, assign values to these variables for each environment and create a component process who will replace tokens.
What we need is a uDeploy Server running installation, at least one uDeploy Agent and a plug-in called File Utils plug-in . Then we create a Component, an Application and one Environment. See images below:
Our goal is to automate the process of deploying a configuration to different environments. Let’s create an Environment Property Definition in our component: