This page (revision-21) was last changed on 23-Apr-2022 17:06 by Harry Metske

This page was created on 23-Apr-2022 17:05 by unknown

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
21 23-Apr-2022 17:06 87 KB Harry Metske to previous

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 13 added 2 lines
* [OpenShift docu index|http://www.openshift.org/documentation/#documentation]
* [OpenShift Origin User’s Guide|http://www.openshift.org/documentation/oo_user_guide.html]
At line 31 added 127 lines
Run {{rhc setup}}, this will create ~/.openshift/express.conf (what userid/password to use ?? root/changeme does not work)
You can also upload your public SSH key via the webconsole, this SSH key is necessary when you git-checkout your application.
!! Install the Liberty cartridge
The WebSphere Liberty Cartridge, available at [https://github.com/WASdev/cloud.openshift.cartridge.wlp] can be installed via the web-console by entering the [URL to the manifest file|https://raw.githubusercontent.com/WASdev/cloud.openshift.cartridge.wlp/master/metadata/manifest.yml].
This install will fail because the {{Source-Url}} element is required. I forked the github project and change the [manifest file to include the Source-Url|https://raw.githubusercontent.com/metskem/cloud.openshift.cartridge.wlp/master/metadata/manifest.yml]
During this install you also have to create an application, so I created an application called "aap", which is then accessible at [http://aap-origin.openshift.local/] , but this gives a 503 error. No idea why.
So further debugging, you can login to the node with the applications generated account and ssh keys :
{{{
metskem@athena:~/cloud/openshift/apps/aap$ ssh 54908968653e8a8670000013@aap-origin.openshift.local
*********************************************************************
You are accessing a service that is for use only by authorized users.
If you do not have authorization, discontinue use at once.
Any use of the services is subject to the applicable terms of the
agreement which can be found at:
https://www.openshift.com/legal
*********************************************************************
Welcome to OpenShift shell
This shell will assist you in managing OpenShift applications.
!!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!!
Shell access is quite powerful and it is possible for you to
accidentally damage your application. Proceed with care!
If worse comes to worst, destroy your application with "rhc app delete"
and recreate it
!!! IMPORTANT !!! IMPORTANT !!! IMPORTANT !!!
Type "help" for more info.
[aap-origin.openshift.local 54908968653e8a8670000013]\>
}}}
{{{
[aap-origin.openshift.local 54908968653e8a8670000013]\> help
Help menu: The following commands are available to help control your openshift
application and environment.
gear control your application (start, stop, restart, etc)
or deps with --cart (gear start --cart mysql-5.1)
tail_all tail all log files
export list available environment variables
rm remove files / directories
ls list files / directories
ps list running applications
kill kill running applications
mysql interactive MySQL shell
mongo interactive MongoDB shell
psql interactive PostgreSQL shell
quota list disk usage
Deprecated:
ctl_app control your application (start, stop, restart, etc)
ctl_all control application and deps like mysql in one command
}}}
{{{
[aap-origin.openshift.local 54908968653e8a8670000013]\> gear
NAME:
["OpenShift Gear Control"]
DESCRIPTION:
["An assortment of gear utilities"]
COMMANDS:
activate Activate a build
archive-deployment Archive the current deployment
binary-deploy Deploy a binary artifact
build Run the build steps
create-deployment-dir Create a deployment directory. Should only be used by CI builders
deploy Run the deploy steps
deployments List the gear's deployments
distribute Distribute a build
help Display global or [command] help documentation.
postreceive Run the git postreceive steps
prepare Prepare a binary deployment artifact for distribution and activation
prereceive Run the git prereceive steps
reload Reload a cart
remotedeploy Run the remotedeploy steps
restart Restart a cart
restore Restore an application
rotate-in Enables this gear to receive traffic from the proxy
rotate-out Disables this gear from receiving traffic from the proxy
snapshot Snapshot an application
start Start the gear/cart
status Get the status for a cart
stop Stop the gear/cart
GLOBAL OPTIONS:
--trace
Enable stack traces when reporting errors
-h, --help
Display help documentation
-v, --version
Display version information
-t, --trace
Display backtrace when an error occurs
[aap-origin.openshift.local 54908968653e8a8670000013]\>
}}}
And then we find the cause :
{{{
[aap-origin.openshift.local 54908968653e8a8670000013]\> gear restart
Cart to restart?
1. liberty-8.5.5
? 1
app is not running
missing Liberty license, set IBM_LIBERTY_LICENSE env var
[aap-origin.openshift.local 54908968653e8a8670000013]\>
}}}