存在多个名为 'nova' 的终结点

More than one endpoint exists with the name 'nova'

命令不起作用,当我想显示 nova 的端点时:

openstack endpoint show nova

会报错:

More than one endpoint exists with the name 'nova'.

你应该使用:

openstack endpoint list --service nova

显示端点。

当您检查端点时,您可能会发现它们位于接口环境中。

 % openstack endpoint list -c ID -c "Service Name" -c Interface --service nova
+----------------------------------+--------------+-----------+
| ID                               | Service Name | Interface |
+----------------------------------+--------------+-----------+
| 2d45aed973da34f7d28b8c9e410bba5e | nova         | public    |
| 7de83faa23d4ee5b39a8b7de45b8ee15 | nova         | internal  |    
| ab8374d8b8f233fe11cda487bfe98ad7 | nova         | admin     |
+----------------------------------+--------------+-----------+

同样,您可以仅过滤特定接口中的端点

% openstack endpoint list --interface public 

对于您的命令,请使用 ID 而不是服务名称的名称,例如这会给我 admin nova API:

openstack endpoint show ab8374d8b8f233fe11cda487bfe98ad7