[openstack-dev] [Heat] Unique vs. non-unique stack names

Angus Salkeld asalkeld at redhat.com
Wed Jul 31 23:05:00 UTC 2013


On 31/07/13 14:36 +0200, Zane Bitter wrote:
>On 30/07/13 21:34, Jason Dunsmore wrote:
>>Hello Heat devs,
>>
>>I've started doing some testing to find multi-engine bugs, and I
>>discovered that it's possible to create two stacks with the same name
>>when only a single heat-engine is running.
>>
>>Here are the results of my tests:
>>http://dunsmor.com/heat/multi-engine.html#sec-1-1
>
>Well spotted, thanks. Eventlet magic strikes again :/
>
>>Before I create a bug report about this, is it even necessary to enforce
>>unique stack names within a tenant?  Why don't we just key off of the
>>stack ID when possible and throw an error when it's not possible to look
>>up the stack by name?  This is how novaclient does it.
>
>My 2c: if names don't uniquely name things, they're not particularly 
>useful. i.e. if any other user in your tenant (or even you yourself) 
>can [accidentally?] create something with the same name as your 
>thing, then you have no choice but to remember the UUID of everything 
>you create, lest you be unable to find it again.

+1, not sure why the other openstack projects allow duplicate names.
But I don't think it is a huge issue for me either. I'll keep on
making stacks with unique names, I'll just miss the error.

-Angus

>
>I can't speak for everyone, but I find names easier to remember than UUIDs.
>
>- ZB
>
>>$ nova image-show F17_test
>>ERROR: Multiple image matches found for 'F17_test', use an ID to be more
>>specific.
>>
>>Regards,
>>Jason
>
>
>_______________________________________________
>OpenStack-dev mailing list
>OpenStack-dev at lists.openstack.org
>http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



More information about the OpenStack-dev mailing list