Re: [Openstack] manage personal instance from openstack
Hi Jay, Many thanks for your prompt reply. I don't want to go via image registry way as it has overhead of two copies (copy to swift and then openstack copies image to host for launch). Rather I was thinking to launch an instance (using any image with same resources as my image), and then when I want to transfer my image, just replace image of instance on host. I know it may break couple of things, network being one. BUt I am trying to figure out what all can go wrong and fix it before (or after) I ave copied my image. Please let me know your thoughts on this route to tranfer instance. Thanks Regards Deepak From: Jay Pipes jaypi...@gmail.com To: openstack@lists.launchpad.net, Date: 07/26/2013 10:30 PM Subject:Re: [Openstack] manage personal instance from openstack Sent by:Openstack openstack-bounces +dejeswan=in.ibm@lists.launchpad.net On 07/26/2013 05:10 AM, Deepak Jeswani1 wrote: Hi everyone, I have an instance running various applications in my environment and I want to transfer it to Openstack. One way is to take image of my instance, register it with Openstack image library and then create an instance out of it. I am wondering whether there can be a direct way to register it with Openstack. Please suggest me a good way to transfer my instance to Openstack. If you have a Swift installation, it's quite easy. 1) Snapshot your instance in your VMWare or Virtualbox environment 2) Convert the snapshot to a format that the hypervisor used in your OpenStack environment supports (ISO or QCOW2 is easiest for KVM) 3) Upload your converted image into Swift 4) Issue a call to Glance to register your image from Swift: glance image-create --disk-format=FORMAT --container-format=FORMAT --location=SWIFT_URI The image will then appear in your tenant's list of images in Horizon or glance image-list, and you may use it to launch an instance. All the best, -jay p.s. You don't necessarily need to use Swift, either... you could always just place your converted image on a web server somewhere and replace SWIFT_URI with the URI of your image. ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] manage personal instance from openstack
Hi everyone, I have an instance running various applications in my environment and I want to transfer it to Openstack. One way is to take image of my instance, register it with Openstack image library and then create an instance out of it. I am wondering whether there can be a direct way to register it with Openstack. Please suggest me a good way to transfer my instance to Openstack. Thanks Regards Deepak Deepak Jeswani Software Engineer, IBM Research, India. ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
[Openstack] Vm provision code flow in openstack
Hello everyone, I am trying to understand the flow of control in code in openstack for provisioning a VM. I want to understand it in order to do modify scheduler module as per our requirements. I have found the code base which, if I am not wrong, is kept in /usr/share/pyshared/nova/* directory but I can't see .py files getting accessed or executed if I provision a VM. Can someone please help me to understand the flow of code or give me pointers from where I can understand it. I hope even if I know the starting point (REST handler for VM provisioning call) in code then I will be able to trace it. Thanks Regards Deepak Deepak Jeswani Software Engineer, Distributed Systems Group, IBM Research-India ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp
Re: [Openstack] Vm provision code flow in openstack
Hello Michael, Many thanks for your response. I somehow found this code base (in installed openstack instance) and I inserted debug steps (opening a log file and printing statements into it) to see if the code flows through the file (specifically file '/usr/share/pyshared/nova/compute/api.py' in function 'def _create_instance'). Also I checked stat of all files to see if they get accessed when I do the provisioning. But neither my debug worked nor I could get the access stat of file. So I have doubt. either these are not the files (but as you pointed out, these are the correct file) or I have to insert debug statements in source files and build them again to see effect. Let me do changes in source code, build it and see what happens. If you have any comments please let me know. Thanks Regards Deepak From: Michael Still mi...@stillhq.com To: Deepak Jeswani1/India/IBM@IBMIN Cc: OpenStack general mailing list openstack@lists.launchpad.net Date: 04/29/2013 03:57 PM Subject:Re: [Openstack] Vm provision code flow in openstack Sent by:mikalst...@gmail.com So, there are a few things which happen here. VM provisioning is handled by the compute driver (checkout run_instance in nova/compute/manager.py). Scheduling however is handled by the scheduler, which has a plugin system (checkout nova/scheduler/*). Also, you'd be better off browing git for the source code ( http://github.com/openstack/nova.git) instead of the system installed files. Cheers, Michael On Mon, Apr 29, 2013 at 7:14 PM, Deepak Jeswani1 dejes...@in.ibm.com wrote: Hello everyone, I am trying to understand the flow of control in code in openstack for provisioning a VM. I want to understand it in order to do modify scheduler module as per our requirements. I have found the code base which, if I am not wrong, is kept in /usr/share/pyshared/nova/* directory but I can't see .py files getting accessed or executed if I provision a VM. Can someone please help me to understand the flow of code or give me pointers from where I can understand it. I hope even if I know the starting point (REST handler for VM provisioning call) in code then I will be able to trace it. Thanks Regards Deepak Deepak Jeswani Software Engineer, Distributed Systems Group, IBM Research-India ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp ___ Mailing list: https://launchpad.net/~openstack Post to : openstack@lists.launchpad.net Unsubscribe : https://launchpad.net/~openstack More help : https://help.launchpad.net/ListHelp