*** sigmavirus24_awa is now known as sigmavirus24 | 01:00 | |
*** sigmavirus24 has quit IRC | 03:48 | |
*** sigmavirus24 has joined #openstack-searchlight | 03:52 | |
*** sigmavirus24 is now known as sigmavirus24_awa | 03:59 | |
*** lakshmiS has joined #openstack-searchlight | 07:19 | |
openstackgerrit | Lakshmi N Sampath proposed openstack/searchlight: Fix for updated/missing fields in python glance client for image members https://review.openstack.org/219168 | 07:51 |
---|---|---|
openstackgerrit | Lakshmi N Sampath proposed openstack/searchlight: WIP - Functional Tests for Searchlight https://review.openstack.org/217580 | 08:02 |
*** lakshmiS has quit IRC | 10:11 | |
*** sballe has joined #openstack-searchlight | 12:14 | |
*** sigmavirus24_awa is now known as sigmavirus24 | 12:51 | |
openstackgerrit | Endre Karlson proposed openstack/searchlight: Optimize client handling https://review.openstack.org/219271 | 13:16 |
ekarlso | sigmavirus24: / sjmc7 / TravT ^ | 13:16 |
*** lakshmiS has joined #openstack-searchlight | 13:20 | |
ekarlso | wtf.. | 13:20 |
ekarlso | that was not supposed to happen :| | 13:20 |
openstackgerrit | Endre Karlson proposed openstack/searchlight: Refactor clients handling to use Sessions. https://review.openstack.org/219271 | 13:24 |
ekarlso | there u go | 13:24 |
*** sigmavirus24 is now known as sigmavirus24_awa | 13:24 | |
*** sigmavirus24_awa is now known as sigmavirus24 | 13:39 | |
ekarlso | TravT: https://review.openstack.org/#/c/199099/13/searchlight/elasticsearch/plugins/designate/notification_handlers.py < how to test your comment there ? | 13:51 |
ekarlso | my ES skilsl are a tad low | 13:51 |
sjmc7 | ekarlso i haven't verified the issue Travis was seeing yet, but looking at the code i think i see why it's happening. in any case we're recommending using engine.index | 14:29 |
sjmc7 | the body should just be the doc though, not {"doc": payload} like we're currently doing - i think that's what's causing the bug | 14:29 |
sjmc7 | doc_as_upsert allows operations equivalent to SQL's UPDATE, but it doesn't remove attributes that are no longer present | 14:30 |
TravT | sjmc7: i can try that out. | 14:30 |
sjmc7 | ok. i missed it when i looked at it the other day. took two shots of coffee to take a fresh look | 14:31 |
sjmc7 | if you re-run your test, take a careful look at the documents in e-s | 14:31 |
TravT | i'm actually awake today myself. | 14:31 |
TravT | although, i need breakfast | 14:31 |
sjmc7 | it may not fully explain it though, because i would have thought the original would still be there | 14:31 |
*** TravT_ has joined #openstack-searchlight | 14:48 | |
*** TravT has quit IRC | 14:50 | |
ekarlso | would you guys mind testing if that's the case sjmc7 / TravT_ ? | 15:05 |
TravT_ | ekarlso, i'm looking at it now, but i'm running into some auth problems. trying to figure out what's going on there. | 15:05 |
sjmc7 | ekarlso - if you call engine.index with body=payload, it will work | 15:05 |
TravT_ | sjmc7: oddly getting this error: 2015-09-01 09:00:31.704 ERROR searchlight.elasticsearch.plugins.nova.servers_notification_handler [-] Invalid user / password (Disable debug mode to suppress these details.) (HTTP 401) | 15:06 |
sjmc7 | service credentials ? | 15:06 |
TravT_ | those appear to be correct | 15:06 |
TravT_ | when i manually hit nova api, it works. | 15:07 |
ekarlso | TravT_: I think I know why actually | 15:07 |
ekarlso | searchlight user is missing admin on service tenant I believe | 15:07 |
*** TravT_ is now known as TravT | 15:07 | |
TravT | ekarlso, we added that in a follow on patch. | 15:07 |
TravT | but let me check | 15:07 |
ekarlso | TravT: kk kewl | 15:08 |
TravT | i can manually hit nova API and get the server using searchlight user | 15:08 |
sjmc7 | "invalid user password" is pretty specifuc | 15:08 |
TravT | let me see if glance gives the same error | 15:08 |
TravT | no, worked fine. | 15:09 |
TravT | well, i'll modify glance plugin for payload instead of nova | 15:10 |
sjmc7 | ok | 15:10 |
ekarlso | mmms | 15:12 |
ekarlso | how you propose to split the plugin vs notification handler ? | 15:13 |
TravT | ekarlso, sorry, not following | 15:15 |
TravT | sjmc7: making that switch to payload fixed what I was seeing in glance. | 15:15 |
TravT | guys, i gotta jump on a call | 15:15 |
TravT | just realized i'm 15 minutes late | 15:15 |
ekarlso | TravT: sjmc7 has a note in the handlers to move the get topic call down into the ntoification handlers | 15:16 |
ekarlso | vs the plugin | 15:16 |
TravT | ekarlso: do you have a link to that comment? | 15:20 |
ekarlso | https://github.com/openstack/searchlight/blob/master/searchlight/elasticsearch/plugins/glance/images.py#L133 | 15:22 |
sjmc7 | ah, yes. i think for now leave things as they are; we can change them wholesale (I'll file a bug for it) | 15:23 |
sjmc7 | it won't affect functionalituy | 15:23 |
* TravT multitasking (in 1:1 phone call) | 15:24 | |
TravT | ekarlso, can you go ahead and make that change to the payload in the designate plugin? | 15:24 |
david-lyle | TravT: the other end of that call must feel special | 15:24 |
david-lyle | :D | 15:25 |
TravT | lol | 15:25 |
TravT | lakshmiS: nova delete works for me | 15:25 |
ekarlso | sjmc7: u mean for M1? :p | 15:25 |
TravT | were you able to go back through any of those tests? | 15:25 |
sjmc7 | possibly. it's not a functional bug, just structural | 15:26 |
sjmc7 | more important to get the plugins in | 15:26 |
lakshmiS | TravT: maybe its just slow to send the correct state in initial update itself for me. will test it further | 15:27 |
* TravT brain melting will check back here shortly. | 15:28 | |
openstackgerrit | Endre Karlson proposed openstack/searchlight: Refactor clients handling to use Sessions. https://review.openstack.org/219271 | 15:29 |
TravT | omg sjmc7 | 15:32 |
TravT | that doc / payload thing | 15:32 |
TravT | so obvious when you look closely | 15:32 |
TravT | yeah, two cups of coffee | 15:33 |
TravT | good eyes | 15:33 |
sjmc7 | yeah.. | 15:34 |
sjmc7 | and because we specify an id, we wipe the old one | 15:34 |
sjmc7 | and it's not obvious when staring at the json payload | 15:34 |
sjmc7 | mystery solved. will update the nova patch | 15:34 |
TravT | "_source": { | 15:34 |
TravT | "doc": { | 15:34 |
sjmc7 | yep | 15:34 |
TravT | to quote david-lyle | 15:34 |
TravT | facepalm | 15:35 |
sjmc7 | :D | 15:35 |
ekarlso | what to update ? | 15:35 |
ekarlso | in the designate thin | 15:35 |
sjmc7 | ekarlso - like i was saying earlier, use engine.index | 15:35 |
TravT | i'll put a comment on your patch | 15:35 |
sjmc7 | but body=payload | 15:35 |
sjmc7 | not body={"doc": payload} | 15:35 |
sjmc7 | and, this is why functional tests would be splendid | 15:35 |
sjmc7 | because you can't catch that kind of thing with unit tests | 15:36 |
TravT | ekarlso, just added a comment on the lines you should change | 15:36 |
TravT | sjmc7, yep | 15:36 |
TravT | at least now i know i'm not crazy. | 15:37 |
openstackgerrit | Steve McLellan proposed openstack/searchlight: Add nova instances plugin https://review.openstack.org/198852 | 15:37 |
ekarlso | self.engine.index then vs self.engine.create ? | 15:40 |
sjmc7 | ekarlso yeah | 15:41 |
ekarlso | kewl | 15:41 |
sjmc7 | create will give you an error if it exists already | 15:41 |
ekarlso | done | 15:41 |
ekarlso | :P | 15:42 |
openstackgerrit | Endre Karlson proposed openstack/searchlight: Add Designate plugin. https://review.openstack.org/199099 | 15:46 |
*** lakshmiS has quit IRC | 15:48 | |
openstackgerrit | Travis Tripp proposed openstack/searchlight: Fix Glance Indexing after Notification https://review.openstack.org/219331 | 16:16 |
sjmc7 | ekarlso - i'm gonna upload a new version of the designate patch with a fix to RBAC that we found a couple of weeks ago | 16:26 |
sjmc7 | second thoughts, i'll leave a comment, since i want to be able to review it :) | 16:28 |
TravT | nick of time sjmc7, i was just going to pull the patch. | 16:29 |
TravT | well, i'll pull nova again | 16:29 |
TravT | i don't understand why i was getting user name password fail on that | 16:29 |
TravT | when it worked fine for glance. | 16:29 |
TravT | but i have a brand new devstack with designate, so i might as well re-test the nova notification indexing now with it. | 16:30 |
sjmc7 | k | 16:30 |
*** david-ly_ has joined #openstack-searchlight | 16:49 | |
*** david-lyle has quit IRC | 16:49 | |
sjmc7 | glanceclient got a 1.0.0 release! it's first birthday! | 16:58 |
TravT | woot! | 17:00 |
sjmc7 | it broke our glance image member code :) lakshmi put up a fix already | 17:03 |
*** david-ly_ has quit IRC | 17:07 | |
TravT | sjmc7: | 17:09 |
TravT | just testing the nova patch again. | 17:09 |
TravT | VM booted. Ended with these | 17:09 |
TravT | "OS-EXT-STS:vm_state": "active", | 17:09 |
TravT | "status": "ACTIVE", | 17:10 |
TravT | That is what I would expect to see. | 17:10 |
sjmc7 | hurrah :) | 17:10 |
sjmc7 | me too. possible nova got fixed? | 17:10 |
TravT | listener picked it up | 17:10 |
TravT | and it is searchable | 17:10 |
sjmc7 | mine's several weeks old | 17:10 |
sjmc7 | hurray | 17:10 |
TravT | testing delete now | 17:10 |
TravT | hmm, actually, i'll try a few actions on it first | 17:11 |
TravT | removing security group worked. old one is gone | 17:11 |
TravT | suspend | 17:12 |
TravT | "OS-EXT-STS:vm_state": "suspended", | 17:12 |
TravT | "status": "SUSPENDED", | 17:12 |
TravT | resume: | 17:13 |
TravT | "OS-EXT-STS:vm_state": "active", | 17:13 |
TravT | "status": "ACTIVE", | 17:13 |
sjmc7 | that's good news. sort of curious if it was something that got fixed in nova or something in the envs lakshmi and i were using, but i guess it doesn't matter overmuch | 17:13 |
TravT | shutdown | 17:13 |
TravT | "OS-EXT-STS:vm_state": "stopped" | 17:13 |
TravT | "status": "SHUTOFF", | 17:14 |
TravT | startup | 17:14 |
TravT | "OS-EXT-STS:vm_state": "active", | 17:14 |
TravT | "status": "ACTIVE", | 17:14 |
TravT | will try delete now | 17:15 |
TravT | gone from index | 17:15 |
sjmc7 | ship it! | 17:15 |
TravT | ok, i'm going to double check rbac query again, but not expecting issues | 17:15 |
TravT | it worked last time | 17:15 |
sjmc7 | i think i adjusted rbac for the indices filter | 17:15 |
TravT | in the last patch since I +2'd? | 17:16 |
TravT | I didn't think you did? | 17:16 |
TravT | whatever the case, i'm trying again. | 17:16 |
sjmc7 | no, not since then | 17:16 |
TravT | sjmc7: ok, rbac filtering only returned back the instances I'd expect and the OS-EXT-SRV-ATTR: fields were filtered | 17:39 |
TravT | +2 | 17:39 |
sjmc7 | good times. hey, y'all, somebody give the nova patch some love! | 17:40 |
TravT | nikhil_k: sigmavirus24: what version of glanceclient can we rely on now | 17:47 |
TravT | i see in global requirements https://github.com/openstack/requirements/blob/master/global-requirements.txt#L149 | 17:47 |
TravT | and upper contstraints https://github.com/openstack/requirements/blob/master/upper-constraints.txt#L243 | 17:48 |
sjmc7 | hmm, good catch | 17:48 |
TravT | so, sjmc7 you comments here: https://review.openstack.org/#/c/219168/1 | 17:49 |
sjmc7 | devstack will pull in 1.0.0 i think | 17:49 |
TravT | well, i can just pull it | 17:49 |
sjmc7 | i don't think it cares about global reqs | 17:50 |
*** david-lyle has joined #openstack-searchlight | 17:54 | |
*** sigmavirus24 is now known as sigmavirus24_awa | 17:54 | |
*** david-lyle has quit IRC | 18:01 | |
*** david-lyle has joined #openstack-searchlight | 18:19 | |
ekarlso | sjmc7: ok :p | 19:03 |
*** sigmavirus24_awa is now known as sigmavirus24 | 19:04 | |
TravT | ekarlso, if you get that updated tonight, i'll go ahead and go through it today. | 20:24 |
sjmc7 | it doesn't look like glance sends notifications on image member changes | 21:07 |
TravT | sjmc7 are you making a general statement or in reply to the bug I filed? | 21:10 |
sjmc7 | i filed a bug too! | 21:11 |
TravT | hmm... | 21:11 |
TravT | i mentioned it in review here: https://review.openstack.org/#/c/219168/ | 21:11 |
sjmc7 | ah, you got there first! | 21:12 |
TravT | which bug is yours? | 21:12 |
TravT | we'll just duplicate one of them | 21:12 |
sjmc7 | https://bugs.launchpad.net/searchlight/+bug/1491053 | 21:12 |
openstack | Launchpad bug 1491053 in OpenStack Search (Searchlight) "No notification received on glance member update" [Critical,New] - Assigned to Steve McLellan (sjmc7) | 21:12 |
sjmc7 | i'll mark mine as a dupe | 21:12 |
sjmc7 | there appears to not be a fix for it | 21:14 |
TravT | need to trace glance code... but i'm surprised this isn't coming with an image.update notification | 21:17 |
TravT | https://github.com/openstack/glance/blob/d4cf5a015b49b8163a71726781aee54da9c252ec/glance/notifier.py#L457 | 21:17 |
sjmc7 | looking through the code now | 21:17 |
TravT | https://github.com/openstack/glance/blob/d4cf5a015b49b8163a71726781aee54da9c252ec/glance/api/v2/image_members.py#L152 | 21:18 |
TravT | fwiw, i was using v2 API requests and not getting notifications | 21:19 |
TravT | what were you using? | 21:19 |
TravT | glanceclient? | 21:19 |
sjmc7 | same | 21:19 |
TravT | hmm.. | 21:19 |
sjmc7 | err.. yeah | 21:19 |
sjmc7 | glanceclient | 21:19 |
TravT | ah, i was just doing them by hand. | 21:19 |
sjmc7 | same deal i guess | 21:20 |
TravT | well, just wondering if v1 vs v2 would exhibit diff notification behavior | 21:20 |
TravT | last i checked glance client defaulted to v1 | 21:20 |
TravT | cli | 21:20 |
TravT | nikhil_k^ | 21:20 |
TravT | we don't seem to be getting notifications for member update | 21:21 |
TravT | sjmc7 FYI: the cross project meeting is going on and streaming kinda fast right now. | 21:21 |
sjmc7 | tried with v2 as well, no dice | 21:22 |
sjmc7 | still rambling through the code | 21:22 |
nikhil_k | TravT: 1.0.0 should be v2 | 21:23 |
nikhil_k | TravT: hence the major bump | 21:24 |
TravT | 1.0 is v2. got it | 21:24 |
sjmc7 | nikhil_k do you know if we should expect notifications on image member changes? | 21:30 |
sjmc7 | looks like no - the various proxies are chained together and there isn't a notification one for image members | 21:32 |
TravT | looks like you have an opportunity to get a glance commit this release | 21:50 |
sjmc7 | :) | 21:51 |
TravT | just put some comments on the index arguments patch. | 21:53 |
TravT | take a look. if you want to talk about them we can | 21:53 |
sjmc7 | pistols at dawn! | 21:59 |
sjmc7 | those make sense. i'll make some quick alterations | 22:00 |
sjmc7 | it continually annoys me we don't already have those options :) it also needs to be MUCH quieter | 22:00 |
sjmc7 | actually, i have to pop out for a bit; i'll make the changes later tonight | 22:01 |
TravT | yeah | 22:06 |
TravT | it wasn't so bad with just glance | 22:06 |
TravT | but i've experienced the same annoyance | 22:06 |
*** sigmavirus24 is now known as sigmavirus24_awa | 22:18 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!