satis egitimisatis egitimitengda.pro
Welcome, Guest
Username: Password: Remember me
Archived CloudStack Forums for reference purposes please direct all future inquiries to the Apache CloudStack mailing lists.

incubator.apache.org/cloudstack/mailing-lists.html

TOPIC: Agent-installation to CentOS 6 gives error

Agent-installation to CentOS 6 gives error 2 years 7 months ago #6832

  • gracal
  • gracal's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 1
The CloudStack install to CentOS 6 has worked, though there are a few hiccups. Getting the management server to install required running cloud-setup-management before cloud-setup-databases in order for cloud-setup-databases to complete. Then run setup-management to complete the setup.

When it comes to installing an agent, the installation seems to have a problem modifying the libvirtd service
Starting libvirt setup
Starting libvirtd daemon: cgroup change of group failed
                                                           [FAILED]
At which point the install rolls back. The final error dump at the end of the install:
Traceback (most recent call last):
  File "/usr/bin/cloud-setup-agent", line 117, in <module>
    t.restore_state()
  File "/usr/lib/python2.6/site-packages/cloud_utils.py", line 461, in restore_state
    stop_service(self.nmservice,force=True)
  File "/usr/lib/python2.6/site-packages/cloud_utils.py", line 214, in stop_service
    if is_service_running(servicename) or force: service(servicename,"stop",stdout=None,stderr=None)
  File "/usr/lib/python2.6/site-packages/cloud_utils.py", line 144, in __call__
    raise e
CalledProcessError: Command '['service', 'NetworkManager', 'stop']' returned non-zero exit status 1
Cloud Agent setup ended prematurely

This is as close to a stock CentOS6 build as I can get it. I installed with the virtualization pattern, and successfully have it in a cluster.
The administrator has disabled public write access.

Re: Agent-installation to CentOS 6 gives error 2 years 7 months ago #6834

  • ke4qqq
  • ke4qqq's Avatar
  • OFFLINE
  • Administrator
  • Posts: 620
  • Thank you received: 69
  • Karma: 22
cgroups are enabled in el6 by default.

service cgconfig start should get it working for you.
The administrator has disabled public write access.

Re: Agent-installation to CentOS 6 gives error 2 years 7 months ago #6836

  • gracal
  • gracal's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 1
The cgconfig service is started, however that doesn't seem to help. When I turn cgconfig off the error changes:
Starting libvirtd daemon: libcgroup initialization failed: Cgroup is not mounted
Which is different from what I reported:
Starting libvirtd daemon: cgroup change of group failed
To me this says that the calls the cloud-setup-agent script is making into cgroup are not being accepted for some reason. It probably has something to do with libvirtd since that service-start fails after the script has made its modifications, and works after the changes are rolled back.
Last Edit: 2 years 7 months ago by gracal.
The administrator has disabled public write access.

Re: Agent-installation to CentOS 6 gives error 2 years 7 months ago #6859

  • gracal
  • gracal's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 5
  • Karma: 1
The config-setup-agent script is not handling the CentOS6 environment that well. I was able to get past my previous fault by hand-editing
/etc/sysconfig/libvirtd
to include the line
CGROUP_DAEMON="cpu:/virt"
.

Second, CentOS 6 is now following Fedora's lead in renaming the
portmap
service
rpcbind
. A little symlink magic to get the installer to complete, and I was able to finish the install.
The administrator has disabled public write access.

Re: Agent-installation to CentOS 6 gives error 2 years 7 months ago #6958

  • rippleAdder
  • rippleAdder's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 17
  • Thank you received: 1
  • Karma: 1
I'm getting the same error on SL6 I've tried the above and have had little success.
The administrator has disabled public write access.

Re: Agent-installation to CentOS 6 gives error 2 years 7 months ago #6963

  • ke4qqq
  • ke4qqq's Avatar
  • OFFLINE
  • Administrator
  • Posts: 620
  • Thank you received: 69
  • Karma: 22
There are two different errors talked about in this thread, which one are you seeing?

Also just so we get a few things out of the way can you paste the output from the following commands:

cat /etc/redhat-release
sestatus
service libvirtd restart
The administrator has disabled public write access.
Time to create page: 0.321 seconds

Open@Citrix

Citrix supports the open source community via developer support and evangeslism. We have a number of developers and evangelists that participate actively in the open source community in Apache Cloudstack, OpenDaylight, Xen Project and XenServer. We also conduct educational activities via the Build A Cloud events held all over the world. 

Connect