Problems creating a volume with an image
I'm currently trying to create a volume with an image. (Creating an empty without using an image goes off without a hitch.) This is an all in one install using chef-openstack, Rocky on 16.04 Ubuntu.
Behaviour: When using the UI: Error message: Unable to create volume When using cinder create volume: ERROR: Invalid image identifier or unable to access requested image. (HTTP 400)
Things I've tried to change with no luck: Modifying mysql settings Max Connections: max_connections = 10000 connect_timeout = 100 Added an image conversion directory setting in /etc/cinder/cinder.conf restarted cinder,glance,mysql services several times.
Cinder.conf:
root@prod-openstack-controller1:/var# cat /etc/cinder/cinder.conf
This file is automatically generated by Chef
Any changes will be overwritten
[oslo_messaging_notifications] driver = messagingv2
[DEFAULT]
auth_strategy = keystone
control_exchange = cinder
glance_api_version = 2
volume_group = cinder-volumes
state_path = /var/lib/cinder
my_ip = 127.0.0.1
glance_api_servers = 127.0.0.1
osapi_volume_listen = 127.0.0.1
osapi_volume_listen_port = 8776
enabled_backends = phx-nimble4, phx-nimble
default_volume_type=lvm
transport_url = rabbit://admin:PASSWORD@127.0.0.1:5672/
image_conversion_dir=/var/lock/cinder
[keystone_authtoken]
auth_type = password
region_name = RegionOne
username = cinder
project_name = service
user_domain_name = Default
project_domain_name = Default
auth_url = http://127.0.0.1:5000/v3
password = PASSWORD
[oslo_concurrency] lock_path = /var/lib/cinder/tmp
[lvm] volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_group = cinder-volumes
iscsi_protocol = iscsi
iscsi_helper = tgtadm
[database] connection = mysql+pymysql://cinder:PASSWORD@127.0.0.1:3306/cinder?charset=utf8
Glance:Conf:
root@prod-openstack-controller1:/var# cat /etc/glance/glance-api.conf
This file is automatically generated by Chef
Any changes will be overwritten
[DEFAULT] log_file = /var/log/glance/api.log bind_host = 127.0.0.1 bind_port = 9292 registry_host = 127.0.0.1 registry_port = 9191 registry_client_protocol = http transport_url = rabbit://admin:PASSWORD@127.0.0.1:5672/
[glance_store] default_store = file filesystem_store_datadir = /var/lib/glance/images
[paste_deploy] flavor = keystone
[keystone_authtoken]
auth_type = v3password
region_name = RegionOne
username = glance
project_name = admin
user_domain_name = Default
signing_dir = /var/cache/glance/api
project_domain_name = Default
auth_url = http://127.0.0.1:5000/v3
password = PASSWORD
[database]
connection = mysql+pymysql://glance:PASSWORD@127.0.0.1:3306/glance?charset=utf8
Versions:
root@prod-openstack-controller1:/var# cinder --version
3.5.0
root@prod-openstack-controller1:/var# glance --version
2.9.1
Other potential useful error messages:
● mysql.service - LSB: Start and stop the mysql database server daemon
Loaded: loaded (/etc/init.d/mysql; bad; vendor preset: enabled)
Active: active (running) since Mon 2019-04-29 15:21:26 PDT; 33min ago
Docs: man:systemd-sysv-generator(8)
Process: 21443 ExecStop=/etc/init.d/mysql stop (code=exited, status=0/SUCCESS)
Process: 21480 ExecStart=/etc/init.d/mysql start (code=exited, status=0/SUCCESS)
Tasks: 60
Memory: 167.5M
CPU: 8.805s
CGroup: /system.slice/mysql.service
├─21510 /bin/bash /usr/bin/mysqld_safe
├─21781 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib/mysql/plugin --user=mysql --skip-log-error --pid-file=/var/run/mysqld/mysqld.pid --socket=/var/run/mysqld/mysqld.sock --port=3306
└─21782 logger -t mysqld -p daemon error
Apr 29 15:21:26 prod-openstack-controller1.phx.op.parchment.com /etc/mysql/debian-start[21845]: Triggering myisam-recover for all MyISAM tables ...