Eclipse debugging OpenStack's Nova code

Source: Internet
Author: User

The code for the Nova part of OpenStack has been studying for a while. Especially want to know, how to debug the code with Eclipse, also in the Forum asked others, no results, no one reply to me. Finally, I found out the way out.

Let's write down the path of your exploration. I am an OpenStack environment built with Devstack. The build step can be found in one of my other blog posts.

My Nova code does not have a bin directory in this code, which leaves the program without a portal. However, in the Devstack installation environment, there are nova-api files in the/usr/loacl/bin/directory.

Under your own project, create a new bin file and copy the Nova-api to the bin directory.

Next, stop the NOVA-API service you used to configure OpenStack with Devstack. Many people PS commands do not find the corresponding process for NOVA-API. That is because sometimes this process is in the form of Python, so it is not good to find this process to stop, but we know that the Nova port is 8774, as long as the port corresponding to the process can be found, soon can kill the process. The operation is as follows.

As you can see, Port 8874 has a number of processes. Kill all the processes.

In fact, killing one of them can kill all the processes. After that, the code inside eclipse launches your own NOVA-API service.

Executes the nova-api.py file.

When you look at the port again, the service is started. This time, log in to your own devstack.

Whatever you do in dashboard, the statement output inside Eclipse, you can parse each statement in turn to trace and understand the code.

Oneself is also a beginner, at present I carry on to this step first, Next has the new progress and the understanding I will continue to update.

If there is anything not, hope to put forward, thank you!


Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.