kolla-toolbox ansible requires broken

Bug #1546449 reported by Allen Gao on 2016-02-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Critical
Allen Gao

Bug Description

failed: [localhost] => {"attempts": 10, "changed": false, "cmd": ["docker", "exec", "-t", "kolla_toolbox", "/usr/bin/ansible", "localhost", "-m", "mysql_user", "-a", "login_host='192.168.125.100' login_port='3306' login_user='root' login_password='password' name='haproxy' password='' host='%'"], "delta": "0:00:00.211643", "end": "2016-02-17 16:57:55.889256", "failed": true, "rc": 250, "start": "2016-02-17 16:57:55.677613", "stdout_lines": ["Unexpected Exception: No module named jinja2.exceptions", "the full traceback was:", "", "Traceback (most recent call last):", " File \"/usr/bin/ansible\", line 73, in <module>", " from ansible.cli.adhoc import AdHocCLI as mycli", " File \"/usr/lib/python2.7/site-packages/ansible/cli/adhoc.py\", line 28, in <module>", " from ansible.executor.task_queue_manager import TaskQueueManager", " File \"/usr/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py\", line 29, in <module>", " from ansible.executor.play_iterator import PlayIterator", " File \"/usr/lib/python2.7/site-packages/ansible/executor/play_iterator.py\", line 29, in <module>", " from ansible.playbook.block import Block", " File \"/usr/lib/python2.7/site-packages/ansible/playbook/__init__.py\", line 25, in <module>", " from ansible.playbook.play import Play", " File \"/usr/lib/python2.7/site-packages/ansible/playbook/play.py\", line 27, in <module>", " from ansible.playbook.base import Base", " File \"/usr/lib/python2.7/site-packages/ansible/playbook/base.py\", line 32, in <module>", " from jinja2.exceptions import UndefinedError", "ImportError: No module named jinja2.exceptions"], "warnings": []}
stdout: Unexpected Exception: No module named jinja2.exceptions
the full traceback was:

Traceback (most recent call last):
  File "/usr/bin/ansible", line 73, in <module>
    from ansible.cli.adhoc import AdHocCLI as mycli
  File "/usr/lib/python2.7/site-packages/ansible/cli/adhoc.py", line 28, in <module>
    from ansible.executor.task_queue_manager import TaskQueueManager
  File "/usr/lib/python2.7/site-packages/ansible/executor/task_queue_manager.py", line 29, in <module>
    from ansible.executor.play_iterator import PlayIterator
  File "/usr/lib/python2.7/site-packages/ansible/executor/play_iterator.py", line 29, in <module>
    from ansible.playbook.block import Block
  File "/usr/lib/python2.7/site-packages/ansible/playbook/__init__.py", line 25, in <module>
    from ansible.playbook.play import Play
  File "/usr/lib/python2.7/site-packages/ansible/playbook/play.py", line 27, in <module>
    from ansible.playbook.base import Base
  File "/usr/lib/python2.7/site-packages/ansible/playbook/base.py", line 32, in <module>
    from jinja2.exceptions import UndefinedError
ImportError: No module named jinja2.exceptions
msg: Task failed as maximum retries was encountered

FATAL: all hosts have already failed -- aborting

Allen Gao (wanlong-gao) wrote :
Download full text (3.7 KiB)

This commit[0] is trying to remove package pytz, but also removed the deps packages :

