Cinder-WSGI cannot find api-paste.ini - Ubuntu
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Cinder |
Invalid
|
Undecided
|
Unassigned | ||
Ubuntu Cloud Archive |
Fix Released
|
High
|
James Page | ||
Pike |
Fix Released
|
High
|
James Page | ||
cinder (Ubuntu) |
Fix Released
|
High
|
James Page |
Bug Description
I upgraded Ocata to Pike and am getting error in apache2 cinder_error.log when trying to list volumes via API or Horizon:
root@cinder-
2017-09-04 15:30:52.587013 mod_wsgi (pid=1847): Target WSGI script '/usr/bin/
2017-09-04 15:30:52.587099 mod_wsgi (pid=1847): Exception occurred processing WSGI script '/usr/bin/
2017-09-04 15:30:52.587126 Traceback (most recent call last):
2017-09-04 15:30:52.587147 File "/usr/bin/
2017-09-04 15:30:52.587220 application = initialize_
2017-09-04 15:30:52.587235 File "/usr/lib/
2017-09-04 15:30:52.588456 return wsgi.Loader(
2017-09-04 15:30:52.588480 File "/usr/lib/
2017-09-04 15:30:52.589984 raise ConfigNotFound(
2017-09-04 15:30:52.590011 ConfigNotFound: Could not find config at api-paste.ini
Also did fresh controller install (Pike) on a test machine to see if I could replicate, using instructions: https:/
I get the same error, following docs closely.
Here is some output of the environment:
Ubuntu 16.04.3 LTS (GNU/Linux 4.4.0-93-generic x86_64)
################# PERMISSIONS #######
root@cinder-
total 36
drwxr-x--- 3 root cinder 4096 Sep 4 15:10 ./
drwxr-xr-x 105 root root 4096 Sep 4 15:30 ../
-rw-r--r-- 1 root cinder 2711 Aug 30 11:07 api-paste.ini
-rw-r--r-- 1 root cinder 812 Sep 4 15:10 cinder.conf
-rw-r--r-- 1 root cinder 1359 Aug 30 13:11 logging.conf
-rw-r--r-- 1 root cinder 7708 Aug 30 11:07 policy.json
-rw-r--r-- 1 root root 991 Aug 30 11:07 rootwrap.conf
drwxr-xr-x 2 root root 4096 Aug 31 11:49 rootwrap.d/
################# API-PASTE.INI #######
#############
# OpenStack #
#############
[composite:
use = call:cinder.
/: apiversions
/v1: openstack_
/v2: openstack_
/v3: openstack_
[composite:
use = call:cinder.
noauth = cors http_proxy_to_wsgi request_id faultwrap sizelimit osprofiler noauth apiv1
keystone = cors http_proxy_to_wsgi request_id faultwrap sizelimit osprofiler authtoken keystonecontext apiv1
keystone_nolimit = cors http_proxy_to_wsgi request_id faultwrap sizelimit osprofiler authtoken keystonecontext apiv1
[composite:
use = call:cinder.
noauth = cors http_proxy_to_wsgi request_id faultwrap sizelimit osprofiler noauth apiv2
keystone = cors http_proxy_to_wsgi request_id faultwrap sizelimit osprofiler authtoken keystonecontext apiv2
keystone_nolimit = cors http_proxy_to_wsgi request_id faultwrap sizelimit osprofiler authtoken keystonecontext apiv2
[composite:
use = call:cinder.
noauth = cors http_proxy_to_wsgi request_id faultwrap sizelimit osprofiler noauth apiv3
keystone = cors http_proxy_to_wsgi request_id faultwrap sizelimit osprofiler authtoken keystonecontext apiv3
keystone_nolimit = cors http_proxy_to_wsgi request_id faultwrap sizelimit osprofiler authtoken keystonecontext apiv3
[filter:request_id]
paste.filter_
[filter:
paste.filter_
[filter:cors]
paste.filter_
oslo_config_project = cinder
[filter:faultwrap]
paste.filter_
[filter:osprofiler]
paste.filter_
[filter:noauth]
paste.filter_
[filter:sizelimit]
paste.filter_
[app:apiv1]
paste.app_factory = cinder.
[app:apiv2]
paste.app_factory = cinder.
[app:apiv3]
paste.app_factory = cinder.
[pipeline:
pipeline = cors http_proxy_to_wsgi faultwrap osvolumeversionapp
[app:osvolumeve
paste.app_factory = cinder.
##########
# Shared #
##########
[filter:
paste.filter_
[filter:authtoken]
paste.filter_
################# CINDER.CONF #######
[DEFAULT]
rootwrap_config = /etc/cinder/
api_paste_confg = /etc/cinder/
iscsi_helper = tgtadm
volume_
volume_group = cinder-volumes
verbose = True
auth_strategy = keystone
state_path = /var/lib/cinder
lock_path = /var/lock/cinder
volumes_dir = /var/lib/
enabled_backends = lvm
transport_url = rabbit:
my_ip = 10.1.1.22
[database]
connection = mysql+pymysql:
[keystone_
auth_uri = http://
auth_url = http://
memcached_servers = controller:11211
auth_type = password
project_domain_name = default
user_domain_name = default
project_name = service
username = cinder
password = openstack
[oslo_concurrency]
lock_path = /var/lib/cinder/tmp
################# APACHE WSGI #######
Listen 8776
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\" %D(us)" cinder_combined
<VirtualHost *:8776>
WSGIDaemonP
WSGIProcess
WSGIScriptAlias / /usr/bin/
WSGIApplica
WSGIPassAut
<IfVersion >= 2.4>
ErrorLogF
</IfVersion>
ErrorLog /var/log/
CustomLog /var/log/
<Directory /usr/bin>
<IfVersion >= 2.4>
Require all granted
<IfVersion < 2.4>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
description: | updated |
Changed in cinder: | |
status: | Confirmed → Invalid |
tags: | added: xenial |
Changed in cinder (Ubuntu): | |
importance: | Undecided → High |
status: | Confirmed → Triaged |
assignee: | nobody → James Page (james-page) |
Changed in cinder (Ubuntu): | |
status: | Triaged → In Progress |
I can confirm this bug... I made a fresh OpenStack Pike installation on Ubuntu 16.04.3 LTS and receive the same error.
Some version information:
$ pip list | grep cinder
cinder (11.0.0)
python-cinderclient (3.1.0)