cyborg api failed to deploy because failed to find api-paste.ini file

Bug #1874028 reported by ya.wang
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla-ansible
Fix Released
Medium
ya.wang
Train
Fix Released
Medium
Mark Goddard
Ussuri
Fix Released
Medium
ya.wang

Bug Description

What happened:

The cyborg api failed to start, because the container failed to find api-paste.ini file.

The log is below:

TASK [cyborg : Running cyborg bootstrap container] *********************************************************************************************************************************************************************fatal: [vgpu02 -> vgpu02]: FAILED! => {"changed": true, "msg": "Container exited with non-zero return code 1", "rc": 1, "stderr": "+ sudo -E kolla_set_configs\nINFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json\nINFO:__main__:Validating config file\nINFO:__main__:Kolla config strategy set to: COPY_ALWAYS\nINFO:__main__:Copying service configuration files\nINFO:__main__:Copying /var/lib/kolla/config_files/cyborg.conf to /etc/cyborg/cyborg.conf\nINFO:__main__:Setting permission for /etc/cyborg/cyborg.conf\nERROR:__main__:MissingRequiredSource: /var/lib/kolla/config_files/api-paste.ini file is not found\n", "stderr_lines": ["+ sudo -E kolla_set_configs", "INFO:__main__:Loading config file at /var/lib/kolla/config_files/config.json", "INFO:__main__:Validating config file", "INFO:__main__:Kolla config strategy set to: COPY_ALWAYS", "INFO:__main__:Copying service configuration files", "INFO:__main__:Copying /var/lib/kolla/config_files/cyborg.conf to /etc/cyborg/cyborg.conf", "INFO:__main__:Setting permission for /etc/cyborg/cyborg.conf", "ERROR:__main__:MissingRequiredSource: /var/lib/kolla/config_files/api-paste.ini file is not found"], "stdout": "", "stdout_lines": []}

What you expected to happen:

The cyborg api container can be start successfully.

How to reproduct it:

None, the default configuration is enough

**Environment**:
OS: CentOS7.7.1908
Kernel: 3.10.0-1062.18.1.el7.x86_64
Docker version: 18.09.9
Kolla-Ansible version: 9.0.1
Docker image install type: source
Docker image distribution: CentOS
Are you using official images from Docker Hub or self built: Docker Hub

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (master)

Fix proposed to branch: master
Review: https://review.opendev.org/721556

Changed in kolla-ansible:
assignee: nobody → ya.wang (ya.wang)
status: New → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla-ansible (master)

Reviewed: https://review.opendev.org/721556
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=a374ff9f3f6c6658c0c65c3d953cbb736e42cb25
Submitter: Zuul
Branch: master

commit a374ff9f3f6c6658c0c65c3d953cbb736e42cb25
Author: ya.wang <wang.ya@99cloud.net>
Date: Tue Apr 21 16:36:33 2020 +0800

    Fix cyborg api failed to load api-paste.ini file

    Change-Id: Id0f5809b50d0f6a0c96704e8f855d18f16f8de56
    Closes-bug: #1874028

Changed in kolla-ansible:
status: In Progress → Fix Released
Mark Goddard (mgoddard)
Changed in kolla-ansible:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla-ansible (stable/train)

Fix proposed to branch: stable/train
Review: https://review.opendev.org/729239

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

Reviewed: https://review.opendev.org/729239
Committed: https://git.openstack.org/cgit/openstack/kolla-ansible/commit/?id=7b851bdb15d2d54f89f7a70b406fbf1281b26e25
Submitter: Zuul
Branch: stable/train

commit 7b851bdb15d2d54f89f7a70b406fbf1281b26e25
Author: ya.wang <wang.ya@99cloud.net>
Date: Tue Apr 21 16:36:33 2020 +0800

    Fix cyborg api failed to load api-paste.ini file

    Change-Id: Id0f5809b50d0f6a0c96704e8f855d18f16f8de56
    Closes-bug: #1874028
    (cherry picked from commit a374ff9f3f6c6658c0c65c3d953cbb736e42cb25)

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.