Hi, Brandon. I checked your command sequence on pastebin. I suggest trying a simpler installation that more closely follows the install guide. Many steps in the sequence are out of order, unnecessary, or unrelated to the actual CloudStack install, so it is hard to determine where the issue is being introduced. Try the following:
1. Install CentOS 6.3 (I suggest the minimal ISO) 2. Configure networking 3. yum update / reboot 4. setenforce permissive + edit /etc/sysconfig/selinux (seems missing from install guide) 5. Setup CloudStack yum repo (install guide 4.4.2) 6. Install/run ntp / fix hostname -f (install guide 4.5.2) 7. Skip 4.5.3.1, vhd-util is currently included with cloud-scripts. 8. Install CloudStack with yum (install guide 4.5.3.2) 9. Install/configure/start MySQL (install guide 4.5.4.1) 10. chkconfig mysqld on (seems missing from install guide) 11. cloud-setup-databases cloud:pass123@localhost --deploy-as=root -e file -m verysecret -k alsoverysecret (install guide 4.5.4.1) 12. cloud-setup-management (install guide 4.5.4.1) At this point, it should work. I just tried the above steps and CloudStack is up and running and I can login with admin/password. It works after a reboot, too. Once it's up and running and in a known good state, proceed with other steps, such as setting up NFS shares for primary/secondary storage. You can reboot after each change and if CloudStack stops working you will have a better idea about what caused it. Best regards, Kirk On 11/24/2012 07:29 PM, Brandon Cross wrote: > JoonHyun, thanks for the suggestion. That does sound likely. I ran the > command, but the issue appears to still persist... Here's exactly what I did, > after a fresh reboot: > > [root@nodedev4 ~]# /usr/sbin/setsebool -P httpd_can_network_connect=1 > [root@nodedev4 ~]# service httpd restart > Stopping httpd: [FAILED] > Starting httpd: [ OK ] > [root@nodedev4 ~]# service tomcat6 start > Starting tomcat6: [ OK ] > [root@nodedev4 ~]# service mysqld start > Starting mysqld: [ OK ] > [root@nodedev4 ~]# mysql -u root -p > Enter password: > Welcome to the MySQL monitor. Commands end with ; or \g. > Your MySQL connection id is 2 > Server version: 5.1.66-log Source distribution > > Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. > > Oracle is a registered trademark of Oracle Corporation and/or its > affiliates. Other names may be trademarks of their respective > owners. > > Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. > > mysql> GRANT ALL PRIVILEGES ON *.* TO root@"%" IDENTIFIED BY '12345'; > Query OK, 0 rows affected (0.00 sec) > > mysql> GRANT ALL PRIVILEGES ON *.* TO cloud@"%" IDENTIFIED BY 'cloud'; > Query OK, 0 rows affected (0.00 sec) > > mysql> exit > Bye > [root@nodedev4 ~]# cloud-setup-databases cloud:cloud@localhost > --deploy-as=root:12345 > Mysql user name:cloud > [ OK ] > Mysql user password:cloud > [ OK ] > Mysql server ip:localhost > [ OK ] > Mysql server port:3306 > [ OK ] > Mysql root user name:root > [ OK ] > Mysql root user password:12345 > [ OK ] > Checking Cloud database files ... > [ OK ] > Checking local machine hostname ... > [ OK ] > Checking SELinux setup ... > [ OK ] > Detected local IP address as 192.168.2.220, will use as cluster management > server node IP[ OK ] > Preparing /etc/cloud/management/db.properties > [ OK ] > Applying /usr/share/cloud/setup/create-database.sql > [ OK ] > Applying /usr/share/cloud/setup/create-schema.sql > [ OK ] > Applying /usr/share/cloud/setup/create-database-premium.sql > [ OK ] > Applying /usr/share/cloud/setup/create-schema-premium.sql > [ OK ] > Applying /usr/share/cloud/setup/server-setup.sql > [ OK ] > Applying /usr/share/cloud/setup/templates.sql > [ OK ] > Applying /usr/share/cloud/setup/create-index-fk.sql > [ OK ] > Applying /usr/share/cloud/setup/bridge/db/cloudbridge_db.sql > [ OK ] > Applying /usr/share/cloud/setup/bridge/db/cloudbridge_schema.sql > [ OK ] > Applying /usr/share/cloud/setup/bridge/db/cloudbridge_multipart.sql > [ OK ] > Applying /usr/share/cloud/setup/bridge/db/cloudbridge_index.sql > [ OK ] > Applying /usr/share/cloud/setup/bridge/db/cloudbridge_multipart_alter.sql > [ OK ] > Applying /usr/share/cloud/setup/bridge/db/cloudbridge_bucketpolicy.sql > [ OK ] > Applying /usr/share/cloud/setup/bridge/db/cloudbridge_policy_alter.sql > [ OK ] > Applying /usr/share/cloud/setup/bridge/db/cloudbridge_offering.sql > [ OK ] > Applying /usr/share/cloud/setup/bridge/db/cloudbridge_offering_alter.sql > [ OK ] > Processing encryption ... > [ OK ] > Finalizing setup ... > [ OK ] > > CloudStack has successfully initialized database, you can check your database > configuration in /etc/cloud/management/db.properties > > [root@nodedev4 ~]# service nfs start > [root@nodedev4 ~]# cloud-setup-management > Starting to configure CloudStack Management Server: > Configure sudoers ... [OK] > Configure Firewall ... [OK] > Configure CloudStack Management Server ...[OK] > CloudStack Management Server setup is Done! > > -Brandon Cross > > > > > > -----Original Message----- > From: JoonHyun Pac [mailto:shiba...@gmail.com] > Sent: Saturday, November 24, 2012 9:06 PM > To: cloudstack-users@incubator.apache.org > Subject: Re: Centos 6.3 new install sql connection issue > > Hi Brandon, > > Try this out. SELinux basically blocks network connection. > > /user/sbin/setsebool -P httpd_can_network_connect=1 ## and restart httpd > service httpd restart > > > > On Sun, Nov 25, 2012 at 7:33 AM, Brandon Cross <bcr...@nodetx.com> wrote: > >> Ok I tried several more times and I consistently get the same result... >> UI comes up, and I cannot log in. >> >> I shot a video to demonstrate what I'm doing: >> >> http://www.youtube.com/watch?v=9aYbPEWduIY >> >> The sequence of commands I'm using is here: >> >> http://pastebin.com/B0LJJtVL >> >> -Brandon Cross >>