INFO:kolla.cmd.build:kolla-toolbox:Loaded plugins: fastestmirror, ovl, priorities, versionlock
INFO:kolla.cmd.build:kolla-toolbox:Resolving Dependencies
INFO:kolla.cmd.build:kolla-toolbox:--> Running transaction check
INFO:kolla.cmd.build:kolla-toolbox:---> Package pytz.noarch 0:2012d-5.el7 will be erased
INFO:kolla.cmd.build:kolla-toolbox:--> Processing Dependency: pytz for package: python-babel-1.3-6.el7.noarch
INFO:kolla.cmd.build:kolla-toolbox:--> Running transaction check
INFO:kolla.cmd.build:kolla-toolbox:---> Package python-babel.noarch 0:1.3-6.el7 will be erased
INFO:kolla.cmd.build:kolla-toolbox:--> Processing Dependency: python-babel >= 0.8 for package: python-jinja2-2.7.2-2.el7.noarch
INFO:kolla.cmd.build:kolla-toolbox:--> Running transaction check
INFO:kolla.cmd.build:kolla-toolbox:---> Package python-jinja2.noarch 0:2.7.2-2.el7 will be erased
INFO:kolla.cmd.build:kolla-toolbox:--> Finished Dependency Resolution
INFO:kolla.cmd.build:kolla-toolbox:Dependencies Resolved
INFO:kolla.cmd.build:kolla-toolbox:================================================================================
INFO:kolla.cmd.build:kolla-toolbox: Package Arch Version Repository Size
INFO:kolla.cmd.build:kolla-toolbox:================================================================================
INFO:kolla.cmd.build:kolla-toolbox:Removing:
INFO:kolla.cmd.build:kolla-toolbox: pytz noarch 2012d-5.el7 @base 139 k
INFO:kolla.cmd.build:kolla-toolbox:Removing for dependencies:
INFO:kolla.cmd.build:kolla-toolbox: python-babel noarch 1.3-6.el7 @delorean-liberty-testing 9.0 M
INFO:kolla.cmd.build:kolla-toolbox: python-jinja2 noarch 2.7.2-2.el7 @base 3.0 M
INFO:kolla.cmd.build:kolla-toolbox:Transaction Summary
INFO:kolla.cmd.build:kolla-toolbox:================================================================================
INFO:kolla.cmd.build:kolla-toolbox:Remove 1 Package (+2 Dependent packages)
INFO:kolla.cmd.build:kolla-toolbox:Installed size: 12 M
INFO:kolla.cmd.build:kolla-toolbox:Downloading packages:
INFO:kolla.cmd.build:kolla-toolbox:Running transaction check
INFO:kolla.cmd.build:kolla-toolbox:Running transaction test
INFO:kolla.cmd.build:kolla-toolbox:Transaction test succeeded
INFO:kolla.cmd.build:kolla-toolbox:Running transaction
INFO:kolla.cmd.build:kolla-toolbox: Erasing : python-jinja2-2.7.2-2.el7.noarch 1/3
INFO:kolla.cmd.build:kolla-toolbox:
INFO:kolla.cmd.build:kolla-toolbox: Erasing : python-babel-1.3-6.el7.noarch 2/3
INFO:kolla.cmd.build:kolla-toolbox:
INFO:kolla.cmd.build:kolla-toolbox: Erasing : pytz-2012d-5.el7.noarch 3/3
INFO:kolla.cmd.build:kolla-toolbox:
INFO:kolla.cmd.build:kolla-toolbox: Verifying : python-babel-1.3-6.el7.noarch 1/3
INFO:kolla.cmd.build:kolla-toolbox:
INFO:kolla.cmd.build:kolla-toolbox: Verifying : pytz-2012d-5.el7.noarch 2...

Read more...

Changed in kolla:
assignee: nobody → Allen Gao (wanlong-gao)

Fix proposed to branch: master
Review: https://review.openstack.org/281159

Changed in kolla:
status: New → In Progress
Steven Dake (sdake) wrote :

Unfortunately I am guilty of not testing my patch because master was broken at the time iirc.

ptyz needs to be removed. rpm -e --nodeps pytz should do the trick (rather then using yum, which removes dependencies).

Changed in kolla:
importance: Undecided → Critical
milestone: none → mitaka-3

Reviewed: https://review.openstack.org/281159
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=3853a8bc89859e3bafaca9674b7bbca066a1f11f
Submitter: Jenkins
Branch: master

commit 3853a8bc89859e3bafaca9674b7bbca066a1f11f
Author: Allen Gao <email address hidden>
Date: Wed Feb 17 17:56:38 2016 +0800

    Fix the incorrectly removed dependent packages

    Change-Id: I3d963cd58ef791d30a90f3a74cac2477dac3edfd
    Closes-Bug: #1546449

Changed in kolla:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers