Re: [openstack-dev] [OpenStack][Nova][Scheduler] Promote select_destination as a REST API

2014-07-23 Thread Alex Xu
Maybe we can implement this goal by another way, adding new API 
'confirm_before_migration' that's similar with 'confirm_resize'. This 
also can resolve Chris Friesen's concern.


On 2014年07月23日 00:13, Jay Pipes wrote:

On 07/21/2014 11:16 PM, Jay Lau wrote:

Hi Jay,

There are indeed some China customers want this feature because before
they do some operations, they want to check the action plan, such as
where the VM will be migrated or created, they want to use some
interactive mode do some operations to make sure no errors.


This isn't something that normal tenants should have access to, IMO. 
The scheduler is not like a database optimizer that should give you a 
query plan for a SQL statement. The information the scheduler is 
acting on (compute node usage records, aggregate records, deployment 
configuration, etc) are absolutely NOT something that should be 
exposed to end-users.


I would certainly support a specification that intended to add 
detailed log message output from the scheduler that recorded how it 
made its decisions, so that an operator could evaluate the data and 
decision, but I'm not in favour of exposing this information via a 
tenant-facing API.


Best,
-jay


2014-07-22 10:23 GMT+08:00 Jay Pipes jaypi...@gmail.com
mailto:jaypi...@gmail.com:

On 07/21/2014 07:45 PM, Jay Lau wrote:

There is one requirement that some customers want to get the
possible
host list when create/rebuild/migrate/__evacuate VM so as to
create a
resource plan for those operations, but currently
select_destination is
not a REST API, is it possible that we promote this API to be a
REST API?


Which customers want to get the possible host list?

/me imagines someone asking Amazon for a REST API that returned all
the possible servers that might be picked for placement... and what
answer Amazon might give to the request.

If by customer, you are referring to something like IBM Smart
Cloud Orchestrator, then I don't really see the point of supporting
something like this. Such a customer would only need to create a
resource plan for those operations if it was wholly supplanting
large pieces of OpenStack infrastructure, including parts of Nova
and much of Heat.

Best,
-jay


_
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.__org
mailto:OpenStack-dev@lists.openstack.org
http://lists.openstack.org/__cgi-bin/mailman/listinfo/__openstack-dev 
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev





--
Thanks,

Jay


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev






___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [OpenStack][Nova][Scheduler] Promote select_destination as a REST API

2014-07-23 Thread Jay Lau
Thanks Alex and Jay Pipes.

@Alex, I want a common interface for all VM operations to get target host
list, seems only adding a new API 'confirm_before_migration' not enough to
handle this? ;-)

@Jay Pipes, I will try to see if we can export this in K or L via Gantt

Thanks.


2014-07-23 17:14 GMT+08:00 Alex Xu x...@linux.vnet.ibm.com:

 Maybe we can implement this goal by another way, adding new API
 'confirm_before_migration' that's similar with 'confirm_resize'. This also
 can resolve Chris Friesen's concern.


 On 2014年07月23日 00:13, Jay Pipes wrote:

 On 07/21/2014 11:16 PM, Jay Lau wrote:

 Hi Jay,

 There are indeed some China customers want this feature because before
 they do some operations, they want to check the action plan, such as
 where the VM will be migrated or created, they want to use some
 interactive mode do some operations to make sure no errors.


 This isn't something that normal tenants should have access to, IMO. The
 scheduler is not like a database optimizer that should give you a query
 plan for a SQL statement. The information the scheduler is acting on
 (compute node usage records, aggregate records, deployment configuration,
 etc) are absolutely NOT something that should be exposed to end-users.

 I would certainly support a specification that intended to add detailed
 log message output from the scheduler that recorded how it made its
 decisions, so that an operator could evaluate the data and decision, but
 I'm not in favour of exposing this information via a tenant-facing API.

 Best,
 -jay

  2014-07-22 10:23 GMT+08:00 Jay Pipes jaypi...@gmail.com
 mailto:jaypi...@gmail.com:

 On 07/21/2014 07:45 PM, Jay Lau wrote:

 There is one requirement that some customers want to get the
 possible
 host list when create/rebuild/migrate/__evacuate VM so as to
 create a
 resource plan for those operations, but currently
 select_destination is
 not a REST API, is it possible that we promote this API to be a
 REST API?


 Which customers want to get the possible host list?

 /me imagines someone asking Amazon for a REST API that returned all
 the possible servers that might be picked for placement... and what
 answer Amazon might give to the request.

 If by customer, you are referring to something like IBM Smart
 Cloud Orchestrator, then I don't really see the point of supporting
 something like this. Such a customer would only need to create a
 resource plan for those operations if it was wholly supplanting
 large pieces of OpenStack infrastructure, including parts of Nova
 and much of Heat.

 Best,
 -jay


 _
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.__org
 mailto:OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/__cgi-bin/mailman/listinfo/__openstack-dev 
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




 --
 Thanks,

 Jay


 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev





 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- 
