Friday, 2018-03-23

*** mridu has quit IRC01:35
*** jamesmcarthur has joined #storyboard01:41
*** jamesmcarthur has quit IRC02:20
*** jamesmcarthur has joined #storyboard02:55
*** persia has quit IRC04:20
*** persia has joined #storyboard04:21
*** udesale has joined #storyboard04:41
*** jtomasek has joined #storyboard07:18
*** tosky has joined #storyboard08:45
*** fatema_ has joined #storyboard09:40
fatema_Sorry for the delay There was some technical issues09:51
fatema_the netstat command got me "tcp        0      0 0.0.0.0:8080            0.0.0.0:*               LISTEN  "09:52
SotKhey fatema_, I wrote some explanation yesterday before I noticed you'd dropped offline, you can see it in the logs here: http://eavesdrop.openstack.org/irclogs/%23storyboard/%23storyboard.2018-03-22.log.html#t2018-03-22T23:24:2009:53
fatema_SotK, oh yes it is clearer now09:58
fatema_now it should be working fine and I shall go for the contribution part10:00
*** udesale has quit IRC11:06
fungidiablo_rojo: thanks for finding the osc migration issue, i'll see how far i get and maybe try to tackle the db reconfig today too12:14
*** tosky has quit IRC12:15
*** tosky has joined #storyboard12:15
SotKfungi: http://paste.openstack.org/show/709970/ is all the user ID columns I think12:27
fungithanks SotK! i'll work that into the script i'm drafting and link it in here before i test on sb-dev.o.o12:28
*** jamesmcarthur has quit IRC12:49
*** jamesmca_ has joined #storyboard12:49
*** jamesmca_ has quit IRC13:24
*** jamesmcarthur has joined #storyboard13:25
*** jamesmcarthur has quit IRC13:30
fungidiablo_rojo: https://review.openstack.org/555787 Use utf8mb4 for MySQL database charset13:55
fungithat's mostly so we don't forget when deploying new sb servers, not that it happens especially often13:55
openstackgerritJeremy Stanley proposed openstack-infra/storyboard master: Use utf8mb4 for MySQL database charset  https://review.openstack.org/55580614:14
fungiSotK: mordred: with ^ i assume i also need a db migration, and that it's not kosher to simply edit the MYSQL_CHARSET value at http://git.openstack.org/cgit/openstack-infra/storyboard/tree/storyboard/db/migration/alembic_migrations/versions/001_initial_version.py#n37 ?14:14
fungimordred: note that this is a blocker for the osc import from lp14:18
fungi(there is apparently some data in at least one osc bug which contains 4-byte characters)14:19
mordredfungi: oh wow, fun14:21
fungiit's also a blocker for heat and mistral, i'm told14:21
fungiso it's not like osc is the only one, just happens to be the only one so far which has requested an import14:21
mordredfungi: so - yeah - I *think* we'll need a migration script that does an alter on every column we care about14:23
fungii think i also need to move sb.o.o and sb-dev.o.o to rebuilt trove instances using newer mysql? they're both running 5.6 at the moment14:23
fungior is that new enough?14:24
SotKmordred: that matches my understanding14:24
*** jamesmcarthur has joined #storyboard14:24
SotKfrom when I was looking at fixing this a while ago14:24
SotKI didn't actually get any further than that14:25
mordredALTER TABLE foo CONVERT TO CHARACTER SET utf8mb414:25
mordredis apparently the form we need14:25
mordredthat should update the default as well as convert any columns as needed14:25
fungiso basically just loop through all the tables applying that and put it in a new migration file?14:26
mordred(which is nice and easy)14:26
mordredyup14:26
fungiis mysql 5.6 new enough for that?14:26
mordredyes14:27
fungiistr we had to upgrade the mysql version for at least some service we were doing that on previously14:27
fungiokay, cool14:27
mordredwell - convert to is in 5.14:27
mordred5.614:27
mordrednot sure about utf8mb4 - looking14:27
mordredhttps://dev.mysql.com/doc/refman/5.6/en/charset-unicode-utf8mb4.html14:27
mordred5.6 has utf8mb4 too14:27
fungiawesome14:27
fungii'd still like to move these to mysql 5.7 at some point, but i guess there's no rush14:28
fungiand if the migration gets added to sb in the same patch as the storyboard/db/models.py adjustment then we shouldn't need to perform any manual operations server-side right? (i guess that's the entire point of having scripted db migrations?)14:29
fungii'll still make sure to do a last-minute db dump before that change lands either way14:31
-openstackstatus- NOTICE: zuul.o.o has been restarted to pick up latest code base and clear memory usage. Both check / gate queues were saved, be sure to check your patches and recheck when needed.14:53
*** jtomasek has quit IRC15:25
-openstackstatus- NOTICE: Gerrit will be temporarily unreachable as we restart it to complete the rename of some projects.15:50
*** fatema_ has quit IRC16:04
*** jamesmcarthur has quit IRC16:12
*** jamesmcarthur has joined #storyboard16:13
*** jamesmcarthur has quit IRC16:13
*** jamesmcarthur has joined #storyboard16:14
*** jamesmcarthur has quit IRC16:23
*** jamesmcarthur has joined #storyboard16:24
*** jamesmcarthur has quit IRC16:28
*** jamesmcarthur has joined #storyboard16:30
*** mridu has joined #storyboard16:51
mriduhi, we can debug the issue. I wasn't able to run tox -e py35 successfully. Even after removing py3.6 from the system.16:54
*** jamesmcarthur has quit IRC17:10
*** jamesmcarthur has joined #storyboard17:11
mridusorry this was by mistake17:11
*** mridu has quit IRC17:16
*** diablo_rojo has quit IRC17:30
*** jamesmcarthur has quit IRC17:35
*** mridu_ has joined #storyboard17:38
*** mridu_ has quit IRC17:42
*** mridu has joined #storyboard17:42
*** mridu has quit IRC17:47
*** Mridu has joined #storyboard18:10
MriduOn running tox command I am getting http://paste.openstack.org/show/710362/ as error18:11
*** Mridu has quit IRC18:22
fungiwe just lost Mridu18:23
openstackgerritJeremy Stanley proposed openstack-infra/storyboard master: Use utf8mb4 for MySQL database charset  https://review.openstack.org/55580618:49
fungiSotK: mordred: ^ my first ever hackish attempt at an alembic migration18:49
mordredfungi: +2 on the patch-I think we can address the pg concern separately18:54
fungii'm fine addressing it now too18:55
fungimordred: is it just something like "if dialect.name=='mysql':" or is it more involved than that?19:11
openstackgerritJeremy Stanley proposed openstack-infra/storyboard master: Use utf8mb4 for MySQL database charset  https://review.openstack.org/55580619:12
fungiseems to match examples i've found19:12
mordredfungi: I'm assuming that matches mysqldb and pymysql drivers19:13
TheJuliaout of curiosity, since I've not had time to really even read this channel this week... Is ironic still on track for the migration being run today?19:15
*** mridu has joined #storyboard19:17
fungiTheJulia: yeah, i plan on doing that later in my day19:20
TheJuliaokay, thanks!19:20
fungialso working on 4-byte character support blocking some other imports (not a blocker for ironic afaik) and account deduplication (which also isn't a blocker but better done sooner than later)19:20
clarkbfungi: if storyboard is using trove make sure the instance has new enough mysql for 4 byte utf819:21
*** diablo_rojo has joined #storyboard19:22
fungiclarkb: yes, i checked and it's 5.619:23
fungiaccording to mordred 5.5 and later works for that19:23
clarkbcool19:23
TheJuliafungi: okay, thanks19:23
fungithough 5.7 apparently has workarounds for the "191-byte limit" on varchar(256) fields with utf8mb419:24
fungibased on my reading19:24
fungier, varchar(255) i guess19:24
fungiskimming sb i think most of the varchar key fields are limited to 100 characters, so probably not an issue anyway19:27
fungier, limited to 100 characters *or less*19:27
fungi100 was the biggest i saw19:27
*** openstackgerrit has quit IRC19:34
mriduHey, I am still unable to install tox19:35
mriduhttp://paste.openstack.org/show/710362/19:35
fungimridu: you came back! that looks like tox is properly installed, and even shows some passing tests19:36
fungiyou just happen to have 272 failing tests too. hopefully someone here (not me i'm afraid) is aware of some local dependencies we may not express in packages alone19:37
fungiperhaps we have some database permission assumptions which the tests are relying on?19:37
mriduohh...19:38
mriduwhat needs to be done then?19:38
mriduHi all, can anyone up here help me with fixing the errors I am getting on installing tox -e py3519:45
diablo_rojofungi, I don't know of anything fancy we do.19:59
fungii suppose i should try running tests locally20:00
diablo_rojoThats what I was about to do :)20:00
diablo_rojoThe only dependencies I see it installing are req.txt and test-reqs.txt20:01
diablo_rojoHuh. I actually have py35 failures too- 34 pass and 4 skipped with 272 failing20:01
* diablo_rojo just pulled master and ran tests20:02
diablo_rojoAnd the same with py2720:02
diablo_rojoI'm seeing a lot of- 'can't connect to the mysql server 127.0.0.1'20:03
mridusame here20:04
fungii expect our jobs also stand up mysql and postgresql instances listening on the loopback interface with fairly open permissions20:04
fungiand our unit tests probably don't opportunistically enable those, so just blindly assume they're present and then fail when they can't connect20:05
diablo_rojosounds like something we need fixed.20:05
*** diablo_rojo has quit IRC20:26
*** diablo_rojo has joined #storyboard20:26
fungii expect it's a pattern originally inherited from nova, but oslo.db eventually grew mechanisms for opportunistic db-specific testing20:33
fungiso for example if you run nova's unit tests locally and have mysql running it'll try mysql-specific tests but will skip them if you don't20:33
diablo_rojofungi, so.. make sure mysql isn't running and the tests should run/skip to completion?20:35
fungii think that's what the nova et al unit tests do, but this is not my field of expertise20:37
fungialso, basically all ci tests for my https://review.openstack.org/555806 change are dying with a retry_limit failure, so i'm probably a terrible person to attempt to answer these questions20:38
fungihrm... why would even pep8 be hitting a retry_limit?20:45
fungii guess the db stuff happens in the pre phase so gets retried when it breaks20:46
fungithat 'splains it20:46
fungicreatedb: "utf8mb4" is not a valid encoding name20:46
fungisrsly?20:46
diablo_rojoHaha how is that not a valid name?20:48
fungimordred: ^ any clue? should i really not be doing createdb -E utf8mb4 in tools/test-setup.sh after all?20:51
fungii guess if that's getting run at the start, we want it on regular utf8 anyway and then the migration should change the tables to utf8mb4 once they get applied?20:51
fungii'll try dropping that bit20:52
fungioh! that was pgsql20:53
fungino wonder :/20:53
* fungi sighs20:53
fungibut still, i think i've talked myself into creating as utf8 so the migration gets correctly tested20:53
*** openstackgerrit has joined #storyboard20:54
openstackgerritJeremy Stanley proposed openstack-infra/storyboard master: Use utf8mb4 for MySQL database charset  https://review.openstack.org/55580620:54
mriduhey, is there anything else I could take up meanwhile?20:59
diablo_rojomridu, well figuring out how to run tests and actually create/mock out the db so they all can run locally would be super helpful. Otherwise there are the commands we need implemented in the cli that I've mentioned before.21:04
openstackgerritKendall Nelson proposed openstack-infra/storyboard master: Remove unnecessary _route method from users  https://review.openstack.org/38708021:36
*** mridu has quit IRC21:51
fungiwell, at least my utf8mb4 change is only failing, not hitting retry_limit so i take that as a step forward22:01
fungii'll see if i can figure out why and get the next iteration up before i get back to hacking on the deduplication script22:02
fungiaha, i see it22:04
diablo_rojofungi, pep8 is failing cause you import things and don't use them, but I'm sure you saw that22:06
fungithat wasn't all22:07
fungione of the things it complains about is also why the unit tests are failing22:08
fungiinspect() isn't a builtin function ;)22:08
diablo_rojoah, that would do it22:08
fungidigging around in alembic docs now to find out what it's a method of... i was somewhat cribbing from a suggestion zzzeek made in #openstack-oslo earlier22:09
fungithe docs don't mention an inspect() method anywhere in alembic22:12
fungioh! that's courtesy of sqlalchemy, not alembiv22:14
fungialembic22:14
diablo_rojoHa, solves the mystery of why you imported sqlalchemy in the first place22:14
fungiindeed22:15
openstackgerritJeremy Stanley proposed openstack-infra/storyboard master: Use utf8mb4 for MySQL database charset  https://review.openstack.org/55580622:15
fungiokay, back to account deduplication scripting while that bakes22:15
*** EmilienM has quit IRC22:34
*** EmilienM has joined #storyboard22:36
EmilienMhello22:38
fungihowdy22:39
*** jamesmcarthur has joined #storyboard22:42
*** jamesmcarthur has quit IRC22:46
fungiSotK: diablo_rojo: okay, after a bit of debugging, correcting table names and tweaking order of operations to avoid integrity violations, i have a dedup script which runs successfully on storyboard-dev.o.o22:48
fungihttp://paste.openstack.org/show/710712/ is the script22:49
fungii'm still double-checking the results in the db22:49
fungitables/fields and recommended actions taken from SotK's list at http://paste.openstack.org/show/709970/22:49
fungionly thing i didn't implement was deduplicating the subscriptions rows after rewriting user_id on them22:50
fungisince nobody can have actually logged into the duplicate accounts, and i don't see the import script setting subscriptions, i _think_ that's probably fine (i doubt there will be any hits at all for the duplicate accounts in that table, much less both versions of the account subscribing to the same things)22:51
fungihrm, something's still not quite right. for some reason the sql update and delete commands executed on that cursor don't actually seem to take effect22:57
fungiaha, i needed to db_connection.commit() at the very end!22:59
fungipoking around in the database now, it seems to have done the right thing23:01
fungia few extra eyes on the script and/or the server would be appreciated23:02
fungisorry, that's actually http://paste.openstack.org/show/710718/ for the script23:05
fungiso anyway, if people are cool with the script and the state of the server i'll do a last-minute backup and then run that on the production storyboard.o.o23:08
fungibefore i start doing new migrations23:08
fungii've single-core approved https://review.openstack.org/554726 and will use it in the test and then production imports (after cleanups)23:13
fungishifting gears, my utf8mb4 change is passing pep8 now, but the unit test jobs for it are timing out23:14
fungiyeah, something's still not right with my character set migration: http://logs.openstack.org/06/555806/5/check/tox-py27/7e01341/job-output.txt.gz#_2018-03-23_22_21_43_38191323:16
fungii'm not quite sure what to make of that23:18
*** tosky has quit IRC23:19
openstackgerritMerged openstack-infra/storyboard master: Duplicating Users at Migration Time  https://review.openstack.org/55472623:24
diablo_rojo_phonI'm not sure what to make of it either.23:26
diablo_rojo_phonI'm fine with going ahead with things I think.23:27
diablo_rojo_phonThanks for approving that fungi23:27
fungidiablo_rojo_phon: the ironic imports were just straight project-to-project mapping but tripleo-ui needs a bugtag filter, correct?23:28
fungihappen to know whether the project-config changes for all those merged yet?23:30
fungii can double-check in a moment23:30
diablo_rojo_phonCorrect fungi23:35
fungiyeah, looks like neither of the project-config changes have merged yet. i'll hunt them down and review next23:36
diablo_rojo_phonSounds good. Happy to review and ping as well.23:36
diablo_rojo_phonfungi: I'll ping TheJulia23:37
TheJuliao/23:38
diablo_rojo_phonWe need the project config change up and merged for migration.23:38
diablo_rojo_phonGot the link?23:38
fungihttps://review.openstack.org/55437023:39
TheJuliafungi: yeah, project to project and as noted elsewhere I guess one big project group23:39
fungithat's ironic23:39
TheJuliafungi: thanks23:39
fungireviewing it first23:39
diablo_rojo_phonReviewed.23:43
fungilooks like a lot of them could stand to be added to the "ironic" project group23:43
fungiand we can drop some of the one-off project groups like "ironic-inspector" and "ironic-python-agent"23:44
fungithose were just being used to remap bug queries in lp23:45
diablo_rojo_phonOh yeah they should all be added to the same group.23:45
fungii'll take a quick shot at updating it23:45
*** jamesmcarthur has joined #storyboard23:57
fungidiablo_rojo_phon: TheJulia: i've updated https://review.openstack.org/554370 for ironic project grouping23:58
fungiwhile that runs the ci gauntlet i'll dig up the tripleo change23:58

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