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

Error when Deploy to Dev #145

Open
bfields3 opened this issue Nov 15, 2020 · 2 comments
Open

Error when Deploy to Dev #145

bfields3 opened this issue Nov 15, 2020 · 2 comments

Comments

@bfields3
Copy link

bfields3 commented Nov 15, 2020

While trying both methods of deployment (using automated provision.h script and deleting all projects and then trying manual method), The same error appears while trying to depoy to dev. It seems as if changing project names outside of cicd, stage, or dev produces the error. Erri is as follows:

sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
+ cp target/openshift-tasks.war target/ROOT.war
[Pipeline] script
[Pipeline] {
[Pipeline] echo

[Pipeline] _OcContextInit
[Pipeline] _OcContextInit
[Pipeline] readFile
[Pipeline] _OcAction
[Pipeline] }
[Pipeline] // script
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Deploy DEV)
[Pipeline] script
[Pipeline] {
[Pipeline] _OcContextInit
[Pipeline] _OcContextInit
[Pipeline] readFile
[Pipeline] _OcAction
[rollout:latest:deploymentconfig/tasks] Error from server (NotFound): deploymentconfigs.apps.openshift.io "tasks" not found```
@rbaumgar
Copy link

rbaumgar commented Dec 7, 2020

same problem here OpenShift 4.6.6

[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 11.029 s
[INFO] Finished at: 2020-12-07T10:55:38Z
[INFO] ------------------------------------------------------------------------
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Build Image)
[Pipeline] sh
sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
+ cp target/openshift-tasks.war target/ROOT.war

@rbaumgar
Copy link

rbaumgar commented Dec 7, 2020

Found reason!
I deployed with

./provision.sh deploy --enable-quay --quay-username [email protected] --quay-password password

errors in cicd-demo-installer pod

+ oc new-app --name=tasks --docker-image=quay.io/[email protected]/tasks-app:latest --allow-missing-images --as-deployment-config -n dev-demo
error: can't include "quay.io/[email protected]/tasks-app:latest": invalid reference format

+ oc new-app --name=tasks --docker-image=quay.io/[email protected]/tasks-app:stage --allow-missing-images --as-deployment-config -n stage-demo
error: can't include "quay.io/[email protected]/tasks-app:stage": invalid reference format

so deploy with quay user-name and not email!

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

No branches or pull requests

2 participants