<div dir="ltr"><div>nova boot ... --nic port-id=xxx --nic net-id=yyy</div><div>this case is valid, right?</div><div>I.e. i want to boot instance with two ports. The first port is specified, but the second one is created at network mapping stage.</div><div>If i specify a security group as well, it will be used for the second port (if not - default group will):</div><div>nova boot ... --nic port-id=xxx --nic net-id=yyy --security-groups sg-1<br></div><div>Thus a port and a security group can be specified together.</div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Feb 9, 2015 at 7:14 PM, Matt Riedemann <span dir="ltr"><<a href="mailto:mriedem@linux.vnet.ibm.com" target="_blank">mriedem@linux.vnet.ibm.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
<br>
On 9/26/2014 3:19 AM, Christopher Yeoh wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, 26 Sep 2014 11:25:49 +0400<br>
Oleg Bondarev <<a href="mailto:obondarev@mirantis.com" target="_blank">obondarev@mirantis.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Fri, Sep 26, 2014 at 3:30 AM, Day, Phil <<a href="mailto:philip.day@hp.com" target="_blank">philip.day@hp.com</a>> wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  I think the expectation is that if a user is already interaction<br>
with Neutron to create ports then they should do the security group<br>
assignment in Neutron as well.<br>
<br>
</blockquote>
<br>
Agree. However what do you think a user expects when he/she boots a<br>
vm (no matter providing port_id or just net_id)<br>
and specifies security_groups? I think the expectation should be that<br>
instance will become a member of the specified groups.<br>
Ignoring security_groups parameter in case port is provided (as it is<br>
now) seems completely unfair to me.<br>
</blockquote>
<br>
One option would be to return a 400 if both port id and security_groups<br>
is supplied.<br>
<br>
Chris<br>
<br>
______________________________<u></u>_________________<br>
OpenStack-dev mailing list<br>
<a href="mailto:OpenStack-dev@lists.openstack.org" target="_blank">OpenStack-dev@lists.openstack.<u></u>org</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
<br>
</blockquote>
<br>
Coming back to this, we now have a change from Oleg [1] after an initial attempt that was reverted because it would break server creates if you specified a port (because the original change would blow up when the compute API added the 'default' security group to the request').<br>
<br>
The new change doesn't add the 'default' security group to the request so if you specify a security group and port on the request, you'll now get a 400 error response.<br>
<br>
Does this break API compatibility?  It seems this falls under the first bullet here [2], "A change such that a request which was successful before now results in an error response (unless the success reported previously was hiding an existing error condition)".  Does that caveat in parenthesis make this OK?<br>
<br>
It seems like we've had a lot of talk about warts in the compute v2 API for cases where an operation is successful but didn't yield the expected result, but we can't change them because of API backwards compatibility concerns so I'm hesitant on this.<br>
<br>
We also definitely need a Tempest test here, which I'm looking into.  I think I can work this into the test_network_basic_ops scenario test.<br>
<br>
[1] <a href="https://review.openstack.org/#/c/154068/" target="_blank">https://review.openstack.org/#<u></u>/c/154068/</a><br>
[2] <a href="https://wiki.openstack.org/wiki/APIChangeGuidelines#Generally_Not_Acceptable" target="_blank">https://wiki.openstack.org/<u></u>wiki/APIChangeGuidelines#<u></u>Generally_Not_Acceptable</a><span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
<br>
Thanks,<br>
<br>
Matt Riedemann<br>
<br>
<br>
______________________________<u></u>______________________________<u></u>______________<br>
OpenStack Development Mailing List (not for usage questions)<br>
Unsubscribe: <a href="http://OpenStack-dev-request@lists.openstack.org?subject:unsubscribe" target="_blank">OpenStack-dev-request@lists.<u></u>openstack.org?subject:<u></u>unsubscribe</a><br>
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/<u></u>cgi-bin/mailman/listinfo/<u></u>openstack-dev</a><br>
</font></span></blockquote></div><br></div>