apache2 does not start for cinder DFS api wsgi configuration
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Cinder Charm |
Triaged
|
Low
|
Unassigned |
Bug Description
I tried cinder deploy use openstack-
As a result, I found a problem that apache2 does not start.
My environment is following.
juju: 2.0.2-xenial-amd64
Deploy OS series: trusty
##################
uname -a
Linux juju-91e1d2-0-lxd-9 3.13.0-107-generic #154-Ubuntu SMP Tue Dec 20 09:57:27 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
##################
Deploy OpenStack: Mitaka
Charm configuration:
##################
cat cinder_dev.yaml
series: trusty
services:
cinder:
charm: cs:trusty/cinder
options:
openstack
glance-
##################
charm-cinder rev: 260
Juju status log:
##################
juju status
please enter password for admin on juju-ctrl1:
Model Controller Cloud/Region Version
y-sandbox1 juju-ctrl1 maas 2.0.2
App Version Status Scale Charm Store Rev OS Notes
cinder stable/mitaka blocked 1 cinder jujucharms 260 ubuntu
glance stable/mitaka active 1 glance jujucharms 256 ubuntu
keystone stable/mitaka active 1 keystone jujucharms 0 ubuntu
mysql 5.5.37-25.10... active 1 percona-cluster jujucharms 250 ubuntu
nova-cloud-
nova-compute stable/mitaka active 1 nova-compute jujucharms 264 ubuntu
rabbitmq-server 3.5.7 active 1 rabbitmq-server jujucharms 61 ubuntu
Unit Workload Agent Machine Public address Ports Message
cinder/2* blocked idle 0/lxd/9 10.0.11.73 8776/tcp Services not running that should be: apache2 <---- apache does not start!!!
glance/1* active idle 0/lxd/5 10.0.10.77 9292/tcp Unit is ready
keystone/0* active idle 0/lxd/4 10.0.10.20 5000/tcp Unit is ready
mysql/0* active idle 0/lxd/2 10.0.11.236 Unit is ready
nova-cloud-
nova-compute/0* active idle 1 10.0.11.124 Unit is ready
rabbitmq-server/0* active executing 0/lxd/3 10.0.10.76 5672/tcp (update-status) Unit is ready
Machine State DNS Inst id Series AZ
0 started 10.0.10.75 aqgxqs trusty default
0/lxd/1 started 10.0.11.170 juju-91e1d2-0-lxd-1 trusty
0/lxd/2 started 10.0.11.236 juju-91e1d2-0-lxd-2 trusty
0/lxd/3 started 10.0.10.76 juju-91e1d2-0-lxd-3 trusty
0/lxd/4 started 10.0.10.20 juju-91e1d2-0-lxd-4 trusty
0/lxd/5 started 10.0.10.77 juju-91e1d2-0-lxd-5 trusty
0/lxd/9 started 10.0.11.73 juju-91e1d2-0-lxd-9 trusty
1 started 10.0.11.124 db4xnt trusty default
Relation Provides Consumes Type
cluster cinder cinder peer
identity-service cinder keystone regular
shared-db cinder mysql regular
amqp cinder rabbitmq-server regular
cluster glance glance peer
identity-service glance keystone regular
shared-db glance mysql regular
image-service glance nova-cloud-
image-service glance nova-compute regular
cluster keystone keystone peer
shared-db keystone mysql regular
identity-service keystone nova-cloud-
cluster mysql mysql peer
shared-db mysql nova-cloud-
cluster nova-cloud-
cloud-compute nova-cloud-
amqp nova-cloud-
compute-peer nova-compute nova-compute peer
amqp nova-compute rabbitmq-server regular
cluster rabbitmq-server rabbitmq-server peer
##################
/var/log/
##################
2017-03-10 04:34:39 INFO shared-
2017-03-10 04:34:39 INFO shared-
2017-03-10 04:34:39 INFO shared-
2017-03-10 04:34:39 INFO shared-
2017-03-10 04:34:39 INFO shared-
2017-03-10 04:34:39 INFO shared-
2017-03-10 04:34:39 INFO shared-
2017-03-10 04:34:39 INFO shared-
##################
I tried examining the problem to following procedure.
sudo service apache2 start
* Starting web server apache2 *
* The apache2 configtest failed.
Output of config test was:
AH00526: Syntax error on line 7 of /etc/apache2/
Invalid command 'WSGIDaemonProc
Action 'configtest' failed.
The Apache error log may have more information.
I tried install libapache2-
sudo apt-get install libapache2-mod-wsgi
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
libfreetype6 os-prober
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
libapache2-
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 67.4 kB of archives.
After this operation, 248 kB of additional disk space will be used.
Get:1 http://
Fetched 67.4 kB in 0s (0 B/s)
Selecting previously unselected package libapache2-
(Reading database ... 35410 files and directories currently installed.)
Preparing to unpack .../libapache2-
Unpacking libapache2-mod-wsgi (3.4-4ubuntu2.
Setting up libapache2-mod-wsgi (3.4-4ubuntu2.
apache2_invoke: Enable module wsgi
* Restarting web server apache2
ubuntu@
* apache2 is running
Apache2 started, but Juju still could not recognize apache2.
##################
cinder/2* blocked idle 0/lxd/9 10.0.11.73 8776/tcp Services not running that should be: apache2 <---- apache does not start!!!
##################
I noticed that wsgi is binding with ipv6.
##################
netstat -tna
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:8776 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:8888 0.0.0.0:* LISTEN
tcp 0 0 10.0.11.73:59307 10.0.10.76:5672 ESTABLISHED
tcp 0 0 10.0.11.73:38112 10.0.10.38:17070 ESTABLISHED
tcp 0 0 10.0.11.73:38118 10.0.10.38:17070 ESTABLISHED
tcp 0 0 10.0.11.73:59330 10.0.10.76:5672 ESTABLISHED
tcp 0 0 10.0.11.73:59331 10.0.10.76:5672 ESTABLISHED
tcp 0 0 10.0.11.73:38117 10.0.10.38:17070 ESTABLISHED
tcp 0 0 10.0.20.96:22 10.0.20.1:52658 ESTABLISHED
tcp 0 0 10.0.11.73:43729 10.0.11.236:3306 ESTABLISHED
tcp 0 0 10.0.11.73:44078 10.0.11.236:3306 ESTABLISHED
tcp 0 0 10.0.11.73:38111 10.0.10.38:17070 ESTABLISHED
tcp6 0 0 ::1:11211 :::* LISTEN
tcp6 0 0 :::80 :::* LISTEN
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 :::8766 :::* LISTEN
##################
I corrected it as follows and the problem was solved.
ubuntu@
--- wsgi-openstack-
+++ /etc/apache2/
@@ -1,6 +1,6 @@
# Configuration file maintained by Juju. Local changes may be overwritten.
-Listen 8766
+Listen 0.0.0.0:8766
<VirtualHost *:8766>
WSGIDaemon
python-
I tried fix charm-cinder.
https:/
Changed in charm-cinder: | |
assignee: | nobody → Yuki Yamashita (kono) |
Changed in charm-cinder: | |
assignee: | Yuki Yamashita (kono) → nobody |
Thank you for your bug report.
1) utils.py
charm-cinder should not attempt to configure WSGI when not running on OpenStack Ocata or newer. Have a look at run_in_apache() function in hooks/cinder_
So there might be an issue with how this is detected when deploying from Git.
2)
When deploying from the binary packages from Ubuntu Cloud Archive for xenial-ocata the dependency is not missing.
3)
The note about apache binding IPv6-only is incorrect. netstat displays the LISTEN line in this way when a daemon is listening for both IPv4 and IPv6.
OpenStack contributions follow a separate workflow, have a look here: https:/ /docs.openstack .org/infra/ manual/ developers. html