<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">On 16 Jan 2014, at 13:54, Ilya Kharin <<a href="mailto:ikharin@mirantis.com">ikharin@mirantis.com</a>> wrote:<br><div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">On 16 Jan 2014, at 12:57, Oleg Gelbukh <<a href="mailto:ogelbukh@mirantis.com">ogelbukh@mirantis.com</a>> wrote:<br><div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 16, 2014 at 2:21 AM, Jay Pipes<span class="Apple-converted-space"> </span><span dir="ltr"><<a href="mailto:jaypipes@gmail.com" target="_blank">jaypipes@gmail.com</a>></span><span class="Apple-converted-space"> </span>wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div class="im">On Wed, 2014-01-15 at 21:46 +0000, Hugh Saunders wrote:<br>> On 15 January 2014 21:14, Ilya Kharin <<a href="mailto:ikharin@mirantis.com">ikharin@mirantis.com</a>> wrote:<br>><br>> Hi, guys,<br>><br>> In Rally there is an entity that represents installed instance<br>> of OpenStack.<br>> What you think about a proper name for the entity? (a<br>> Deployment, a Cluster, an Installation, an Instance or<br>> something else)<br>><br>> I vote for Deployment.<br></div></blockquote><div><br></div><div>Doesn't it sound a bit weird to deploy a Deployment? Otherwise, it does not really matter how it is called as long as the naming is consistent.</div><div><br></div><div>I have another question. Shoud we think about separation of Deployment and Endpoint entities in API? Deployment is an object managed by deployment engine, while Endpoint can refer to existing installation which has nothing to do with deployment engine. It means that different sets of operations are applicable to those entities. What do you think?</div></div></div></div></blockquote><br><div>Yep, you are right. It's very usefull because currently there is an DummyEngine which does nothing, just returns an endpoint. So, an Endpoint should be an entity that represents an installed OpenStack and contains an endpoint and credentials. In this case the deployment process should be changed. As a result of the deployment process an instance of an Endpoint will created. To start a Task an instance of an Endpoint should be passed.</div></div></div></blockquote><div><div><div>Also, if try to imagine this in examples, then this can be represented like that:</div><div><br></div><div>1) In case of an existent cloud, only an Endpoint should be added:</div><div><br></div><div> $ cat endpoint.jso</div><div> {</div><div> "auth_url": "<a href="http://example.com:5000/v2.0">http://example.com:5000/v2.0</a>",</div><div> "username": "admin",</div><div> "password": "secret",</div><div> "tenant_name": "demo"</div><div> }</div><div> $ rally endpoint add endpoint.json</div><div><br></div><div>The last command shows an endpoint_id of an added endpoint.</div><div><br></div><div>2.1) In case when OpenStack should be deployed:</div><div><br></div><div> $ rally deployment create --filename=deployment.json</div><div><br></div><div>2.2) Wait when a status has a proper value ("deploy->finished").</div><div><br></div><div> $ rally deployment list</div><div><br></div><div>In case of success deployment an endpoint is going to be automatically created for the deployment:</div><div><br></div><div> $ rally endpoint list</div><div><br></div><div>3) To start a task an endpoint_id is required. There is one endpoint after (1) or (2.2) step, use it:</div><div><br></div><div> $ rally task start --endpoint-id=<endpoint_id> --task task.json</div></div></div><blockquote type="cite"><div style="font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><br><blockquote type="cite"><div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><br></div><div>--</div><div>Best regards,</div><div>Oleg Gelbukh</div><div> </div><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex;"><div class="im"><br></div>++<br><br>Best,<br>-jay<br><div class="HOEnZb"><div class="h5"><br><br><br>_______________________________________________<br>OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br></div></div></blockquote></div><br></div></div>_______________________________________________<br>OpenStack-dev mailing list<br><a href="mailto:OpenStack-dev@lists.openstack.org">OpenStack-dev@lists.openstack.org</a><br><a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a></blockquote></div></div></blockquote></div><br></body></html>