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

Install script ends with error when used more than 1 time #4133

Closed
avano opened this issue Nov 22, 2018 · 6 comments
Closed

Install script ends with error when used more than 1 time #4133

avano opened this issue Nov 22, 2018 · 6 comments
Assignees
Labels
cat/bug A bug which needs fixing closed/migrated group/install Installing Syndesis (templates, scripts) prio/p2 The priority of a bug. p1 means low source/qe Raised by QE status/never-stale Marker that this issue should not be marked as stale

Comments

@avano
Copy link
Member

avano commented Nov 22, 2018

See also https://issues.jboss.org/browse/ENTESB-11440

This is a...


[ ] Feature request
[ ] Regression (a behavior that used to work and stopped working in a new release)
[X] Bug report  
[ ] Documentation issue or request

Description

When using install script more than once, it ends with error because the clusterroles already exists (they are not cleaned when the namespace is deleted).

But syndesis is deployed successfully

./syndesis install --project myproject -y
Deleting project myproject
project "myproject" deleted
Creating project myproject
Project still exists. Sleeping 10s ...
Project still exists. Sleeping 10s ...
Project still exists. Sleeping 10s ...
Already on project "myproject" on server "https://192.168.99.100:8443".
Deploying Syndesis operator
Waiting for syndesis-operator to be scaled to 1
Sleeping 10s ...
NAME                         READY     STATUS    RESTARTS   AGE
syndesis-operator-1-deploy   0/1       Pending   0          2s
syndesis-operator-1-deploy   0/1       Pending   0         2s
syndesis-operator-1-deploy   0/1       ContainerCreating   0         2s
syndesis-operator-1-hjw82   0/1       Pending   0         1s
syndesis-operator-1-hjw82   0/1       Pending   0         1s
syndesis-operator-1-hjw82   0/1       ContainerCreating   0         1s
syndesis-operator-1-deploy   1/1       Running   0         4s
syndesis-operator-1-hjw82   1/1       Running   0         3s
syndesis-operator-1-deploy   0/1       Completed   0         6s
syndesis-operator-1-deploy   0/1       Terminating   0         6s
syndesis-operator-1-deploy   0/1       Terminating   0         6s
ERROR: Cannot create remote resource https://raw.githubusercontent.com/syndesisio/syndesis/master/install/operator/deploy/syndesis-operator.yml

===============================================================

serviceaccount "syndesis-operator" created
role "syndesis-operator" created
rolebinding "syndesis-operator:install" created
rolebinding "syndesis-operator:view" created
rolebinding "syndesis-operator:edit" created
imagestream "syndesis-operator" created
deploymentconfig "syndesis-operator" created
Error from server (AlreadyExists): clusterroles.rbac.authorization.k8s.io "syndesis-operator:myproject" already exists
Error from server (AlreadyExists): clusterrolebindings.authorization.openshift.io "syndesis-operator:oauth:myproject" already exists

@avano avano added cat/bug A bug which needs fixing group/install Installing Syndesis (templates, scripts) prio/p2 The priority of a bug. p1 means low source/qe Raised by QE labels Nov 22, 2018
@pure-bot pure-bot bot added the notif/triage The issue needs triage. Applied automatically to all new issues. label Nov 22, 2018
@zregvart
Copy link
Member

I guess we need to delete cluster-wide resources (if they exist) leftover by previous syndesis install. Would be cool if we could do it via operator but it's a bit of a chicken and egg situation...

@avano
Copy link
Member Author

avano commented Nov 22, 2018

what about this?

oc delete -f install/operator/deploy/syndesis-operator.yml
oc create -f install/operator/deploy/syndesis-operator.yml

@zregvart
Copy link
Member

Yeah, something like that should work, bit more nuanced syndesis-operator.yml is a template so we need to process it first I guess...

@zregvart zregvart self-assigned this Nov 22, 2018
@zregvart zregvart removed the notif/triage The issue needs triage. Applied automatically to all new issues. label Nov 22, 2018
@avano
Copy link
Member Author

avano commented Nov 22, 2018

@stale
Copy link

stale bot commented Feb 20, 2019

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!

@stale stale bot added the status/stale Issue considered to be stale so that it can be closed soon label Feb 20, 2019
@avano avano added status/never-stale Marker that this issue should not be marked as stale and removed status/stale Issue considered to be stale so that it can be closed soon labels Feb 21, 2019
@heiko-braun
Copy link
Collaborator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cat/bug A bug which needs fixing closed/migrated group/install Installing Syndesis (templates, scripts) prio/p2 The priority of a bug. p1 means low source/qe Raised by QE status/never-stale Marker that this issue should not be marked as stale
Projects
None yet
Development

No branches or pull requests

3 participants