Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chef Server does not deploy when 'Deploy Chef Server' is pressed. #64

Open
burtlo opened this issue Nov 16, 2015 · 1 comment
Open

Chef Server does not deploy when 'Deploy Chef Server' is pressed. #64

burtlo opened this issue Nov 16, 2015 · 1 comment

Comments

@burtlo
Copy link

burtlo commented Nov 16, 2015

[2015-11-16T22:41:15+00:00] INFO: Forking chef instance to converge...
[2015-11-16T22:41:15+00:00] INFO: *** Chef 12.3.0 ***
[2015-11-16T22:41:15+00:00] INFO: Chef-client pid: 5325
[2015-11-16T22:41:19+00:00] INFO: Setting the run_list to [#<Chef::RunList::RunListItem:0x00000003354be0 @version=nil, @type=:role, @name="class">, #<Chef::RunList::RunListItem:0x00000003354a78 @version=nil, @type=:recipe, @name="chef_classroom::deploy_chef_server">] from CLI options
[2015-11-16T22:41:19+00:00] INFO: Run List is [role[class], recipe[chef_classroom::deploy_chef_server]]
[2015-11-16T22:41:19+00:00] INFO: Run List expands to [chef_classroom::deploy_chef_server]
[2015-11-16T22:41:19+00:00] INFO: Starting Chef Run for local_workstation
[2015-11-16T22:41:19+00:00] INFO: Running start handlers
[2015-11-16T22:41:19+00:00] INFO: Start handlers complete.
[2015-11-16T22:41:19+00:00] INFO: HTTP Request Returned 404 Not Found: Object not found:
[2:q015-11-16T22:41:44+00:00] INFO: Loading cookbooks [[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected]]
[2015-11-16T22:42:02+00:00] WARN: chef_gem[chef-rewind] chef_gem compile_time installation is deprecated
[2015-11-16T22:42:02+00:00] WARN: chef_gem[chef-rewind] Please set `compile_time false` on the resource to use the new behavior.
[2015-11-16T22:42:02+00:00] WARN: chef_gem[chef-rewind] or set `compile_time true` on the resource if compile_time behavior is required.
[2015-11-16T22:42:02+00:00] INFO: Processing chef_gem[chef-rewind] action install (chef_portal::_fundamentals_3x_webapp line 40)
2015-11-16T22:42:10+00:00] INFO: Resource template[/etc/guacamole/user-mapping.xml] found, now rewinding it
[2015-11-16T22:42:10+00:00] INFO: Processing ohai[reload_ec2] action nothing (chef_portal::_refresh_iam_creds line 4)
[2015-11-16T22:42:10+00:00] INFO: Processing directory[/etc/chef/ohai/hints] action create (chef_portal::_refresh_iam_creds line 9)
[2015-11-16T22:42:10+00:00] INFO: Processing file[/etc/chef/ohai/hints/ec2.json] action create (chef_portal::_refresh_iam_creds line 14)
[2015-11-16T22:42:10+00:00] INFO: Processing file[/etc/chef/ohai/hints/iam.json] action create (chef_portal::_refresh_iam_creds line 14)
[2015-11-16T22:42:10+00:00] INFO: Processing directory[/root/.aws] action create (chef_portal::_refresh_iam_creds line 20)
[2015-11-16T22:42:10+00:00] INFO: Processing ruby_block[set iam role name] action run (chef_portal::_refresh_iam_creds line 26)
[2015-11-16T22:42:10+00:00] INFO: ruby_block[set iam role name] called
[2015-11-16T22:42:10+00:00] INFO: Processing template[/root/.aws/config] action create (chef_portal::_refresh_iam_creds line 38)
[2015-11-16T22:42:10+00:00] INFO: template[/root/.aws/config] backed up to /root/chef_classroom/local-mode-cache/backup/root/.aws/config.chef-20151116224210.416548
[2015-11-16T22:42:10+00:00] INFO: template[/root/.aws/config] updated file contents /root/.aws/config
[2015-11-16T22:42:10+00:00] INFO: Processing machine[frank-20-chefserver] action converge (chef_classroom::deploy_chef_server line 9)
[2015-11-16T22:42:11+00:00] INFO: [AWS EC2 200 0.754665 0 retries] describe_instances(:filters=>[{:name=>"instance-id",:values=>["i-20ca4e9e"]}])

