Guest User

Untitled

a guest
Jan 20th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.75 KB | None | 0 0
  1. Bare Metal Deployment of Kolla
  2. single node VM setup: Ubuntu 14.04
  3. Docker version 1.9.0, Ansible 1.9.4, Name: docker-py: Version: 1.6.0
  4.  
  5. Issue:
  6. TASK: [mariadb | Creating haproxy mysql user] *********************************
  7. failed: [localhost] => {"attempts": 10, "changed": false, "cmd": ["docker", "exec", "-t", "kolla_ansible", "/usr/bin/ansible", "localhost", "-m", "mysql_user", "-a", "login_host='10.0.4.118' login_port='3306' login_user='root' login_password='password' name='haproxy' password='' host='%'"], "delta": "0:00:00.270511", "end": "2016-01-20 14:43:55.307369", "failed": true, "rc": 1, "start": "2016-01-20 14:43:55.036858", "stdout_lines": ["[WARNING]: log file at /var/log/ansible.log is not writeable, aborting", "", "Traceback (most recent call last):", " File \"/usr/bin/ansible\", line 40, in <module>", " from ansible.utils.display import Display", " File \"/usr/lib/python2.7/dist-packages/ansible/utils/display.py\", line 57, in <module>", " logging.basicConfig(filename=path, level=logging.DEBUG, format='%(asctime)s %(name)s %(message)s')", " File \"/usr/lib/python2.7/logging/__init__.py\", line 1532, in basicConfig", " hdlr = FileHandler(filename, mode)", " File \"/usr/lib/python2.7/logging/__init__.py\", line 903, in __init__", " StreamHandler.__init__(self, self._open())", " File \"/usr/lib/python2.7/logging/__init__.py\", line 928, in _open", " stream = open(self.baseFilename, self.mode)", "IOError: [Errno 13] Permission denied: '/var/log/ansible.log'"], "warnings": []}
  8. stdout: [WARNING]: log file at /var/log/ansible.log is not writeable, aborting
  9.  
  10. Traceback (most recent call last):
  11. File "/usr/bin/ansible", line 40, in <module>
  12. from ansible.utils.display import Display
  13. File "/usr/lib/python2.7/dist-packages/ansible/utils/display.py", line 57, in <module>
  14. logging.basicConfig(filename=path, level=logging.DEBUG, format='%(asctime)s %(name)s %(message)s')
  15. File "/usr/lib/python2.7/logging/__init__.py", line 1532, in basicConfig
  16. hdlr = FileHandler(filename, mode)
  17. File "/usr/lib/python2.7/logging/__init__.py", line 903, in __init__
  18. StreamHandler.__init__(self, self._open())
  19. File "/usr/lib/python2.7/logging/__init__.py", line 928, in _open
  20. stream = open(self.baseFilename, self.mode)
  21. IOError: [Errno 13] Permission denied: '/var/log/ansible.log'
  22. msg: Task failed as maximum retries was encountered
  23.  
  24. FATAL: all hosts have already failed -- aborting
  25.  
  26. PLAY RECAP ********************************************************************
  27. to retry, use: --limit @/home/mykolla/site.retry
  28.  
  29. localhost : ok=39 changed=0 unreachable=0 failed=1
  30.  
  31.  
  32. Note: I have manually give all permission to the file, chmod 777 /var/log/ansible.log , still i get the same issue.
Add Comment
Please, Sign In to add comment