Thanks,

Jay
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [OpenStack][Nova][Scheduler] Promote select_destination as a REST API

2014-07-22 Thread Jay Pipes

On 07/21/2014 11:16 PM, Jay Lau wrote:

Hi Jay,

There are indeed some China customers want this feature because before
they do some operations, they want to check the action plan, such as
where the VM will be migrated or created, they want to use some
interactive mode do some operations to make sure no errors.


This isn't something that normal tenants should have access to, IMO. The 
scheduler is not like a database optimizer that should give you a query 
plan for a SQL statement. The information the scheduler is acting on 
(compute node usage records, aggregate records, deployment 
configuration, etc) are absolutely NOT something that should be exposed 
to end-users.


I would certainly support a specification that intended to add detailed 
log message output from the scheduler that recorded how it made its 
decisions, so that an operator could evaluate the data and decision, but 
I'm not in favour of exposing this information via a tenant-facing API.


Best,
-jay


2014-07-22 10:23 GMT+08:00 Jay Pipes jaypi...@gmail.com
mailto:jaypi...@gmail.com:

On 07/21/2014 07:45 PM, Jay Lau wrote:

There is one requirement that some customers want to get the
possible
host list when create/rebuild/migrate/__evacuate VM so as to
create a
resource plan for those operations, but currently
select_destination is
not a REST API, is it possible that we promote this API to be a
REST API?


Which customers want to get the possible host list?

/me imagines someone asking Amazon for a REST API that returned all
the possible servers that might be picked for placement... and what
answer Amazon might give to the request.

If by customer, you are referring to something like IBM Smart
Cloud Orchestrator, then I don't really see the point of supporting
something like this. Such a customer would only need to create a
resource plan for those operations if it was wholly supplanting
large pieces of OpenStack infrastructure, including parts of Nova
and much of Heat.

Best,
-jay


_
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.__org
mailto:OpenStack-dev@lists.openstack.org
http://lists.openstack.org/__cgi-bin/mailman/listinfo/__openstack-dev 
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




--
Thanks,

Jay


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev



___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [OpenStack][Nova][Scheduler] Promote select_destination as a REST API

2014-07-21 Thread Jay Lau
Sorry, correct one typo. I mean Promote select_destination as a REST API


2014-07-21 23:49 GMT+08:00 Jay Lau jay.lau@gmail.com:

 Now in OpenStack Nova, select_destination is used by
 create/rebuild/migrate/evacuate VM when selecting target host for those
 operations.

 There is one requirement that some customers want to get the possible host
 list when create/rebuild/migrate/evacuate VM so as to create a resource
 plan for those operations, but currently select_destination is not a REST
 API, is it possible that we promote this API to be a REST API?

 --
 Thanks,

 Jay




-- 
Thanks,

Jay
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [OpenStack][Nova][Scheduler] Promote select_destination as a REST API

2014-07-21 Thread Chris Friesen

On 07/21/2014 09:52 AM, Jay Lau wrote:

Sorry, correct one typo. I mean Promote select_destination as a REST API


2014-07-21 23:49 GMT+08:00 Jay Lau jay.lau@gmail.com
mailto:jay.lau@gmail.com:

Now in OpenStack Nova, select_destination is used by
create/rebuild/migrate/evacuate VM when selecting target host for
those operations.

There is one requirement that some customers want to get the
possible host list when create/rebuild/migrate/evacuate VM so as to
create a resource plan for those operations, but currently
select_destination is not a REST API, is it possible that we promote
this API to be a REST API?


How would that work, given that when they go to actually perform the 
operation the conditions may have changed and the selected destination 
may be different?


Or is the idea that they would do a select_destination call, and then 
call the create/rebuild/migrate/evacuate while specifying the selected 
destination?


Chris


___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [OpenStack][Nova][Scheduler] Promote select_destination as a REST API

2014-07-21 Thread Sylvain Bauza
Le 21/07/2014 17:52, Jay Lau a écrit :
 Sorry, correct one typo. I mean Promote select_destination as a REST API



-1 to it. During last Summit, we agreed on externalizing current
Scheduler code into a separate project called Gantt. For that, we agreed
on first doing necessary changes within the Scheduler before recreating
a new repository.

By providing select_destinations as a new API endpoint, it would create
a disruptive change where the Scheduler would have a new entrypoint.

As this change would need a spec anyway and as there is a Spec Freeze
now for Juno, I propose to delay this proposal until Gantt is created
and propose a REST API for Gantt instead (in Kilo or L)

