cinder-volume deployment results in apache2 failure
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Canonical Juju |
Invalid
|
Undecided
|
Unassigned | ||
OpenStack Cinder Charm |
Expired
|
High
|
Unassigned |
Bug Description
OS - Ubuntu 18.04 LTS
Juju charm cinder 276
Openstack Queens
Following instructions for cinder 276 deployment results in cinder-volume in failed state with apache2 down and message "Services not running that should be: apache2"
$ systemctl status apache2
● apache2.service - The Apache HTTP Server
Loaded: loaded (/lib/systemd/
Drop-In: /lib/systemd/
Active: failed (Result: exit-code) since Fri 2018-11-23 18:54:34 UTC; 33min ago
Process: 11722 ExecStop=
Process: 21888 ExecReload=
Process: 11738 ExecStart=
Main PID: 5440 (code=exited, status=0/SUCCESS)
Nov 23 18:54:34 controller02 systemd[1]: Starting The Apache HTTP Server...
Nov 23 18:54:34 controller02 apachectl[11738]: AH00526: Syntax error on line 6 of /etc/apache2/
Nov 23 18:54:34 controller02 apachectl[11738]: Invalid command 'WSGIDaemonProc
Nov 23 18:54:34 controller02 apachectl[11738]: Action 'start' failed.
Nov 23 18:54:34 controller02 apachectl[11738]: The Apache error log may have more information.
Nov 23 18:54:34 controller02 systemd[1]: apache2.service: Control process exited, code=exited status=1
Nov 23 18:54:34 controller02 systemd[1]: apache2.service: Failed with result 'exit-code'.
Nov 23 18:54:34 controller02 systemd[1]: Failed to start The Apache HTTP Server.
~$ more /etc/apache2/
# Configuration file maintained by Juju. Local changes may be overwritten.
Listen 8766
<VirtualHost *:8766>
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>
If the lines starting with WSGI are removed, apache2 starts up and cinder-volume functions properly.
I think the juju charm for cinder needs to be modified to not add the WSGI lines.
Test Method
use test1.yaml (below to create a simple openstack queens deployment, then add cinder-api in an lxd and cinder-volume to nodes 0,1,2
Test1.yaml
machines:
'0':
series: bionic
constraints: 'tags=control'
'1':
series: bionic
constraints: 'tags=compute'
'2':
series: bionic
constraints: 'tags=compute'
relations:
- - nova-compute:amqp
- rabbitmq-
- - neutron-
- rabbitmq-
- - keystone:shared-db
- mysql:shared-db
- - nova-cloud-
- keystone:
- - glance:
- keystone:
- - neutron-
- keystone:
- - neutron-
- neutron-
- - neutron-
- mysql:shared-db
- - neutron-api:amqp
- rabbitmq-
- - neutron-
- neutron-
- - glance:shared-db
- mysql:shared-db
- - glance:amqp
- rabbitmq-
- - nova-cloud-
- glance:
- - nova-compute:
- glance:
- - nova-cloud-
- nova-compute:
- - nova-cloud-
- rabbitmq-
- - nova-cloud-
- neutron-
- - nova-compute:
- neutron-
- - neutron-
- rabbitmq-
- - openstack-
- keystone:
- - nova-cloud-
- mysql:shared-db
- - nova-cloud-
- neutron-
- - ntp:juju-info
- nova-compute:
- - ntp:juju-info
- neutron-
series: bionic
services:
glance:
annotations:
gui-x: '250'
gui-y: '0'
charm: cs:glance-265
num_units: 1
options:
worker-
use-syslog: true
to:
- lxd:0
keystone:
annotations:
gui-x: '500'
gui-y: '0'
charm: cs:keystone-281
num_units: 1
options:
admin-
admin-token: aph9ta3oJesh7Ie
worker-
use-syslog: true
to:
- lxd:0
mysql:
annotations:
gui-x: '0'
gui-y: '250'
charm: cs:percona-
num_units: 1
options:
innodb-
max-
to:
- lxd:0
neutron-api:
annotations:
gui-x: '500'
gui-y: '500'
charm: cs:neutron-api-260
num_units: 1
options:
neutron-
flat-
worker-
use-syslog: true
to:
- lxd:0
neutron-gateway:
annotations:
gui-x: '0'
gui-y: '0'
charm: cs:neutron-
num_units: 1
options:
bridge-
data-port: br-ex:eth1
instance-mtu: 1400
worker-
use-syslog: true
to:
- '0'
neutron-
annotations:
gui-x: '250'
gui-y: '500'
charm: cs:neutron-
num_units: 0
options:
bridge-
data-port: br-ex:eth1
use-syslog: true
nova-
annotations:
gui-x: '0'
gui-y: '500'
charm: cs:nova-
num_units: 1
options:
ram-
console-
single-
network-
worker-
use-syslog: true
to:
- lxd:0
nova-compute:
annotations:
gui-x: '250'
gui-y: '250'
charm: cs:nova-compute-284
num_units: 2
options:
config-flags: default_
enable-
enable-
migration
use-syslog: true
to:
- '1'
- '2'
ntp:
annotations:
gui-x: '1000'
gui-y: '0'
charm: cs:ntp-24
num_units: 0
options:
source: 10.254.201.15
openstack-
annotations:
gui-x: '500'
gui-y: '-250'
charm: cs:openstack-
num_units: 1
options:
neutron-
neutron-
ubuntu-theme: 'No'
default-
webroot: /
use-syslog: true
to:
- lxd:0
rabbitmq-server:
annotations:
gui-x: '500'
gui-y: '250'
charm: cs:rabbitmq-
num_units: 1
options:
use-syslog: true
to:
- lxd:0
When stable: continue.
ysadmin@maasdev:~$ juju status
Model Controller Cloud/Region Version SLA Timestamp
default newcloud-controller rcscloud 2.4.4 unsupported 15:45:04-05:00
App Version Status Scale Charm Store Rev OS Notes
glance 16.0.1 active 1 glance jujucharms 265 ubuntu
keystone 13.0.1 active 1 keystone jujucharms 281 ubuntu
mysql 5.7.20-29.24 active 1 percona-cluster jujucharms 266 ubuntu
neutron-api 12.0.5 active 1 neutron-api jujucharms 260 ubuntu
neutron-gateway 12.0.5 active 1 neutron-gateway jujucharms 252 ubuntu
neutron-openvswitch 12.0.5 active 2 neutron-openvswitch jujucharms 250 ubuntu
nova-cloud-
nova-compute 17.0.6 active 2 nova-compute jujucharms 284 ubuntu
ntp 4.2.8p10+dfsg active 3 ntp jujucharms 24 ubuntu
openstack-dashboard 13.0.1 active 1 openstack-dashboard jujucharms 259 ubuntu
rabbitmq-server 3.6.10 active 1 rabbitmq-server jujucharms 74 ubuntu
Unit Workload Agent Machine Public address Ports Message
glance/0* active idle 0/lxd/0 10.254.201.114 9292/tcp Unit is ready
keystone/0* active idle 0/lxd/1 10.254.201.97 5000/tcp Unit is ready
mysql/0* active idle 0/lxd/2 10.254.201.56 3306/tcp Unit is ready
neutron-api/0* active idle 0/lxd/3 10.254.201.87 9696/tcp Unit is ready
neutron-gateway/0* active idle 0 10.254.201.74 Unit is ready
ntp/1 active idle 10.254.201.74 123/udp Ready
nova-cloud-
nova-compute/0* active idle 1 10.254.201.104 Unit is ready
neutron-
ntp/0* active idle 10.254.201.104 123/udp Ready
nova-compute/1 active idle 2 10.254.201.98 Unit is ready
neutron-
ntp/2 active idle 10.254.201.98 123/udp Ready
openstack-
rabbitmq-server/0* active idle 0/lxd/6 10.254.201.84 5672/tcp Unit is ready
Machine State DNS Inst id Series AZ Message
0 started 10.254.201.74 xtyw3h bionic default Deployed
0/lxd/0 started 10.254.201.114 juju-3d9ceb-0-lxd-0 bionic default Container started
0/lxd/1 started 10.254.201.97 juju-3d9ceb-0-lxd-1 bionic default Container started
0/lxd/2 started 10.254.201.56 juju-3d9ceb-0-lxd-2 bionic default Container started
0/lxd/3 started 10.254.201.87 juju-3d9ceb-0-lxd-3 bionic default Container started
0/lxd/4 started 10.254.201.137 juju-3d9ceb-0-lxd-4 bionic default Container started
0/lxd/5 started 10.254.201.69 juju-3d9ceb-0-lxd-5 bionic default Container started
0/lxd/6 started 10.254.201.84 juju-3d9ceb-0-lxd-6 bionic default Container started
1 started 10.254.201.104 wdmt73 bionic default Deployed
2 started 10.254.201.98 xedarh bionic default Deployed
juju deploy --config=cinder.cfg cinder cinder-api --to lxd:0
juju deploy --config=cinder.cfg cinder cinder-volume --to 0
juju add-relation cinder-api mysql
juju add-relation cinder-api rabbitmq-server
juju add-relation cinder-api keystone
juju status
juju add-relation cinder-api nova-cloud-
juju add-relation cinder-volume mysql
juju add-relation cinder-volume rabbitmq-server
Results in:
sysadmin@maasdev:~$ juju status
Model Controller Cloud/Region Version SLA Timestamp
default newcloud-controller rcscloud 2.4.4 unsupported 09:40:49-05:00
App Version Status Scale Charm Store Rev OS Notes
cinder-api 12.0.3 active 1 cinder jujucharms 276 ubuntu
cinder-volume 12.0.3 blocked 1 cinder jujucharms 276 ubuntu
glance 16.0.1 active 1 glance jujucharms 265 ubuntu
keystone 13.0.1 active 1 keystone jujucharms 281 ubuntu
mysql 5.7.20-29.24 active 1 percona-cluster jujucharms 266 ubuntu
neutron-api 12.0.5 active 1 neutron-api jujucharms 260 ubuntu
neutron-gateway 12.0.5 active 1 neutron-gateway jujucharms 252 ubuntu
neutron-openvswitch 12.0.5 active 2 neutron-openvswitch jujucharms 250 ubuntu
nova-cloud-
nova-compute 17.0.6 active 2 nova-compute jujucharms 284 ubuntu
ntp 4.2.8p10+dfsg active 3 ntp jujucharms 24 ubuntu
openstack-dashboard 13.0.1 active 1 openstack-dashboard jujucharms 259 ubuntu
rabbitmq-server 3.6.10 active 1 rabbitmq-server jujucharms 74 ubuntu
Unit Workload Agent Machine Public address Ports Message
cinder-api/0* active idle 0/lxd/7 10.254.201.96 8776/tcp Unit is ready
cinder-volume/0* blocked idle 0 10.254.201.84 8776/tcp Services not running that should be: apache2
glance/0* active idle 0/lxd/0 10.254.201.74 9292/tcp Unit is ready
keystone/0* active idle 0/lxd/1 10.254.201.114 5000/tcp Unit is ready
mysql/0* active idle 0/lxd/2 10.254.201.113 3306/tcp Unit is ready
neutron-api/0* active idle 0/lxd/3 10.254.201.69 9696/tcp Unit is ready
neutron-gateway/0* active idle 0 10.254.201.84 Unit is ready
ntp/1 active idle 10.254.201.84 123/udp Ready
nova-cloud-
nova-compute/0* active idle 1 10.254.201.137 Unit is ready
neutron-
ntp/0* active idle 10.254.201.137 123/udp Ready
nova-compute/1 active idle 2 10.254.201.97 Unit is ready
neutron-
ntp/2 active idle 10.254.201.97 123/udp Ready
openstack-
rabbitmq-server/0* active idle 0/lxd/6 10.254.201.104 5672/tcp Unit is ready
Machine State DNS Inst id Series AZ Message
0 started 10.254.201.84 pakkaa bionic default Deployed
0/lxd/0 started 10.254.201.74 juju-b0229c-0-lxd-0 bionic default Container started
0/lxd/1 started 10.254.201.114 juju-b0229c-0-lxd-1 bionic default Container started
0/lxd/2 started 10.254.201.113 juju-b0229c-0-lxd-2 bionic default Container started
0/lxd/3 started 10.254.201.69 juju-b0229c-0-lxd-3 bionic default Container started
0/lxd/4 started 10.254.201.128 juju-b0229c-0-lxd-4 bionic default Container started
0/lxd/5 started 10.254.201.98 juju-b0229c-0-lxd-5 bionic default Container started
0/lxd/6 started 10.254.201.104 juju-b0229c-0-lxd-6 bionic default Container started
0/lxd/7 started 10.254.201.96 juju-b0229c-0-lxd-7 bionic default Container started
1 started 10.254.201.137 wdmt73 bionic default Deployed
2 started 10.254.201.97 xedarh bionic default Deployed
Changed in juju: | |
status: | New → Invalid |
Changed in charm-cinder: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in charm-cinder: | |
milestone: | 19.04 → 19.07 |
Changed in charm-cinder: | |
milestone: | 19.07 → 19.10 |
Changed in charm-cinder: | |
milestone: | 19.10 → 20.01 |
Changed in charm-cinder: | |
milestone: | 20.01 → 20.05 |
Changed in charm-cinder: | |
milestone: | 20.05 → 20.08 |
Changed in charm-cinder: | |
milestone: | 20.08 → none |
cut and paste for work method did not come out looking so nice.
Attached file is better.