• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » Nova-Agent : How it Works on OpenStack Public Cloud

By Abhishek Ghosh October 3, 2014 5:13 pm Updated on October 3, 2014

Nova-Agent : How it Works on OpenStack Public Cloud

Advertisement

This is brief introduction to Nova-Agent, which runs as daemon on OpenStack Public Cloud like Rackspace. If it does not start, dependent services will fail. In previous article, we talked about fixing patching ShellShock Bug, but we have not said that Xen Virtualization had some bugs too, which was so sensitive, globally all including Rackspace Patched and Restarted the Servers. With one level up patching, it is not unlikely to miss nova-agent up and running rightly, or it might get missing after manual upgrade (with apt-get upgrade command) and accepting to replace a particular file. By default we never replace it to avoid this issue on PVHVM instances. This is an article which will partially explain the function of Nova-Agent and How it Works on OpenStack Public Cloud. Without understanding Linux from Kernel level, OpenStack Nova, you should not play on production server.

 

Nova-Agent : How it Works on OpenStack Public Cloud And What Will Happen If It Is Not Running

 

Your server will run like an isolated instance with no API based access to other services, usually the dependent services run but throw error. Services include Cloud Monitoring Tool, Image Backup etc. When we create an instance, automatically this nova-agent gets ready. What is untold, you can stop it incase you want to use the server for simple reason. Because, as it is a daemon, with restart, it will restart and suck some memory. If you run this command, you’ll understand it is there :

Vim
1
2
service nova-agent status
Usage: /etc/init.d/nova-agent {start|stop|restart}

Unfortunately, service nova-agent restart or service nova-agent start will never give you anything worthy. If you do not get any output, the silence will say “I am running but in wrong path”, if get this error “‘import site’ failed; use -v for traceback”, frankly you have been screwed, take file level backup, backup of folders like /etc, because practically on any unix like OS, putting configuration file or other stuffs works fine, provided that, the servers are of same version, same thing. That is why you can run Application on Mac without really dragging to Application folder and that is the primitive cheat to use the paid application forever. The Application gets mounted. So, if you create a storage device, mount it on cloud server and copy all the stuffs, it will work fine as backup. You will unmount it, then troubleshoot. Victor wrote a good guide to easily troubleshoot :

Advertisement

---

Vim
1
https://community.rackspace.com/products/f/25/t/3338

xe-linux-distribution service is provided by xe-guest-utilities package, this runs on all Linux servers on Rackspace Cloud. This is the service which is responsible for communicating Virtual Machine (your device) with the hypervisor (the hardware). How much important this xe-linux-distribution? You can not change the password from Rackspace control panel, you can not use the Rackspace console. xe-linux-distribution must start before the nova-agent service. The upgrade with accepting the fix actually fully FCUKS this order.

It is a huge pain and complicated process to re-install it, that is why Rackspace always provide 100% managed support for Nova-Agent related issues. They will not login to the device in case of Infrastructure Managed instance. I personally think, Rackspace should add a paid add-on service for some works on device by them. Otherwise a noob might hire outsider which is more dangerous for the total environment.

Nova-Agent - How it Works on OpenStack Public Cloud

 

Nova-Agent : How To Fix If It Is Not Running

 

Run this command :

Vim
1
tail /var/log/nova-agent.log

If you have received kind of this error as output :

Vim
1
2
3
4
5
6
7
8
9
10
2014-10-03 16:22:28,888 [ERROR] [EXC]   File "xscomm.py", line 43, in __init__
2014-10-03 16:22:28,888 [ERROR] [EXC] PyXenStoreError: Couldn't open connection to the xenstore: No such file or directory
2014-10-03 16:22:28,889 [ERROR] failed to parse config file '/usr/share/nova-agent/nova-agent.py'
2014-10-03 16:24:47,334 [ERROR] Failed to run python code: A python exception has occurred:
2014-10-03 16:24:47,334 [ERROR] [EXC] Traceback (most recent call last):
2014-10-03 16:24:47,334 [ERROR] [EXC]   File "/usr/share/nova-agent/nova-agent.py", line 40, in <module>
2014-10-03 16:24:47,334 [ERROR] [EXC]     xs = plugins.XSComm()
2014-10-03 16:24:47,334 [ERROR] [EXC]   File "xscomm.py", line 43, in __init__
2014-10-03 16:24:47,334 [ERROR] [EXC] PyXenStoreError: Couldn't open connection to the xenstore: No such file or directory
2014-10-03 16:24:47,334 [ERROR] failed to parse config file '/usr/share/nova-agent/nova-agent.py'

You should thank God. Do this :

Vim
1
cd /usr/share/nova-agent && ls

It will show you a Python script and a version-numbered folder – like 1.39.0. CD there :

Vim
1
cd 1.39.0 && ls

There is a Plugins folder, cd to that folder. The advantage of Open Source is that, you’ll get it here :

Vim
1
https://github.com/rackerlabs/openstack-guest-agents-unix/tree/master/plugins

First make a directory and move the existing files in that. You can use FTP if you want. Next wget the sources from there in Github. Replacing the problem creating files might fix your condition, but this can unfortunately open the ShellShock vulnerability. If the problem is with XenStore, the only way is to reinstall the xe-guest-utilities. It is difficult and honestly Rackspace make it an exception to login to the device and fix it. I myself can not take the risk to do it – it is very difficult, if one step goes wrong, the server which was running, it will die. Citrix has peculiar stuffs.

So, what you will do in case Rackspace’s official on chat help can not make you to execute the things. You should create similar instances and simply build it again, before deleting old instance, rebuild it from original image (to preserve the IP), again re-configure the web server or application server. Although this is painful, this is easier for even the beginner. You kept the files of /etc/ like folder, from it you have to understand what configuration your Nginx server had. It might turn towards good for you.

Tagged With nova agent , nova agent rackspace , paperuri:(562d090ce3b72e78455714010014ddf0) , chez public agent , openstack cloud backup agent and scripts , openstack nova agent , PyXenStoreError: Couldnt open connection to the xenstore: No such file or directory
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Nova-Agent : How it Works on OpenStack Public Cloud

  • Fix Nova Agent Not Working ( Rackspace Cloud, Ubuntu )

    Here Is How To Fix Nova Agent Not Working After Running Upgrade or Automated System Restart. It is nothing but again creating symlinks.

  • OpenStack Monitoring Tool (For HP Cloud)

    Less Known but there is OpenStack Monitoring Tool For HP Cloud, rather HP Cloud Monitoring Tool for Checking the Nova Instances via GUI.

  • Compatibility of Our Existing OpenStack Guides For IBM OpenStack

    We have many guides on HP Cloud, Rackspace. Here is disclaimer & note on compatibility of our existing OpenStack guides for IBM OpenStack.

  • Steps For OpenStack Nova Instance RESCUE (HP Cloud)

    Who Installed the OpenStack Matters, But Here is Somewhat Generalized Guide to Evoke the Rescue Mode on Linux Instance via Python Nova Client.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Hybrid Multi-Cloud Environments Are Becoming UbiquitousJuly 12, 2023
  • Data Protection on the InternetJuly 12, 2023
  • Basics of BJT TransistorJuly 11, 2023
  • What is Confidential Computing?July 11, 2023
  • How a MOSFET WorksJuly 10, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy