Welcome, Guest
Username Password: Remember me

Agent-installation to CentOS 6 gives error
(1 viewing) (1) Guest

TOPIC: Agent-installation to CentOS 6 gives error

Agent-installation to CentOS 6 gives error 10 months ago #6832

  • gracal
  • 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.

Re: Agent-installation to CentOS 6 gives error 10 months ago #6834

  • ke4qqq
  • NOW ONLINE
  • Administrator
  • Posts: 597
  • Karma: 20
cgroups are enabled in el6 by default.

service cgconfig start should get it working for you.

Re: Agent-installation to CentOS 6 gives error 10 months ago #6836

  • gracal
  • 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: 10 months ago by gracal.

Re: Agent-installation to CentOS 6 gives error 10 months ago #6859

  • gracal
  • 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.

Re: Agent-installation to CentOS 6 gives error 9 months, 3 weeks ago #6958

I'm getting the same error on SL6 I've tried the above and have had little success.

Re: Agent-installation to CentOS 6 gives error 9 months, 3 weeks ago #6963

  • ke4qqq
  • NOW ONLINE
  • Administrator
  • Posts: 597
  • Karma: 20
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
Time to create page: 0.56 seconds

Resources

Open Source Resources Discuss Site Info

The CloudStack™project is in the process of moving to the Apache Foundation as a podling in the Apache Incubator. Going forward CloudStack will be developed and governed in the Apache way. CloudStack is available under the Apache License 2.0