Ask Your Question
0

Deleting volume error in Dashboard

asked 2013-11-13 19:22:49 -0500

bgyako gravatar image

Hi Guys, I am new to Linux and open stack so please bare with me. I installed Grizzly open stack and everything is working pretty good except for 1 issue. I incorrectly deleted one of the volumes and now Dashboard always shows it as deleting. I am able to create and delete new volumes with no problem, except for the one that is stuck. I checked /var/lib/cinder/volumes/ and no volumes exist there ( I deleted all volumes to start over. Logs do not show anything that jumps out. I restarted several services with no luck, only issue is when restarting tgtd service get below error. "ERROR: You must provide a username via either --os-username or env[OS_USERNAME] root@cloudcontroller:/# /usr/sbin/tgtd stop (null): iscsi_tcp_init_portal(227) unable to bind server socket, Address already in use (null): iscsi_tcp_init_portal(227) unable to bind server socket, Address already in use (null): iscsi_add_portal(275) failed to create/bind to portal (null):3260 librdmacm: couldn't read ABI version. librdmacm: assuming: 4 CMA: unable to get RDMA device list (null): iser_ib_init(3263) Failed to initialize RDMA; load kernel modules? (null): fcoe_init(214) stop"

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted
0

answered 2013-11-15 20:46:37 -0500

bgyako gravatar image

Able to resolve by cleaning out the cinder DB and restarting services.

edit flag offensive delete link more
0

answered 2013-12-15 07:02:58 -0500

Actually, you can try to use this command: "cinder reset-state --state available volume-id", then delete it again.

edit flag offensive delete link more

Comments

This worked perfectly for my issue. thanks for your wisdom.

Yogesh gravatar imageYogesh ( 2019-02-10 22:47:16 -0500 )edit
0

answered 2013-11-13 19:32:39 -0500

bgyako gravatar image

Config files are as following.

  1. targets.conf

    Empty targets configuration file -- please see the package

documentation directory for an example.

include /etc/tgt/conf.d/cinder_tgt.conf default-driver iscsi

  1. cinder_tgt.conf include /var/lib/cinder/volumes/*

  2. cinder.conf [DEFAULT] rootwrap_config = /etc/cinder/rootwrap.conf api_paste_confg = /etc/cinder/api-paste.ini iscsi_helper = tgtadm volume_name_template = volume-%s volume_group = cinder-volumes verbose = True auth_strategy = keystone state_path = /var/lib/cinder lock_path = /var/lock/cinder volumes_dir = /var/lib/cinder/volumes sql_connection = mysql://cinder:password@localhost/cinder rabbit_password = password

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

1 follower

Stats

Asked: 2013-11-13 19:22:49 -0500

Seen: 1,077 times

Last updated: Dec 15 '13