With the last version of mongod, I'm seeing "mongodb has exited without
being killed".
The Juju test suite assumes that it has to kill mongo during teardown and I
think checks the exit code to make sure it was juju killing mongo rather
than mongo exiting for some other reason.
The actual error log looks like it just was shutting down cleanly. See the
attached log.

John
=:->

On Tue, Apr 7, 2015 at 5:44 PM, John Meinel <j...@arbash-meinel.com> wrote:

> I should note that I'm still seeing an awful lot of failures, but I
> haven't had time to dig into it right now. I'll try to get back into it
> later. It might just be something wrong with how I have things set up.
>
> John
> =:->
>
> On Tue, Apr 7, 2015 at 5:30 PM, Gabriel Samfira <
> gsamf...@cloudbasesolutions.com> wrote:
>
>>  Thanks for testing and pointing this out :).
>>
>> Cheers,
>> Gabriel
>>  ------------------------------
>> *From:* John Meinel [j...@arbash-meinel.com]
>> *Sent:* Tuesday, April 07, 2015 4:11 PM
>>
>> *To:* Gabriel Samfira
>> *Cc:* juju-dev@lists.ubuntu.com
>> *Subject:* Re: Testing on windows
>>
>>   Yep. dumpbin is happy, and moving libeay.dll out of the way and it
>> still seems to work. So it seems you've fixed the dependencies. Thanks for
>> that.
>>
>>  John
>> =:->
>>
>>
>> On Tue, Apr 7, 2015 at 4:40 PM, Gabriel Samfira <
>> gsamf...@cloudbasesolutions.com> wrote:
>>
>>>  It appears that the binary version of OpenSSL only had stubs for
>>> static linking. I had to compile openSSL as well. On my system, mongo was
>>> picking up the openssl library from tortoiseHG.
>>>
>>> The binary in the wiki has been updated. Please give it one last try.
>>> You should see output identical to:
>>>
>>> PS C:\bin> .\mongod.exe --version
>>> db version v2.6.3
>>> 2015-04-07T15:35:03.872-0700 git version:
>>> 255f67a66f9603c59380b2a389e386910bbb52cb
>>> 2015-04-07T15:35:03.872-0700 OpenSSL version: *OpenSSL 1.0.1m 19 Mar
>>> 2015*
>>>
>>> For future reference if anyone tries to statically compile mongod on
>>> windows:
>>>
>>> scons --ssl --release --64 --static --extrapath=C:\Build-OpenSSL-VC-64
>>> --extralib=Advapi32.lib,User32.lib,Ole32.lib,Oleaut32.lib,Gdi32.lib
>>>
>>>
>>> Cheers,
>>> Gabriel
>>>  ------------------------------
>>> *From:* John Meinel [j...@arbash-meinel.com]
>>> *Sent:* Tuesday, April 07, 2015 11:09 AM
>>>
>>> *To:* Gabriel Samfira
>>> *Cc:* juju-dev@lists.ubuntu.com
>>> *Subject:* Re: Testing on windows
>>>
>>>    So the file I downloaded from you last week had:
>>>
>>>  C:\dev\bin>.\mongod.exe --version
>>> db version v2.6.3
>>> 2015-04-07T12:07:20.956+0400 git version:
>>> 255f67a66f9603c59380b2a389e386910bbb52cb
>>> 2015-04-07T12:07:20.957+0400 OpenSSL version: OpenSSL 1.0.2a 19 Mar 2015
>>>
>>>  And dumpbin says it needs the dll:
>>>  C:\dev\bin>"\Program Files (x86)\Microsoft Visual Studio
>>> 12.0\VC\bin\dumpbin.exe" mongod.exe /dependents
>>> Microsoft (R) COFF/PE Dumper Version 12.00.31101.0
>>> Copyright (C) Microsoft Corporation.  All rights reserved.
>>>
>>>
>>>  Dump of file mongod.exe
>>>
>>>  File Type: EXECUTABLE IMAGE
>>>
>>>    Image has the following dependencies:
>>>
>>>      WS2_32.dll
>>>     KERNEL32.dll
>>>     ADVAPI32.dll
>>>     PSAPI.DLL
>>>     dbghelp.dll
>>>     WINMM.dll
>>>     LIBEAY32.dll
>>>     SSLEAY32.dll
>>>
>>>    Summary
>>>
>>>        441000 .data
>>>        B1000 .pdata
>>>       457000 .rdata
>>>        12000 .reloc
>>>       C70000 .text
>>>         1000 .tls
>>>
>>>  I just downloaded the mongo-static.zip again and extracted the .exe.
>>> It says the same thing.
>>> The link I'm following is on this page:
>>> http://wiki.cloudbase.it/juju-testing
>>> and links to this file: http://wiki.cloudbase.it/_media/mongo-static.zip
>>>
>>>  John
>>> =:->
>>>
>>>
>>>
>>> On Fri, Apr 3, 2015 at 1:03 PM, Gabriel Samfira <
>>> gsamf...@cloudbasesolutions.com> wrote:
>>>
>>>>  I updated the wiki. The Start-BitsTransfer step downloaded the old
>>>> archive.
>>>>
>>>> The mongo-static.zip contains a statically built mongo with ssl
>>>> enabled. I installed a system from scratch and after following the steps on
>>>> the wiki, and got to mongo the result was:
>>>>
>>>> PS C:\Users\Administrator> .\mongod.exe --version
>>>> db version v2.6.3
>>>> 2015-04-03T11:56:04.678-0700 git version:
>>>> 255f67a66f9603c59380b2a389e386910bbb52cb
>>>> 2015-04-03T11:56:04.678-0700 OpenSSL version: OpenSSL 0.9.8r 8 Feb 2011
>>>>
>>>> If its not too much trouble, can you give it another shot? (if you have
>>>> a snapshot of a vanilla windows install and time of course)
>>>>
>>>> Cheers,
>>>> Gabriel
>>>>  ------------------------------
>>>> *From:* John Meinel [j...@arbash-meinel.com]
>>>> *Sent:* Wednesday, April 01, 2015 9:55 PM
>>>>
>>>> *To:* Gabriel Samfira
>>>> *Cc:* juju-dev@lists.ubuntu.com
>>>> *Subject:* Re: Testing on windows
>>>>
>>>>    The one I have says it was "Date Modified" 2015-03-22 and is
>>>> 18,136KB in size. (mongo-static.zip is 6,934 KB).
>>>>
>>>> John
>>>> =:->
>>>>
>>>> On Wed, Apr 1, 2015 at 10:54 PM, John Meinel <j...@arbash-meinel.com>
>>>> wrote:
>>>>
>>>>> I did get it from the wiki, and the link said "static", however, it
>>>>> did still complain that I didn't have OpenSSL. Perhaps a build step was
>>>>> missed on the latest one and it wasn't noticed because the OpenSSL library
>>>>> was on the machine you were testing on?
>>>>>
>>>>> John
>>>>> =:->
>>>>>
>>>>>
>>>>> On Wed, Apr 1, 2015 at 8:49 PM, Gabriel Samfira <
>>>>> gsamf...@cloudbasesolutions.com> wrote:
>>>>>
>>>>>>  Hi John,
>>>>>>
>>>>>> OpenSSL was needed for mongo, but I have since recompiled mongo
>>>>>> statically. So if you got the binary from the wiki, OpenSSL should no
>>>>>> longer be needed as a mandatory dependency.
>>>>>>
>>>>>> I will not be able to try and reproduce the error today, but I will
>>>>>> have a look at that particular test tomorrow.
>>>>>>
>>>>>> Cheers,
>>>>>> Gabriel
>>>>>>  ------------------------------
>>>>>> *From:* John Meinel [j...@arbash-meinel.com]
>>>>>> *Sent:* Wednesday, April 01, 2015 1:46 PM
>>>>>> *To:* Gabriel Samfira
>>>>>> *Cc:* juju-dev@lists.ubuntu.com
>>>>>> *Subject:* Re: Testing on windows
>>>>>>
>>>>>>     ...
>>>>>>
>>>>>>>  I did end up getting some tests running (though I did get a "charm
>>>>>>> not found" failure). It did end up getting killed with "test ran to 
>>>>>>> long"
>>>>>>> after 10 min.
>>>>>>>
>>>>>>
>>>>>>  For those following along it was cmd/juju
>>>>>> DeploySuite.TestUpgradeCharmDir
>>>>>> <https://bugs.launchpad.net/juju-core/+bug/1439112> that failed.
>>>>>>
>>>>>>  John
>>>>>> =:->
>>>>>>
>>>>>>
>>>>>>>
>>>>>>>  So it seems the doc is slightly incomplete, but mostly there.
>>>>>>>
>>>>>>>  John
>>>>>>> =:->
>>>>>>>
>>>>>>> On Thu, Mar 19, 2015 at 5:40 AM, Gabriel Samfira <
>>>>>>> gsamf...@cloudbasesolutions.com> wrote:
>>>>>>>
>>>>>>>> Hello folks,
>>>>>>>>
>>>>>>>> It has come to my attention that there may be some confusion in
>>>>>>>> regards
>>>>>>>> to some Windows testing. There have been a couple of branches that
>>>>>>>> have
>>>>>>>> merged which break windows tests in juju-core.
>>>>>>>>
>>>>>>>> I would like to remind everyone that there is a guide available at:
>>>>>>>>
>>>>>>>> http://wiki.cloudbase.it/juju-testing
>>>>>>>>
>>>>>>>> that will help you set up a testing environment on Windows. Also, if
>>>>>>>> there are any questions regarding Windows weirdness, please feel
>>>>>>>> free to
>>>>>>>> contact me on irc (gsamfira) or bogdanteleaga. We will be more then
>>>>>>>> happy to help you navigate any Windows issues you might have.
>>>>>>>>
>>>>>>>>
>>>>>>>> Kind regards,
>>>>>>>> Gabriel
>>>>>>>> --
>>>>>>>> Juju-dev mailing list
>>>>>>>> Juju-dev@lists.ubuntu.com
>>>>>>>> Modify settings or unsubscribe at:
>>>>>>>> https://lists.ubuntu.com/mailman/listinfo/juju-dev
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>
>>>>>
>>>>
>>>
>>
>
C:\dev\go\src\github.com\juju\juju\state [1.23]> go test --check.v --check.f 
storeManagerStateSuite.TestStateWatcher
PASS: megawatcher_internal_test.go:1561: 
storeManagerStateSuite.TestStateWatcher        0.195s
PASS: megawatcher_internal_test.go:1681: 
storeManagerStateSuite.TestStateWatcherTwoEnvironments 6.382s
OK: 2 passed
2015-04-08 06:35:33 ERROR juju.testing mgo.go:274 mongodb has exited without 
being killed
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: [1275 lines omitted]
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.187+0400 [conn91] build index on: juju.userenvname 
properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "juju.userenvname" }
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.187+0400 [conn91]      added index to empty collection
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.189+0400 [conn91] build index on: juju.envusers properties: 
{ v: 1, key: { _id: 1 }, name: "_id_", ns: "juju.envusers" }
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.189+0400 [conn91]      added index to empty collection
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.191+0400 [conn91] build index on: juju.stateServers 
properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "juju.stateServers" }
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.192+0400 [conn91]      added index to empty collection
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.196+0400 [initandlisten] connection accepted from 
127.0.0.1:54223 #93 (5 connections now open)
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.203+0400 [initandlisten] connection accepted from 
127.0.0.1:54224 #94 (6 connections now open)
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.203+0400 [initandlisten] connection accepted from 
127.0.0.1:54225 #95 (7 connections now open)
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.211+0400 [conn93] end connection 127.0.0.1:54223 (6 
connections now open)
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.211+0400 [conn94] end connection 127.0.0.1:54224 (6 
connections now open)
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.211+0400 [conn95] end connection 127.0.0.1:54225 (6 
connections now open)
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.211+0400 [conn90] end connection 127.0.0.1:54220 (6 
connections now open)
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.213+0400 [conn91] end connection 127.0.0.1:54221 (2 
connections now open)
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.213+0400 [conn92] end connection 127.0.0.1:54222 (2 
connections now open)
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.215+0400 [initandlisten] connection accepted from 
127.0.0.1:54226 #96 (2 connections now open)
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.218+0400 [conn96] dropDatabase juju starting
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.220+0400 [conn96] dropDatabase juju finished
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.221+0400 [conn96] end connection 127.0.0.1:54226 (1 
connection now open)
2015-04-08 06:35:33 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:33.221+0400 [conn89] end connection 127.0.0.1:54219 (0 
connections now open)
PASS
ok      github.com/juju/juju/state      7.338s
C:\dev\go\src\github.com\juju\juju\state [1.23]> go test --check.v --check.f 
storeManagerStateSuite.TestStateWatcher
PASS: megawatcher_internal_test.go:1561: 
storeManagerStateSuite.TestStateWatcher        0.207s
PASS: megawatcher_internal_test.go:1681: 
storeManagerStateSuite.TestStateWatcherTwoEnvironments 6.474s
OK: 2 passed
2015-04-08 06:35:50 ERROR juju.testing mgo.go:274 mongodb has exited without 
being killed
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: [1275 lines omitted]
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.839+0400 [conn91] build index on: juju.userenvname 
properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "juju.userenvname" }
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.839+0400 [conn91]      added index to empty collection
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.841+0400 [conn91] build index on: juju.envusers properties: 
{ v: 1, key: { _id: 1 }, name: "_id_", ns: "juju.envusers" }
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.841+0400 [conn91]      added index to empty collection
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.844+0400 [conn91] build index on: juju.stateServers 
properties: { v: 1, key: { _id: 1 }, name: "_id_", ns: "juju.stateServers" }
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.844+0400 [conn91]      added index to empty collection
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.849+0400 [initandlisten] connection accepted from 
127.0.0.1:54337 #93 (5 connections now open)
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.854+0400 [initandlisten] connection accepted from 
127.0.0.1:54338 #94 (6 connections now open)
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.854+0400 [initandlisten] connection accepted from 
127.0.0.1:54339 #95 (7 connections now open)
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.865+0400 [conn93] end connection 127.0.0.1:54337 (6 
connections now open)
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.865+0400 [conn95] end connection 127.0.0.1:54339 (6 
connections now open)
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.865+0400 [conn90] end connection 127.0.0.1:54334 (6 
connections now open)
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.865+0400 [conn94] end connection 127.0.0.1:54338 (6 
connections now open)
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.865+0400 [conn91] end connection 127.0.0.1:54335 (2 
connections now open)
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.865+0400 [conn92] end connection 127.0.0.1:54336 (2 
connections now open)
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.866+0400 [initandlisten] connection accepted from 
127.0.0.1:54340 #96 (2 connections now open)
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.870+0400 [conn96] dropDatabase juju starting
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.872+0400 [conn96] dropDatabase juju finished
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.874+0400 [conn96] end connection 127.0.0.1:54340 (1 
connection now open)
2015-04-08 06:35:50 ERROR juju.testing mgo.go:276 mongod: 
2015-04-08T10:35:50.874+0400 [conn89] end connection 127.0.0.1:54333 (1 
connection now open)
PASS
ok      github.com/juju/juju/state      7.440s
-- 
Juju-dev mailing list
Juju-dev@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/juju-dev

Reply via email to