thehyperadvisor / cldstk-deploy

apache cloudstack deployment tool
MIT License
28 stars 18 forks source link

Error on CentOS 6.6 #6

Closed DeV1L closed 9 years ago

DeV1L commented 9 years ago

I tried install Cloudstack on CentOS 6.6 and always received this error:

TASK: [cldstk-mysql | Install MySQL] ** cloudstack.local - - [19/Jul/2015 08:34:32] code 404, message File not found "" "urlgrabber/3.9.1 yum/3.2.29" cloudstack.local - - [19/Jul/2015 08:34:32] "GET /rpms/rhel/4.4/repodata/repomd.xml HTTP/1.1" 404 - "" "urlgrabber/3.9.1 yum/3.2.29" cloudstack.local - - [19/Jul/2015 08:34:41] code 404, message File not found "" "urlgrabber/3.9.1 yum/3.2.29" cloudstack.local - - [19/Jul/2015 08:34:41] "GET /rpms/rhel/4.4/repodata/repomd.xml HTTP/1.1" 404 - "" "urlgrabber/3.9.1 yum/3.2.29" failed: [192.168.204.128] => (item=MySQL-python,mysql,mysql-server) => {"changed": false, "failed": true, "item": "MySQL-python,mysql,mysql-server", "rc": 0, "results": ["MySQL-python-1.2.3-0.3.c1.1.el6.x86_64 providing MySQL-python is already installed", "mysql-5.1.73-5.el6_6.x86_64 providing mysql is already installed"]} msg: No Package matching 'mysql-server' found available, installed or updated

FATAL: all hosts have already failed -- aborting

This is settings that i used:

Install all-in-one?[Y/n]: y All-in-one Server[dns/ip]: 192.168.204.128 Install System Templates?[Y/n]: y Change install type to "Internet"?[Y/n]: n Which version to install ['4.3', '4.4', '4.5']?: 4.4 Add ssh rsa keys to ~/.ssh/known_hosts?[Y/n]: y jobid: 2015-07-19-8-31-16750034 ansible hosts file successfully writing to disk..... vars_file successfully writing to disk.....

192.168.204.128 SSH-2.0-OpenSSH_5.3

Create Basic Zone?[Y/n]: y Basic Zone Name: cloud External DNS: 8.8.8.8 Internal DNS: 8.8.8.8 Gateway: 192.168.204.2 NetMask: 255.255.255.0 Hypervisor type only support KVM at this time. Pod Name: cloud Pod Start IP: 192.168.204.200 Pod End IP: 192.168.204.202 Guest Start IP: 192.168.204.220 Guest End IP: 192.168.204.240 Cluster Name: cloud Host DNS/IP (separated by comma): 192.168.204.128 Host User: root Host Password: Using default: nfs://192.168.204.128/opt/nfs/secondary Using default: nfs://192.168.204.128/opt/nfs/primary ansible/jobs/2015-07-19-8-31-16750034 Zone.cfg file has been created. Start installation now?[Y/n]: y

thehyperadvisor commented 9 years ago

Since you installing 4.4 did you run the command “python cldstkdeploy.py —getall 4.4”? You need to download the rpms and systemtemplates before doing a local installation.

Antone Heyward @thehyperadvisor http://thehyperadvisor.com

On Jul 19, 2015, at 8:48 AM, DeV1L notifications@github.com wrote:

2015-07-19-8-31-16750034

DeV1L commented 9 years ago

Yes, i forgot it... But now i have another error:

TASK: [cldstk-mysql | Stop iptables] ** fatal: [192.168.204.128] => SSH Error: ssh: connect to host 192.168.204.128 port 22: Network is unreachable while connecting to 192.168.204.128:22 It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.

FATAL: all hosts have already failed -- aborting

How to troubleshoot installation proces?

thehyperadvisor commented 9 years ago

Try to ssh into “192.168.204.128” from the command line. If that works rerun the job using “python cldstkdeploy.py —install all zone 2015-07-19-8-31-16750034”. Let me know if this works.

Are you running this from a Mac?

Antone Heyward @thehyperadvisor http://thehyperadvisor.com

On Jul 19, 2015, at 9:36 AM, DeV1L notifications@github.com wrote:

Yes, i forgot it... But now i have another error:

TASK: [cldstk-mysql | Stop iptables] ** fatal: [192.168.204.128] => SSH Error: ssh: connect to host 192.168.204.128 port 22: Network is unreachable while connecting to 192.168.204.128:22 It is sometimes useful to re-run the command using -vvvv, which prints SSH debug output to help diagnose the issue.

FATAL: all hosts have already failed -- aborting

How to troubleshoot installation proces?

— Reply to this email directly or view it on GitHub https://github.com/thehyperadvisor/cldstk-deploy/issues/6#issuecomment-122661460.

DeV1L commented 9 years ago

192.168.204.128 - it's Centos 6.6 host on which i try to install Cloudstack. I reverted snapshot and tried again.

Now i have:

TASK: [Ensure NFS storage is mounted] **** failed: [192.168.204.128] => {"failed": true} msg: Error mounting /mnt/secondary: mount.nfs: access denied by server while mounting 192.168.204.128:/opt/nfs/secondary

FATAL: all hosts have already failed -- aborting

I checked, NFS works well:

[root@cloudstack ~]# mount 192.168.204.128:/opt/nfs /tmp [root@cloudstack ~]# ls /tmp/ primary secondary

[root@cloudstack ~]# ls /root/cldstk-deploy/ansible/jobs/ 2015-07-19-10-5-60538887

When i tried to re-run installation as you told, i received this:

python cldstkdeploy.py --install all zone 2015-07-19-10-5-60538887 Enter Password Here: Starting webserver........

Server already started on port 8080. zone Traceback (most recent call last): File "cldstkdeploy.py", line 1186, in main() File "cldstkdeploy.py", line 1164, in main cldstkdeploy.startall(options.install[1]) File "cldstkdeploy.py", line 522, in startall self.go_playbook(playbook, jobid) File "cldstkdeploy.py", line 156, in go_playbook vfile = open('ansible/jobs/{0}/vars_file.yml'.format(jobid)) IOError: [Errno 2] No such file or directory: 'ansible/jobs/zone/vars_file.yml'

thehyperadvisor commented 9 years ago

I see it looks like you have a typo in the command. “python cldstkdeploy.py --install allzone 2015-07-19-10-5-60538887”

Note: “allzone” should be one word with no space.

Antone Heyward @thehyperadvisor http://thehyperadvisor.com

On Jul 19, 2015, at 10:28 AM, DeV1L notifications@github.com wrote:

python cldstkdeploy.py --install all zone 2015-07-19-10-5-60538887

thehyperadvisor commented 9 years ago

I just noticed that my spell correct did that. Not your fault.

Antone Heyward @thehyperadvisor http://thehyperadvisor.com

On Jul 19, 2015, at 10:36 AM, Antone Heyward thehyperadvisor@gmail.com wrote:

I see it looks like you have a typo in the command. “python cldstkdeploy.py --install allzone 2015-07-19-10-5-60538887”

Note: “allzone” should be one word with no space.

Antone Heyward @thehyperadvisor http://thehyperadvisor.com http://thehyperadvisor.com/

On Jul 19, 2015, at 10:28 AM, DeV1L <notifications@github.com mailto:notifications@github.com> wrote:

python cldstkdeploy.py --install all zone 2015-07-19-10-5-60538887

thehyperadvisor commented 9 years ago

Did that work for you?

Antone Heyward @thehyperadvisor http://thehyperadvisor.com

On Jul 19, 2015, at 10:38 AM, Antone Heyward thehyperadvisor@gmail.com wrote:

I just noticed that my spell correct did that. Not your fault.

Antone Heyward @thehyperadvisor http://thehyperadvisor.com http://thehyperadvisor.com/

On Jul 19, 2015, at 10:36 AM, Antone Heyward <thehyperadvisor@gmail.com mailto:thehyperadvisor@gmail.com> wrote:

I see it looks like you have a typo in the command. “python cldstkdeploy.py --install allzone 2015-07-19-10-5-60538887”

Note: “allzone” should be one word with no space.

Antone Heyward @thehyperadvisor http://thehyperadvisor.com http://thehyperadvisor.com/

On Jul 19, 2015, at 10:28 AM, DeV1L <notifications@github.com mailto:notifications@github.com> wrote:

python cldstkdeploy.py --install all zone 2015-07-19-10-5-60538887

DeV1L commented 9 years ago

Not quite, but it earned :) Thank you!