-
Notifications
You must be signed in to change notification settings - Fork 107
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
Can not apply cluster, "sudo: a password is required" #1209
Comments
The reason I want to run the latest is that it have the option Also at some stage we need to upgrade anyway, |
Hi @sunshine69! So far I failed to reproduce the issue :(, I tried steps below (followed the docs here): $ docker pull epiphanyplatform/epicli:0.6.0
$ docker run -it -v `pwd`:/shared --rm epiphanyplatform/epicli:0.6.0
epiuser@(redacted):/shared$ epicli apply -f any1.yml where any1.yml is just a standard config file which looks like: kind: epiphany-cluster
title: "Epiphany cluster Config"
provider: any
name: "any1"
specification:
name: any1
admin_user:
name: ubuntu
key_path: /shared/id_rsa
components:
kubernetes_master:
count: 1
machines:
- default-k8s-master1
kubernetes_node:
count: 2
machines:
- default-k8s-node1
- default-k8s-node2
logging:
count: 0
monitoring:
count: 0
kafka:
count: 0
postgresql:
count: 0
load_balancer:
count: 0
rabbitmq:
count: 0
---
kind: configuration/shared-config
title: Shared configuration that will be visible to all roles
name: default
specification:
use_ha_control_plane: false
promote_to_ha: false
provider: any
---
kind: infrastructure/machine
provider: any
name: default-k8s-master1
specification:
hostname: x1a1
ip: 10.20.2.10
---
kind: infrastructure/machine
provider: any
name: default-k8s-node1
specification:
hostname: x1b1
ip: 10.20.2.20
---
kind: infrastructure/machine
provider: any
name: default-k8s-node2
specification:
hostname: x1b2
ip: 10.20.2.21 The Could you provide more info about what operating system you use to execute that docker container on and maybe exact steps how you enter it? Do you modify the image in any way? Thanks for reporting the issue! |
Right, it might be the Let me look at that and repeat the process again. I will post update here. Thanks a lot for looking into this. Kind regards |
Yes confirmed. If the user run the epicli inside the epiphany container has sudo without root, or just use the default user epiuser (I have to edit to change the uid and gid to match with my current user as in ubuntu the first user defauled not 1000, but 1001.) - then the issues is gone. However I got another error which is missing gpg-agent in the ubuntu system. Might create a PR to add these missing package in the ansible later on when I get all full list. The ubuntu system I got is very minimum. |
Hi @sunshine69! I carefully reviewed the code and found that this is really unnecessary for sudo to be required for Here's the pull-req that is going to fix that #1217. :) Thanks. |
Thanks I will give it a test tomorrow |
Hi team,
I am playing with docker image 0.6.0 and then the latest develop branch build as a docker image which leads to the same error message.
Let me describe the steps I did:
--net host
so it stays the same network with the three nodesIt runs for a while (quick) and got error
I wonder what I did wrong. Or a known bug?
Please note that version docker tag 0.4.2 does not have the issues, it build the cluster just fine.
I will share the dump file if requested.
Thanks team.
The text was updated successfully, but these errors were encountered: