<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 22/01/16 18:25, 邸小丽 Di XiaoLi wrote:<br>
</div>
<blockquote
cite="mid:722da58a.af12.15267cb2aa5.Coremail.xiaolihope1008@163.com"
type="cite">
<div
style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
<div
style="line-height:1.7;color:#000000;font-size:14px;font-family:Arial">
<div>Hi:<br>
<br>
When using heat command: heat deployment-list and heat
deloyment-metadata-show like this:<br>
# heat deployment-list -s <b>non-exist-server-id</b><br>
+----+-----------+-----------+--------+--------+---------------+---------------+<br>
| id | config_id | server_id | action | status |
creation_time | status_reason |<br>
+----+-----------+-----------+--------+--------+---------------+---------------+<br>
+----+-----------+-----------+--------+--------+---------------+---------------+<br>
# heat deployment-metadata-show <b>non-exist-server-id<br>
</b>[]<br>
<b>Here, I give the invalid server_id. But heat client did
not show me that the server_id is not exist. </b><br>
I think it is may be a bug as the case of invalid server_id
and valid server_id with no deployments will both just
return same empty output.<br>
So, My questions are:<br>
1) Is this a bug or <span lang="en">consistent with design</span>
?<br>
2) If this is a bug, we should do the validation on the
server_id and return a Not Found message as appropriate.<br>
I would like to know whether we should do the
validation in heat client or heat ?<br>
</div>
<br>
</div>
</div>
</blockquote>
The server_id is treated as an arbitrary string with minimal
validation - this is by design to accommodate use cases where there
is not necessarily a nova server associated with the deployment (for
example, a server external to the stack or the cloud, or no server
at all, such as the functional tests for the deployment REST API) <br>
</body>
</html>