/srv/irclogs.ubuntu.com/2017/07/20/#juju-dev.txt

axwburton-aus: standup?00:31
* babbageclunk goes for a run02:34
=== cmars` is now known as cmars
=== rogpeppe1 is now known as rogpeppe
babbageclunkbdx: hey, if you need I can help clean up those failing cleanups that are preventing a migration?22:18
bdxbabbageclunk: that would be amazing22:43
babbageclunkbdx: are you familiar with doing stuff in the mongo shell?22:44
bdxyeah22:44
bdxwhat do I need to do22:44
babbageclunkbdx: cool22:44
babbageclunkbdx: find the records in the cleanups collection and delete them22:44
bdxawesome22:45
babbageclunkbdx: (they should be the only records in the collection, so that shouldn't be hard)22:45
bdxok22:45
babbageclunkbdx: You should be able to see them with db.cleanups.find().pretty()22:46
bdxbabbageclunk: should I need to pass any args to get into the mongo shell?22:49
bdxahh port22:49
bdxshould be all eh?22:49
babbageclunkbdx: hang on , pulling up the wiki page - I've got a script so I've forgotten all of the details.22:50
babbageclunkbdx: you'll need the password from the agent config as well: https://github.com/juju/juju/wiki/Login-into-MongoDB22:51
bdxthats a goodie!22:52
bdxok im in22:52
babbageclunkbdx: can you see the problem cleanups?22:53
bdxhttp://paste.ubuntu.com/25135798/22:53
bdxthey are resources22:53
bdxstrange22:53
babbageclunkbdx: great, just like we'd expect from the log.22:54
babbageclunkOh, have you seen my comment on the bug?22:54
bdxdo you think there might be a bug where juju isn't cleaning up resources adequately on application removal?22:54
bdxno, checking22:54
babbageclunkWell, the error in the log is that the cleanup is failing because the resource is already removed.22:55
babbageclunkSo I'm fixing the cleanup to call that success (although I don't know why the resource has already gone).22:56
bdxwow22:56
bdxthat makes sense22:56
bdxok22:56
babbageclunkPotentially the cleanup was queued but some other operation removed the resource before it ran?22:56
bdxI cant really be sure ... I think this is happening on another controller too22:57
bdxchecking22:57
bdxbabbageclunk: looks like I do have another one of these plaguing another controller http://paste.ubuntu.com/25135820/22:59
bdxso I can just remove this entry from the db and all will be good?23:00
bdxto some extent23:00
babbageclunkbdx: assuming you have the same error in the logs for that controller, then yes.23:01
bdxas far as getting migrations to work goes23:01
babbageclunkYup23:01
bdxbabbageclunk: I can just run db.cleanups.remove() ?23:06
bdxto clear thee out23:06
babbageclunkbdx: Might be better to do them by id just to make sure you don't inadvertently get any others.23:08
bdxentirely23:09
babbageclunkbdx: So db.cleanups.remove({_id: ""129a3d11-4d70-4504-86b6-c8442c95ae12:ObjectIdHex(\"590a50bbfd51631474ae0182\")"})23:09
babbageclunketc23:09
bdxI got the same resource cleanup error in the logs on the other controller http://paste.ubuntu.com/25135845/23:09
bdxawesome, I was just getting there23:10
bdxthx23:10
babbageclunkbdx: yeah, looks the same23:10
babbageclunkbdx: ok, after that the migration should work (hopefully)23:11
bdxok they are cleaned up23:13
bdxtrying the migration now23:13
bdxbabbageclunk: I'm migrating!23:17
bdxbabbageclunk: many thanks23:17
babbageclunkbdx: no worries!23:17
axwanastasiamac: standup?23:46
axwveebers: ^23:46
veebersaxw: ah oops, need a couple secs to get headset, omw23:47

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!