we were unable to convert to dict: dictionary requested, could not parse JSON or key=value"}

Bug #2065589 reported by Ravi Kumar
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
New
Undecided
Unassigned

Bug Description

We are deploying OpenStack with Kolla Ansible on stable/2024.1 but failed with the below error. kindly help with it, we are stuck here.

TASK [glance: Check glance containers] *************************************************************************************************************
failed: [localhost] (item={'key': 'glance-api', 'value': {'container_name': 'glance_api', 'group': 'glance-api', 'host_in_groups': True, 'enabled': True, 'image': 'quay.io/openstack.kolla/glance-api:2024.1-ubuntu-jammy', 'environment': '', 'privileged': False, 'volumes': ['/etc/kolla/glance-api/:/var/lib/kolla/config_files/:ro', '/etc/localtime:/etc/localtime:ro', '/etc/timezone:/etc/timezone:ro', 'glance:/var/lib/glance/', '', 'kolla_logs:/var/log/kolla/', '', ''], 'dimensions': {}, 'healthcheck': {'interval': '30', 'retries': '3', 'start_period': '5', 'test': ['CMD-SHELL', 'healthcheck_curl http://10.139.2.43:9292'], 'timeout': '30'}, 'haproxy': {'glance_api': {'enabled': True, 'mode': 'http', 'external': False, 'port': '9292', 'frontend_http_extra': ['timeout client 6h'], 'backend_http_extra': ['timeout server 6h'], 'custom_member_list': ['server ecobm2043 10.139.2.43:9292 check inter 2000 rise 2 fall 5', '']}, 'glance_api_external': {'enabled': True, 'mode': 'http', 'external': True, 'external_fqdn': '10.139.2.77', 'port': '9292', 'frontend_http_extra': ['timeout client 6h'], 'backend_http_extra': ['timeout server 6h'], 'custom_member_list': ['server ecobm2043 10.139.2.43:9292 check inter 2000 rise 2 fall 5', '']}}}}) => {"ansible_loop_var": "item", "changed": false, "item": {"key": "glance-api", "value": {"container_name": "glance_api", "dimensions": {}, "enabled": true, "environment": "", "group": "glance-api", "haproxy": {"glance_api": {"backend_http_extra": ["timeout server 6h"], "custom_member_list": ["server ecobm2043 10.139.2.43:9292 check inter 2000 rise 2 fall 5", ""], "enabled": true, "external": false, "frontend_http_extra": ["timeout client 6h"], "mode": "http", "port": "9292"}, "glance_api_external": {"backend_http_extra": ["timeout server 6h"], "custom_member_list": ["server ecobm2043 10.139.2.43:9292 check inter 2000 rise 2 fall 5", ""], "enabled": true, "external": true, "external_fqdn": "10.139.2.77", "frontend_http_extra": ["timeout client 6h"], "mode": "http", "port": "9292"}}, "healthcheck": {"interval": "30", "retries": "3", "start_period": "5", "test": ["CMD-SHELL", "healthcheck_curl http://10.139.2.43:9292"], "timeout": "30"}, "host_in_groups": true, "image": "quay.io/openstack.kolla/glance-api:2024.1-ubuntu-jammy", "privileged": false, "volumes": ["/etc/kolla/glance-api/:/var/lib/kolla/config_files/:ro", "/etc/localtime:/etc/localtime:ro", "/etc/timezone:/etc/timezone:ro", "glance:/var/lib/glance/", "", "kolla_logs:/var/log/kolla/", "", ""]}}, "msg": "argument 'environment' is of type <class 'str'> and we were unable to convert to dict: dictionary requested, could not parse JSON or key=value"}
skipping: [localhost] => (item={'key': 'glance-tls-proxy', 'value': {'container_name': 'glance_tls_proxy', 'group': 'glance-api', 'host_in_groups': True, 'enabled': 'no', 'image': 'quay.io/openstack.kolla/haproxy:2024.1-ubuntu-jammy', 'volumes': ['/etc/kolla/glance-tls-proxy/:/var/lib/kolla/config_files/:ro', '/etc/localtime:/etc/localtime:ro', '/etc/timezone:/etc/timezone:ro', 'kolla_logs:/var/log/kolla/'], 'dimensions': {}, 'healthcheck': {'interval': '30', 'retries': '3', 'start_period': '5', 'test': ['CMD-SHELL', 'healthcheck_curl -u openstack:5DQKn662mTY9deC8MlHSaK1htCSjhO5I5uQ3ejwu 10.139.2.43:9293'], 'timeout': '30'}, 'haproxy': {'glance_tls_proxy': {'enabled': False, 'mode': 'http', 'external': False, 'port': '9292', 'frontend_http_extra': ['timeout client 6h'], 'backend_http_extra': ['timeout server 6h'], 'custom_member_list': ['server ecobm2043 10.139.2.43:9292 check inter 2000 rise 2 fall 5 ssl verify required ca-file ca-certificates.crt', ''], 'tls_backend': 'yes'}, 'glance_tls_proxy_external': {'enabled': False, 'mode': 'http', 'external': True, 'external_fqdn': '10.139.2.77', 'port': '9292', 'frontend_http_extra': ['timeout client 6h'], 'backend_http_extra': ['timeout server 6h'], 'custom_member_list': ['server ecobm2043 10.139.2.43:9292 check inter 2000 rise 2 fall 5 ssl verify required ca-file ca-certificates.crt', ''], 'tls_backend': 'yes'}}}})

PLAY RECAP ******************************************************************************************************************************************
localhost : ok=193 changed=124 unreachable=0 failed=1 skipped=160 rescued=0 ignored=1

(lib) root@ecobm2043:/etc/kolla#

(lib) root@ecobm2043:/etc/kolla# cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy
(lib) root@ecobm2043:/etc/kolla#

(lib) root@ecobm2043:/etc/kolla# uname -a
Linux ecobm2043 5.15.0-106-generic #116-Ubuntu SMP Wed Apr 17 09:17:56 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
(lib) root@ecobm2043:/etc/kolla#

(lib) root@ecobm2043:/etc/kolla# docker version
Client: Docker Engine - Community
 Version: 26.1.2
 API version: 1.45
 Go version: go1.21.10
 Git commit: 211e74b
 Built: Wed May 8 13:59:59 2024
 OS/Arch: linux/amd64
 Context: default

Server: Docker Engine - Community
 Engine:
  Version: 26.1.2
  API version: 1.45 (minimum version 1.24)
  Go version: go1.21.10
  Git commit: ef1912d
  Built: Wed May 8 13:59:59 2024
  OS/Arch: linux/amd64
  Experimental: false
 containerd:
  Version: 1.6.31
  GitCommit: e377cd56a71523140ca6ae87e30244719194a521
 runc:
  Version: 1.1.12
  GitCommit: v1.1.12-0-g51d5e94
 docker-init:
  Version: 0.19.0
  GitCommit: de40ad0
(lib) root@ecobm2043:/etc/kolla#

(lib) root@ecobm2043:/etc/kolla# git --version
git version 2.34.1
(lib) root@ecobm2043:/etc/kolla# kolla-
kolla-ansible kolla-genpwd kolla-mergepwd kolla-readpwd kolla-writepwd
(lib) root@ecobm2043:/etc/kolla# kolla-
kolla-ansible kolla-genpwd kolla-mergepwd kolla-readpwd kolla-writepwd
(lib) root@ecobm2043:/etc/kolla# kolla-ansible --version
17.3.0
(lib) root@ecobm2043:/etc/kolla#

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.