[2015-11-16T22:42:11+00:00] INFO: [AWS EC2 200 0.064577 0 retries] describe_images(:filters=>[{:name=>"image-id",:values=>["ami-6b305b0e"]}])

[2015-11-16T22:42:11+00:00] INFO: [AWS EC2 200 0.141634 0 retries] describe_security_groups(:filters=>[{:name=>"group-name",:values=>["training-frank-20-chef_server"]}])

[2015-11-16T22:42:11+00:00] INFO: [AWS EC2 200 0.054729 0 retries] describe_security_groups(:filters=>[{:name=>"group-id",:values=>["sg-8cfd9eea"]}])

[2015-11-16T22:42:12+00:00] INFO: [AWS EC2 200 0.404925 0 retries] describe_instances(:filters=>[{:name=>"instance-id",:values=>["i-20ca4e9e"]}])

[2015-11-16T22:42:12+00:00] INFO: [AWS EC2 200 0.127188 0 retries] describe_instances(:instance_ids=>["i-20ca4e9e"])

[2015-11-16T22:42:12+00:00] INFO: Processing chef_node[frank-20-chefserver] action create (basic_chef_client::block line 57)
[2015-11-16T22:42:12+00:00] INFO: [AWS EC2 200 0.223017 0 retries] describe_instances(:filters=>[{:name=>"instance-id",:values=>["i-20ca4e9e"]}])

[2015-11-16T22:42:12+00:00] INFO: [AWS EC2 200 0.076333 0 retries] describe_instances(:instance_ids=>["i-20ca4e9e"])

[2015-11-16T22:42:13+00:00] INFO: [AWS EC2 200 0.297118 0 retries] describe_instances(:filters=>[{:name=>"instance-id",:values=>["i-20ca4e9e"]}])

[2015-11-16T22:42:13+00:00] INFO: [AWS EC2 200 0.095808 0 retries] describe_instances(:instance_ids=>["i-20ca4e9e"])

[2015-11-16T22:42:13+00:00] INFO: Reading key frank-20-portal_key from file /root/.ssh/frank-20-portal_key
[2015-11-16T22:42:13+00:00] INFO: [AWS EC2 200 0.102052 0 retries] describe_instances(:instance_ids=>["i-20ca4e9e"])

[2015-11-16T22:42:13+00:00] INFO: Executing sudo pwd on [email protected]
[2015-11-16T22:42:13+00:00] INFO: Completed pwd on [email protected]: exit status 0
[2015-11-16T22:42:13+00:00] INFO: Reading key frank-20-portal_key from file /root/.ssh/frank-20-portal_key
[2015-11-16T22:42:13+00:00] INFO: [AWS EC2 200 0.101166 0 retries] describe_instances(:instance_ids=>["i-20ca4e9e"])

