can not load "namespace_haproxy_for_cell

Bug #2039573 reported by BoogeyMan
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
kolla-ansible
Invalid
Undecided
BoogeyMan

Bug Description

Hi mogul!! ^_^

**Environment**:
* OS : VERSION="22.04.2 LTS (Jammy Jellyfish)"
* Kernel : Linux ubuntu 5.15.0-60-generic #66-Ubuntu SMP Fri Jan 20 14:29:49 UTC 2023 x86_64 GNU/Linux
* Docker version : Docker version 24.0.6, build ed223bc
* Kolla-Ansible version : 16.1.1
* Docker image Install type (source/binary):
* Docker image distribution: stable/2023.1
* Are you using official images from Docker Hub or self built? https://quay.io/repository/openstack.kolla
* If self built - Kolla version and environment used to build:
* Share your inventory file, globals.yml and other configuration files if relevant

【install && deploy steps】:
   22 apt update
   23 apt install -y git python3-dev libffi-dev gcc libssl-dev python3-pip
   24 needrestart -u NeedRestart::UI::stdio -r a
   25 pip install -U pip
   26 pip install 'ansible>=6,<8'
   27 git clone https://opendev.org/openstack/kolla-ansible -b stable/2023.1
   28 pip install kolla-ansible/
   29 sudo mkdir -p /etc/kolla
   31 cp kolla-ansible/etc/kolla/* /etc/kolla/
   32 cp kolla-ansible/ansible/inventory/all-in-one ./
   34 cp /etc/kolla/passwords.yml /etc/kolla/passwords.yml.bak
   35 kolla-genpwd
   36 cp /etc/kolla/globals.yml /etc/kolla/globals.yml.bak
   37 sed -i '/#kolla_base_distro: /akolla_base_distro: "ubuntu"' /etc/kolla/globals.yml
   38 sed -i '/#network_interface: /anetwork_interface: "ens33"' /etc/kolla/globals.yml
   39 sed -i '/#neutron_external_interface: /aneutron_external_interface: "ens40"' /etc/kolla/globals.yml
   40 sed -i '/#kolla_internal_vip_address: /akolla_internal_vip_address: "192.168.101.250"' /etc/kolla/globals.yml
   41 kolla-ansible -i ./all-in-one bootstrap-servers && kolla-ansible -i ./all-in-one prechecks && kolla-ansible -i ./all-in-one deploy

【ERROR INFO】:

TASK [nova-cell : Configure loadbalancer for nova-novncproxy] **********************************************************
included: /usr/local/share/kolla-ansible/ansible/roles/nova-cell/tasks/cell_proxy_loadbalancer.yml for localhost => (item=nova-novncproxy)

TASK [haproxy-config : Copying over nova-cell:nova-novncproxy haproxy config] ******************************************
fatal: [localhost]: FAILED! => {"msg": "An unhandled exception occurred while templating '{{ cell_proxy_project_services | namespace_haproxy_for_cell(cell_name) }}'. Error was a <class 'ansible.errors.AnsibleError'>, original message: template error while templating string: Could not load \"namespace_haproxy_for_cell\": 'namespace_haproxy_for_cell'. String: {{ cell_proxy_project_services | namespace_haproxy_for_cell(cell_name) }}. Could not load \"namespace_haproxy_for_cell\": 'namespace_haproxy_for_cell'"}

PLAY RECAP *************************************************************************************************************
localhost : ok=49 changed=34 unreachable=0 failed=1 skipped=57 rescued=0 ignored=0

Revision history for this message
BoogeyMan (boogeywei) wrote :
Revision history for this message
BoogeyMan (boogeywei) wrote :
Revision history for this message
BoogeyMan (boogeywei) wrote :
description: updated
Revision history for this message
BoogeyMan (boogeywei) wrote :
description: updated
BoogeyMan (boogeywei)
Changed in kolla-ansible:
assignee: nobody → BoogeyMan (boogeywei)
assignee: BoogeyMan (boogeywei) → nobody
status: New → Incomplete
BoogeyMan (boogeywei)
Changed in kolla-ansible:
status: Incomplete → New
BoogeyMan (boogeywei)
Changed in kolla-ansible:
status: New → Fix Released
BoogeyMan (boogeywei)
Changed in kolla-ansible:
assignee: nobody → BoogeyMan (boogeywei)
Revision history for this message
Maksim Malchuk (mmalchuk) wrote :

there is no fix of the bug in the kolla-ansible yet.

Changed in kolla-ansible:
status: Fix Released → Invalid
Revision history for this message
Satish Patel (satish-txt) wrote :

I am seeing similar issue. what is the solution here? I am deploying 2023.1 using tag 16.1.0

Revision history for this message
Maksim Malchuk (mmalchuk) wrote :
Revision history for this message
robinw (anicius) wrote :

Hello,

I solved this issue by downgrading ansible-core to 2.14.10

pip install ansible-core==2.14.10

Hope it works for you.

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.