Hi all,
I'm struggling with UCD and the Openshift Plugin. I'm very experienced with UCD but just starting with Openshift - just so you know where my strengths lie. I am using an UCD Server on a Linux VM communicating with an Agent deployed in Openshift by using the
UrbanCode Deploy agent Operator.Here's where I am floundering. I am trying to use the 'Start Build' step from the plugin in a component process.
The oc start-build (the command built by the plugin step) requires you to be logged in, so In my process I start by using the 'Login' step. when this step executes I was getting an error from my agent pod which I had to circumvent by create a post processing script to ignore the error, but the result says I am logged in.
[Action] Logging into OpenShift server...
[Error] Could not log in.
error: KUBECONFIG is set to a file that cannot be created or modified: /.kube/config; caused by: mkdir /.kube: permission denied
Login successful.
You have access to 68 projects, the list has been suppressed. You can list all projects with 'oc projects'
Using project "default".
The next step in the process is the 'Start Build.' In this step, I only supplied my username and it replies that the user does not exist. I know this is not true, because I just logged in with that user - not sure if this is an Openshift or UCD bug (is it a bug?). Note that in the error message it says nothing about not being logged in - just that the user doesn't exist.
[Action] Executing start-build Operation...
command: oc start-build --namespace=node-web-app --user=Thomas --insecure-skip-tls-verify node-web-app-git --wait
[Error] Start-build operation failed.
error: auth info "Thomas" does not exist
The only way I make this work is by passing an Auth Token, but then auth tokens expire after a set time period so that is impractical.
How do get around this?
------------------------------
Thomas Gould
------------------------------