Ask Your Question
0

how to find all the property of the flavor?

asked 2019-10-08 03:16:38 -0600

mystic gravatar image

updated 2019-10-08 21:42:32 -0600

e.g. https://docs.openstack.org/nova/stein...

openstack flavor set m1.large \
--property hw:cpu_policy=dedicated \
--property hw:emulator_threads_policy=share

We can set the property by the above command, however, how could I get all the property?


So, we cannot ensure whether the properties' keys we entered is correct?
Why do I pay attention to this? Because I find the difference among the different version doc.
hw:cpu_threads_policy in juno doc
hw:cpu_thread_policy in stein doc
Is it the difference caused by the version, or is it just a clerical error?
I don't know which one is correct, or all of them are wrong?

edit retag flag offensive close merge delete

Comments

So, we cannot ensure whether the properties' keys we entered is correct?

It is exactly for this purpose that the Glance metadata catalog exists.

Bernd Bausch gravatar imageBernd Bausch ( 2019-10-08 21:43:08 -0600 )edit

how to get Glance metadata catalog? I just found /etc/glance/metadefs/.*

mystic gravatar imagemystic ( 2019-10-09 00:37:29 -0600 )edit

I don't think you "get" it. It's already there. You may want to invest 6 minutes in this video: https://m.youtube.com/watch?v=zJpHXdB....

EDIT: Well, /etc/glance/metadefs is the content of the catalog. For a nicer presentation, use Horizon as explained in the video or my comment to my answer.

Bernd Bausch gravatar imageBernd Bausch ( 2019-10-09 01:15:42 -0600 )edit

Hi, @Bernd Bausch
Thanks a lot. Because i didn't run glance-manage db_load_metadefs, the horizon about metadata definitions was always empty.
Now, I can get these key from the load, rather than entered by myself.

mystic gravatar imagemystic ( 2019-10-09 02:16:27 -0600 )edit

Oops, I missed that command. Good that you found it.

I teach OpenStack courses and used to cover Glance metadata, wondering if anybody used the feature. I am happy there is at least one other person in the OpenStack world who appreciates its usefulness.

Bernd Bausch gravatar imageBernd Bausch ( 2019-10-09 03:30:39 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2019-10-08 03:48:17 -0600

Try openstack flavor show m1.large.

edit flag offensive delete link more

Comments

Hi, @Bernd Bausch I want to get all property's key, not the specific flavor. Is there any way to get them? Thanks a lot.

mystic gravatar imagemystic ( 2019-10-08 03:52:26 -0600 )edit

I think it's possible using the Glance metadata service. In the GUI, go to Admin->System->Metadata Definitions. I have not tried it for a long time.

CLI: The commands starting with md. Very little documentation, I am afraid.

Bernd Bausch gravatar imageBernd Bausch ( 2019-10-08 04:40:18 -0600 )edit

I had a quick look at the Nova code, but unfortunately there doesn't seem to be a list of valid flavor extra-specs. Various parts of the code access flavors and their properties; it's all over the place. So, my hope is that the data in the metadata catalog is correct and complete.

Bernd Bausch gravatar imageBernd Bausch ( 2019-10-08 04:45:09 -0600 )edit
0

answered 2019-10-13 09:32:54 -0600

vblando gravatar image

openstack flavor list --long

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: 2019-10-08 03:16:38 -0600

Seen: 74 times

Last updated: Oct 13