All Questions
Tagged with openshift openshift-client-tools
311
questions
94
votes
7
answers
28k
views
OpenShift rhc setup using multiple accounts
I have two accounts on Openshift platform. How can I setup my computer so that I can manage both of them with rhc? I cannot find any relevant option in the command line arguments.
13
votes
2
answers
7k
views
Openshift rhc setup "The OpenShift server is not responding correctly."
I would like to setup access to my open shift application. I have rhc client installed and wanted to run
rhc setup
I'm asked about providing server hostname:
Enter the server hostname: |openshift....
9
votes
5
answers
14k
views
Using openshift rhc tail command
How do you tail openshift log files? I issued the following command:
rhc tail myapp
It seems to show first error line and then stops, but doesn't exit. If I press ctrl+C it asks whether to stop ...
9
votes
5
answers
7k
views
How to make oc cluster up persistent?
I'm using "oc cluster up" to start my Openshift Origin environment. I can see, however, that once I shutdown the cluster my projects aren't persisted at restart. Is there a way to make them persistent ...
9
votes
9
answers
10k
views
Unable to login to Openshift
I have been trying to connect to my application via Openshift for days and still have no luck.
I am no certain of which forum to go at this point because I am not getting help anywhere.
1) I am ...
7
votes
3
answers
17k
views
How to download a file/folder from remote (openshift) to local system
How to download or backup or to save a copy of a file from openshift remote folder into my local-system folder using rhc client tool? or is there any other way other than rhc client tool to make a ...
7
votes
3
answers
9k
views
Receiving "SSL_connect returned=1 errno=0 state=SSLv3 read server hello A: sslv3 alert handshake failure" with openshift nodejs app
I have a nodejs app on openshift, and we use the rhc port-forward command to connect to our database when we develop locally.
We have implemented passport to authenticate users through google and ...
7
votes
5
answers
8k
views
Can't use rhc after installation , for openshift
I'm running into a weird issue after installing rhc and vmc.
None of the below seems to be working.
For Openshift:
https://openshift.redhat.com/app/getting_started
For Cloudfoundry:
http://docs....
7
votes
7
answers
17k
views
Cannot git-clone an OpenShift application
I just opened an OpenShift account, and went through this tutorial:
https://www.openshift.com/blogs/any-version-of-nodejs-you-want-in-the-cloud-openshift-does-it-paas-style
When I got to creating ...
7
votes
3
answers
3k
views
How to redeploy a Tomcat 7 application on Openshift
I know that a git push origin master will let Openshift redeploy the application to its new version.
But my situation is that my Tomcat application depends on another sub-module maven project, and ...
7
votes
1
answer
3k
views
List pods that are servicing a service
I am trying to get the list of pods that are servicing a particular service
There are 3 pods associated with my service.
I tried to execute the below command
oc describe svc my-svc-1
I am expecting to ...
6
votes
4
answers
13k
views
OpenShift Deployment
Hi I am new to open shift . I don't know how to create repository and deploying our project to it. I have configured it through command prompt. After installing rhc successfully through command prompt ...
6
votes
2
answers
12k
views
Openshift - 'oc' commands fail with "Unable to connect to the server: x509: certificate signed by unknown authority"
After installing openshift locally, I can start minishift. on https://192.168.x.y:8443
When starting an 'oc' command, like 'oc project', then I get this error:
Unable to connect to the server: x509:...
6
votes
4
answers
6k
views
How to ssh into openshift app using the 'rhc' command on windows?
I am trying to ssh (from windows) into my Openshift app using the 'rhc' command
rhc app-ssh <app name>
I have followed the Openshift instruction here:
https://www.openshift.com/forums/...
5
votes
4
answers
3k
views
`rhc setup` error: `A secure connection could not be established to the server`
I cannot get past the following error:
$ rhc setup
OpenShift Client Tools (RHC) Setup Wizard
This wizard will help you upload your SSH keys, set your application namespace,
and check that other ...
5
votes
1
answer
659
views
RHC setup fail in OpenShift - UTF8 - SSH
I am using OpenShift for my studies and in my case the RHC setup does not work.
When I try to execute it, it fails while generating an authorization token saying:
Generating an authorization token ...
5
votes
2
answers
8k
views
How to get rollback to use the older image instead of staying on the newest (externally built)?
We are moving our build process outside our OpenShift 3.11 cluster and have noticed that when wanting to rollback to an older deployment the docker image used is not the old one but the newest one ...
5
votes
2
answers
6k
views
Openshift CLI - update Application with template and oc new-app
I am currently building and deploying an Application with a template using
oc new-app -f ./openshift/template.yaml
I am using a template and not separate Deployment-, Build-, etc. configs because I ...
5
votes
3
answers
6k
views
How to cleanup disk space on openshift when 'rhc tidy' has not enough disk space?
My quota on openshift has exceeded:
Filesystem blocks quota limit grace files quota limit grace
/dev/mapper/EBSStore01-user_home01
1048572 0 1048576 6890 ...
4
votes
2
answers
4k
views
How to connect to Openshift Mongodb from local client (ports are being forwarded)?
I created a scaled nodejs application and added mongodb, everything is running fine (Connecting to mongodb from within nodejs using the environment variables). Now I want to connect to the db from my ...
4
votes
2
answers
783
views
rhc setup undefined method `[]' for nil:NilClass
I am trying to setup the OpenShift Client tool rhc on my Mac but I keep getting the following error:
An unexpected error occured: undefined method `[]' for nil:NilClass
I have tried updating Ruby to ...
4
votes
3
answers
3k
views
Environment variable not expanding in openshift
It seems that if I use a command like:
rhc env set VARIABLE="$OPENSHIFT_DATA_DIR/file"
the referenced directory variable is never expanded and as a result I can not use it for my app. Is there any ...
4
votes
3
answers
3k
views
How can I restart my openshift postgres cartridge?
My app has fallen over as it can't connect to the postgres DB and when I try to connect to the DB via ssh and psql I get the following message:
psql: could not connect to server: Connection refused
...
4
votes
1
answer
5k
views
OpenShift Code Ready Containers You need to enable virtualization in BIOS
Running windows 10 (version 1809) ThinkPad P52, snd Installed Ubuntu subsystem. Installed and tested three versions of crc (1.3, 1.4, 1.5) and when I run "crc setup" I receive the failure that BIOS ...
4
votes
3
answers
678
views
Openshift - API to get ARTIFACT_URL parameter of a pod or the version of its deployed app
What I want to do is to make a web app that lists in one single view the version of every application deployed in our Openshift (a fast view of versions). At this moment, the only way I have seen to ...
4
votes
2
answers
3k
views
Openshift oc rsh Increase Timeout
If I oc rsh <pod>, the shell will timeout in a matter of seconds unless the shell is actively printing output.
How can I increase or eliminate the timeout of oc rsh ?
3
votes
1
answer
5k
views
issue with rhc setup and openshift
This is my first time trying out openshift or similar services and I have been running into problems with rhc setup.
I have installed Ruby, Git and rhc according to the documentation here, but when I ...
3
votes
1
answer
3k
views
Openshift redhat for Windows: rhc command error
I installed ruby and git for Windows as described in the OpenShift Windows client tools installation guide.
When I run an rhc command, I get this error:
C:/Ruby23/lib/ruby/gems/2.3.0/gems/commander-...
3
votes
2
answers
1k
views
OpenShift 4.2 Rest API documentation
Is there any link to find OpenShift 4.2 Rest API documentation?
I could see latest that we have is for 3.11
https://docs.openshift.com/container-platform/3.11/rest_api/index.html.
3
votes
3
answers
7k
views
How to open a Web Console for open shift?
guys I am using OpenShift to conatinerize and run application on kubernetes, I have started the open shift cluster using oc cluster up now how do I open in the web console.
For the mini shift I have ...
3
votes
1
answer
2k
views
Create Openshift app using branch from existing repository (with `rhc create`)
The OpenShift web console allows to create a new app using a branch/tag from an existing remote repository which I do not know how to use through rhc create.
The relevant command line option --from-...
3
votes
2
answers
3k
views
How do I add an alias for a naked domain with OpenShift?
How can I make my naked domain to point to my Openshift application?
Can it be done in the Openshift online dashboard or it can only be configured through the rhc utility? However I am not sure ...
3
votes
2
answers
9k
views
OpenShift :: How do we enable traffic into pod on a custom port (non-web / non-http)
How do we enable traffic into pod on a custom port (non-web / non-http).
For example consider the port 12121.
I tried exposing the port through route.
But could not reach this pod from another pod ...
3
votes
3
answers
3k
views
How can I deploy my nodejs app into openshift without using github?
I have built a nodejs app and now I want to deploy it into openshift.
I don't want to use github because I should create private repository which I cannot.
Also I cannot use 'rhc' since I am new user.
...
3
votes
1
answer
4k
views
How to get consumed storage percentage for any persistent volume in openshift?
I am looking for a simple method to get the storage used and storage allocated for a persistent volume dynamically claimed by PVC for any pod. Is there any rest API or oc command for the same?
I am ...
3
votes
1
answer
975
views
How to find out to which 'user' I should add 'scc'?
I'm trying to run elasticsearch container in my openshift project.
I got errors:
Privileged containers are not allowed capabilities.add: Invalid value:
"IPC_LOCK": capability may not be added ...
3
votes
2
answers
477
views
How to get an earlier commit to display on openshift?
So I have my local repository, and I have an earlier commit which I want to revert my production site to. I can check it out and make it a branch and push it to openshift. The branch then shows in ...
3
votes
1
answer
1k
views
What's the purpose of setting NODE_ENV on Openshift
After installing ghost on Openshift why is it required to type these commands ?
rhc set-env NODE_ENV=production --app $appname
rhc app restart $appname
3
votes
2
answers
1k
views
Openshift - rhc tail command
When I try directly run rhc tail from app dir it allways tell:
C:\Documents and Settings\user\git\service>rhc tail You must specify
an application with -a, or run this command from within Git ...
3
votes
1
answer
3k
views
Openshift- git clone gives Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
I have created a new account with openshift online and have created my first app. I have rhc installed on my local machine. I setup ssh keys for the first time using rhc setup -l loginname
i used git ...
3
votes
3
answers
1k
views
Client Tools installation issues (OpenShift Online)
I was trying to install the openshift client tools on my windows system . I have already installed ruby and git as the prerequisites for it. I also installed rhc package on my system using gem install ...
3
votes
2
answers
1k
views
Unable to create OpenShift application using --from-code option
I am trying to create an OpenShift application using the --from-code option to grab the application code from GitHub. I've created two different OpenShift QuickStarts -- with one, the --from-code ...
3
votes
1
answer
3k
views
openshift 3.11 oc command : error: Error loading config file ".kube/config": yaml: line 11: could not find expected ':'
In a okd cluster installed using https://github.com/openshift/origin/tree/release-3.11
After the okd installation the oc command was working fine but after somedays, I'm facing a weird issue with oc ...
3
votes
2
answers
4k
views
How to delete files/directories using oc cli in Openshift
I've used oc cp to copy files and directories onto a persistent volume attached to a pod in my openshift project. Is there any way to delete?
3
votes
0
answers
417
views
OKD Build process cannot resolve host
I cannot build pods in OKD as Github cannot be resolved and the build fails.
The error:
Cloning "https://github.com/MeMyselfI/okd-hello-world " ...
error: fatal: unable to access 'https://github.com/...
2
votes
2
answers
12k
views
Unable to login to openshift with CLI
I'm trying to login to starter openshift server. Then getting error:
C:\Users\Admin>oc login https://console-openshift-console.apps.us-west-1.online-starter.openshift.com
error: invalid character '...
2
votes
2
answers
1k
views
Permissions problems with openshift client on minishift
I have installed minishift with cask and openshift client with homebrew.
However, as developer user, I am not able to create a project from openshift cli, trigger a build, etc. I always have ...
2
votes
2
answers
5k
views
"User "system" cannot get securitycontextconstraints at the cluster scope" in Openshift3
If I try to add a security constraint to a local OpenShift all-in-one cluster running in Windows10 Pro and Hyper-V, openshift client receives the following message:
c:\openshift\oc.exe adm policy add-...
2
votes
1
answer
4k
views
How do I stop an existing open shift Port Forward
With oc, I can portward a pod in open shift to get local access.
oc get pods
oc port-forward MY-POD-NAME 5555:5555
How do I stop it after I start it?
I've searched through
oc port-forward --help
...
2
votes
2
answers
5k
views
openshift client tools for windows, rhc setup error
C:\files\ruby>rhc setup --debug
DEBUG: Using config file C:/Users/files/.openshift/express.conf
DEBUG: Running greeting_stage
OpenShift Client Tools (RHC) Setup Wizard
This wizard will help you ...