question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Deployment to OpenShift 4.6 not working using login parameters instead of oc login

See original GitHub issue

Description

Info

  • f-m-p version :

  • Maven version (mvn -v) : 3.6.3

  • Kubernetes / OpenShift setup and version : OpenShift 4.6.9

  • If it’s a bug, how to reproduce 👍

    • Ensure that you are nto logged in locally oc logout
    • Create a project in an OpenShift 4.6.x instance, fo risntance named 78
    • clone https://github.com/apupier/fabric8-maven-plugin-not-working-example
    • cd ose-78
    • mvn clean install fabric8:deploy -Dkubernetes.master=https://api.crc.testing:6443 -Dkubernetes.namespace=78 -Dkubernetes.auth.basic.username=developer -Dkubernetes.auth.basic.password=developer -Dfabric8.mode=openshift -Dkubernetes.trust.certificates=true -Dfabric8.build.strategy=s2i -Dkubernetes.auth.tryServiceAccount=false -Dfabric8.generator.from=registry.access.redhat.com/fuse7/fuse-java-openshift -Dfabric8.generator.fromMode=docker -Dkubernetes.auth.tryKubeConfig=false

the error is:

INFO] --- fabric8-maven-plugin:7.8.0.fuse-sb2-780038-redhat-00001:build (default) @ camel-ose-springboot-xml ---
[INFO] F8: Running in OpenShift mode
[INFO] F8: Using OpenShift build with strategy S2I
[INFO] F8: Running generator spring-boot
[INFO] F8: spring-boot: Using Container image registry.access.redhat.com/fuse7/fuse-java-openshift as base / builder
[ERROR] F8: Failed to execute the build: java.lang.IllegalStateException: Openshift platform has been specified but Openshift has not been detected!

I tried several variations but this one is working for sure with OpenShift 3.11. With same project, when logged in through oc, it is workign fine deployign on OpenShift 4.6.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
apupiercommented, May 6, 2021

fixed with openshift-maven-plugin

0reactions
stale[bot]commented, May 6, 2021

This issue has been automatically marked as stale because it has not had any activity since 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Deployment to OpenShift 4.6 not working using login ... - GitHub
Info · Ensure that you are nto logged in locally oc logout · Create a project in an OpenShift 4.6.x instance, fo risntance...
Read more >
Chapter 3. Logging in to the cluster OpenShift Container ...
You can log in to your cluster as a default system user by exporting the cluster kubeconfig file. The kubeconfig file contains information...
Read more >
Troubleshooting installations | OpenShift Container Platform 4.6
If the API is not functional, review the logs using SSH instead. ... bootstrap node's console, monitor the console until the node reaches...
Read more >
OpenShift CLI developer command reference
Run oc help to list all commands or run oc <command> --help to get additional details for a specific command. OpenShift CLI (oc)...
Read more >
Troubleshooting Guide for OpenShift Container Platform
These values being set incorrectly have implications when deploying your Docker registry. Intermittent Login issues (htpasswd). Using htpasswd, it is possible ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found