Comment 0 for bug 1597296

sunyajing (yajing-sun) wrote :

If several services have the same names like this:
+----------------------------------+-------------+----------------+
| ID | Name | Type |
+----------------------------------+-------------+----------------+
| 148f5e8cc6154fac92f6031e8040aee0 | ceilometer | metering |
| 186fd71836d745de8c84f959d34639af | glance | image |
| 18a0e59768994839840af7ed12592274 | nova | syj |
| 42c41632597d4d3fa2ad042b5ed0e81a | nova | compute |
| 455680b30d3f4af4a63bb9722828bc30 | cinder | volume |
| 67c7ada5f4c24c2f94e6368ac9ae1100 | None | syj |
| 79d150b92f4b4f7dba64ec419f916119 | neutron | syj |
| 7dc9bd2115234ae9bac0ad430b900cca | nova_legacy | compute_legacy |
| 8df25ac9adcd478488cb4ee004e57737 | keystone | identity |
| 98bcf89fbcbf44b9a155a0fec38f6c42 | cinderv2 | volumev2 |
| ed7d55b2d415417e9d13e65035dd6694 | neutron | network |
| f94c3860ebb747899f6e002ce766ca87 | cinderv3 | volumev3 |
+----------------------------------+-------------+----------------+

``service show nova`` raises a wrong exception:
No service with a type, name or ID of 'syj' exists.
Actually, it should be:
Multiple service matches found for 'syj', use an ID to be more specific.