Re: cf push docker image on diego bosh-lite fails


Christopher Piraino <cpiraino@...>
 

Ramesh,

I was seeing similar errors in another environment of ours, and after
checking the diego/garden-linux compatibility I found that garden-linux
0.325.0 had not been tested against 0.1439.0 of diego. You can see the
compatibilities here:
https://github.com/cloudfoundry-incubator/diego-cf-compatibility/blob/master/compatibility-v2.csv

I downgraded garden-linux to 0.316.0 and container creation worked for me.

- Chris

On Wed, Nov 4, 2015 at 12:30 PM, Ramesh Sambandan <rsamban(a)gmail.com> wrote:

I am trying to push docker app to diego in bosh lite.
I verified that I docker image cloudfoundry/lattice-app is running fine in
my local docker daemon.
I have enabled diego_docker feature flag.
My cf version is 6.13
I am doing “cf push dockerLattice --docker-image cloudfoundry/lattice-app”
and following is my "cf logs dockerLattice --recent"

************************************************************************************************************************************
2015-11-04T13:06:58.71-0700 [API/0] OUT Created app with guid
05c02bed-464a-4c89-948f-9b1cf12144a0
2015-11-04T13:06:58.81-0700 [API/0] OUT Updated app with guid
05c02bed-464a-4c89-948f-9b1cf12144a0
({"route"=>"b7650962-d25d-446c-a074-c06c1b13d811"})
2015-11-04T13:07:04.01-0700 [API/0] OUT Updated app with guid
05c02bed-464a-4c89-948f-9b1cf12144a0 ({"state"=>"STARTED"})
2015-11-04T13:07:04.03-0700 [STG/0] OUT Creating container
2015-11-04T13:07:04.62-0700 [STG/0] OUT Successfully created container
2015-11-04T13:07:04.71-0700 [STG/0] OUT Staging...
2015-11-04T13:07:04.74-0700 [STG/0] OUT Staging process started ...
2015-11-04T13:07:06.48-0700 [STG/0] OUT Staging process finished
2015-11-04T13:07:06.48-0700 [STG/0] OUT Exit status 0
2015-11-04T13:07:06.48-0700 [STG/0] OUT Staging Complete
2015-11-04T13:07:06.90-0700 [CELL/0] OUT Creating container

2015-11-04T13:07:45.72-0700 [CELL/0] ERR Failed to create container
2015-11-04T13:07:45.74-0700 [API/0] OUT App instance exited with guid
05c02bed-464a-4c89-948f-9b1cf12144a0 payload:
{"instance"=>"c3e4ca30-98ac-4170-45cc-1755f3e6cc01", "index"=>0,
"reason"=>"CRASHED", "exit_description"=>"failed to initialize container",
"crash_count"=>4, "crash_timestamp"=>1446667665731251451,
"version"=>"73c93a4b-b1d6-43c0-90e4-44b5d8fd36ee"}

************************************************************************************************************************************

I tried to run diego acceptance test(smoke test was successful) on my bosh
lite and got following error.(./bin/test -skipPackage ssh)

************************************************************************************************************************************
...
[2015-11-04 19:58:26.24 (UTC)]> cf delete
39621ab3-cdbe-4790-4f90-294ec46a5546 -f
Deleting app 39621ab3-cdbe-4790-4f90-294ec46a5546 in org
CATS-ORG-1-2015_11_04-12h40m44.529s / space
CATS-SPACE-1-2015_11_04-12h40m44.529s as
CATS-USER-1-2015_11_04-12h40m44.529s...
OK

------------------------------
• Failure in Spec Setup (JustBeforeEach) [23.136 seconds]
Docker Application Lifecycle [JustBeforeEach] running the app merges the
garden and docker environment variables

/Users/rsamban/cloudFoundry/BoshLite/diego-acceptance-tests/diego/lifecycle_docker_test.go:70

No future change is possible. Bailing out early after 17.068s.
Expected
<int>: 1
to match exit code:
<int>: 0


/Users/rsamban/cloudFoundry/BoshLite/diego-acceptance-tests/diego/lifecycle_docker_test.go:46
------------------------------
SS

Summarizing 1 Failure:

[Fail] Docker Application Lifecycle [JustBeforeEach] running the app
merges the garden and docker environment variables

/Users/rsamban/cloudFoundry/BoshLite/diego-acceptance-tests/diego/lifecycle_docker_test.go:46

Ran 27 of 29 Specs in 1080.006 seconds
FAIL! -- 26 Passed | 1 Failed | 0 Pending | 2 Skipped --- FAIL:
TestApplications (1080.01s)
FAIL

Ginkgo ran 1 suite in 18m1.688798613s
Test Suite Failed

************************************************************************************************************************************

Following is output from "bosh deployments"

************************************************************************************************************************************

+-----------------+----------------------+-------------------------------------------------+--------------+
| Name | Release(s) | Stemcell(s)
| Cloud Config |

+-----------------+----------------------+-------------------------------------------------+--------------+
| cf-warden | cf/222+dev.1 |
bosh-warden-boshlite-ubuntu-trusty-go_agent/389 | none |

+-----------------+----------------------+-------------------------------------------------+--------------+
| cf-warden-diego | cf/222+dev.1 |
bosh-warden-boshlite-ubuntu-trusty-go_agent/389 | none |
| | diego/0.1439.0+dev.1 |
| |
| | etcd/18 |
| |
| | garden-linux/0.325.0 |
| |

+-----------------+----------------------+-------------------------------------------------+--------------+

************************************************************************************************************************************

Can somebody help me please.

thanks
-Ramesh

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.