Train->Ussuri upgrade kibana fail

Bug #1881862 reported by Ole Kleinschmidt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Undecided
Unassigned

Bug Description

**Bug Report**

while running kolla-ansible upgrade from train to ussuri, the following task will fail:

TASK [kibana : include_tasks] **************************************************
Wednesday 03 June 2020 08:12:10 +0200 (0:00:01.599) 0:12:49.774 ********
included: /builds/yourcloud/kolla-ansible/kolla-ansible/ansible/roles/kibana/tasks/migrate-kibana-index.yml for host01.domain.tld, host02.domain.tld, host03.domain.tld

TASK [kibana : Set fact for Elasticsearch URL] *********************************
Wednesday 03 June 2020 08:12:10 +0200 (0:00:00.497) 0:12:50.272 ********
ok: [colo201.domain.tld]
ok: [colo202.domain.tld]
ok: [colo203.domain.tld]

TASK [kibana : Wait for Elasticsearch] *****************************************
Wednesday 03 June 2020 08:12:11 +0200 (0:00:00.334) 0:12:50.606 ********
ok: [colo201.domain.tld -> colo201.domain.tld]

TASK [kibana : Check state of migration] ***************************************
Wednesday 03 June 2020 08:12:13 +0200 (0:00:02.724) 0:12:53.331 ********
An exception occurred during task execution. To see the full traceback, use -vvv. The error was: ValueError: invalid literal for int() with base 10: '[200'
fatal: [colo201.domain.tld -> colo201.domain.tld]: FAILED! => {"action": "uri", "changed": false, "module_stderr": "Traceback (most recent call last):\n File \"/tmp/ansible-tmp-1591164735.8960114-125-18567943027886/AnsiballZ_uri.py\", line 114, in <module>\n _ansiballz_main()\n File \"/tmp/ansible-tmp-1591164735.8960114-125-18567943027886/AnsiballZ_uri.py\", line 106, in _ansiballz_main\n invoke_module(zipped_mod, temp_path, ANSIBALLZ_PARAMS)\n File \"/tmp/ansible-tmp-1591164735.8960114-125-18567943027886/AnsiballZ_uri.py\", line 49, in invoke_module\n imp.load_module('__main__', mod, module, MOD_DESC)\n File \"/usr/lib/python3.6/imp.py\", line 235, in load_module\n return load_source(name, filename, file)\n File \"/usr/lib/python3.6/imp.py\", line 170, in load_source\n module = _exec(spec, sys.modules[name])\n File \"<frozen importlib._bootstrap>\", line 618, in _exec\n File \"<frozen importlib._bootstrap_external>\", line 678, in exec_module\n File \"<frozen importlib._bootstrap>\", line 219, in _call_with_frames_removed\n File \"/tmp/ansible_uri_payload_8yda22p1/__main__.py\", line 655, in <module>\n File \"/tmp/ansible_uri_payload_8yda22p1/__main__.py\", line 548, in main\n File \"/tmp/ansible_uri_payload_8yda22p1/__main__.py\", line 548, in <listcomp>\nValueError: invalid literal for int() with base 10: '[200'\n", "module_stdout": "", "msg": "MODULE FAILURE\nSee stdout/stderr for the exact error", "rc": 1}

as discussed in #openstack-kolla we'll run next try with --skip-tags kibana. The old kibana is still running and seems working.

I'll keep this issue updated.

**Environment**:
OS: Ubuntu 18.04
Kernel: 4.15.0-91-generic
Docker: 19.03.8
Type: source
Official images from Docker Hub, but retagged and pushed to our local nexus.

Revision history for this message
Ole Kleinschmidt (oklhost) wrote :

All other tasks within this upgrade went well!

Revision history for this message
Mark Goddard (mgoddard) wrote :

The task that failed has now been removed, so you won't hit this again.

Changed in kolla-ansible:
status: New → Fix Released
Revision history for this message
Alexander Diana (rouk) wrote :

I am unsure about this task being removed, as it is still present and broken in master, among other brokenness related to this task.

I have patched the task to work and attached the new files, hopefully it helps someone and can be merged if needed.

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.