[one-users] onevm - program flow - need more information

marimuthu.balasubramanian at wipro.com marimuthu.balasubramanian at wipro.com
Tue Jan 20 10:31:25 PST 2009


I would like to know onevm command execution flow(for ex: onevm submit) for the better understanding. I know little bit. please find my understanding for onevm "submit". Please give me information apart from my understanding.

For onevm submit <vm template> 
The execution start from 
1. case command
when "submit", "create"
    check_parameters("create", 1)
    result=vm.allocate(*ARGV)
    if result[0]
        puts "ID: " + result[1].to_s if ops[:verbose]
        command_exit 0
    end

2. then it invokes allocate method of one.rb script
allocate method is ........
       def allocate(*args)
            begin
                f=open(args[0], "r")
                template=f.read
                f.close
            rescue
                return [false, "Can not read template"]
            end

            self.allocate_(template)
        end

My doubt is after self.allocate how "submit" got scheduled.
I believe the openNEbula has scheduler to handle all the commands

When schduler invokes the submit command. it invokes the tm_clone.sh and tm_mkswap.sh. 

I have very little knowladge on your C++ source code.

I believe RequestManager::register_xml_methods()(RequestManager.cc) registers the all the commands with xmlrpc.

Further RequestManager::VirtualMachineAllocate::execute() (RequestManagerAllocate.cc) method got invoked

I don't have any idea when TranferManager.cc got used. 

 
Regards
Marimuthu
Wipro Technologies
Bangalore

Please do not print this email unless it is absolutely necessary. 

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. 

www.wipro.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20090121/b001b289/attachment-0002.htm>


More information about the Users mailing list