[2015-11-16T22:42:13+00:00] INFO: Processing chef_node[frank-20-chefserver] action create (basic_chef_client::block line 57)
[2015-11-16T22:42:13+00:00] INFO: Executing sudo cp /etc/chef/client.pem /tmp/client.pem.1746779875 on [email protected]
[2015-11-16T22:42:13+00:00] INFO: Completed cp /etc/chef/client.pem /tmp/client.pem.1746779875 on [email protected]: exit status 0
[2015-11-16T22:42:13+00:00] INFO: Executing sudo chown ec2-user /tmp/client.pem.1746779875 on [email protected]
[2015-11-16T22:42:13+00:00] INFO: Completed chown ec2-user /tmp/client.pem.1746779875 on [email protected]: exit status 0
[2015-11-16T22:42:13+00:00] INFO: Executing sudo rm /tmp/client.pem.1746779875 on [email protected]
[2015-11-16T22:42:13+00:00] INFO: Completed rm /tmp/client.pem.1746779875 on [email protected]: exit status 0
[2015-11-16T22:42:13+00:00] INFO: Processing chef_client[frank-20-chefserver] action create (basic_chef_client::block line 132)
[2015-11-16T22:42:13+00:00] INFO: Processing chef_node[frank-20-chefserver] action create (basic_chef_client::block line 143)
[2015-11-16T22:42:13+00:00] INFO: Port forwarded: local URL chefzero://localhost:8889 is available to 172.31.49.154 as chefzero://localhost:8889 for the duration of this SSH connection.
[2015-11-16T22:42:13+00:00] INFO: Executing sudo ls -d /etc/chef/ohai/hints/ec2.json on [email protected]
[2015-11-16T22:42:13+00:00] INFO: Completed ls -d /etc/chef/ohai/hints/ec2.json on [email protected]: exit status 0
[2015-11-16T22:42:13+00:00] INFO: Executing sudo md5sum -b /etc/chef/ohai/hints/ec2.json on [email protected]
[2015-11-16T22:42:14+00:00] INFO: Completed md5sum -b /etc/chef/ohai/hints/ec2.json on [email protected]: exit status 0
[2015-11-16T22:42:14+00:00] INFO: Executing sudo ls -d /etc/chef/client.rb on [email protected]
[2015-11-16T22:42:14+00:00] INFO: Completed ls -d /etc/chef/client.rb on [email protected]: exit status 0
[2015-11-16T22:42:14+00:00] INFO: Executing sudo md5sum -b /etc/chef/client.rb on [email protected]
[2015-11-16T22:42:14+00:00] INFO: Completed md5sum -b /etc/chef/client.rb on [email protected]: exit status 0
[2015-11-16T22:42:14+00:00] INFO: Executing sudo chef-client -v on [email protected]
[2015-11-16T22:42:16+00:00] INFO: Completed chef-client -v on [email protected]: exit status 0
[2015-11-16T22:42:16+00:00] INFO: Processing chef_node[frank-20-chefserver] action create (basic_chef_client::block line 57)
[2015-11-16T22:42:16+00:00] INFO: Processing chef_data_bag[class_machines] action create (chef_classroom::deploy_chef_server line 15)
[2015-11-16T22:42:16+00:00] INFO: Processing chef_classroom_lookup[frank-20-chefserver] action lookup (chef_classroom::deploy_chef_server line 17)
[2015-11-16T22:42:16+00:00] INFO: Processing ruby_block[Looking up frank-20-chefserver machine object] action run (/root/chef_classroom/local-mode-cache/cache/cookbooks/chef_classroom/providers/lookup.rb line 31)
[2015-11-16T22:42:17+00:00] INFO: [AWS EC2 200 0.844192 0 retries] describe_instances(:filters=>[{:name=>"instance-id",:values=>["i-20ca4e9e"]}])

[2015-11-16T22:42:17+00:00] INFO: [AWS EC2 200 0.086584 0 retries] describe_instances(:instance_ids=>["i-20ca4e9e"])

[2015-11-16T22:42:17+00:00] INFO: [AWS EC2 200 0.113658 0 retries] describe_instances(:instance_ids=>["i-20ca4e9e"])

[2015-11-16T22:42:17+00:00] INFO: [AWS EC2 200 0.087169 0 retries] describe_instances(:instance_ids=>["i-20ca4e9e"])

[2015-11-16T22:42:18+00:00] INFO: [AWS EC2 200 0.10006 0 retries] describe_instances(:instance_ids=>["i-20ca4e9e"])

[2015-11-16T22:42:18+00:00] INFO: [AWS EC2 200 0.092469 0 retries] describe_instances(:instance_ids=>["i-20ca4e9e"])

[2015-11-16T22:42:18+00:00] INFO: ruby_block[Looking up frank-20-chefserver machine object] called
[2015-11-16T22:42:18+00:00] INFO: Processing httpd_service_rhel_sysvinit[default] action create (chef_portal::_fundamentals_3x_webapp line 4)
[2015-11-16T22:42:18+00:00] INFO: Processing yum_package[httpd] action install (/root/chef_classroom/local-mode-cache/cache/cookbooks/httpd/libraries/httpd_service_rhel.rb line 12)
[2015-11-16T22:42:39+00:00] INFO: Processing yum_package[runit] action install (runit::default line 43)
[2015-11-16T22:42:39+00:00] INFO: Processing service[chef-portal] action nothing (dynamically defined)
[2015-11-16T22:42:39+00:00] INFO: Processing runit_service[chef-portal] action enable (chef_portal::_fundamentals_3x_webapp line 31)
[2015-11-16T22:42:39+00:00] INFO: Processing directory[/etc/sv/chef-portal] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 56)
[2015-11-16T22:42:39+00:00] INFO: Processing template[/etc/sv/chef-portal/run] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 64)
[2015-11-16T22:42:39+00:00] INFO: Processing directory[/etc/sv/chef-portal/log] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 76)
[2015-11-16T22:42:39+00:00] INFO: Processing directory[/etc/sv/chef-portal/log/main] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 83)
[2015-11-16T22:42:39+00:00] INFO: Processing directory[/var/log/chef-portal] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 91)
[2015-11-16T22:42:39+00:00] INFO: Processing template[/etc/sv/chef-portal/log/config] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 99)
[2015-11-16T22:42:39+00:00] INFO: Processing link[/var/log/chef-portal/config] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 109)
[2015-11-16T22:42:39+00:00] INFO: Processing file[/etc/sv/chef-portal/log/run] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 114)
[2015-11-16T22:42:39+00:00] INFO: Processing directory[/etc/sv/chef-portal/env] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 136)
[2015-11-16T22:42:39+00:00] INFO: Processing file[/etc/sv/chef-portal/env/GEM_HOME] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 144)
[2015-11-16T22:42:39+00:00] INFO: Processing file[/etc/sv/chef-portal/env/GEM_PATH] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 144)
[2015-11-16T22:42:39+00:00] INFO: Processing file[/etc/sv/chef-portal/env/GEM_ROOT] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 144)
[2015-11-16T22:42:39+00:00] INFO: Processing file[/etc/sv/chef-portal/env/PATH] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 144)
[2015-11-16T22:42:39+00:00] INFO: Processing ruby_block[zap extra env files for chef-portal service] action run (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 153)
[2015-11-16T22:42:39+00:00] INFO: Processing directory[/etc/sv/chef-portal/control] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 184)
[2015-11-16T22:42:39+00:00] INFO: Processing link[/etc/init.d/chef-portal] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 224)
[2015-11-16T22:42:39+00:00] INFO: Processing file[/etc/sv/chef-portal/down] action nothing (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 240)
[2015-11-16T22:42:39+00:00] INFO: Processing directory[/etc/service] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 260)
[2015-11-16T22:42:39+00:00] INFO: Processing link[/etc/service/chef-portal] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 262)
[2015-11-16T22:42:39+00:00] INFO: Processing ruby_block[wait for chef-portal service socket] action run (/root/chef_classroom/local-mode-cache/cache/cookbooks/runit/libraries/provider_runit_service.rb line 267)
[2015-11-16T22:42:39+00:00] INFO: ruby_block[wait for chef-portal service socket] called
[2015-11-16T22:42:39+00:00] INFO: Processing yum_package[gcc] action install (guacamole::default line 12)
[2015-11-16T22:42:39+00:00] INFO: Processing yum_package[gcc-c++] action install (guacamole::default line 12)
[2015-11-16T22:42:39+00:00] INFO: Processing yum_package[cairo-devel] action install (guacamole::default line 12)
[2015-11-16T22:42:39+00:00] INFO: Processing yum_package[libpng-devel] action install (guacamole::default line 12)
[2015-11-16T22:42:39+00:00] INFO: Processing yum_package[uuid-devel] action install (guacamole::default line 12)
[2015-11-16T22:42:39+00:00] INFO: Processing yum_package[freerdp-devel] action install (guacamole::default line 20)
[2015-11-16T22:42:39+00:00] INFO: Processing yum_package[pango-devel] action install (guacamole::default line 20)
[2015-11-16T22:42:39+00:00] INFO: Processing yum_package[libssh2-devel] action install (guacamole::default line 20)
[2015-11-16T22:42:39+00:00] INFO: Processing yum_package[openssl-devel] action install (guacamole::default line 20)
[2015-11-16T22:42:39+00:00] INFO: Processing remote_file[/root/chef_classroom/local-mode-cache/cache/guacamole-server-0.9.7.tar.gz] action create_if_missing (guacamole::default line 25)
[2015-11-16T22:42:39+00:00] INFO: Processing bash[build-and-install-guacamole] action run (guacamole::default line 31)
[2015-11-16T22:42:39+00:00] INFO: Processing service[guacd] action enable (guacamole::default line 42)
[2015-11-16T22:42:40+00:00] INFO: Processing service[guacd] action start (guacamole::default line 42)
[2015-11-16T22:42:40+00:00] INFO: Processing yum_repository[epel] action create (yum-epel::default line 23)
[2015-11-16T22:42:40+00:00] INFO: Processing template[/etc/yum.repos.d/epel.repo] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/yum/providers/repository.rb line 46)
[2015-11-16T22:42:40+00:00] INFO: Processing execute[yum clean metadata epel] action nothing (/root/chef_classroom/local-mode-cache/cache/cookbooks/yum/providers/repository.rb line 62)
[2015-11-16T22:42:40+00:00] INFO: Processing execute[yum-makecache-epel] action nothing (/root/chef_classroom/local-mode-cache/cache/cookbooks/yum/providers/repository.rb line 68)
[2015-11-16T22:42:40+00:00] INFO: Processing ruby_block[yum-cache-reload-epel] action nothing (/root/chef_classroom/local-mode-cache/cache/cookbooks/yum/providers/repository.rb line 75)
[2015-11-16T22:42:40+00:00] INFO: Processing yum_package[tomcat] action install (tomcat::default line 31)
[2015-11-16T22:42:40+00:00] INFO: Processing yum_package[tomcat-admin-webapps] action install (tomcat::default line 37)
[2015-11-16T22:42:40+00:00] INFO: Processing tomcat_instance[base] action configure (tomcat::default line 63)
[2015-11-16T22:42:40+00:00] INFO: Processing directory[/usr/share/tomcat/lib/endorsed] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/tomcat/providers/instance.rb line 109)
[2015-11-16T22:42:40+00:00] INFO: Processing template[/etc/sysconfig/tomcat] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/tomcat/providers/instance.rb line 123)
[2015-11-16T22:42:40+00:00] INFO: Processing template[/etc/tomcat/server.xml] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/tomcat/providers/instance.rb line 171)
[2015-11-16T22:42:40+00:00] INFO: Processing template[/etc/tomcat/logging.properties] action create (/root/chef_classroom/local-mode-cache/cache/cookbooks/tomcat/providers/instance.rb line 193)
[2015-11-16T22:42:40+00:00] INFO: Processing execute[Create Tomcat SSL certificate] action run (/root/chef_classroom/local-mode-cache/cache/cookbooks/tomcat/providers/instance.rb line 202)
[2015-11-16T22:42:40+00:00] INFO: Processing service[tomcat] action start (/root/chef_classroom/local-mode-cache/cache/cookbooks/tomcat/providers/instance.rb line 259)
[2015-11-16T22:42:40+00:00] INFO: Processing service[tomcat] action enable (/root/chef_classroom/local-mode-cache/cache/cookbooks/tomcat/providers/instance.rb line 259)
[2015-11-16T22:42:40+00:00] INFO: Processing execute[wait for tomcat] action nothing (/root/chef_classroom/local-mode-cache/cache/cookbooks/tomcat/providers/instance.rb line 280)
[2015-11-16T22:42:40+00:00] INFO: Processing directory[/etc/guacamole] action create (guacamole::default line 73)
[2015-11-16T22:42:40+00:00] INFO: Processing directory[/var/lib/guacamole] action create (guacamole::default line 75)
[2015-11-16T22:42:40+00:00] INFO: Processing directory[/usr/share/tomcat/.guacamole] action create (guacamole::default line 77)
[2015-11-16T22:42:40+00:00] INFO: Processing remote_file[/var/lib/guacamole/guacamole.war] action create_if_missing (guacamole::default line 79)
[2015-11-16T22:42:40+00:00] INFO: Processing template[/etc/guacamole/guacamole.properties] action create (guacamole::default line 85)
[2015-11-16T22:42:40+00:00] INFO: Processing template[/etc/guacamole/user-mapping.xml] action create (guacamole::default line 91)
[2015-11-16T22:42:41+00:00] INFO: Processing link[/var/lib/tomcat/webapps/guacamole.war] action create (guacamole::default line 100)
[2015-11-16T22:42:41+00:00] INFO: Processing link[/usr/share/tomcat/.guacamole/guacamole.properties] action create (guacamole::default line 104)
[2015-11-16T22:42:41+00:00] INFO: Processing service[tomcat_service] action nothing (guacamole::default line 108)
[2015-11-16T22:42:41+00:00] INFO: Processing yum_package[nginx] action install (guacamole::default line 116)
[2015-11-16T22:42:41+00:00] INFO: Processing chef_gem[chef-rewind] action install (chef_portal::_fundamentals_3x_webapp line 40)
[2015-11-16T22:42:41+00:00] INFO: Chef Run complete in 82.073792677 seconds
[2015-11-16T22:42:41+00:00] INFO: Running report handlers
[2015-11-16T22:42:41+00:00] INFO: Report handlers complete

@cheeseplus
Copy link

It should deploy the AMI but it can't configure it at this time given some limitations of chef-provisioning and how long running the reconfigure command is for the marketplace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants