Wednesday, 2018-02-14

*** itlinux has joined #openstack-glance00:16
*** edmondsw has quit IRC00:18
*** AlexeyAbashkin has joined #openstack-glance00:40
*** links has joined #openstack-glance00:40
*** AlexeyAbashkin has quit IRC00:44
*** btully has joined #openstack-glance01:16
*** itlinux has quit IRC01:19
*** btully has quit IRC01:21
*** gyee has quit IRC01:25
*** itlinux has joined #openstack-glance01:44
*** edmondsw has joined #openstack-glance01:46
*** rmcall has joined #openstack-glance01:46
*** edmondsw has quit IRC01:51
*** itlinux has quit IRC02:10
*** itlinux has joined #openstack-glance02:32
*** itlinux has quit IRC02:44
*** d0ugal has quit IRC02:49
*** d0ugal has joined #openstack-glance02:59
*** r-daneel has joined #openstack-glance03:23
*** harlowja has quit IRC03:30
*** edmondsw has joined #openstack-glance03:34
*** edmondsw has quit IRC03:39
*** links has quit IRC03:50
*** d0ugal has quit IRC03:55
*** pdeore has joined #openstack-glance03:58
*** udesale has joined #openstack-glance03:59
*** d0ugal has joined #openstack-glance03:59
*** links has joined #openstack-glance04:07
*** harlowja has joined #openstack-glance04:12
*** ykarel_ has joined #openstack-glance04:22
*** harlowja has quit IRC04:30
*** aniketh has joined #openstack-glance04:48
*** abhishekk has joined #openstack-glance04:51
*** bhagyashri_s is now known as bhagyashris04:52
*** dalgaaf has quit IRC04:59
*** dalgaaf has joined #openstack-glance05:01
*** Shilpa has joined #openstack-glance05:07
*** dillaman has joined #openstack-glance05:08
*** jdillaman has quit IRC05:09
*** harlowja has joined #openstack-glance05:14
Shilpaabhishekk: Hi05:45
abhishekkShilpa, hi, not well today05:55
Shilpaactually want to discuss 2 points, jokke's comment on 540736 and postgracesql support, will discuss the same tomorrow then05:58
rosmaitaShilpa yes, we will need another day before figuring out postgres support05:59
rosmaitai found out today that GET /v2/tasks has not worked with postgres since newton05:59
rosmaitaso doesn't look like too many people have tried using it05:59
rosmaitaabhishekk sorry you are not feeling well06:00
abhishekkrosmaita, does that mean its not use widely?06:00
Shilpai have tried test migrations scripts and they are not getting executed on patch06:00
abhishekkrosmaita, no issues06:00
rosmaitaabhishekk i guess postgres isn't being used by anyone who uses tasks, but not many people use tasks06:01
rosmaitaalthough now we want them to !06:01
ShilpaMatt Riedemann and Chris Friesen, posted comment on 433934 that facing issue since postgracesql not supported06:01
abhishekkrosmaita, agree06:01
abhishekkShilpa, that is because they were not aware about the patch which restored that support06:02
Shilpayes06:02
abhishekkrosmaita, again we need to think about uwsgi support as well, because even if we have marked 2.6 as current tasks are not executing06:03
rosmaitaabhishekk they do execute if you set WSGI_MODE=mod_wsgi in local.conf for devstack06:04
abhishekkgreat, is it documented somewhere?06:04
rosmaitano06:04
abhishekkok06:05
*** pdeore_ has joined #openstack-glance06:05
rosmaitawe do need to publicize that06:05
abhishekkok06:05
rosmaitathat setting also makes keystone run in a weird way, if you need to restart keystone you have to restart apache2.service06:06
abhishekkShilpa, could you please share your test scripts with me, which will save my time for creating new ones06:06
abhishekkyes, I know about that06:07
Shilpayes, i have updated queens for test purpose, will share soon06:07
openstackgerritOpenStack Proposal Bot proposed openstack/glance master: Imported Translations from Zanata  https://review.openstack.org/54417106:07
*** pdeore has quit IRC06:07
abhishekkShilpa, great, thank you06:07
rosmaitaShilpa can you put them in a paste or something when they are ready, so we can all use them?06:07
rosmaitathey don't have to be perfect, anything will be helpful06:08
Shilpaok will do that, and share that link here06:08
rosmaitaShilpa excellent!06:08
Shilparosmaita: yes06:08
rosmaitaabhishekk i am having trouble getting erno's original web-download stuff (without the whitelist/blacklist) working06:09
abhishekkrosmaita, what issue you are facing06:09
ShilpaAbhishek: i want you to go through jokee's comment on validation patch i.e. 540736, and discuss, so that i will work accordingly on it06:10
rosmaitahe expects to find import_req in the kwargs, but it's not there ... the kwargs have task_id and task_repo, so I can get the import_req but first i have to get the task from the task repo06:10
rosmaitawhich is fine06:11
rosmaitabut it's weird06:11
rosmaita(not sure that makes sense)06:11
abhishekkShilpa, I will but right now I am on the way to see doctor and using mobile06:12
rosmaitawas seeing a lot of 'NoneType' object has no attribute '__getitem__' in the logs06:12
rosmaitaabhishekk hope you feel better06:12
abhishekkonce I get back I will have a look06:12
Shilpaabhishek: ok, no issues, we can have that discussion later06:12
rosmaitait's late here, i am going to sign off06:13
ShilpaTake care06:13
abhishekkrosmaita, improving06:13
Shilparosmaita: GN06:13
rosmaitaabhishekk i'll put up a DNM patch so you can look if you have time06:13
abhishekkrosmaita, could you share your curl commands as well06:13
*** pdeore_ has quit IRC06:13
rosmaitaShilpa have a good day06:13
rosmaitaabhishekk sure06:14
abhishekkrosmaita, ack, good night06:14
rosmaitaabhishekk will email info to you06:14
abhishekkrosmaita, thank you06:14
*** pdeore has joined #openstack-glance06:15
Shilparosmaita/abhishek: added test scripts to verify migrations is working or not in case of PostgreSQL support at http://paste.openstack.org/show/671578/06:19
rosmaitaack06:19
*** masber has joined #openstack-glance06:22
abhishekkShilpa, this migration script will not execute as we are not calling migrate command explicitly06:22
Shilpayes,as we discussed yesterday, going forward we are using only alembic_migrations06:24
*** harlowja has quit IRC06:24
abhishekkthe code which you have added in your migration script (has_migrations()) is called from migrate command only, I guess for offline migrations this will never be called06:24
Shilpayes, so for offline migrations, we need to consider this06:25
Shilpaif installing fresh, migration step one can skip since no data at all, but during upgrading offline, one can't skip migration06:26
abhishekkShilpa, if you have time please check how migrations were working using sync command (not EMC) that will help us to understand better what changes we require now06:27
Shilpathere were pike01/ocata01 scripts at  alembic_migration which sync command uses (not EMC)06:28
Shilpathese are consolidated sccripts of what EMC scripts will have06:28
abhishekkShilpa, So on similar note is it possible for you to create one new migration script for testing purpose?06:31
*** ykarel_ is now known as ykarel06:31
Shilpabut that is not possible since alembic won't accept files with same revision06:35
abhishekkyou can create new revision, right?06:41
*** btully has joined #openstack-glance06:42
openstackgerritBrian Rosmaita proposed openstack/glance master: DNM testing image import  https://review.openstack.org/54418406:43
*** btully has quit IRC06:46
*** rosmaita has quit IRC06:51
*** belmoreira has joined #openstack-glance07:01
*** edmondsw has joined #openstack-glance07:11
*** edmondsw has quit IRC07:15
Shilpaabhishekk: for you, only for testing purpose, will create and share with you07:16
*** AlexeyAbashkin has joined #openstack-glance07:16
*** alexchadin has joined #openstack-glance07:17
*** AlexeyAbashkin has quit IRC07:21
*** AlexeyAbashkin has joined #openstack-glance07:26
*** aniketh has quit IRC07:28
*** ykarel_ has joined #openstack-glance07:47
*** ykarel has quit IRC07:48
*** ykarel__ has joined #openstack-glance07:52
*** ykarel has joined #openstack-glance07:54
*** ykarel_ has quit IRC07:55
*** pcaruana has joined #openstack-glance07:56
*** bhagyashri_s has joined #openstack-glance07:56
*** ShilpaSD has joined #openstack-glance07:56
*** ykarel__ has quit IRC07:57
*** pdeore has quit IRC07:57
*** pooja-jadhav has joined #openstack-glance07:58
*** nsingh has joined #openstack-glance07:58
*** niraj_singh has quit IRC07:59
*** Shilpa has quit IRC07:59
*** bhagyashris has quit IRC07:59
*** pooja_jadhav has quit IRC07:59
*** MattMan has quit IRC08:01
*** MattMan has joined #openstack-glance08:02
*** masber has quit IRC08:05
*** pdeore has joined #openstack-glance08:08
openstackgerritAbhishek Kekane proposed openstack/glance master: Following changes are required for web-download (without wlist/blist)  https://review.openstack.org/54418408:11
openstackgerritAbhishek Kekane proposed openstack/glance master: Do NOT MERGE: Following changes are required for web-download (without wlist/blist)  https://review.openstack.org/54418408:15
*** e0ne has joined #openstack-glance08:22
*** tesseract has joined #openstack-glance08:28
*** ShilpaD has joined #openstack-glance08:28
*** bhagyashris_ has joined #openstack-glance08:28
*** bhagyashris_ has quit IRC08:28
*** pooja_jadhav has joined #openstack-glance08:30
*** niraj_singh has joined #openstack-glance08:31
*** pooja-jadhav has quit IRC08:31
*** ShilpaSD has quit IRC08:31
*** bhagyashris has joined #openstack-glance08:31
*** nsingh has quit IRC08:32
*** bhagyashri_s has quit IRC08:32
*** rcernin has quit IRC08:33
abhishekkjokke_, hi08:50
*** links has quit IRC08:53
*** aniketh has joined #openstack-glance09:00
*** links has joined #openstack-glance09:06
*** ykarel is now known as ykarel|lunch09:19
openstackgerritAbhishek Kekane proposed openstack/glance master: Do Not MERGE: Following changes are required for web-download (without wlist/blist)  https://review.openstack.org/54418409:44
*** alexchadin has quit IRC09:56
*** alexchadin has joined #openstack-glance09:57
*** ykarel|lunch is now known as ykarel10:00
*** pcaruana has quit IRC10:05
*** pcaruana has joined #openstack-glance10:20
*** ykarel_ has joined #openstack-glance10:26
*** ykarel has quit IRC10:29
*** ykarel_ is now known as ykarel10:37
*** kgz has joined #openstack-glance10:41
*** abhishekk has quit IRC10:44
openstackgerritPaul Bourke (pbourke) proposed openstack/glance master: Fix some api tests when behind http proxy  https://review.openstack.org/54139010:44
openstackgerritPaul Bourke (pbourke) proposed openstack/glance master: Fix some api tests when behind http proxy  https://review.openstack.org/54139010:45
*** edmondsw has joined #openstack-glance10:47
*** arcolife has joined #openstack-glance10:51
*** ykarel_ has joined #openstack-glance10:52
*** edmondsw has quit IRC10:52
*** ykarel has quit IRC10:54
*** pbourke has joined #openstack-glance11:01
*** AlexeyAbashkin has quit IRC11:05
*** pdeore has quit IRC11:10
*** arcolife has quit IRC11:13
*** pbourke has quit IRC11:29
*** pcaruana has quit IRC11:30
*** pbourke has joined #openstack-glance11:30
*** udesale_ has joined #openstack-glance11:36
*** alexchadin has quit IRC11:38
*** udesale has quit IRC11:38
*** AlexeyAbashkin has joined #openstack-glance11:38
*** udesale has joined #openstack-glance11:41
*** udesale_ has quit IRC11:41
*** pcaruana has joined #openstack-glance11:42
*** alexchadin has joined #openstack-glance11:47
*** udesale has quit IRC11:47
*** achuprin has joined #openstack-glance12:12
*** dtantsur|afk is now known as dtantsur12:21
*** edmondsw has joined #openstack-glance12:36
*** edmondsw has quit IRC12:40
achuprinHello guys12:42
achuprinwhat is the right way to disable glance cache? I didn't found how to do that via glance-api/cache.conf.12:42
*** mdbooth has joined #openstack-glance12:46
achuprinwill it be enough to remove cachemanagement from  [pipeline:glance-api-keystone+cachemanagement]12:50
*** edmondsw has joined #openstack-glance12:50
mdboothAfternoon, folks. I'm just starting to think about hurdles for implementing Nova local storage using Cinder, and I'm considering snapshots. Snapshots data is typically uploaded to glance. I'm wondering if it's possible to specify that a glance image's data is contained within a specific cinder volume, and therefore not have to upload it?12:50
*** udesale has joined #openstack-glance12:51
*** r-daneel has quit IRC12:54
*** takedakn has joined #openstack-glance12:56
*** mvk_ has quit IRC12:58
*** takedakn has quit IRC13:01
*** ykarel__ has joined #openstack-glance13:03
*** r-daneel has joined #openstack-glance13:04
*** ykarel_ has quit IRC13:05
*** e0ne has quit IRC13:10
*** e0ne has joined #openstack-glance13:13
*** rosmaita has joined #openstack-glance13:14
rosmaitajokke_: good morning13:22
*** mvk_ has joined #openstack-glance13:24
achuprinnevermind  found how to do that via [paste_deploy]13:24
*** achuprin has quit IRC13:37
*** rmcall has quit IRC13:43
*** konan has joined #openstack-glance13:52
openstackgerritBrian Rosmaita proposed openstack/glance master: Cleanup basic import tasks  https://review.openstack.org/54418413:56
*** btully has joined #openstack-glance13:57
openstackgerritBrian Rosmaita proposed openstack/glance master: Cleanup basic import tasks  https://review.openstack.org/54418413:58
konanrosmaita: hi abhishek here14:00
rosmaitakonan nice work on that patch!14:01
rosmaitajust about to email, everything seems to work14:01
rosmaitahttps://review.openstack.org/#/c/544184/14:01
konanJust a small change, IMO we should set image status uploading before adding data to store?14:01
rosmaitahope you are feeling better, by the way14:01
*** btully has quit IRC14:02
konanYes improving hopefully will recover in a day or two?14:02
rosmaitakonan not sure ... is it possible that the add could fail and raise an exception?14:02
rosmaitai think it's the general problem we have with image status changes14:03
konanrosmaita: might be, let's see what jokke_ has to say14:03
rosmaitamy thoughts exactly14:03
rosmaitai will put a comment on the patch so he doesn't miss it14:04
konanNow will my +2 matter here?14:04
konanrosmaita: ok14:04
rosmaitamaybe we each +2 each others work on the patch, and leave it to jokke_ to +A ?14:05
*** alexchadin has quit IRC14:08
*** alexchadin has joined #openstack-glance14:08
*** alexchadin has quit IRC14:08
*** alexchadin has joined #openstack-glance14:09
*** alexchadin has quit IRC14:09
*** alexchadin has joined #openstack-glance14:10
*** alexchadin has quit IRC14:10
*** alexchadin has joined #openstack-glance14:11
*** r-daneel has quit IRC14:11
*** alexchadin has quit IRC14:11
*** alexchadin has joined #openstack-glance14:11
rosmaitakonan: get some sleep!14:12
*** alexchadin has quit IRC14:12
*** alexchadin has joined #openstack-glance14:12
*** alexchadin has quit IRC14:12
konanrosmaita: sounds good14:14
*** alexchadin has joined #openstack-glance14:22
*** rmcall has joined #openstack-glance14:24
*** ykarel__ is now known as ykarel14:26
*** alexchadin has quit IRC14:26
*** udesale has quit IRC14:29
*** r-daneel has joined #openstack-glance14:29
*** udesale has joined #openstack-glance14:29
*** links has quit IRC14:33
*** udesale has quit IRC14:36
*** bhagyashris has quit IRC14:50
*** ShilpaD has quit IRC14:50
*** nsingh has joined #openstack-glance14:50
*** nsingh has quit IRC14:51
*** ShilpaD has joined #openstack-glance14:52
*** bhagyashris has joined #openstack-glance14:52
*** pooja-jadhav has joined #openstack-glance14:53
jokke_me say what?14:53
rosmaitajokke_ hello -- need you to look at https://review.openstack.org/#/c/544184/14:54
*** pooja_jadhav has quit IRC14:55
*** niraj_singh has quit IRC14:55
*** alexchadin has joined #openstack-glance15:00
*** alexchadin has quit IRC15:03
jokke_hmm-m15:03
-openstackstatus- NOTICE: Due to a race in stable/queens branch creation and some job removals, Zuul has reported syntax errors for the past hour; if you saw a syntax error reported for "Job tripleo-ci-centos-7-ovb-containers-oooq not defined" you can safely recheck now15:04
jokke_rosmaita: bit of oversight from my end, it seems .... so the status changes15:09
jokke_I did not check how we did it, I assumed the status would have been importing already at the point when the web-dowload plugin is executed15:10
jokke_it looks like we do that change at the very late stage of the whole taskflow15:10
jokke_which is very muh nae good15:11
rosmaitai think you are right though, should probably be 'importing' in the web-download15:12
rosmaitathat means we need to check the allowed image state transitions15:13
*** r-daneel has quit IRC15:14
rosmaitai think this is ok: https://github.com/openstack/glance/blob/master/glance/domain/__init__.py#L10415:15
*** AlexeyAbashkin has quit IRC15:17
*** r-daneel has joined #openstack-glance15:22
jokke_rosmaita: couple of comments in the review15:29
rosmaitathanks15:30
*** alexchadin has joined #openstack-glance15:30
rosmaitajokke_ replied ... take a look and then let's talk15:35
jokke_soo ... by the looks of it we do the status transition way too late15:37
jokke_as that happens in the ImportToStore class' execute15:38
jokke_I think we need to change that15:38
rosmaitalet;s make that a separate bug15:39
rosmaitado it now15:39
rosmaitabut keep it separate15:39
rosmaitaquick question about https://review.openstack.org/#/c/544184/6/glance/async/flows/api_image_import.py line 37415:39
*** links has joined #openstack-glance15:40
rosmaitathe "http" hard coded there15:41
rosmaitaif someone whitelists "ftp", we could be looking at somethihg else there for web-download15:41
rosmaitacouldn't we?15:41
*** AlexeyAbashkin has joined #openstack-glance15:42
*** itlinux has joined #openstack-glance15:50
konanJust a comment, if I don't add image status uploading then while ImportToStore task execution it raises conflict error as status transition from queued to import is not allowed15:52
jokke_ok, yes, good point ... do we actually want to allow anything else than http(s) transports?15:52
jokke_urllib supports all kind of things, but do we want to open that can of worms?15:53
jokke_konan: then we need to fix the allowed transitions15:53
jokke_I thought I did that when we introduced the poc in the first place 'though15:54
rosmaitakonan: should be allowed: https://github.com/openstack/glance/blob/master/glance/domain/__init__.py#L10415:55
konanCould you please confirm, I am away now to see the doctor (once back I can able to check)15:57
*** ykarel is now known as ykarel|away15:57
rosmaitasure, i will try it15:58
rosmaitado we want to make it 'importing' for now, and then jokke_ can put up a patch to move where status changes happen?15:58
openstackgerritErno Kuvaja proposed openstack/glance master: Make the Image status transition early  https://review.openstack.org/54451115:59
rosmaitajokke_ : don't know what to do about the schemes16:00
jokke_^^16:00
*** alexchadin has quit IRC16:02
rosmaitanow i'm getting confused about the order to merge these patches ... should we roll 544511 in with 544184?16:03
jokke_so after 511 184 does not need to make that status transition at all anymore and once it's not there, the merge order does not matter16:04
*** ykarel|away has quit IRC16:05
jokke_you wanted to have it as separate bug/patch so I made it separate16:05
rosmaitajokke_ i am thinking we remove the http(s) restriction and let the black/whitelist take care of it16:10
rosmaitawe could even make the default ['http','https'] for the scheme whitelist16:11
rosmaitaok, so i am going to push a new version of 544184 without the status change, and then pull in 544511 and test locally16:12
*** pcaruana has quit IRC16:13
jokke_rosmaita: sounds good, the http was there just to make sure that the uri even remotely looked like we could process it16:17
rosmaitaok, cool16:18
jokke_rosmaita: that 377-379 ... I need to look how that parameter is supposed to be passed to taskflow16:21
rosmaitayeah, i think maybe you don't have to pass it explicitly at line 383, i think when you declare it available in the flow, it's made available to the following flows by taskflow?16:22
rosmaitai remember having trouble with that at the end of the last cycle, too, though16:23
jokke_https://github.com/openstack/glance/blob/master/glance/async/flows/_internal_plugins/web_download.py#L34 this should set it for the rest of the taskflow16:23
jokke_so we just might need to introduce that variable with none value somewhere for python to handle it until taskflow populates it16:24
jokke_but if that your change works for now leave it16:24
rosmaitayeah, i am thinking file a bug to clean it up later16:24
jokke_I put figuring that out to my todo list16:24
rosmaitayeah16:25
openstackgerritBrian Rosmaita proposed openstack/glance master: Cleanup basic import tasks  https://review.openstack.org/54418416:27
*** belmoreira has quit IRC16:28
konanSo does it work after removing state transition uploading?16:35
rosmaitajokke_ konan : just did a successful test of both glance-direct and web-download16:35
rosmaitakonan yes16:35
konanrosmaita: great16:36
rosmaitajokke_ konan test was done in glance with both 544511 and 544184 applied16:37
jokke_Guys, we're getting there! :)16:38
*** alexchadin has joined #openstack-glance16:40
rosmaitayes!16:40
rosmaitaok, getting back to testing the uri filtering16:40
*** itlinux has quit IRC16:41
konanjokke_: minor change in commit message :(16:42
konanShould we ignore it to save time?16:42
*** e0ne has quit IRC16:43
jokke_oh yeah, typo there ... what ever you think is important16:43
rosmaitai can go either way16:44
*** alexchadin has quit IRC16:44
rosmaitai think it's fine, it's clear what you mean16:44
konanI guess, let's save the time16:44
rosmaitacool16:44
konanWill approve as soon as Jenkins passes16:44
rosmaitaexcellent!16:44
jokke_had it been factual error, I'd be changing it already ;)16:45
jokke_I do hate this keyboard16:45
konanTomorrow, I will try to put some time for migration for postgres16:45
rosmaitame too!16:45
rosmaitaok, how does this sound ... when all these merge in a few hours, i will put up cherry picks to stable/queens16:46
rosmaitaany objection to me ninja-approving them?16:46
konanNo16:46
konanThe only headache is preparing appropriate migration script :(16:47
rosmaitaonce they've all merged to stable/queens, i'll put up a patch for RC-216:47
rosmaitaand then we can do the migration stuff for RC-316:47
rosmaita(and anything else that comes up)16:47
konanNo objection rosmaita if my vote matters16:47
jokke_rosmaita: ping me ... I will likely be awake still unless the gate takes half a day16:47
rosmaitaok, i will ping first16:48
jokke_rosmaita: I do not mind, but looks better if we don't need to ninja16:48
rosmaitai will have some docs changes, but they can be for RC-316:48
rosmaitajokke_ agree, better if we don't have to ninja16:48
konanSo when will be rc-3?16:48
rosmaitamaybe tuesday?16:48
rosmaitai think the final RC has to be ready by thursday16:49
jokke_rosmaita: as per process if you backport I can +2A anyways and vice versa16:49
konanAny way we can discuss that tomorrow16:49
konanIn the meeting16:49
rosmaitayes16:49
rosmaitakonan try to get some sleep! hope you feel better16:49
jokke_konan: what rosmaita just said!16:50
konanrosmaita, jokke_ yes just waiting for Jenkins results to put +2A16:50
jokke_konan: you know, none of us are kids anymore ... can't keep doing 22hr days and think you'll be fine long term :P16:50
konan:P16:51
*** itlinux has joined #openstack-glance16:52
konanjokke_: between, have you opted time for team photo?16:52
jokke_konan: if you +2 what needs to be +2'd we can cross +A with rosmaita once zuul is done ... you don't need to wait hours ... if you are ok with that16:52
jokke_yes, I think I did16:52
konanjokke_: I never thought of that ;)16:53
jokke_14:30 at Tue16:53
konanGreat16:53
konanSigning of now, just drop me a mail if something needs to be taken care during my day time, have a good time ahead16:54
jokke_konan: take care of yourself buddy16:54
konanjokke_: yup, thank you16:55
*** konan has quit IRC16:55
*** rmcall has quit IRC16:58
*** rosmaita has quit IRC17:01
*** rmcall has joined #openstack-glance17:03
*** _alastor__ has joined #openstack-glance17:06
*** AlexeyAbashkin has quit IRC17:07
*** rmcall has quit IRC17:08
*** dtantsur is now known as dtantsur|afk17:09
*** gyee has joined #openstack-glance17:11
*** rosmaita has joined #openstack-glance17:13
*** AlexeyAbashkin has joined #openstack-glance17:15
*** alexchadin has joined #openstack-glance17:16
*** pcaruana has joined #openstack-glance17:17
*** AlexeyAbashkin has quit IRC17:20
*** links has quit IRC17:21
*** alexchadin has quit IRC17:50
rosmaitajokke_ https://review.openstack.org/#/c/544184/ has passed tests if you want to +A it17:50
rosmaitahttps://review.openstack.org/#/c/544105/ also17:51
*** rmcall has joined #openstack-glance17:56
jokke_rosmaita: just did17:57
jokke_ros also 542956 passed tests couple of days ago :P17:58
jokke_rosmaita: so about 544105 ... does that change affect current deployments ... I mean is there any issues if there is mixed values in the db?18:00
rosmaitathere won't be mixed values in the db18:01
rosmaitamysql will always have 0 or 118:01
rosmaitapostgres always t or f18:01
jokke_aha! ... ok cool that makes lots of sense then18:02
rosmaitayeah, i actually tested to make sure18:02
jokke_sqlalchemy just does the translation on the fly when T/F is used but not when 1/0 is used I assume18:02
rosmaitayes, that seems to be what was happening18:03
jokke_gating18:03
rosmaitaabout your uri patch, i thnk the opt help text will need revision, do you want to hit it on a followup patch?18:03
rosmaitaalso, there's a weird situation with the default port for a scheme18:03
rosmaitayou can blacklist 80, but a request to http://whatever.net/path/here will go through18:04
*** hoonetorg has quit IRC18:05
rosmaitabut http://whatever.net:80/path/here will fail18:05
rosmaitai don't know whether that's something to worry about or not18:06
jokke_ohh darn, true ... so we might want to document that beahvior bit better at least18:06
jokke_the problem really is that urllib.parse does not return the default ports18:07
rosmaitaright18:07
rosmaitai will put up a doc patch, i was writing down how this is working18:08
jokke_do you want to put hell of a lot messy logic to that filter function to work around that or should we just document it really clearly that if one wants to block http calls to port 80 they really need to block http scheme not the port18:08
*** mvk_ has quit IRC18:08
rosmaitai'm not sure, you may want to allow http on 8080 but disallow it on 8018:10
rosmaitabut i agree the logic is going to be ugly18:11
jokke_how about we document it for now, being the limitation of the implementation and we do not clutter that specific function18:11
rosmaitai'm cool with that18:11
rosmaitawe do need tests for the util function, though ... i started to spot test, but there is way too much to look at18:12
jokke_if there comes need for something like blocking the default ports and allowing to some other port, we write separate function that pulls us the default ports of all available schemes and crosschecks18:12
rosmaitayeah, that would be a good solution18:12
jokke_I think that filter function is bit difficult to understand as it is already now, it was just honestly the cleanest way I could come up with to implement it18:12
rosmaitaactually the function was easier for me to understand than the help text!18:13
jokke_they do complement eachother ... I'm not great explaining split logic like that18:14
rosmaitai will put up that doc patch right away18:14
rosmaitathe help texts are not easy to write18:15
jokke_it took me quite a while to get those 3 layer nested conditions right :P18:16
*** hoonetorg has joined #openstack-glance18:22
*** alexchadin has joined #openstack-glance18:32
*** openstackgerrit has quit IRC18:33
*** openstackgerrit has joined #openstack-glance18:34
openstackgerritBrian Rosmaita proposed openstack/glance master: Update admin docs for web-download import method  https://review.openstack.org/54459618:34
rosmaitajokke_ ^^18:34
*** alexchadin has quit IRC18:36
jokke_all the c.s pprobably should have continue to +1 as well for clarity18:39
jokke_not sure 'though18:40
jokke_or the b. should have "Otherwise, skip c" rather than "Otherwise, continue to +1"18:41
rosmaitai was wondering about that18:43
rosmaitayeah, probably better to be completely explicit18:44
rosmaitai'll get that after lunch18:44
rosmaitaalso noticed that i have to get the "experimental" stuff out of there, will do in a different patch18:44
jokke_sure ... making comment of one other error in the PS so you have note in there18:44
rosmaitaok, cool, ty18:45
*** e0ne has joined #openstack-glance18:52
*** tesseract has quit IRC18:54
*** alexchadin has joined #openstack-glance19:07
*** harlowja has joined #openstack-glance19:21
*** Jimbagwell has joined #openstack-glance19:34
*** alexchadin has quit IRC19:39
*** alexchadin has joined #openstack-glance20:21
*** alexchadin has quit IRC20:25
rosmaitajokke_ if you are around, i think i found a problem with https://review.openstack.org/#/c/542956/7 (should be  a quick fix, though)20:51
openstackgerritBrian Rosmaita proposed openstack/glance master: Update admin docs for web-download import method  https://review.openstack.org/54459620:59
*** aniketh has quit IRC21:10
*** btully has joined #openstack-glance21:12
*** konan has joined #openstack-glance21:13
*** btully has quit IRC21:17
*** pcaruana has quit IRC21:28
openstackgerritMerged openstack/glance master: Cleanup basic import tasks  https://review.openstack.org/54418421:34
openstackgerritMerged openstack/glance master: Use bool instead of int for boolean filter value  https://review.openstack.org/54410521:34
*** mvk_ has joined #openstack-glance21:38
*** mdbooth has quit IRC21:39
*** rcernin has joined #openstack-glance22:00
*** rmcall has quit IRC22:05
jokke_now I am22:05
jokke_rosmaita: still around?22:09
rosmaitajokke_ yep22:11
rosmaitabad luck on 544511, gate seems kind of slow even though there's not a lot of stuff in it22:12
jokke_as said it got back to normal22:14
jokke_so he port option, yes good catch ... I was actually testing that feature when I was still splitting the urlparse netloc output before I realized that it provides hostname and port ... didn't realize that port was actually integer returned not string22:16
jokke_I mean testing the function22:16
rosmaitaright, i wasn't sure but i checked, it's <type 'int'>22:17
rosmaitacame up when i was writing the doc, was wondering about the string22:17
jokke_yes it is and the behavious ir exactly like you said ,,, it won't match on the list22:17
jokke_is22:17
rosmaitai think the logic looks good on that, i may write some tests later because there's too much to spot check22:19
jokke_just reading about the hostaddresss22:22
rosmaitapretty sure dharini wrote that one22:22
rosmaitatook a long time to merge into oslo.config iirc22:22
jokke_I quess it will be ok to use that instead of string as we block using file:// already by demanding that there is host22:25
rosmaitathat's a good point, though22:27
rosmaitacouldn't you fake it if you had a file like file://openstack.org/whatever.file ?22:28
rosmaitaoh you need file:///22:28
jokke_yup and file:/// gives always empty netloc no hostname nor port22:29
rosmaitacool, glad it's covered22:30
*** threestrands has joined #openstack-glance22:31
*** threestrands has quit IRC22:31
*** threestrands has joined #openstack-glance22:31
jokke_ok, so there is one case I can see the hostaddress not working due to it's too strict value check, but I'm not sure how likely/valid usecase that is22:31
rosmaitajust out of curiosity, what is it?22:33
jokke_nah can't be bothered as that will just fuck it up between ipv6 and host:port anyways22:34
rosmaitaif it comes up, we can always file a bug with oslo.config  :)22:35
rosmaitai can see that the enhancement request for this will be regex matching22:36
jokke_so say the deployment is using numeric hostnames and they rely on default search in dns like mycloud.local ... one could have valid request to something like http://25735/my.img which will resolve for urllib through dns 25735.mycloud.local = 172.25.7.35 .22:36
jokke_but thta such a corner case compared to the benefits the hostaddress would give us22:36
jokke_and I do need to push new patch anyways22:37
rosmaitawell, we can think about it for RC-322:37
rosmaitaor Rocky22:37
rosmaitai will carry over abhishek's +2 to the new PS and +2A it22:38
rosmaitayou can hit the cherry-picks to stable/queens when you start work in the morning22:39
jokke_was there anything else than those 4 list item types?22:39
rosmaitano, that was it, i haven't had time to try to reword the config help text22:40
jokke_feel free to propose follow up patch for those :P22:40
rosmaitawill do22:40
rosmaitagotta go cook dinner, be back in a few hours ... happy valentine's day22:41
jokke_U222:41
openstackgerritErno Kuvaja proposed openstack/glance master: URI filtering for web-download  https://review.openstack.org/54295622:49
*** itlinux has quit IRC22:53
*** edmondsw has quit IRC23:12
*** Jimbagwell has quit IRC23:18
*** konan has quit IRC23:23
*** e0ne has quit IRC23:36

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