openstack中创建多租户无法用命令行访问指定租户下资源
neutron --os-project-id c1a835d28a494b79ac790baf95d4e0db net-list
neutron CLI is deprecated and will be removed in the future. Use openstack CLI instead.
The request you have made requires authentication. (HTTP 401) (Request-ID: req-85e5c30c-9109-45e6-b78e-35c42a41819e)
出现这种问题的原因是创建租户没有赋予admin的权限
#openstack project list
# openstack role add --project cy --user admin admin
可以执行了