This repository was archived by the owner on Mar 23, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 388
This repository was archived by the owner on Mar 23, 2019. It is now read-only.
"Authentication or permission failure" during build process #577
Copy link
Copy link
Open
Labels
Description
ISSUE TYPE
- Bug Report
container.yml
version: "2"
settings:
conductor_base: centos:7
services:
web:
ports:
- 80:8000
roles:
- testapp
Where testapp is a python:3 based role.
SUMMARY
When running ansible-container build
from Python 3.5, the process crashes right after completing the conductor image and starting to build the service image.
I'm not exactly sure whether this is an ansible-container or ansible bug, but I've been running Ansible with this setup (Python 3.5) for a while and never encountered this issue outside this use case.
STEPS TO REPRODUCE
Run ansible-container build
EXPECTED RESULTS
The service image should be built correctly.
ACTUAL RESULTS
<21d1e7dd4d26e037bf74c25b7f3fee568a15a976f589e91426826db64bf5ec2e> EXEC ['/usr/local/bin/docker', 'exec', '-i', u'21d1e7dd4d26e037bf74c25b7f3fee568a15a976f589e91426826db64bf5ec2e', u'/bin/sh', '-c', u'/bin/sh -c \'( umask 77 && mkdir -p "` echo ~/.ansible/tmp/ansible-tmp-1496512485.12-114174128545119 `" && echo ansible-tmp-1496512485.12-114174128545119="` echo ~/.ansible/tmp/ansible-tmp-1496512485.12-114174128545119 `" ) && sleep 0\'']
fatal: [web]: UNREACHABLE! => {
"changed": false,
"msg": "Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the target directory. Consider changing the remote temp path in ansible.cfg to a path rooted in \"/tmp\". Failed command was: ( umask 77 && mkdir -p \"` echo ~/.ansible/tmp/ansible-tmp-1496512485.12-114174128545119 `\" && echo ansible-tmp-1496512485.12-114174128545119=\"` echo ~/.ansible/tmp/ansible-tmp-1496512485.12-114174128545119 `\" ), exited with result 1",
"unreachable": true
}
WORKAROUND
Running ansible-container build --use-local-python
completes the build correctly.
OS / ENVIRONMENT
Ansible Container, version 0.9.2rc0
Linux, localhost, 4.4.0-79-generic, #100~14.04.1-Ubuntu SMP Fri May 19 18:36:51 UTC 2017, x86_64
3.5.3 (default, May 6 2017, 00:22:52)
[GCC 4.8.4] /home/.../bin/python3.5
{
"InitBinary": "docker-init",
"DriverStatus": [
[
"Root Dir",
"/var/lib/docker/aufs"
],
[
"Backing Filesystem",
"extfs"
],
[
"Dirs",
"29"
],
[
"Dirperm1 Supported",
"true"
]
],
"ClusterAdvertise": "",
"InitCommit": {
"Expected": "949e6fa",
"ID": "949e6fa"
},
"RuncCommit": {
"Expected": "54296cf40ad8143b62dbcaa1d90e520a2136ddfe",
"ID": "54296cf40ad8143b62dbcaa1d90e520a2136ddfe"
},
"Containers": 1,
"Labels": null,
"MemTotal": 6102839296,
"Runtimes": {
"runc": {
"path": "docker-runc"
}
},
"Plugins": {
"Network": [
"bridge",
"host",
"macvlan",
"null",
"overlay"
],
"Volume": [
"local"
],
"Authorization": null
},
"ContainersPaused": 0,
"DefaultRuntime": "runc",
"SystemTime": "2017-06-03T20:26:24.275069044+02:00",
"BridgeNfIptables": true,
"NCPU": 4,
"CpuCfsPeriod": true,
"CPUSet": true,
"IPv4Forwarding": true,
"OomKillDisable": true,
"Architecture": "x86_64",
"SwapLimit": false,
"Images": 14,
"CPUShares": true,
"LoggingDriver": "json-file",
"OperatingSystem": "Ubuntu 14.04.5 LTS",
"NoProxy": "",
"KernelVersion": "4.4.0-79-generic",
"HttpsProxy": "",
"Isolation": "",
"ExperimentalBuild": false,
"BridgeNfIp6tables": true,
"Name": "localhost",
"MemoryLimit": true,
"CgroupDriver": "cgroupfs",
"SystemStatus": null,
"IndexServerAddress": "https://index.docker.io/v1/",
"DockerRootDir": "/var/lib/docker",
"CpuCfsQuota": true,
"SecurityOptions": [
"name=apparmor"
],
"Debug": false,
"HttpProxy": "",
"ID": "WATP:X33H:FWGQ:BAEX:CHVS:L3NA:KXEC:RFCU:B3VN:AANJ:PDDJ:OGLE",
"RegistryConfig": {
"IndexConfigs": {
"docker-host:5000": {
"Secure": false,
"Name": "docker-host:5000",
"Official": false,
"Mirrors": []
},
"docker.io": {
"Secure": true,
"Name": "docker.io",
"Official": true,
"Mirrors": null
}
},
"InsecureRegistryCIDRs": [
"127.0.0.0/8"
],
"Mirrors": []
},
"ContainersStopped": 0,
"ContainersRunning": 1,
"Swarm": {
"Nodes": 0,
"Managers": 0,
"ControlAvailable": false,
"LocalNodeState": "inactive",
"RemoteManagers": null,
"Cluster": {
"Spec": {
"CAConfig": {},
"TaskDefaults": {},
"EncryptionConfig": {
"AutoLockManagers": false
},
"Dispatcher": {},
"Raft": {
"ElectionTick": 0,
"HeartbeatTick": 0
},
"Orchestration": {}
},
"CreatedAt": "0001-01-01T00:00:00Z",
"UpdatedAt": "0001-01-01T00:00:00Z",
"Version": {},
"ID": ""
},
"NodeID": "",
"NodeAddr": "",
"Error": ""
},
"OSType": "linux",
"NGoroutines": 26,
"NFd": 20,
"ServerVersion": "17.03.1-ce",
"ContainerdCommit": {
"Expected": "4ab9917febca54791c5f071a9d1f404867857fcc",
"ID": "4ab9917febca54791c5f071a9d1f404867857fcc"
},
"NEventsListener": 0,
"KernelMemory": true,
"ClusterStore": "",
"Driver": "aufs",
"LiveRestoreEnabled": false
}
{
"GoVersion": "go1.7.5",
"BuildTime": "2017-03-27T17:10:36.401799458+00:00",
"Version": "17.03.1-ce",
"Arch": "amd64",
"Os": "linux",
"GitCommit": "c6d412e",
"ApiVersion": "1.27",
"MinAPIVersion": "1.12",
"KernelVersion": "4.4.0-79-generic"
}
KevinMGranger