Tuesday, 2020-07-21

*** openstack has joined #openstack-glance07:29
*** ChanServ sets mode: +o openstack07:29
*** ralonsoh has joined #openstack-glance07:30
*** rcernin_ has quit IRC07:34
*** rcernin_ has joined #openstack-glance08:16
*** priteau has joined #openstack-glance08:24
*** rcernin_ has quit IRC08:26
openstackgerritRico Lin proposed openstack/glance master: [TEST][DNM] Validate ARM64 Unittests  https://review.opendev.org/74209508:27
nikparasyrgoodmorning. i'm trying to use the Interoperable Image Import to use image conversion and metadata injection. We are on stein. My configs look like: https://pastebin.com/GKYkgAX3 . after reconfiguring glance and restarting i try to import an image using: glance image-create-via-import --disk-format qcow2 --container-format bare --name conversion_test --import-method web-download --uri https://download.cirros-cloud.net/0.3.5/cir08:34
nikparasyrros-0.3.5-x86_64-disk.img but the image is not converted and properties are not added. I can check the task via: glance task-list and glance task-show and its finished in success. The logs also do not show any error.  I can see in logs the taskflow_executor transitions but none of these transitions is  related to image conversion or metadata injection08:34
nikparasyrany idea of what i might be missing? 2 notes: we have ceph backend and also glance runs on a 3-node setup, on the documentation it states that for multinode glance the fs should be shared. this is not the case here. I would still expect to see some errors on the logs etc if this was the reason that the operation doesnt work08:35
*** rcernin_ has joined #openstack-glance08:46
*** baojg has quit IRC08:56
*** baojg has joined #openstack-glance08:57
*** rcernin_ has quit IRC09:07
*** k_mouza has joined #openstack-glance09:21
*** rcernin_ has joined #openstack-glance09:41
openstackgerritAbhishek Kekane proposed openstack/glance master: Fix broken glance-cache-manage utility  https://review.opendev.org/74211509:42
openstackgerritAbhishek Kekane proposed openstack/glance master: Fix broken glance-cache-manage utility  https://review.opendev.org/74211509:44
*** baojg has quit IRC09:52
*** baojg has joined #openstack-glance09:53
*** k_mouza has quit IRC09:53
*** rcernin_ has quit IRC09:55
*** k_mouza has joined #openstack-glance10:01
*** ratailor_ has quit IRC10:10
*** ratailor_ has joined #openstack-glance10:10
*** Liang__ has quit IRC10:26
*** rcernin_ has joined #openstack-glance10:28
*** udesale_ has joined #openstack-glance10:56
*** udesale has quit IRC10:58
*** baojg has quit IRC11:13
*** baojg has joined #openstack-glance11:14
*** ratailor_ has quit IRC11:41
*** baojg has quit IRC11:54
*** baojg has joined #openstack-glance11:54
*** tkajinam has quit IRC11:56
*** amoralej is now known as amoralej|lunch12:09
nikparasyrHello. any idea about this?12:12
nikparasyri'm trying to use the Interoperable Image Import to use image conversion and metadata injection. We are on stein. My configs look like: https://pastebin.com/GKYkgAX3 . after reconfiguring glance and restarting i try to import an image using: glance image-create-via-import --disk-format qcow2 --container-format bare --name conversion_test --import-method web-download --uri https://download.cirros-cloud.net/0.3.5/cirros-0.3.5-x8612:12
nikparasyr_64-disk.img but the image is not converted and properties are not added. I can check the task via: glance task-list and glance task-show and its finished in success. The logs also do not show any error.  I can see in logs the taskflow_executor transitions but none of these transitions is  related to image conversion or metadata injection12:12
nikparasyrany idea of what i might be missing? 2 notes: we have ceph backend and also glance runs on a 3-node setup, on the documentation it states that for multinode glance the fs should be shared. this is not the case here. I would still expect to see some errors on the logs etc if this was the reason that the operation doesnt work12:12
*** k_mouza has quit IRC12:18
*** baojg has quit IRC12:44
*** baojg has joined #openstack-glance12:45
*** rcernin_ has quit IRC12:54
*** amoralej|lunch is now known as amoralej13:21
openstackgerritDan Smith proposed openstack/glance master: WIP: Make glance-api able to do async tasks in WSGI mode  https://review.opendev.org/74206513:34
dansmithabhishekk: ^13:34
dansmithabhishekk: it seems like we've all been going on this assumption that it was impossible to port glance's async stuff to something that will work under uwsgi so we haven't even been challenging it,13:35
dansmithbut unless I'm missing something it's pretty trivial13:35
dansmithabhishekk: that patch is just what I was able to hack up in front of the TV last night, so needs tests and more testing, but it seems to work fine for me13:35
dansmithabhishekk: I assume someone on the glance team ruled this out years ago as a valid option, so if that person is still around maybe we could get them to review to make sure I'm not missing something?13:38
*** baojg has quit IRC13:46
*** baojg has joined #openstack-glance13:47
abhishekkdansmith, apart from rosmaita, jokke and me no one is around from glance for last couple of years13:50
dansmithabhishekk: alright, well, if you could give that a little skim at least, I can start writing tests for it13:51
abhishekkdansmith, I will have a look in some time, in meeting atm13:52
dansmithabhishekk: I think that unless there's some reason not to, we should land this and flip the default back to wsgi mode in devstack13:52
dansmithabhishekk: ack, thanks13:52
abhishekkdansmith, just to FYI apart from this issue glance reloading config files is also not working for uwsgi13:53
abhishekkbut I am not sure anyone is using that feature as me also not tested the same for last 3-4 cycles13:53
dansmithabhishekk: I'm sure that's not a feature someone would choose standalone eventlet over wsgi for :)13:53
abhishekkyeah13:54
jokkedansmith: we looked it at Pike when the wsgi_app.py was introduced and there was hard requirement to eventlet. Like said yesterday, there has been no interest or resources poured into that since13:54
dansmithjokke: what was the hard requirement for eventlet though? where did it come from?13:54
*** m75abrams has quit IRC13:56
jokkeIIRC it was eventlet green pool for the workers13:56
dansmithjokke: for the tasks?13:56
jokkeyeah13:57
dansmithjokke: so last night my first stab at this was literally a two-line change to make that work with native threads13:57
openstackgerritMerged openstack/glance stable/train: Fix admin docs deploying under HTTPD  https://review.opendev.org/74202813:57
dansmithand it seemed to work fine to me13:57
*** m75abrams has joined #openstack-glance13:57
jokkedansmith: ok, sounds promising ... definitely wasn't that easy swap at the time. There was another worker engine available but there was something horribly wrong with that approach. Now mind you in Pike it was all py27 which handled threading etc. very differently14:00
dansmithjokke: okay, I don14:00
dansmithjokke: I don't think that's true as this is all pretty basic stuff, so I'm concerned that I'm missing something14:01
dansmithAFAICT the taskflow stuff doesn't dictate anything about threads, it just needs a threadpool model, which futurist provides for py214:01
abhishekkAs far as I remember matt (who added uwsgi support in glance) has tried to give it a try couple of times and then just left it hanging14:02
dansmithjokke: just to be clear, were you the one the most up on this or was there someone else who is now gone? I remember mtreinish asking me about this in dublin but I never looked at any code and I thought he was just trying to evaluate from the outside14:02
jokkeIs that threading approach you're looking at actually able to spawn the threads out of that uwsgi container or are all of those still stuck in that sync processing line of uwsgi?14:03
dansmithjokke: I dunno what "threads out of the container" means, but yes, I'm spawning native threads, which are in the uwsgi python process14:03
jokkeIt was something related to how the uwsgi container handled threading with GIL that pushed us out of that approach14:03
abhishekkand as we found that most of the stuff like reloading, graceful shutdown, chunked upload is not working so we didn't put efforts in that direction as we were busy in stabilizing import workflow and designing multiple stores support14:03
dansmithjokke: all you have to do is tell uwsgi to initialize the GIL (i.e. enable_threading=True) which devstack does by default14:04
dansmithabhishekk: yeah I just think everyone was told that it was massively difficult or impossible for some reason, and it seems to be very much not hard :)14:04
abhishekkafter all it looks like what you are saying :D14:05
jokkedansmith: what we might have missed at the time could have been thread pooling from futures14:05
dansmithjokke: maybe, but that's a pretty trivial thing to implement too14:06
dansmithI mean, once you understand where the gaps are of course14:06
jokkeyeah ... we had few people looking options at the time and all of us came to same conclusion that the threaded workers would not have worked within the uwsgi container and with all the other issues popping up we gave up at that point14:08
jokkebut like said it's been couple of years and no-one been invested enough to work it out14:08
dansmithI think that there's clearly a breakdown in communication here, as this has left a bunch of other things in the community hanging, like devstack cleaning up a bunch of stuff, and of course, your lack of testability of all the import stuff. I think everyone believed that you guys had ruled this out as physically not possible,14:09
dansmithso it's a bit unfortunate14:09
dansmithI know our own product even deploys glance differently than, say, nova because of the eventlet requirement14:09
jokkeWell we've been ever shrinking team and we have working deployment model so it was clear prioritization for us14:10
dansmithso, one thing we probably want to figure out is how to specify these thread pool sizes,14:10
dansmithin eventlet you can have a pool of a billion threads and it doesn't really change much because it's all one "thread" of execution14:11
dansmithbut you don't want people to, at least by default, spin up a billion native threads14:11
dansmithI defaulted the size differently for those two models,14:11
jokkeyeah, I think we have 1000 greenthreads in the eventlet pool14:11
dansmithbut we probably want to make that a config option14:11
dansmith1024 yeah14:11
jokkeand that's for each worker14:11
dansmithright and so is this14:11
dansmithalso,14:11
dansmithwe hand taskflow a threadpool for each task,14:12
dansmithwhich has a separate config14:12
dansmith(which should be separate)14:12
jokkewell honestly we don't even need to do that as we use only linear flows14:13
dansmithanyway, if we don't make it configurable, then someone with 128 cores will get 128*16 threads right now, which may be too much14:13
dansmithjokke: yeah, but it doesn't matter, it's fine14:13
dansmithit's the other pool that matters14:13
jokkehmm-m we could 'though probably increase the multi-store import performance quite a bit if we handed those tasks to a threadpool to run parallel14:13
jokkewell we don't default workers to core count anymore14:14
dansmithmaybe, or maybe you'd just kill the outbound network such that they all take a long time14:14
dansmithjokke: I know, but my default is 16 and that'll be 16 times the number of wsgi workers they have14:14
jokkeUnless you specifically set it zero, we default to 4 or 8 or something reasonable like that14:14
jokkeyeah14:14
dansmithwsgi parallelism is where you get your ability to handle lots of small requests in parallel, so that needs to be reasonably wide,14:15
dansmithyou just don't want to inflate each of those to a bunch of threads waiting to do stuff over time14:15
dansmithanyway, we don't have to solve it now, but I think it should be tunable14:15
jokkeAnd just personally after the initial poke I haven't had too much interest to dig into it either. Can't understand why anyone would want to have Apache overhead on their glance processes even without tasks14:18
dansmithas far as I can tell, most everyone wants that :)14:19
jokkedansmith: yeah, but no offence to anyone most of people who wants that don't know why but the reason is "because someone said APIs would be better ran under 'proper' web server"14:21
jokkeit's not like there would be actual benefit of it14:21
dansmithI think there's plenty of actual benefit, but I understand your point14:22
jokkebut it's not like Apache would be the worst offender in bloatware world either14:22
dansmithnor apache being the only one to run the wsgi app inside14:23
jokkethat14:23
abhishekkdansmith looks like some problem in devstack if I set GLANCE_STANDALONE=False14:23
jokkebut yet, if you ask what people actually run them under it's either Apache or Nginx14:23
dansmithabhishekk: yeah, you have to enable tls proxy I think14:23
abhishekkit adds something like below in glance-api.conf14:24
abhishekk[enabled_import_methods]14:24
abhishekk[]=14:24
dansmithabhishekk: right14:24
abhishekkit should be added under default section like14:24
dansmithabhishekk: because in standalone mode right now, you can't have any import methods enabled or it will expose things that the tempest test will try to use and fail14:25
abhishekkenabled_import_methods = []14:25
dansmithabhishekk: you need this: https://review.opendev.org/#/c/742047/14:25
abhishekkahh14:26
abhishekkack14:26
dansmithabhishekk: because I suck.. you should fire me :)14:26
abhishekkno worries :D14:26
dansmithbut I think you still have to enable tls-proxy or glance starts on the wrong port14:26
abhishekkack14:27
dansmithI still don't have all of that right14:27
dansmithit would be much easier if everything was just wsgi :)14:27
jokkedansmith: also what lots of people don't think of is that apart from tight cpeh integration between Glance, Cinder and Nova majority of Glance processing time goes streaming data, not for the small quick API calls14:27
dansmithjokke: yep, which is probably why a full worker delegation model makes more sense for offloading those things14:32
dansmiththe thing I really want, is for glance to be deployable in a sane way in CI so that tests can be written, which isn't the case right now14:33
dansmithwhich is scary because with this threading thing, I don't have a big batch of harsh import tests I can run against it to make sure it holds up14:33
dansmithso that's why I did the devstack work to make standalone mode more doable, and why I think ultimately making wsgi mode support import is the right thing if most people are going to deploy that way anyway14:33
dansmithso we can run tests against the deployment mechanism that people are using14:34
dansmithI'll leave the job of convincing the world to use the eventlet mode to you :)14:34
*** Luzi has quit IRC14:34
dansmithI've done my fair share of defending eventlet in nova over the "bah, eventlet isn't shiny and new enough, let's rip it out!" arguments, so I feel your pain14:35
jokkeyeah, so like mentioned it hasn't been supported as the service doesn't work properly (the fact that you can start glance-api without it enforcing at least one of the import methods was concious decision that we left undocumented as defcore demand was at least one needs to be discoverable for user) but we wanted to keep the flexibility to not have them for example internal, non-public facing nodes14:40
jokkeused purely by Cinder and Nova for exampe14:40
jokkeif the service works properly I don't care how people runs it. It's like this container madness that is in power atm. Makes no sense what so ever, but if people who don't know better insists, it's up to them ;P14:41
jokkeAs long as it's something we know it should work, I'm fine with that14:42
jokkeThat said I'm also more than happy to leave any apache/<inser your webserver here> or docker issues being the responsibility of that deployer as long as the issue is not in our code :P14:43
*** k_mouza has joined #openstack-glance14:45
*** Luzi has joined #openstack-glance14:48
*** Luzi has quit IRC14:50
*** rcernin_ has joined #openstack-glance14:52
openstackgerritDan Smith proposed openstack/glance master: Make our tempest job use import, standalone, and inject_metadata  https://review.opendev.org/74127614:56
dansmithabhishekk: ^14:56
*** m75abrams has quit IRC14:57
*** rcernin_ has quit IRC14:57
abhishekkdansmith, thank you, something went wrong14:59
dansmithah crap14:59
openstackgerritDan Smith proposed openstack/glance master: Make our tempest job use import, standalone, and inject_metadata  https://review.opendev.org/74127614:59
dansmiththere14:59
abhishekkcool15:00
dansmither15:00
dansmithjesus15:01
dansmithgate too15:01
openstackgerritDan Smith proposed openstack/glance master: Make our tempest job use import, standalone, and inject_metadata  https://review.opendev.org/74127615:01
dansmithcripes15:01
abhishekk:D15:01
dansmith_actually_ running now :)15:01
abhishekkyeah :D15:02
dansmithso I added a job to the wsgi patch to make it run in wsgi mode too, and hopefully enable import methods15:03
dansmithbut I think we need to end up with a wsgi and non-wsgi job, both using import15:03
dansmithso maybe whatever is not the default in devstack can run in this other job defined here, with metadata injection enabled15:04
abhishekkyes15:04
abhishekkalso I applied your async uwsgi patch in my fresh env and its working, need to perform more tests though15:07
abhishekkdansmith, ^^15:07
dansmithabhishekk: excellent15:08
abhishekkwill have a look again after dinner15:09
dansmithabhishekk: what would be great is if we could build up some tests in _tempest_ to validate all the things you're going to try by hand15:09
dansmithso we can repeatably run those against both solutions15:10
abhishekkdansmith, ack15:10
abhishekkI am not sure how we can test web-download in tempest though15:10
knikollajokke: are you ok with reverting the wsgi doc change for now while we talk and investigate this more?15:11
* abhishekk dinner break, back in 45 mins15:11
dansmithabhishekk: add a conf knob to tempest with a URL, and if it's set, use that15:12
dansmithabhishekk: I'm sure gmann can help us figure out the best way15:12
abhishekkdansmith, ack, will look into it once back15:13
*** baojg has quit IRC15:20
*** baojg has joined #openstack-glance15:21
gmannabhishekk: dansmith happy to help,  web-download can wotrk with config as you mentioned and discover-able from info/import API.15:25
dansmithgmann: sweet thanks15:26
jokkeknikolla: we can do it if we get there15:40
*** gyee has joined #openstack-glance15:41
knikollajokke: but i don't see it as productive to advertise that we're not going to support it if we're working to support it.15:43
dansmithit also concerns me that it seems to retroactively deprecate existing deployments15:44
knikolladocs are targeted to people who otherwise may not be aware of the internal development within a team.15:44
jokkedansmith: no, what happened like I said we never did, but the wording of the warning and the dock was conflicting and confusing giving impression that after queens we would. Thus after actually reading the body it was pretty obvious that it needed to be corrected15:46
jokkeso if we get there within this cycle, I'm more than happy to revert it from Victoria, if we get there in W we change it there. But I don't want to give the impression that we do indeed support it before we are in a state we can15:47
dansmithI totally disagree that an operator who read that original doc as a blessing for wsgi mode will see your change as anything other than a retroactive deprecation of what they were told :)15:47
jokkedansmith: you just proved my point ;)15:48
knikollajokke: not supporting something entirely is different from discouraging it with caveats.15:48
jokkethe operator who wanted to read it as blessing of supported configuration, got wrong message which reinforces the reason to fix it15:49
dansmithjokke: so by that logic, would you approve backporting the deletion of the file? Because having it in tree conveys support, but it's not supported, so we should remove it and if they want to keep running that way, they can just find it in git and use it?15:53
dansmithI'm not suggesting that of course, I'm just saying I think the doc change is equally as nuclear, IMHO15:53
knikollajokke, abhishekk: we're planning on organizing a meeting with the tc and the glance team. would the tc office hours this thursday work? http://eavesdrop.openstack.org/#Technical_Committee_Office_hours15:53
jokkethat's right after the glance weekly, fine by me15:54
jokkedansmith: the file being there has no relation to being supported or not. It was experimental at the time we got stuck with due to devstack. There is no reason to do it and knowing people using it, no I would not allow backporting it's removal for many reasons. The fact that we just corrected the docs that clearly gave confusing message of experiment that never worked on supportable level needed15:58
jokketo be fixed15:58
*** udesale_ has quit IRC15:59
dansmithjokke: the file doesn't log an experimental warning that I can see, nor do the docs, so I think everyone would pretty much assume it's usable16:00
dansmithso it seems the same to me16:00
dansmithespecially when things like OSA deploy in wsgi mode, AFAIK16:01
dansmithanyway, it's your call, not mine, I'm just opining that I don't think that's a reasonable thing to backport.. that's all :)16:02
jokkedansmith: That was their very own decision. When they were going that way, we told them very clearly that it does not have community support and the response was "we don't care, we're doing it anyways"16:02
jokkeso in this discussion I'm not taking OSA as contributor for reasoning either way ;)16:03
dansmiththat's cool, I'm just saying I think a lot of operators won't see it that way. I understand that it being against advice of the glance team makes it murky.16:04
*** k_mouza has quit IRC16:04
*** k_mouza has joined #openstack-glance16:05
jokkedansmith: this has been fight with no winners from the very beginning. And I do agree, we as community can blame who ever we want and waste as much time as we want but the real damage is to the ops who unfortunately took the ill advice16:07
dansmithjust curious, how many people complain about things not working under wsgi? I think that it's entirely likely that a lot of them don't see the downside, if they're not leveraging import for example16:07
knikollawe're all winners if we improve the process thanks to what we learn from this with regard to tc-teams communication16:08
dansmithknikolla: if you say "we're all winners" one more time I'm going to throw up in my mouth :P16:08
knikollahaha, noted16:09
knikollahowever that is the outlook i usually have with regards to seeing what can be improved16:09
dansmith:)16:09
knikollai'm like: oooo, we found a flaw, yay16:09
dansmithabhishekk: I also finally got devstack redeployed with glance in eventlet mode and my changes don't seem to have broken anything in that model either16:12
abhishekksounds promising16:12
dansmithabhishekk: I'm kinda surprised that none of those changes caused any unit tests to fail, but I'm going to start working on some for this16:14
abhishekkdansmith, looks like most of the part related to task_executor is mocked16:15
jokkedansmith: to us not that many. TBH majority of the communication people having issues have been osc anyways and fixed by telling to use glanceclient instead. On the same note all the deployments I've dealt with are running glance with eventlet. I know mnaser runs it in uwsgi and just tells his customers that most of the new features past 2-3 years are not available so that filters lots of16:16
dansmithabhishekk: mocked but not validated, since I've changed a lot of what gets called and returned16:16
jokkepotential out. Their benefit is also that osc has not had feature parity ever so if you push your users to use osc, you won't know that the cloud is broken either16:16
dansmithjokke: well, those features aren't tested, so I'd be hesitant myself, but... yep, fair enough :)16:16
*** k_mouza has quit IRC16:20
jokkedansmith: in tempest16:20
dansmithjokke: are they tested upstream anywhere else?16:20
jokkewe have some unit and functional test coverage (our functional tests actually starts the api for the calls so they execute against actual current service)16:21
dansmithgiven the number of things I found in the first hour of trying to use it, along with the number of things I can change under the hood without breaking tests, that doesn't give me a lot of confidence16:22
dansmithbut that said,16:22
dansmithmy focus really is improving from here and that's all16:22
jokkethat's what broke our gate over the weekend ... the service didn't start in our functional pipes16:22
jokkedansmith: we're very aware16:22
dansmithI definitely don't want to keep arguing about this and damage any realationship that's going to prevent me from helping move it forward, so let's just roll okay?16:23
jokkedansmith: why do you think we've been trying to fight to get the devstack deploy the service correctly for past almost 3 years16:23
jokke;)16:23
dansmithnot taking that bait :)16:23
jokke:P16:26
*** priteau has quit IRC16:28
*** k_mouza has joined #openstack-glance16:28
openstackgerritMerged openstack/glance master: Remove deprecated glance-replicator options  https://review.opendev.org/74132116:29
*** ralonsoh_ has joined #openstack-glance16:41
*** ralonsoh has quit IRC16:43
*** k_mouza has quit IRC16:45
*** priteau has joined #openstack-glance17:00
*** amoralej is now known as amoralej|off17:05
abhishekkknikolla, hey17:05
abhishekksorry, just saw your message about Thursday17:06
abhishekkI am available between 1500 to 1530 hours on Thursday17:06
knikollaabhishekk: cool, i think that's when i proposed the meeting for17:07
abhishekkif it is for 30 minutes then great, I will be there17:08
*** nikparasyr has quit IRC17:09
abhishekkdansmith, gmann I am not familiar with conf knob, but looks like setting url in tempest.conf and use it in test?17:12
gmannabhishekk: yeah, I will write test on top of https://review.opendev.org/#/c/741425/17:12
abhishekkcool17:13
*** ajitha has joined #openstack-glance17:16
abhishekkdansmith, conversion plugin is failing with uwsgi17:16
ajithaHi all, We are running a third party CI. We are using py3.6 and Ubuntu18.04.. From yesterday, devstack is getting failed. Please find the logs. https://pastebin.com/zXZQm9D117:16
abhishekkdansmith, http://paste.openstack.org/show/796182/17:17
ajithaError is  g-api did not start17:17
dansmithabhishekk: I dunno what that is specifically, but obviously this is the problem: unable to load configuration from oslo_concurrency.prlimit17:18
jokkeajitha: gmann and dansmith are on it iiuc. I'm sure they have it all fixed in no time17:18
dansmithI'm guessing because it's overriding subprocess and re-spawning with uwsgi, but that python module isn't loadable?17:18
abhishekkdansmith, need to look into it17:19
dansmithajitha: pastebin your devstack local.conf or localrc17:19
dansmithabhishekk: can you import that module in a python shell?17:19
abhishekklet me check17:20
*** priteau has quit IRC17:21
abhishekkyes i can17:21
dansmithabhishekk: okay I think that's what uwsgi is trying to do with the -m ...17:23
abhishekklikely17:25
dansmithoh actually maybe not17:25
dansmithgmann: do you know anything about that?17:25
dansmithI'm guessing nothing else needs to spawn subprocesses from their API, so maybe this hasn't been seen before17:26
ajithadansmith: sure.  https://pastebin.com/Ga8j3ye117:26
ajithafor some reason we are using both localrc and local.conf..17:26
dansmithajitha: try setting GLANCE_STANDALONE=False first to see if that gets you going17:27
ajithasure17:28
dansmithajitha: I think that it's because you're not running tls-proxy and I still haven't fixed the hole where tls-proxy is not enabled, but glance is standalone17:28
ajithait was running till Friday17:28
gmanndansmith: ajitha  for GLANCE_STANDALONE=False - this is still note merged https://review.opendev.org/#/c/742047/117:28
gmannnot merged17:28
dansmithoh yeah that too17:29
dansmithajitha: yeah I've been breaking things :/17:29
gmannwith default i think it is working fine in upstream, trying to see in ajitha logs whats wrong17:29
dansmithabhishekk: so I actually think that might be a bug in oslo.processutils17:30
ajithadansmith: ok17:30
ajithagmann: Thanks17:30
dansmithabhishekk: I bet it's trying to exec the python interpreter, basically sys.argv[0], which is uwsgi for us17:30
ajithadansmith: GLANCE_STANDALONE=False. will this work if its not merged17:31
dansmithajitha: no, you need the patch gmann mentioned also17:31
dansmithajitha: alternatively, you can "enable_service tls-proxy"17:31
ajithaok will try that17:32
abhishekkdansmith, I ran into another problem in another env (not related to glance, trying to analyze that as it is important for me)17:33
*** ralonsoh_ has quit IRC17:33
dansmithabhishekk: ack, poking in -oslo right now17:35
gmannajitha: dansmith rechecked on no-tls proxy job also- https://review.opendev.org/#/c/741807/217:35
abhishekkdansmith, ack17:35
*** alistarle has joined #openstack-glance17:39
dansmithabhishekk: in image_conversion.py, try nuking the prlimit= param to exec17:39
*** ralonsoh has joined #openstack-glance17:41
*** alistarle has quit IRC17:44
abhishekkdansmith, ack17:46
*** alistarle has joined #openstack-glance17:46
dansmithabhishekk: if that works, we'll have to either not use prlimit, or pass the interpreter name to that exec call when we're in uwsgi,17:46
dansmithbut that shouldn't be hard17:46
abhishekkdansmith, taking some time17:54
abhishekkstill working on other issue17:54
abhishekkcurrent prlimit is something like this17:55
abhishekkprlimit=utils.QEMU_IMG_PROC_LIMITS17:56
abhishekkQEMU_IMG_PROC_LIMITS = putils.ProcessLimits(cpu_time=2,17:56
abhishekk                                            address_space=1 * units.Gi)17:56
abhishekkthis is current prlimit17:56
dansmithabhishekk: yeah, just remove prlimit= entirely as a test17:57
abhishekkconversion worked but some thing went wrong at the end18:00
openstackgerritDan Smith proposed openstack/glance master: Make glance-api able to do async tasks in WSGI mode  https://review.opendev.org/74206518:01
dansmithabhishekk: with tests, fixes for functional ^18:01
dansmithabhishekk: presumably this is no more broken today where nothing even starts, so we can iterate on things like this processutils thing, right?18:01
abhishekkdansmith, ack18:02
dansmithabhishekk: I'm more than happy to refuse to start wsgi_app.py with image_conversion enabled until we do, of course :)18:02
abhishekkdansmith, I am using swift store and got this error while uploading file around 1gb18:02
abhishekkhttps://etherpad.opendev.org/p/glance-error18:05
abhishekkneed to check without conversion18:05
abhishekkworking well without conversion18:07
abhishekkmeans either swift has problem while uploading raw image or something is wrong with uwsgi18:07
*** ralonsoh has quit IRC18:08
dansmithabhishekk: gosh that sure looks like a swift thing, but I don't know miuch18:10
dansmithabhishekk: does glance_store have eventlet code in it?18:10
dansmithI don't really even know what glance_store is18:10
dansmithoh you're exec'ing something18:11
dansmithso maybe that's just failing and the actual problem is hidden by this re-raise?18:11
timburkeabhishekk, got swift proxy logs? it's not clear to me what the error is that led to it wanting to retry (which is probably a problem i ought to fix in swiftclient...)18:11
abhishekktimburke, not at the moment18:12
abhishekkI am trying to many things at a time18:12
timburkeoh! it's probably the `Jul 21 17:58:55 konan-swift devstack@g-api.service[17934]: INFO swiftclient [-] RESP STATUS: 503 Service Unavailable`18:13
timburkeif you've still got access to those logs, i'd go grepping for tx3f4007f67a7d469c9a466-005f172cde (when you get a chance, of course)18:14
*** alistarle has quit IRC18:14
abhishekktimburke, http://paste.openstack.org/show/796188/18:18
abhishekkthis is what I can see in s-proxy18:18
dansmithtoken timeout?18:18
abhishekki guess so18:18
dansmithor maybe the broken pipe18:19
dansmithnot sure if that's from the glance side or the swift side18:19
* abhishekk kind off lost track what exactly I was doing initially :P 18:20
timburkeno, not a token timeout -- proxy <-> backend connections are unauthenticated. object-server died?18:20
dansmithabhishekk: this is why you should be writing a tempest test so that we can re-try it :D18:21
abhishekk:D18:21
timburkewhatcha got in s-object?18:22
abhishekklet me check18:24
dansmithtimburke: in case the context isn't clear, we're trying to get glance to run under uwsgi with native threads instead of eventlet, so if there's anything about this that smells like uwsgi killing glance in the middle of a long transfer.... just keep that in mind18:26
abhishekkJul 21 18:26:51 konan-swift object-server[9862]: ERROR __call__ error with PUT /sdb1/356/AUTH_457f85b795c14d5ebc851758667b1544/glance/9982064d-8cd0-4156-a201-6d91fe3145e5-00020 : [Errno 28] No space left on device (txn: txbfafdb133f9349288e88a-005f17336a)18:27
abhishekkJul 21 18:26:51 konan-swift swif18:27
dansmithlol18:27
dansmithnevermind :D18:27
abhishekkdansmith, but I am able to upload qcow2 image18:29
dansmithabhishekk: right but with conversion it probably becomes much larger right?18:29
dansmithqemu-img info foo.img18:29
dansmithcheck "virtual size"18:30
dansmiththat's how big it will be when converted to raw18:30
abhishekkack18:30
dansmithso for example, the cirros image is 12M on disk, but expands to 44M as raw18:31
timburkeobject-server still should've *responded* :-( time for me to redo my dev env with some tiny disks...18:31
abhishekk8 GB18:31
abhishekk:P18:31
dansmithabhishekk: from a 1GB qcow right?18:32
abhishekkyes18:32
dansmithwhat is the size of the backing store for swift18:32
dansmith?18:32
abhishekk6 GB18:32
dansmith8GB won't fit into 6GB :P18:32
abhishekkmakes sense18:32
dansmithnote that glance also needs space for the original plus the new one, so 9GB minimum18:33
abhishekkI have total 20 gb of free18:33
dansmithokay18:33
abhishekkwill continue tomorrow18:34
dansmithabhishekk: okay so aside from that and the prlimit thing we need to figure out, sounds promising right?18:34
abhishekkyes, I still need to test copy-image and multiple stores18:34
abhishekkbut likely it looks more promising18:34
dansmithI've tested copy-image with multiple stores, but yeah, by all means18:34
dansmithand if we get the tempest test and job pointed at this change we'll get that in CI too18:34
abhishekkI need to test some combinations :D18:35
dansmiths/test/write some tests for/18:35
abhishekkyeah18:35
dansmithanyway, catch you tomorrow :)18:35
abhishekkAs you have tested copy means I assume you are using rbd?18:36
dansmithyeah18:36
abhishekkcool18:36
dansmithI tried to get copy working between two file repos briefly, but it wasn't actually writing the image18:36
abhishekkwhich means I need to run some tests against cinder store as well18:36
dansmithyeah18:36
dansmiths/run/write/ :)18:36
*** ajitha has quit IRC18:37
abhishekk:D18:37
dansmithit sounds like we need to come up with several new jobs, so that these things are being tested against those services in CI right?18:37
dansmithlet's make that list so we can work on that once this all settles18:37
abhishekk+118:37
* abhishekk signing out for the day18:41
dansmitho/18:43
abhishekko/~18:43
*** ajitha has joined #openstack-glance18:54
*** ajitha has quit IRC19:26
*** ajitha has joined #openstack-glance19:46
ajithadansmith: http://paste.openstack.org/show/796189/19:52
ajithaand in glance-api.conf [enabled_import_methods]19:59
ajithagmann19:59
gmannajitha: we need to wait for https://review.opendev.org/#/c/742047/20:00
ajithaok. Above log is when i enable GLANCE_STANDALONE=False. dansmith  gmann20:02
gmannyes20:02
*** ajitha has quit IRC20:07
dansmithgmann: what a mess I made :)20:20
dansmithzuul restart didn't help20:20
gmannit is taking much more time now.20:21
gmanndansmith: 1 comment on import job i think you want to run single job in gate right? - https://review.opendev.org/#/c/741276/9/.zuul.yaml@26022:04
dansmithgmann: I know it doesn't replace it.. I think what we will do is make one of those jobs be default and the other will be the opposite (either wsgi or standalone) with the injection and post-check22:05
dansmithgmann: they also need jobs to test things like cinder store and swift store, etc22:06
dansmithso I figure we'll sprinkle some of those things between them22:06
gmannok,that make sense but you removed the irrelevant-files things for original job22:10
dansmithgmann: I was just doing that to see if you would notice22:10
gmann:)22:13
dansmithgmann: you want me to remove the depends-on to the job for the tempest patch why? so we can land the tempest test sooner than the job might?22:14
gmanndansmith: yes, as test run fin with current devstack defaults22:15
dansmithokay22:15
dansmithgmann: okay tempest patch updates22:16
dansmith*updated22:16
gmannfor copy-image testing, is there way to know image is in what all store ? or store things is not user knowing things via API ?22:16
gmannthans22:16
gmannthanks22:16
dansmithgmann: yeah, you've seen my nova job right?22:16
gmannyeah22:16
dansmiththere's a stores param on the image when multi-store is enabled,22:16
dansmithwhich has a list of store names22:16
dansmithI think we might be able to poke the api to see a list of stores and use that to decide if we can run a copy-image test22:17
gmanni am thinking how to add tempest tests for that which need to verify the images in store via API22:17
dansmithyeah, should be possible22:17
gmannrun we can do /info/strore API will return the available store22:17
openstackgerritDan Smith proposed openstack/glance master: Make our tempest job use import, standalone, and inject_metadata  https://review.opendev.org/74127622:18
dansmithgmann: ^22:19
dansmithif that looks better maybe smcginnis will re-+W it for us22:19
gmannthanks22:19
gmanni did not find if store info in return with images dict in any API22:20
dansmithgmann: https://pastebin.com/M8tAdyt522:21
dansmithgmann: L15$, stores=cheap22:21
dansmithbtw, I _hate_ how osc crams all the image properties into one line :(22:21
*** rcernin_ has joined #openstack-glance22:21
*** rcernin_ has quit IRC22:22
gmannohk in properties, i was referring the api-ref and did not find, thanks22:22
dansmithcool22:23
dansmithsmcginnis: thanks :)22:27
smcginnisAnytime.22:27
*** rcernin has joined #openstack-glance22:34
dansmithgmann: is it possible to disable a job from the template and replace it with a modification? i.e. what you thought I was trying to do?22:54
dansmithI guess I assumed we shouldn't do that so we're not losing coverage due to some configuration we're changing22:55
*** tkajinam has joined #openstack-glance22:55
gmanndansmith: no afaik. we need to remove template itself to replace the original integration jobs with modified one22:57
dansmithack, I figured22:57
dansmithprobably not good to do that in case we change something that makes us land things that would break other people running the template22:58
gmannyeah22:58
dansmithjust thinking about how to avoid adding a bunch of jobs,22:58
dansmithgiven the gate is so strained22:58
gmannas you mentioned early, we can make new job as multi-store, import-worfklow and all those need to run with glance standalone.22:59
dansmithyeah, maybe we should just do that with my nova ceph multistore job22:59
dansmithturn on EVERYTHING ;)22:59
gmannyeah22:59
openstackgerritDan Smith proposed openstack/glance master: Make our import-workflow job also convert images to raw  https://review.opendev.org/74230923:06
dansmithI will squash a bunch of this together once things get landed, but this ^ turns on image conversion also, which we know will not work on wsgi yet because of the subprocess stuff23:06
dansmithbut that's the first thing we know of that will actually differ23:06
gmann+123:13
openstackgerritDan Smith proposed openstack/glance master: Make image conversion use a proper python interpreter for prlimit  https://review.opendev.org/74231423:30

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!