Closed matzew closed 6 years ago
for me the issue was solved by adding the --net=host
docker run command. But i am then facing same error as https://github.com/ansibleplaybookbundle/ansible-playbook-bundle/issues/212
apb image i am using is docker.io/ansibleplaybookbundle/apb-tools latest 79b05404db24 4 days ago 730.2 MB
@sudhirpandey does pip install -U openshift kubernetes
help fix the error "Exception occurred! 'module' object has no attribute 'configuration'"
?
Nevermind, you're using the container. I'll check the versions in there.
@sudhirpandey try using the 'canary' tag for the containerized apb-tool. Latest will need to be rebuilt.
alias apb='docker run --rm --privileged -v $PWD:/mnt -v $HOME/.kube:/.kube -v /var/run/docker.sock:/var/run/docker.sock -u $UID docker.io/ansibleplaybookbundle/apb-tools:canary'
@rthallisey canary worked thanks :).
how ever my alias looks like this
alias apb='docker run --rm --privileged --net=host -v $PWD:/mnt -v $HOME/.kube:/root/.kube -v /var/run/docker.sock:/var/run/docker.sock -u $UID docker.io/ansibleplaybookbundle/apb-tools:canary'
with out --net=host, it would fails on apb list
usermod: group 'apb' does not exist
2018-01-26 12:50:03,797 WARNING Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x337fb90>: Failed to establish a new connection: [Errno 111] Connection refused',)': /oapi/v1/namespaces/ansible-service-broker/routes
2018-01-26 12:50:03,797 WARNING Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x337f9d0>: Failed to establish a new connection: [Errno 111] Connection refused',)': /oapi/v1/namespaces/ansible-service-broker/routes
2018-01-26 12:50:03,798 WARNING Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<urllib3.connection.VerifiedHTTPSConnection object at 0x337fe90>: Failed to establish a new connection: [Errno 111] Connection refused',)': /oapi/v1/namespaces/ansible-service-broker/routes
Exception occurred! Could not find route to ansible-service-broker. Use --broker or log into the cluster using "oc login"
i guess its expected as it would not be able to connect to cluster which its trying to reach via 127.0.0.1:8443
, as apb docker container itself comes up with lo
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
and specifying the broker url as apb list --broker asb-1338-ansible-service-broker.labs.
works
Installing the
apb
CLI locally, via dnf (version1.1.1.1
), I am able to push to Openshift/ASB. But running into exactly this problem: https://github.com/ansibleplaybookbundle/ansible-playbook-bundle/issues/180However, when I am using the same cluster environment (I am using the
run_latest_build.sh
from the ASB), I am not able to perform a push, like:This does actually result in this problem:
I have a make file that basically embeds the
apb push --openshift1