Hello all,
I’ve been trying to get chef-container to produce a container with a custom nginx cookbook. I began with the chef/centos-7 image, added a few dependencies (openssl wget net-tools make automake bison gcc gcc-c++ unzip), and then committed those change
to a new base image.
From there I did a knife container docker init followed by a knife container docker build and successfully made a new container. However when I try to run the container it seems to be failing. The following is the output of the docker run –it frontend/nginx
—verify :
S-C02NC26AG3QN:chef-repo user$ docker run -it frontend/nginx --verify
[2014-10-27T19:18:21+00:00] INFO: file '/opt/chef/embedded/bin/runsvdir' exists: pass
[2014-10-27T19:18:21+00:00] INFO: file '/opt/chef/embedded/bin/sv' exists: pass
[2014-10-27T19:18:21+00:00] INFO: file '/opt/chef/bin/chef-init' exists: pass
[2014-10-27T19:18:21+00:00] INFO: file '/usr/bin/chef-init' exists: pass
[2014-10-27T19:18:21+00:00] INFO: file '/opt/chef/bin/chef-client' exists: pass
[2014-10-27T19:18:21+00:00] INFO: file '/usr/bin/chef-client' exists: pass
[2014-10-27T19:18:21+00:00] INFO: command `/opt/chef/bin/chef-init --version` runs: pass
[2014-10-27T19:18:21+00:00] INFO: command `/usr/bin/chef-init --version` runs: pass
[2014-10-27T19:18:22+00:00] INFO: command `/opt/chef/bin/chef-client --version` runs: pass
[2014-10-27T19:18:23+00:00] INFO: command `/usr/bin/chef-client --version` runs: pass
[2014-10-27T19:18:36+00:00] INFO: bootstrap: failing chef-client exit codes are honored: pass
[2014-10-27T19:18:41+00:00] INFO: failing bootstrap - supervisor processes are cleaned up: pass
[2014-10-27T19:18:54+00:00] ERROR: bootstrap: passing chef-client exit codes are honored: fail
[2014-10-27T19:18:48+00:00] FATAL: Stacktrace dumped to /.chef/local-mode-cache/cache/chef-stacktrace.out
[2014-10-27T19:18:48+00:00] ERROR: Unable to determine node name: configure node_name or configure the system's hostname and fqdn
[2014-10-27T19:18:48+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)
[2014-10-27T19:18:59+00:00] INFO: successful bootstrap - supervisor processes are cleaned up: pass
[2014-10-27T19:19:19+00:00] INFO: runsvdir started: pass
[2014-10-27T19:19:19+00:00] ERROR: enabled services started: fail
[2014-10-27T19:19:39+00:00] INFO: onboot - supervisor processes are cleaned up: pass
[2014-10-27T19:19:39+00:00] FATAL: Tests failed:
bootstrap: chef-init does not honor passing exit code from chef-client
onboot: services did not start
Could anyone help point me in the right direction to start debugging this problem?
Thanks,
Austin
|
Archive powered by MHonArc 2.6.16.