Ask Your Question
1

How to list iscsi target details like iqn number using cinder client?

asked 2013-12-31 05:11:09 -0500

teju gravatar image

updated 2014-01-20 21:27:38 -0500

I have cinder on Ubuntu12.04. I've created volumes and when I run the command tgt-admin -s ,it shows all the target details corresponding to the volumes created. We can get iqn numbers by querying the db as : select provider_location from cinder.volumes; My requirement is to get similar details without querying the db. Is there a way to achieve the same using REST API or python cinder client?

edit retag flag offensive close delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-02-09 01:05:15 -0500

jgriffith gravatar image

No, Cinder does not provide that via the API or client. It's intent is to abstract that out so you don't have to know about it.

That being said it would be trivial to write your own extension to do something along the lines of what you want. Or even easier just use the tgt-admin commands like you mentioned, it's the same info that's stored in the provider_location field.

edit flag offensive delete publish link more

Your Answer

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

Add Answer

[hide preview]

Question Tools

Follow
1 follower

Stats

Asked: 2013-12-31 05:11:09 -0500

Seen: 130 times

Last updated: Feb 09