Ask Your Question
0

devstack volume deletion very slow

asked 2016-05-02 16:52:24 -0500

StephanWeber gravatar image

Hi,

Deleting a 4GB volume takes minutes on a SSD... I have an entry "CINDER_VOLUME_CLEAR=none" in my local.conf and that gave me the expected entry "volume_clear = none" in "/etc/cinder/cinder.conf".

I use devstack Mitaka on top of Ubuntu 15 server on an actual version of ESXI, the whole box is more or less idling...

Best regards, Stephan

local.conf:

[[local|localrc]]
SERVICE_TOKEN=servicepass
ADMIN_PASSWORD=adminpass
MYSQL_PASSWORD=dbpass
RABBIT_PASSWORD=rabbitpass
SERVICE_PASSWORD=$ADMIN_PASSWORD

LIBVIRT_TYPE=kvm
HOST_IP=10.18.109.6

FIXED_RANGE=10.0.0.0/24
FLOATING_RANGE=10.18.108.0/22

Q_FLOATING_ALLOCATION_POOL=start=10.18.109.0,end=10.18.109.3
Q_L3_ENABLED=True
PUBLIC_INTERFACE=eno16780032
PUBLIC_NETWORK_GATEWAY="10.18.108.1"
Q_USE_PROVIDERNET_FOR_PUBLIC=True
Q_USE_SECGROUP=True

#use neutron for networking
disable_service n-net
enable_service q-svc
enable_service q-agt
enable_service q-dhcp
enable_service q-meta
enable_service q-l3
enable_service neutron
enable_service n-novnc
enable_service n-cauth

NOVA_VNC_ENABLED=True
NOVNCPROXY_URL="http://10.18.109.6:6080/vnc_auto.html"
VNCSERVER_LISTEN=10.18.109.6
VNCSERVER_PROXYCLIENT_ADDRESS=10.18.109.6

OVS_PHYSICAL_BRIDGE=br-ex
PUBLIC_BRIDGE=br-ex
OVS_BRIDGE_MAPPINGS=public:br-ex

MULTI_HOST=1
LOGFILE=$DEST/logs/stack.sh.log
LOGDAYS=14
VOLUME_BACKING_FILE_SIZE=409600M #[cinder volumes]to allow big/many virt.disks

enable_service s-proxy s-object s-container s-account
SWIFT_REPLICAS=1
SWIFT_HASH=3457987345987349

CINDER_VOLUME_CLEAR=none

[[post-config|$NOVA_CONF]]
[DEFAULT]
cpu_allocation_ratio = 20.0
ram_allocation_ratio = 5.0
disk_allocation_ratio = 3.0

resulting cinder.conf:

[keystone_authtoken]
memcached_servers = 10.18.109.6:11211
signing_dir = /var/cache/cinder
cafile = /opt/stack/data/ca-bundle.pem
auth_uri = http://10.18.109.6:5000
project_domain_id = default
project_name = service
user_domain_id = default
password = adminpass
username = cinder
auth_url = http://10.18.109.6:35357
auth_type = password

[DEFAULT]
graceful_shutdown_timeout = 5
os_privileged_user_tenant = service
os_privileged_user_password = adminpass
os_privileged_user_name = nova
glance_api_servers = http://10.18.109.6:9292
osapi_volume_workers = 10
logging_exception_prefix = %(color)s%(asctime)s.%(msecs)03d TRACE %(name)s ESC[01;35m%(instance)sESC[00m
logging_debug_format_suffix = ESC[00;33mfrom (pid=%(process)d) %(funcName)s %(pathname)s:%(lineno)dESC[00m
logging_default_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [ESC[00;36m-%(color)s] ESC[01;35m%(instance)s%(color)s%(message)sESC[00m
logging_context_format_string = %(asctime)s.%(msecs)03d %(color)s%(levelname)s %(name)s [ESC[01;36m%(request_id)s ESC[00;36m%(user_id)s %(project_id)s%(color)s] ESC[01;35m%(instance)s%(color)s%(message)sESC[00m
volume_clear = none
rpc_backend = rabbit
backup_swift_url = http://10.18.109.6:8080/v1/AUTH_
default_volume_type = lvmdriver-1
enabled_backends = lvmdriver-1
os_region_name = RegionOne
periodic_interval = 60
state_path = /opt/stack/data/cinder
osapi_volume_listen = 0.0.0.0
osapi_volume_extension = cinder.api.contrib.standard_extensions
rootwrap_config = /etc/cinder/rootwrap.conf
api_paste_config = /etc/cinder/api-paste.ini
iscsi_helper = tgtadm
debug = True
auth_strategy = keystone
nova_catalog_admin_info = compute:nova:adminURL
nova_catalog_info = compute:nova:publicURL

[database]
connection = mysql+pymysql://root:dbpass@127.0.0.1/cinder?charset=utf8

[oslo_concurrency]
lock_path = /opt/stack/data/cinder

[lvmdriver-1]
lvm_type = default
iscsi_helper = tgtadm
volume_group = stack-volumes-lvmdriver-1
volume_driver = cinder.volume.drivers.lvm.LVMVolumeDriver
volume_backend_name = lvmdriver-1

[oslo_messaging_rabbit]
rabbit_userid = stackrabbit
rabbit_password = rabbitpass
rabbit_hosts = 10.18.109.6
edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2016-05-09 02:55:08 -0500

StephanWeber gravatar image

even having both

[DEFAULT]
volume_clear_size = 50
volume_clear = none

in "/etc/cinder/cinder.conf" does not help.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

2 followers

Stats

Asked: 2016-05-02 16:52:24 -0500

Seen: 281 times

Last updated: May 09 '16