zun-api uses apache to launch processes

Bug #1682142 reported by Eduardo Gonzalez
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
kolla
Fix Released
Undecided
Eduardo Gonzalez

Bug Description

After zun deployed with kolla-ansible zun_api container keeps restarting due missing /etc/zun/api-paste.ini file.
This file is present at /zun/etc/zun/api-paste.ini, but the copy in the image is made from /zun/etc/ resulting in /etc/zun/zun/api-paste.ini

Also, zun-api makes use of wsgi to launch processes.
Zun image lacks of configuration for apache.

Zun images need root privs, api for apache and compute to connect with docker.

2017-04-12 14:52:05.519 5 CRITICAL zun [-] ConfigFilesNotFoundError: Failed to find some config files: api-paste.ini
2017-04-12 14:52:05.519 5 ERROR zun Traceback (most recent call last):
2017-04-12 14:52:05.519 5 ERROR zun File "/var/lib/kolla/venv/bin/zun-api", line 10, in <module>
2017-04-12 14:52:05.519 5 ERROR zun sys.exit(main())
2017-04-12 14:52:05.519 5 ERROR zun File "/var/lib/kolla/venv/lib/python2.7/site-packages/zun/cmd/api.py", line 44, in main
2017-04-12 14:52:05.519 5 ERROR zun CONF.api.enable_ssl_api
2017-04-12 14:52:05.519 5 ERROR zun File "/var/lib/kolla/venv/lib/python2.7/site-packages/zun/common/service.py", line 59, in __init__
2017-04-12 14:52:05.519 5 ERROR zun self.app = app.load_app()
2017-04-12 14:52:05.519 5 ERROR zun File "/var/lib/kolla/venv/lib/python2.7/site-packages/zun/api/app.py", line 61, in load_app
2017-04-12 14:52:05.519 5 ERROR zun raise cfg.ConfigFilesNotFoundError([CONF.api.api_paste_config])
2017-04-12 14:52:05.519 5 ERROR zun ConfigFilesNotFoundError: Failed to find some config files: api-paste.ini

Changed in kolla:
assignee: nobody → Eduardo Gonzalez (egonzalez90)
status: New → In Progress
milestone: none → pike-1
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to kolla (master)

Fix proposed to branch: master
Review: https://review.openstack.org/456251

summary: - zun-api keeps restarting due missing api-paste.ini file
+ zun-api uses apache to launch processes
description: updated
description: updated
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to kolla (master)

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

commit a159c686d7fbbf71a21a28a09608d000b99471e0
Author: Eduardo Gonzalez <email address hidden>
Date: Wed Apr 12 16:17:43 2017 +0100

    Fix zun images

    Zun uses wsgi to start process.
    Rework zun-base image to make use of wsgi.
    Create zun user with macros to maintain static uids.
    Zun compute need root to connect docker

    Change-Id: Idd417e1b804148543ee5f403a836fa1f3e6f7fb0
    Closes-Bug: #1682142

Changed in kolla:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/kolla 5.0.0.0b2

This issue was fixed in the openstack/kolla 5.0.0.0b2 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.