Skip to content
This repository has been archived by the owner on Jul 6, 2022. It is now read-only.

Failure during APB deployment #30

Closed
cwilkers opened this issue Jun 4, 2018 · 1 comment
Closed

Failure during APB deployment #30

cwilkers opened this issue Jun 4, 2018 · 1 comment

Comments

@cwilkers
Copy link

cwilkers commented Jun 4, 2018

This is possibly due to an incorrectly mapped path in the apb's Makefile

make[1]: Entering directory `/root/ovirt-openshift-extensions/deployment/ovirt-flexvolume-driver-apb'
docker run --rm --privileged -v /root/ovirt-openshift-extensions/deployment/ovirt-flexvolume-driver-apb:/mnt:z -v /root/.kube:/.kube -v /var/run/docker.sock:/var/run/docker.sock -u 0 docker.io/ansibleplaybookbundle/apb-tools:latest push
groupadd: GID '0' already exists
usermod: group 'apb' does not exist
Exception occurred! [Errno 2] No such file or directory: '/root/.kube/config'
make[1]: *** [apb_push] Error 1
make[1]: Leaving directory `/root/ovirt-openshift-extensions/deployment/ovirt-flexvolume-driver-apb'
make: *** [apb_push] Error 2

I was able to work around this by changing the mapping from ${HOME}/.kube:/.kube to ${HOME}/.kube:/root/.kube

rgolangh added a commit to rgolangh/ovirt-openshift-extensions that referenced this issue Jul 3, 2018
Using uid 1000 during the apb invocation using its containers makes sure
that it can see the mounted kubeconfig. This makes it possibly to push
both as a regular and root user.

Signed-off-by: Roy Golan <[email protected]>
Fixes: oVirt#30
@rgolangh
Copy link
Contributor

rgolangh commented Jul 3, 2018

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants