Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tempest: Fix Heat flavor id #2099

Merged
merged 1 commit into from
Apr 15, 2019
Merged

Conversation

skazi0
Copy link
Member

@skazi0 skazi0 commented Apr 10, 2019

ID 8 was already used in nova cookbook.
Taking 20 to leave some space for the future (and skip 13).

ID 8 was already used in nova cookbook.
Taking 20 to leave some space for the future (and skip 13).
@@ -278,7 +278,7 @@

flavor_ref = "6"
alt_flavor_ref = "7"
heat_flavor_ref = "8"
heat_flavor_ref = "20"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we use openstack flavor create which doesn't seem to require this thing?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something like openstack flavor create -c id -f value --ram 128 --disk 0 --vcpus 1 myflavor (and this way we get the id automatically)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nova flavor-create auto does the same. I think the point here is that we have fixed IDs which need to be placed in config files and we don't need to look them up after creation.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, but the problem seems to be that these fixed IDs may conflict, so I was wondering why not avoid the conflict altogether.

I guess it's fine to do the minimal change for now, but if we don't need fixed IDs, it's probably best to stop using them in the future.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree. I just followed the "broken windows" pattern :o)

@dirkmueller dirkmueller merged commit cc461b7 into crowbar:master Apr 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants