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: cloud-setup-databases failing

cloud-setup-databases failing 2 years 4 months ago #6666

Installing Cloudstack on a Red Hat Enterprise Linux (v. 5 for 64-bit x86_64) box. Everything has installed smoothly up to the point where I need to run the cloud-setup-database cloud:<my password>@localhost --deploy-as=root:<my password>. When I run that command I get the following errors:

Traceback (most recent call last):
File "/usr/bin/cloud-setup-databases", line 267, in ?
checkdbserverhostname(host)
File "/usr/bin/cloud-setup-databases", line 210, in checkdbserverhostname
if resolves_to_ipv6(host,3306):
File "/usr/lib/python2.4/site-packages/cloud_utils.py", line 90, in resolves_to_ipv6
return resolve(host,port)[0][1] == IPV6
File "/usr/lib/python2.4/site-packages/cloud_utils.py", line 87, in resolve
return [ (x[4][0],len(x[4])+2) for x in socket.getaddrinfo(host,port,socket.AF_UNSPEC,socket.SOCK_STREAM, 0, socket.AI_PASSIVE) ]
socket.gaierror: (-2, 'Name or service not known')

I have confirmed that MySQL is running and can login with the root and password. I have also confirmed that I can login remotely to the MySQL using Navicat so I'm 99% sure MySQL is doing it's thing. Any ideas on what I can check at this point?
The administrator has disabled public write access.

Re: cloud-setup-databases failing 2 years 4 months ago #6674

  • ke4qqq
  • ke4qqq's Avatar
  • OFFLINE
  • Administrator
  • Posts: 620
  • Thank you received: 69
  • Karma: 22
Can you look at your /etc/hosts and see if you have a localhost line that uses an IPv6 address?
If so, can you delete that entire line (you should still have a 127.0.0.1 localhost line)

If that fixes it, I'll file a bug and get that fixed in the installer (or feel free to file a bug yourself.)
The administrator has disabled public write access.

Re: cloud-setup-databases failing 2 years 4 months ago #6680

OK

here is my hosts file before the edit:


# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 stlmoniaarchive.magellanhealth.com stlmoniaarchive
::1 stlmoniaarchive6.magellanhealth.com6 stlmoniaarchive6

here is my host file after the edit:

# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 stlmoniaarchive.magellanhealth.com stlmoniaarchive

here is the error message after I run the command:

[root@stlmoniaarchive CloudStack-2.2.6-1-rhel5-oss]# cloud-setup-databases cloud:<password>@localhost --deploy-as=root:<password>
Traceback (most recent call last):
File "/usr/bin/cloud-setup-databases", line 267, in ?
checkdbserverhostname(host)
File "/usr/bin/cloud-setup-databases", line 210, in checkdbserverhostname
if resolves_to_ipv6(host,3306):
File "/usr/lib/python2.4/site-packages/cloud_utils.py", line 90, in resolves_to_ipv6
return resolve(host,port)[0][1] == IPV6
File "/usr/lib/python2.4/site-packages/cloud_utils.py", line 87, in resolve
return [ (x[4][0],len(x[4])+2) for x in socket.getaddrinfo(host,port,socket.AF_UNSPEC,socket.SOCK_STREAM, 0, socket.AI_PASSIVE) ]
socket.gaierror: (-2, 'Name or service not known')

I have also rebooted this machine to double check and no dice.
Last Edit: 2 years 4 months ago by rayseals@gmail.com.
The administrator has disabled public write access.

Re: cloud-setup-databases failing 2 years 4 months ago #6681

  • ke4qqq
  • ke4qqq's Avatar
  • OFFLINE
  • Administrator
  • Posts: 620
  • Thank you received: 69
  • Karma: 22
to the line that has 127.0.0.1 add 'localhost' (without the quotes) at the end of it.

It's looking for localhost and can't find it.
The administrator has disabled public write access.

Re: cloud-setup-databases failing 2 years 4 months ago #6682

SUCCESS!!!!!

Thanks
The administrator has disabled public write access.

Re: cloud-setup-databases failing 2 years 4 months ago #6683

Of course now I get this:

[root@stlmoniaarchive CloudStack-2.2.6-1-rhel5-oss]# cloud-setup-management
Welcome to the CloudStack Management setup

stlmoniaarchive.magellanhealth.com
The hostname of this machine is properly set up
Traceback (most recent call last):
File "/usr/bin/cloud-setup-management", line 160, in ?
service("cloud-management","status")
File "/usr/bin/cloud-setup-management", line 82, in __call__
popen = subprocess.Popen(cmd,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
File "/usr/lib64/python2.4/subprocess.py", line 550, in __init__
errread, errwrite)
File "/usr/lib64/python2.4/subprocess.py", line 996, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

:(
The administrator has disabled public write access.
Time to create page: 0.308 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