OpenStack (Newton) – issues after install

I followed this documentation: https://docs.openstack.org/newton/install-guide-rdo/

Below are mix of issue and how to fix them after install OpenStack (Newton) cluster on Centos 7.

Mariadb connections limit

You will have 214 connection limits. Changes:

[root@controller ~]# cat /etc/systemd/system/mariadb.service.d/limits.conf
[Service]
LimitNOFILE=65535

[root@controller ~]# grep mysql /etc/security/limits.conf
mysql hard nofile 65535
mysql soft nofile 65535

[root@controller ~]# grep max /etc/my.cnf.d/openstack.cnf
max_connections = 4096

[root@controller ~]# mysql -u root -e "SHOW VARIABLES LIKE 'max_connections'"
+-----------------+-------+
| Variable_name   | Value |
+-----------------+-------+
| max_connections | 4096  |
+-----------------+-------+

Block Device Mapping is Invalid

Volume creation takes longer than expected. Update nova.conf:

block_device_allocate_retries = 300
block_device_allocate_retries_interval = 10 
block_device_creation_timeout = 300​

Create flavor for high performance VMs

In file /etc/nova/nova.conf

scheduler_default_filters=CoreFilter,RamFilter,DiskFilter
reserved_host_memory_mb=2048
cpu_allocation_ratio=1.0
ram_allocation_ratio=1.0
disk_allocation_ratio=1.0​

Create flavor:

openstack flavor create --public c16r62 \
--id auto --vcpus 16 --ram 61440 --disk 50 --ephemeral 600 --swap 1024 --rxtx-factor 1 \
--property hw:numa_nodes=2 \
--property hw:cpu_policy=dedicated

Volume deletion is slow

[lvm]
volume_clear = zero
volume_clear_size = 1

Mariadb for keystone

GRANT ALL PRIVILEGES ON keystone.* TO 'keystone'@'controller' IDENTIFIED BY 'MyPassword';​

Fix glance api

chown glance:glance /var/log/glance/api.log​
mkdir /var/lib/glance/images​
chown glance:nobody /var/lib/glance/images

Memcached

[root@controller ~]# cat /etc/sysconfig/memcached
PORT="11211"
USER="memcached"
MAXCONN="1024"
CACHESIZE="64"
OPTIONS="-l 0.0.0.0,::1"

Adding subnet via web

Network Type: flat

Physical Network: provider

Set default ephemeral disk to EXT4

In /etc/nova/nova.conf​

default_ephemeral_format=ext4

Leave a Reply

Your email address will not be published. Required fields are marked *