Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update of OpenShift task from 2.0.12 to 2.0.13 in Azure DevOps results in "auth data not present" error #170

Closed
LudovitVarga opened this issue Apr 27, 2020 · 1 comment · Fixed by #171

Comments

@LudovitVarga
Copy link

Hi.

I now, this is not "true issue" as i already resolve problem, but i think this breaking change should be mentioned in documentation or at least in issue list for other people in future, as i wasted some time to figure out what happened.

Last release 1.6.0 (April 24, 2020) introduced in Azure DevOps OpenShift task "Execute oc command" changes that cause that Azure DevOps release pipeline created using plugin 2.0.12 is failing with following error:

2020-04-27T08:58:39.5151322Z ##[section]Starting: Apply Kubernetes manifest
2020-04-27T08:58:39.5155091Z ==============================================================================
2020-04-27T08:58:39.5155145Z Task : Execute oc command
2020-04-27T08:58:39.5155192Z Description : OpenShift execute CLI command.
2020-04-27T08:58:39.5155223Z Version : 2.0.13
2020-04-27T08:58:39.5155253Z Author : Red Hat
2020-04-27T08:58:39.5155281Z Help : See getting started
2020-04-27T08:58:39.5155328Z ==============================================================================
2020-04-27T08:58:39.9285370Z [command]/usr/bin/curl -s -L -o /data/myagent/_work/r2/a/.download/openshift-client-linux.tar.gz https://mirror.openshift.com/pub/openshift-v4/clients/ocp/latest/openshift-client-linux.tar.gz
2020-04-27T08:58:41.1956687Z
2020-04-27T08:58:42.4457140Z ##[error]Endpoint auth data not present: undefined
2020-04-27T08:58:42.4501546Z ##[error]Endpoint not present: undefined
2020-04-27T08:58:42.4721412Z ##[section]Finishing: Apply Kubernetes manifest

I find out, this is caused by fact that version 2.0.12 generates pipeline task definition that is not compatible with version 2.0.13 and i had to load, modify (any irrelevant change is good enough) and save release pipeline so new version of definition is created and saved.

@lstocchi
Copy link
Contributor

@LudovitVarga sorry for the issue and thanks for opening this. It will be surely useful for other users. By adding the new tests (for conditional cmd and runtime config) to my pipeline i updated the task definition unintentionally and i completely miss this part. Thanks again.

lstocchi added a commit to lstocchi/openshift-vsts that referenced this issue Apr 27, 2020
Signed-off-by: Luca Stocchi <lstocchi@redhat.com>
lstocchi added a commit that referenced this issue Apr 27, 2020
Signed-off-by: Luca Stocchi <lstocchi@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants