"Find gospel node" task crashes during upgrade

Bug #1573684 reported by Vikram Hosakote
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
High
Michał Jastrzębski
Liberty
Fix Released
High
Michał Jastrzębski
Mitaka
Fix Released
High
Michał Jastrzębski

Bug Description

The "Find gospel node" task crashes during upgrade. Below are the steps to reproduce the bug.

$ grep release /etc/kolla/globals.yml
openstack_release: "2.0.1"

$ kolla-build --base ubuntu --type source --debug --registry 192.168.122.201:4000 --tag 2.0.1 --push

$ sudo kolla-ansible upgrade

Below are the errors.

TASK: [rabbitmq | Find gospel node] *******************************************
failed: [localhost] => {"changed": true, "cmd": ["docker", "exec", "-t", "rabbitmq", "/usr/local/bin/rabbitmq_get_gospel_node"], "delta": "0:00:01.052517", "end": "2016-04-22 10:42:46.944975", "failed": true, "failed_when_result": true, "rc": 0, "start": "2016-04-22 10:42:45.892458", "stdout_lines": ["{\"failed\": true, \"changed\": true, \"error\": \"Traceback (most recent call last):\\n File \\\"/usr/local/bin/rabbitmq_get_gospel_node\\\", line 38, in main\\n '\\\\n'.join(raw_status.split('\\\\n')[1:-3])\\n File \\\"/usr/local/bin/rabbitmq_get_gospel_node\\\", line 26, in convert_erlang_to_json\\n return json.loads(term)\\n File \\\"/usr/lib/python2.7/json/__init__.py\\\", line 338, in loads\\n return _default_decoder.decode(s)\\n File \\\"/usr/lib/python2.7/json/decoder.py\\\", line 366, in decode\\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\\n File \\\"/usr/lib/python2.7/json/decoder.py\\\", line 382, in raw_decode\\n obj, end = self.scan_once(s, idx)\\nValueError: Expecting property name: line 1 column 16 (char 15)\\n\"}"], "warnings": []}
stdout: {"failed": true, "changed": true, "error": "Traceback (most recent call last):\n File \"/usr/local/bin/rabbitmq_get_gospel_node\", line 38, in main\n '\\n'.join(raw_status.split('\\n')[1:-3])\n File \"/usr/local/bin/rabbitmq_get_gospel_node\", line 26, in convert_erlang_to_json\n return json.loads(term)\n File \"/usr/lib/python2.7/json/__init__.py\", line 338, in loads\n return _default_decoder.decode(s)\n File \"/usr/lib/python2.7/json/decoder.py\", line 366, in decode\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n File \"/usr/lib/python2.7/json/decoder.py\", line 382, in raw_decode\n obj, end = self.scan_once(s, idx)\nValueError: Expecting property name: line 1 column 16 (char 15)\n"}

FATAL: all hosts have already failed -- aborting

PLAY RECAP ********************************************************************
           to retry, use: --limit @/home/kolla/site.retry

localhost : ok=52 changed=7 unreachable=0 failed=1

Command failed ansible-playbook -i /usr/local/share/kolla/ansible/inventory/all-in-one -e @/etc/kolla/globals.yml -e @/etc/kolla/passwords.yml -e CONFIG_DIR=/etc/kolla -e action=upgrade /usr/local/share/kolla/ansible/site.yml

Changed in kolla:
importance: Undecided → High
assignee: nobody → Michał Jastrzębski (inc007)
status: New → In Progress
milestone: none → newton-1
Revision history for this message
Vikram Hosakote (vhosakot) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

Reviewed: https://review.openstack.org/309448
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=22a07075d278d592bccfe9ca3fc1b670248d706d
Submitter: Jenkins
Branch: master

commit 22a07075d278d592bccfe9ca3fc1b670248d706d
Author: Michal (inc0) Jastrzebski <email address hidden>
Date: Fri Apr 22 14:44:54 2016 +0000

    Robustify of rabbitmq upgrade

    String parsing for gospel node detection was overly complex and not
    robust. Hopefully this will make it better.

    Closes-bug: #1573684
    Change-Id: I12e869eff274d286d239c4f55cc4b4ddca389bbd

Changed in kolla:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/mitaka)

Fix proposed to branch: stable/mitaka
Review: https://review.openstack.org/309528

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (stable/liberty)

Fix proposed to branch: stable/liberty
Review: https://review.openstack.org/309529

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/liberty)

Reviewed: https://review.openstack.org/309529
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=5ef62c121bdf6b3fa4f386a2b3921cf8c14a13bc
Submitter: Jenkins
Branch: stable/liberty

commit 5ef62c121bdf6b3fa4f386a2b3921cf8c14a13bc
Author: Michal (inc0) Jastrzebski <email address hidden>
Date: Fri Apr 22 14:44:54 2016 +0000

    Robustify of rabbitmq upgrade

    String parsing for gospel node detection was overly complex and not
    robust. Hopefully this will make it better.

    Closes-bug: #1573684
    Change-Id: I12e869eff274d286d239c4f55cc4b4ddca389bbd

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (stable/mitaka)

Reviewed: https://review.openstack.org/309528
Committed: https://git.openstack.org/cgit/openstack/kolla/commit/?id=b63771f1c874864441ae82abc00422fb369905f7
Submitter: Jenkins
Branch: stable/mitaka

commit b63771f1c874864441ae82abc00422fb369905f7
Author: Michal (inc0) Jastrzebski <email address hidden>
Date: Fri Apr 22 14:44:54 2016 +0000

    Robustify of rabbitmq upgrade

    String parsing for gospel node detection was overly complex and not
    robust. Hopefully this will make it better.

    Closes-bug: #1573684
    Change-Id: I12e869eff274d286d239c4f55cc4b4ddca389bbd

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/kolla 2.0.0

This issue was fixed in the openstack/kolla 2.0.0 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/kolla 1.1.0

This issue was fixed in the openstack/kolla 1.1.0 release.

Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/kolla 3.0.0.0b1

This issue was fixed in the openstack/kolla 3.0.0.0b1 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.