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

Outdated? #9

Open
bronger opened this issue Aug 28, 2015 · 3 comments
Open

Outdated? #9

bronger opened this issue Aug 28, 2015 · 3 comments

Comments

@bronger
Copy link

bronger commented Aug 28, 2015

If I follow https://coreos.com/blog/managing-coreos-with-ansible/, I run into some problems, possibly because I use Ansible 1.9.2 and a current CoreOS. When calling

ansible-playbook -i inventory/vagrant bootstrap.yml

I get

PLAY [bootstrap coreos hosts] ************************************************* 

TASK: [defunctzombie.coreos-bootstrap | Check if bootstrap is needed] ********* 
failed: [core-01] => {"rc": 1}
stdout: stat: cannot stat '/home/core/.bootstrapped': No such file or directory

...ignoring

TASK: [defunctzombie.coreos-bootstrap | Run bootstrap.sh] ********************* 
changed: [core-01]

TASK: [defunctzombie.coreos-bootstrap | Check if we need to install pip] ****** 
failed: [core-01] => {"changed": false, "cmd": "PATH=/home/core/bin:$PATH python -m pip --version", "delta": "0:00:00.038934", "end": "2015-08-28 19:40:19.982748", "rc": 1, "start": "2015-08-28 19:40:19.943814", "stdout_lines": [], "warnings": []}
stderr: /home/core/pypy/bin/pypy: /lib64/libssl.so.1.0.0: no version information available (required by /home/core/pypy/bin/pypy)
/home/core/pypy/bin/pypy: /lib64/libcrypto.so.1.0.0: no version information available (required by /home/core/pypy/bin/pypy)
/home/core/pypy/bin/pypy: No module named pip
...ignoring

TASK: [defunctzombie.coreos-bootstrap | Copy get-pip.py] ********************** 
failed: [core-01] => {"checksum": "6aa4ab7873ad21e4316f0deadbbc794c5a46e93c", "failed": true}
msg: Aborting, target uses selinux but python bindings (libselinux-python) aren't installed!

FATAL: all hosts have already failed -- aborting

PLAY RECAP ******************************************************************** 
           to retry, use: --limit @/home/bronger/bootstrap.retry

core-01                    : ok=3    changed=1    unreachable=0    failed=1   
@dhawal55
Copy link

dhawal55 commented May 12, 2016

+1

PLAY [bootstrap coreos hosts] **************************************************

TASK [defunctzombie.coreos-bootstrap : Check if bootstrap is needed] ***********
fatal: [core-worker-01]: FAILED! => {"changed": false, "failed": true, "rc": 1, "stderr": "", "stdout": "stat: cannot stat '/home/core/.bootstrapped': No such file or directory\r\n", "stdout_lines": ["stat: cannot stat '/home/core/.bootstrapped': No such file or directory"]}
...ignoring

TASK [defunctzombie.coreos-bootstrap : Run bootstrap.sh] ***********************
changed: [core-worker-01]

TASK [defunctzombie.coreos-bootstrap : Check if we need to install pip] ********
fatal: [core-worker-01]: FAILED! => {"changed": false, "failed": true, "module_stderr": "", "module_stdout": "/bin/bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)\r\n/home/core/pypy/bin/pypy: /lib64/libssl.so.1.0.0: no version information available (required by /home/core/pypy/bin/pypy)\r\n/home/core/pypy/bin/pypy: /lib64/libcrypto.so.1.0.0: no version information available (required by /home/core/pypy/bin/pypy)\r\n/bin/sh: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)\r\nTraceback (most recent call last):\r\n  File \"app_main.py\", line 75, in run_toplevel\r\n  File \"/home/core/.ansible/tmp/ansible-tmp-1463092970.49-87281356546329/command\", line 114, in <module>\r\n    exitcode = invoke_module(module, zipped_mod, ZIPLOADER_PARAMS)\r\n  File \"/home/core/.ansible/tmp/ansible-tmp-1463092970.49-87281356546329/command\", line 28, in invoke_module\r\n    p = subprocess.Popen(['PATH=/home/core/bin:$PATH python', module], env=os.environ, shell=False, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE)\r\n  File \"/home/core/pypy/lib-python/2.7/subprocess.py\", line 710, in __init__\r\n    errread, errwrite)\r\n  File \"/home/core/pypy/lib-python/2.7/subprocess.py\", line 1331, in _execute_child\r\n    raise child_exception\r\nOSError: [Errno 2] No such file or directory\r\n", "msg": "MODULE FAILURE", "parsed": false}
...ignoring

TASK [defunctzombie.coreos-bootstrap : Copy get-pip.py] ************************
fatal: [core-worker-01]: FAILED! => {"failed": true, "msg": "Failed to get information on remote file (/home/core/get-pip.py): MODULE FAILURE"}

NO MORE HOSTS LEFT *************************************************************
    to retry, use: --limit @bootstrap.retry

PLAY RECAP *********************************************************************
core-worker-01             : ok=3    changed=1    unreachable=0    failed=1   

@edevil
Copy link

edevil commented May 27, 2016

I'm also having problems bootstrapping a CoreOS node to use ansible. I reported here.

@jgarcia-radius
Copy link

I found these changes fixed the project: #13

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

No branches or pull requests

4 participants