[nova] Admin user cannot create vm with user's port?

Lingxian Kong anlin.kong at gmail.com
Thu Jun 13 09:22:16 UTC 2019


Yeah, the api allows to specify port. What i mean is, the vm creation will
fail for admin user if port belongs to a non-admin user. An exception is
raised from nova-compute.

在 2019年6月13日星期四,Ghanshyam Mann <gmann at ghanshyammann.com> 写道:

>  ---- On Thu, 13 Jun 2019 12:32:21 +0900 Lingxian Kong <
> anlin.kong at gmail.com> wrote ----
>  > Hi Nova team,
>  > In Nova, even the admin user cannot specify user's port to create a vm,
> is that designed intentionally or sounds like a bug?
>
> You can specify that in networks object( networks.port field) [1]. This
> takes port_id of the existing port.
>
> [1] https://developer.openstack.org/api-ref/compute/?expanded=
> create-server-detail
>  - https://opendev.org/openstack/nova/src/commit/
> 52d8d3d7f65bed99c25f39e7e38f566346586009/nova/api/openstack/
> compute/schemas/servers.py
>
> -gmann
>
>  >
>  > Best regards,
>  > Lingxian KongCatalyst Cloud
>
>

-- 

Best regards,
Lingxian Kong
Catalyst Cloud
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-discuss/attachments/20190613/fa50eb1e/attachment.html>


More information about the openstack-discuss mailing list