RE: [DISCUSS] Changing nictype/disk controller for a template or VM

2014-11-13 Thread Sateesh Chodapuneedi
 -Original Message-
 From: Wido den Hollander [mailto:w...@widodh.nl]
 Sent: 10 November 2014 14:37
 To: dev@cloudstack.apache.org
 Subject: Re: [DISCUSS] Changing nictype/disk controller for a template or VM
 
 
 
 On 10-11-14 08:37, Rohit Yadav wrote:
  Hi,
 
  In case of VMWare, when we register a new template we can pass in nic type 
  and disk controller but there is no API (or parameter
 passable to current APIs) to change nic type and disk controller for both VM 
 and template.
 
  I’m planning to add a details map (following the registerTemplate API) to 
  updateTemplate and updateVirtualMachine APIs which
 would takes in the nictype and disk controller parameters. Please share if 
 this would cause any issue for you or if there is was a
 good reason to not allow it before? Right now to do something like that would 
 require database hacking. Thanks.
Rohit,
Looks like it's API layer change only. Just to confirm, does this modify 
resource code as well?

Regards,
Sateesh
 
 
 I don't see any problems. For some longer running VMs it might be useful at 
 some point that you can switch from e1000 to VirtIO
 NICs for example.
 
 Wido
 


Re: [DISCUSS] Changing nictype/disk controller for a template or VM

2014-11-13 Thread Rohit Yadav
Hi,

 On 13-Nov-2014, at 2:18 pm, Sateesh Chodapuneedi 
 sateesh.chodapune...@citrix.com wrote:

 Looks like it's API layer change only. Just to confirm, does this modify 
 resource code as well?

I’ve already fixed the issue. What I did does not change resource code at all. 
As soon as a template’s details are updated for new VMs using that template 
those details will be used so we’re good. That was the main fix.

For already running VMs, it’s tricky to implement the fix and I’m not sure how 
we would want to handle this. So for now I simply added the fix to update the 
details in DB (via the API). We can discuss and decide how we can handle this 
case but I am personally interested in fixing the templates only as previously 
there was no way to update details once a template is registered.

Regards,
Rohit Yadav
Software Architect, ShapeBlue
M. +91 88 262 30892 | rohit.ya...@shapeblue.com
Blog: bhaisaab.org | Twitter: @_bhaisaab



Find out more about ShapeBlue and our range of CloudStack related services

IaaS Cloud Design  Buildhttp://shapeblue.com/iaas-cloud-design-and-build//
CSForge – rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/
CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/
CloudStack Software 
Engineeringhttp://shapeblue.com/cloudstack-software-engineering/
CloudStack Infrastructure 
Supporthttp://shapeblue.com/cloudstack-infrastructure-support/
CloudStack Bootcamp Training Courseshttp://shapeblue.com/cloudstack-training/

This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England  Wales. ShapeBlue Services India LLP is a company 
incorporated in India and is operated under license from Shape Blue Ltd. Shape 
Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is 
operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company 
registered by The Republic of South Africa and is traded under license from 
Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: [DISCUSS] Changing nictype/disk controller for a template or VM

2014-11-10 Thread Wido den Hollander


On 10-11-14 08:37, Rohit Yadav wrote:
 Hi,
 
 In case of VMWare, when we register a new template we can pass in nic type 
 and disk controller but there is no API (or parameter passable to current 
 APIs) to change nic type and disk controller for both VM and template.
 
 I’m planning to add a details map (following the registerTemplate API) to 
 updateTemplate and updateVirtualMachine APIs which would takes in the nictype 
 and disk controller parameters. Please share if this would cause any issue 
 for you or if there is was a good reason to not allow it before? Right now to 
 do something like that would require database hacking. Thanks.
 

I don't see any problems. For some longer running VMs it might be useful
at some point that you can switch from e1000 to VirtIO NICs for example.

Wido

 Regards,
 Rohit Yadav
 Software Architect, ShapeBlue
 M. +91 88 262 30892 | rohit.ya...@shapeblue.com
 Blog: bhaisaab.org | Twitter: @_bhaisaab
 
 Find out more about ShapeBlue and our range of CloudStack related services
 
 IaaS Cloud Design  Buildhttp://shapeblue.com/iaas-cloud-design-and-build//
 CSForge – rapid IaaS deployment frameworkhttp://shapeblue.com/csforge/
 CloudStack Consultinghttp://shapeblue.com/cloudstack-consultancy/
 CloudStack Infrastructure 
 Supporthttp://shapeblue.com/cloudstack-infrastructure-support/
 CloudStack Bootcamp Training 
 Courseshttp://shapeblue.com/cloudstack-training/
 
 This email and any attachments to it may be confidential and are intended 
 solely for the use of the individual to whom it is addressed. Any views or 
 opinions expressed are solely those of the author and do not necessarily 
 represent those of Shape Blue Ltd or related companies. If you are not the 
 intended recipient of this email, you must neither take any action based upon 
 its contents, nor copy or show it to anyone. Please contact the sender if you 
 believe you have received this email in error. Shape Blue Ltd is a company 
 incorporated in England  Wales. ShapeBlue Services India LLP is a company 
 incorporated in India and is operated under license from Shape Blue Ltd. 
 Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is 
 operated under license from Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company 
 registered by The Republic of South Africa and is traded under license from 
 Shape Blue Ltd. ShapeBlue is a registered trademark.