Test 2 $ more cinder.cfg cinder-api: enabled-services: api, scheduler cinder-volume: enabled-services: volume block-device: sdb $ juju deploy --config=cinder.cfg cinder cinder-api --to lxd:0 Located charm "cs:cinder-276". Deploying charm "cs:cinder-276". $ juju deploy --config=cinder.cfg cinder cinder-volume --to 1 Located charm "cs:cinder-276". Deploying charm "cs:cinder-276". Add relations: juju add-relation cinder-api mysql juju add-relation cinder-api rabbitmq-server juju add-relation cinder-api keystone juju add-relation cinder-api nova-cloud-controller juju add-relation cinder-volume mysql juju add-relation cinder-volume rabbitmq-server juju status -- apache2 failed. Model Controller Cloud/Region Version SLA Timestamp default newcloud-controller rcscloud 2.4.4 unsupported 09:30:18-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-controller 17.0.6 active 1 nova-cloud-controller jujucharms 310 ubuntu 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 x.x.x.103 8776/tcp Unit is ready cinder-volume/0* blocked idle 1 x.x.x.129 8776/tcp Services not running that should be: apache2 glance/0* active idle 0/lxd/0 x.x.x.77 9292/tcp Unit is ready keystone/0* active idle 0/lxd/1 x.x.x.116 5000/tcp Unit is ready mysql/0* active idle 0/lxd/2 x.x.x.93 3306/tcp Unit is ready neutron-api/0* active idle 0/lxd/3 x.x.x.65 9696/tcp Unit is ready neutron-gateway/0* active idle 0 x.x.x.80 Unit is ready ntp/1 active idle x.x.x.80 123/udp Ready nova-cloud-controller/0* active idle 0/lxd/4 x.x.x.115 8774/tcp,8778/tcp Unit is ready nova-compute/0* active idle 1 x.x.x.129 Unit is ready neutron-openvswitch/0* active idle x.x.x.129 Unit is ready ntp/0* active idle x.x.x.129 123/udp Ready nova-compute/1 active idle 2 x.x.x.123 Unit is ready neutron-openvswitch/1 active idle x.x.x.123 Unit is ready ntp/2 active idle x.x.x.123 123/udp Ready openstack-dashboard/0* active idle 0/lxd/5 x.x.x.83 80/tcp,443/tcp Unit is ready rabbitmq-server/0* active idle 0/lxd/6 x.x.x.22 5672/tcp Unit is ready Machine State DNS Inst id Series AZ Message 0 started x.x.x.80 pakkaa bionic default Deployed 0/lxd/0 started x.x.x.77 juju-366cab-0-lxd-0 bionic default Container started 0/lxd/1 started x.x.x.116 juju-366cab-0-lxd-1 bionic default Container started 0/lxd/2 started x.x.x.93 juju-366cab-0-lxd-2 bionic default Container started 0/lxd/3 started x.x.x.65 juju-366cab-0-lxd-3 bionic default Container started 0/lxd/4 started x.x.x.115 juju-366cab-0-lxd-4 bionic default Container started 0/lxd/5 started x.x.x.83 juju-366cab-0-lxd-5 bionic default Container started 0/lxd/6 started x.x.x.22 juju-366cab-0-lxd-6 bionic default Container started 0/lxd/7 started x.x.x.103 juju-366cab-0-lxd-7 bionic default Container started 1 started x.x.x.129 wdmt73 bionic default Deployed 2 started x.x.x.123 xedarh bionic default Deployed On cinder-volume/0 $ sudo systemctl status apache2 ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled) Drop-In: /lib/systemd/system/apache2.service.d └─apache2-systemd.conf Active: failed (Result: exit-code) since Tue 2018-11-27 14:28:48 UTC; 5min ago Process: 6948 ExecStop=/usr/sbin/apachectl stop (code=exited, status=1/FAILURE) Process: 6940 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=1/FAILURE) Process: 18264 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE) Main PID: 3941 (code=exited, status=0/SUCCESS) Nov 27 14:28:48 controller02 systemd[1]: Starting The Apache HTTP Server... Nov 27 14:28:48 controller02 apachectl[18264]: AH00526: Syntax error on line 6 of /etc/apache2/sites-enabled/wsgi-openstack-api.conf: Nov 27 14:28:48 controller02 apachectl[18264]: Invalid command 'WSGIDaemonProcess', perhaps misspelled or defined by a module not included in the server configuration Nov 27 14:28:48 controller02 apachectl[18264]: Action 'start' failed. Nov 27 14:28:48 controller02 apachectl[18264]: The Apache error log may have more information. Nov 27 14:28:48 controller02 systemd[1]: apache2.service: Control process exited, code=exited status=1 Nov 27 14:28:48 controller02 systemd[1]: apache2.service: Failed with result 'exit-code'. Nov 27 14:28:48 controller02 systemd[1]: Failed to start The Apache HTTP Server. Remove offending WSGI lines in /etc/apache2/sites-enabled/wsgi-openstack-api.conf # Configuration file maintained by Juju. Local changes may be overwritten. Listen 8766 WSGIDaemonProcess cinder processes=64 threads=1 user=cinder group=cinder \ -- delete wsgi lines display-name=%{GROUP} WSGIProcessGroup cinder WSGIScriptAlias / /usr/bin/cinder-wsgi WSGIApplicationGroup %{GLOBAL} WSGIPassAuthorization On = 2.4> ErrorLogFormat "%{cu}t %M" ErrorLog /var/log/apache2/cinder_error.log CustomLog /var/log/apache2/cinder_access.log combined = 2.4> Require all granted Order allow,deny Allow from all Restart Apache2 - good now ~$ sudo systemctl restart apache2 $ sudo systemctl status apache2 ● apache2.service - The Apache HTTP Server Loaded: loaded (/lib/systemd/system/apache2.service; enabled; vendor preset: enabled) Drop-In: /lib/systemd/system/apache2.service.d └─apache2-systemd.conf Active: active (running) since Tue 2018-11-27 14:38:25 UTC; 9s ago Process: 6948 ExecStop=/usr/sbin/apachectl stop (code=exited, status=1/FAILURE) Process: 6940 ExecReload=/usr/sbin/apachectl graceful (code=exited, status=1/FAILURE) Process: 31838 ExecStart=/usr/sbin/apachectl start (code=exited, status=0/SUCCESS) Main PID: 31852 (apache2) Tasks: 55 (limit: 4915) CGroup: /system.slice/apache2.service ├─31852 /usr/sbin/apache2 -k start ├─31854 /usr/sbin/apache2 -k start └─31856 /usr/sbin/apache2 -k start Nov 27 14:38:25 controller02 systemd[1]: Starting The Apache HTTP Server... Nov 27 14:38:25 controller02 systemd[1]: Started The Apache HTTP Server. Unit Workload Agent Machine Public address Ports Message cinder-api/0* active idle 0/lxd/7 x.x.x.103 8776/tcp Unit is ready cinder-volume/0* active idle 1 x.x.x.129 8776/tcp Unit is ready on cinder-volume/0 - create /dev/sdb and cinder-volumes ~$ sudo pvcreate /dev/sdb Physical volume "/dev/sdb" successfully created. ~$ sudo vgcreate cinder-volumes /dev/sdb Volume group "cinder-volumes" successfully created ~$ sudo systemctl restart cinder-volume on maas server - create a volume ~$ openstack volume create --size 1 testvol1 +---------------------+--------------------------------------+ | Field | Value | +---------------------+--------------------------------------+ | attachments | [] | | availability_zone | nova | | bootable | false | | consistencygroup_id | None | | created_at | 2018-11-27T14:54:58.000000 | | description | None | | encrypted | False | | id | 2d5815af-5064-4677-85d9-cc0fd92c81a8 | | migration_status | None | | multiattach | False | | name | testvol1 | | properties | | | replication_status | None | | size | 1 | | snapshot_id | None | | source_volid | None | | status | creating | | type | None | | updated_at | None | | user_id | 24d4a02a943343e68e3356da4c3fe15e | +---------------------+--------------------------------------+