<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-family: Calibri, sans-serif;">
<div style="font-size: 14px;">This topic has already been discussed last year and a use-case was described (see [1]). </div>
<div style="font-size: 14px;">Here's a Heat blueprint for a new OS::Nova::Flavor resource: [2].</div>
<div style="font-size: 14px;">Several issues have been brought up after posting my implementation for review [3], all related to how flavors are defined/implemented in nova:</div>
<ul style="font-size: 14px;">
<li>Only admin tenants can manage flavors due to the default admin rule in policy.json.  </li><li>Per-stack flavor creation will pollute the global flavor list</li><li>If two stacks create a flavor with the same name, collision will occur, which will lead to the following error: ERROR (Conflict): Flavor with name dupflavor already exists. (HTTP 409)</li></ul>
<div style="font-size: 14px;">These and the ones described by Steven Hardy in [4] are related to the flavor scoping in Nova. </div>
<div style="font-size: 14px;"><br>
</div>
<div style="font-size: 14px;">Is there any plan/discussion to allow project scoped flavors in nova, similar to the Steven’s proposal for role-based scoping (see [4])?</div>
<div style="font-size: 14px;">Currently the only purpose of the is_public flag is to hide the flavor from users without the admin role, but it’s still visible in all projects. Any plan to change this?</div>
<div style="font-size: 14px;"><br>
</div>
<div style="font-size: 14px;">Having project-scoped flavors will rid us of the identified issues, and will allow a more fine-grained way of managing physical resources.</div>
<div style="font-size: 14px;"><br>
</div>
<div style="font-size: 14px;">Dimitri</div>
<div style="font-size: 14px;"><br>
</div>
<div style="font-size: 14px;">[1] <a href="http://lists.openstack.org/pipermail/openstack-dev/2013-November/018744.html">
http://lists.openstack.org/pipermail/openstack-dev/2013-November/018744.html</a></div>
<div style="font-size: 14px;">[2] <a href="https://wiki.openstack.org/wiki/Heat/Blueprints/dynamic-flavors">
https://wiki.openstack.org/wiki/Heat/Blueprints/dynamic-flavors</a> </div>
<div style="font-size: 14px;">[3] <a href="https://review.openstack.org/#/c/90029">
https://review.openstack.org/#/c/90029</a></div>
<div style="font-size: 14px;">[4] <a href="http://lists.openstack.org/pipermail/openstack-dev/2013-November/019099.html">http://lists.openstack.org/pipermail/openstack-dev/2013-November/019099.html</a></div>
</body>
</html>