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@ghanshyammann.com> 写道:
---- On Thu, 13 Jun 2019 12:32:21 +0900 Lingxian Kong < anlin.kong@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