-Sylvain


 2014-07-21 23:49 GMT+08:00 Jay Lau jay.lau@gmail.com
 mailto:jay.lau@gmail.com:

 Now in OpenStack Nova, select_destination is used by
 create/rebuild/migrate/evacuate VM when selecting target host for
 those operations.

 There is one requirement that some customers want to get the
 possible host list when create/rebuild/migrate/evacuate VM so as
 to create a resource plan for those operations, but currently
 select_destination is not a REST API, is it possible that we
 promote this API to be a REST API?

 -- 
 Thanks,

 Jay




 -- 
 Thanks,

 Jay


 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [OpenStack][Nova][Scheduler] Promote select_destination as a REST API

2014-07-21 Thread Jay Lau
Thanks Chris and Sylvain.

@Chris, yes,my case is do a select_destination call, and then call the
create/rebuild/migrate/evacuate while specifying the selected destination

@Sylvain, I was also thinking of Gantt, but as you said, Gantt might be
available in K or L which might be a bit late, that's why I say I want to
first do it in nova then migrate to Gantt. OK, agree with you, considering
the spec is freeze now, I will consider this in K or L and find a
workaround for now. ;-)

Thanks.


2014-07-22 1:13 GMT+08:00 Sylvain Bauza sba...@redhat.com:

  Le 21/07/2014 17:52, Jay Lau a écrit :

 Sorry, correct one typo. I mean Promote select_destination as a REST API



 -1 to it. During last Summit, we agreed on externalizing current Scheduler
 code into a separate project called Gantt. For that, we agreed on first
 doing necessary changes within the Scheduler before recreating a new
 repository.

 By providing select_destinations as a new API endpoint, it would create a
 disruptive change where the Scheduler would have a new entrypoint.

 As this change would need a spec anyway and as there is a Spec Freeze now
 for Juno, I propose to delay this proposal until Gantt is created and
 propose a REST API for Gantt instead (in Kilo or L)

 -Sylvain


 2014-07-21 23:49 GMT+08:00 Jay Lau jay.lau@gmail.com:

  Now in OpenStack Nova, select_destination is used by
 create/rebuild/migrate/evacuate VM when selecting target host for those
 operations.

  There is one requirement that some customers want to get the possible
 host list when create/rebuild/migrate/evacuate VM so as to create a
 resource plan for those operations, but currently select_destination is not
 a REST API, is it possible that we promote this API to be a REST API?

 --
  Thanks,

  Jay




 --
  Thanks,

  Jay


 ___
 OpenStack-dev mailing 
 listOpenStack-dev@lists.openstack.orghttp://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev





-- 
Thanks,

Jay
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [OpenStack][Nova][Scheduler] Promote select_destination as a REST API

2014-07-21 Thread Jay Pipes

On 07/21/2014 07:45 PM, Jay Lau wrote:

There is one requirement that some customers want to get the possible
host list when create/rebuild/migrate/evacuate VM so as to create a
resource plan for those operations, but currently select_destination is
not a REST API, is it possible that we promote this API to be a REST API?


Which customers want to get the possible host list?

/me imagines someone asking Amazon for a REST API that returned all the 
possible servers that might be picked for placement... and what answer 
Amazon might give to the request.


If by customer, you are referring to something like IBM Smart Cloud 
Orchestrator, then I don't really see the point of supporting something 
like this. Such a customer would only need to create a resource plan 
for those operations if it was wholly supplanting large pieces of 
OpenStack infrastructure, including parts of Nova and much of Heat.


Best,
-jay

___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [OpenStack][Nova][Scheduler] Promote select_destination as a REST API

2014-07-21 Thread Jay Lau
Hi Jay,

There are indeed some China customers want this feature because before they
do some operations, they want to check the action plan, such as where the
VM will be migrated or created, they want to use some interactive mode do
some operations to make sure no errors.

Thanks.


2014-07-22 10:23 GMT+08:00 Jay Pipes jaypi...@gmail.com:

 On 07/21/2014 07:45 PM, Jay Lau wrote:

 There is one requirement that some customers want to get the possible
 host list when create/rebuild/migrate/evacuate VM so as to create a
 resource plan for those operations, but currently select_destination is
 not a REST API, is it possible that we promote this API to be a REST API?


 Which customers want to get the possible host list?

 /me imagines someone asking Amazon for a REST API that returned all the
 possible servers that might be picked for placement... and what answer
 Amazon might give to the request.

 If by customer, you are referring to something like IBM Smart Cloud
 Orchestrator, then I don't really see the point of supporting something
 like this. Such a customer would only need to create a resource plan for
 those operations if it was wholly supplanting large pieces of OpenStack
 infrastructure, including parts of Nova and much of Heat.

 Best,
 -jay


 ___
 OpenStack-dev mailing list
 OpenStack-dev@lists.openstack.org
 http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev




-- 
Thanks,

Jay
___
OpenStack-dev mailing list
OpenStack-dev@lists.openstack.org
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev