*** sigmavirus24_awa has quit IRC | 00:49 | |
*** sigmavirus24_awa has joined #openstack-searchlight | 00:57 | |
*** ekarlso- has joined #openstack-searchlight | 05:37 | |
*** ekarlso- has quit IRC | 05:50 | |
*** sballe has quit IRC | 06:46 | |
*** lakshmiS has joined #openstack-searchlight | 08:28 | |
*** TravT_ has joined #openstack-searchlight | 09:19 | |
*** TravT has quit IRC | 09:20 | |
ekarlso | anyone around ? | 10:16 |
---|---|---|
*** sballe has joined #openstack-searchlight | 11:22 | |
openstackgerrit | Endre Karlson proposed openstack/searchlight: Add Designate plugin. https://review.openstack.org/199099 | 12:10 |
lakshmiS | hey ekarlso: | 12:30 |
*** lakshmiS has quit IRC | 12:35 | |
*** lakshmiS has joined #openstack-searchlight | 12:43 | |
*** lakshmiS has quit IRC | 12:52 | |
sjmc7_ | ello | 14:02 |
rosmaita | o/ | 14:03 |
TravT_ | hello guys | 14:03 |
TravT_ | Courtesy Searchlight review bash: lakshmiS, nikhil_k, rosmaita, sigmavirus24, TravT, david-lyle, kragniz, sjmc7, ekarlso | 14:04 |
*** TravT_ is now known as TravT | 14:04 | |
ekarlso | TravT_: meh, allmost got the designate stuff sorted | 14:04 |
ekarlso | putting up a new review later | 14:04 |
TravT | ekarlso: | 14:04 |
TravT | ok | 14:04 |
TravT | Current reviews: http://tinyurl.com/searchlight-reviews | 14:04 |
TravT | First one to look at: https://review.openstack.org/206268 Add 'sort' parameter | 14:05 |
TravT | Then: https://review.openstack.org/210759 Allow indexing of single type or index | 14:05 |
sjmc7_ | be cruel to me! | 14:09 |
TravT | sjmc7_ i'm trying to track down lakshmiS | 14:10 |
sjmc7_ | to be cruel to him too | 14:10 |
TravT | see which of his we should review... | 14:10 |
TravT | was just looking at this one: https://review.openstack.org/#/c/220149 | 14:10 |
sjmc7_ | *shudder* | 14:10 |
rosmaita | TravT: i just +2d the sorting patch | 14:13 |
TravT | rosmaita: cool. | 14:13 |
TravT | I'll add a +A if nobody posts any objections by the end of this meeting. | 14:14 |
rosmaita | that's what i was going to ask | 14:14 |
TravT | seems to a be a light crowd today. :S | 14:14 |
TravT | rosmaita: if you can see if the CLI (that second patch) looks good to you, that would be great. | 14:15 |
rosmaita | was just looking | 14:15 |
rosmaita | you have been pretty tough on that patch! | 14:16 |
TravT | yeah, sjmc7_ probably hates me | 14:16 |
rosmaita | i thought it looked good earlier and then you requested like 10 changes | 14:16 |
rosmaita | i am almost afraid to say it's ok | 14:17 |
sjmc7_ | he's very demanding | 14:18 |
TravT | well, i view it as a user interface, so thought i'd be a bit harder on it | 14:18 |
sjmc7_ | :) it was all good feedback | 14:18 |
TravT | sjmc7_ the one comment I had yesterday which was poorly worded and you disagreed with i'm okay with possibly improving upon later. | 14:19 |
TravT | otherwise, i think it works pretty well. | 14:20 |
sjmc7_ | ok. i was having some senior moments yesterday so the misunderstanding may have been mine | 14:20 |
TravT | and i have to say that the more plugins we get, the more it seems critical. | 14:20 |
TravT | that we get that in | 14:20 |
TravT | rosmaita: nikhil_k_: sigmavirus24_awa: there is a glance bug in glance that would be highly helpful for you to look at | 14:23 |
TravT | https://review.openstack.org/#/c/221307/ | 14:23 |
rosmaita | is that the notifications? | 14:23 |
sjmc7_ | yeah. oh, something else occurred - how do other projects handle the log_file config option problem? i.e. nova-api and nova-conductor share a config file | 14:23 |
*** sigmavirus24_awa is now known as sigmavirus24 | 14:23 | |
TravT | yeah | 14:23 |
sjmc7_ | because we have this now; all the logs end up in the same file | 14:23 |
rosmaita | i was looking last night, there was a prob with the python 2.7 tests | 14:23 |
rosmaita | sjmc7_: in the manage patch, do you redirect print to stderr? not that you have to, just wondering | 14:24 |
TravT | yeah, i see there is a python 2.7 failure... but if there were any other glaring issues, lakshmiS could address as well | 14:24 |
sjmc7_ | rosmaita - i do not. is that the Done Thing? | 14:24 |
rosmaita | not sure | 14:24 |
sjmc7_ | since it's going to be interactive (or ansibled or whatever) it didn't seem too huge a deal | 14:24 |
rosmaita | (that's why i asked) | 14:24 |
TravT | sjmc7_: are you talking about how the CLI spits out oslo config message? | 14:25 |
*** sjmc7_ is now known as sjmc7 | 14:25 | |
sjmc7 | ah, that's better, no underscore | 14:25 |
*** TravT is now known as TravT_underscore | 14:25 | |
sjmc7 | TravT_ - no.. if you set up searchlight-api and searchlight-listener to use the same config file with log_file specified | 14:26 |
* TravT_underscore just wanted to be different | 14:26 | |
sjmc7 | they write to the same file | 14:26 |
*** TravT_underscore is now known as TravT | 14:26 | |
sjmc7 | that sounded more remedial than i meant it | 14:26 |
sigmavirus24 | sjmc7: yeah that's kind of expected, no? | 14:26 |
sjmc7 | yes, it's what you'd expect, but maybe not what you want | 14:26 |
sigmavirus24 | we can have separate config sections for both of those commands so we don't need separate config files | 14:26 |
sigmavirus24 | e..g., [listener] log_file = searchlight-listener.log | 14:27 |
sjmc7 | yeah, that's what i was asking | 14:27 |
sjmc7 | thank you for saying it in words people understand :) | 14:27 |
sigmavirus24 | I mean having the many files like glance does is okay | 14:27 |
sjmc7 | yeah, but it seems like overkill right now | 14:27 |
sigmavirus24 | I just don't know if I like that approach yet as someone who manages ansible templates for all of them | 14:27 |
sigmavirus24 | sjmc7: agreed | 14:27 |
sjmc7 | me neither | 14:27 |
sjmc7 | as someone who maintains ansible templates :) | 14:27 |
sigmavirus24 | lol | 14:27 |
sigmavirus24 | why don't you use openstack-ansible? =P | 14:27 |
sjmc7 | no comment :) | 14:28 |
sigmavirus24 | then I'd manage them for you | 14:28 |
sigmavirus24 | You should at least hang out in #openstack-ansible | 14:28 |
TravT | i'm all for keeping a single config file for as long as it makes sense | 14:28 |
sigmavirus24 | TravT: yep | 14:28 |
sigmavirus24 | giving different sections for the different commands is good | 14:28 |
sjmc7 | sigmavirus24 - i'm on three internal company chat channels on the topic, i can't bring myself to add more :) | 14:29 |
sigmavirus24 | we can have a default log_file taht's overridden in each section if oslo.cfg supports that stuff | 14:29 |
sigmavirus24 | I forget | 14:29 |
rosmaita | got another dumb question ... when a script aborts, is a 0 an appropriate exit code? it's aborting because the user didn't type 'y', but still ... | 14:29 |
sigmavirus24 | rosmaita: depends | 14:29 |
sigmavirus24 | rosmaita: is the user deliberately not doing something? | 14:29 |
rosmaita | yes | 14:29 |
sigmavirus24 | yeah | 14:29 |
sigmavirus24 | You didn't error out | 14:29 |
sigmavirus24 | So 0 should be fine | 14:29 |
rosmaita | ok | 14:29 |
sjmc7 | right - it's not an error. although it might be a fat finger | 14:29 |
sigmavirus24 | There may be a more nuianced understanding | 14:29 |
* sigmavirus24 can't spell nuianaclvkajaew;lkbjadsf | 14:29 | |
TravT | i think if user said to stop, that non-zero is okay | 14:30 |
TravT | sigmavirus24: I have trouble with that word too. | 14:30 |
TravT | nuianaclvkajaew;lkbjadsf | 14:30 |
TravT | is so hard | 14:30 |
TravT | i always forget the semi-colon in the middle | 14:30 |
sigmavirus24 | me too | 14:31 |
sjmc7 | i before anclkd except after hggjkt | 14:31 |
sjmc7 | i think 0's ok - it's a conscious decision to exit | 14:31 |
sjmc7 | if we have a separate sections, won't oslo.config still be looking in the DEFAULT section? | 14:32 |
sjmc7 | for the logging? | 14:32 |
sjmc7 | i do enjoy your review comments, rosmaita :) | 14:32 |
rosmaita | i try | 14:33 |
TravT | sigmavirus24: not sure if you saw https://review.openstack.org/#/c/221307/ | 14:33 |
TravT | but we need that for image rbac in searchlight | 14:33 |
sigmavirus24 | TravT: I did see it and rechecked it | 14:33 |
sigmavirus24 | Failing after 7 minutes for that glance job seems ... wrong | 14:34 |
sigmavirus24 | sjmc7: we can look up in listener and if that's not there, fall back to the general/default option | 14:34 |
sjmc7 | ok sigmavirus24. i need to refresh how we initialize that, maybe we do consciously choose the config option | 14:34 |
TravT | sigmavirus24: rosmaita: lakshmiS has a patch up that requires glance client 1.0 | 14:35 |
TravT | https://review.openstack.org/#/c/219168/ | 14:35 |
TravT | is this something that we should do? | 14:35 |
* rosmaita looking | 14:35 | |
* rosmaita is wondering if that's my fault, i think i did the image-members glanceclient code | 14:36 | |
sjmc7 | ah, yes - do we need to bump our requirements to g-c 1.0.0? | 14:36 |
sjmc7 | or cap it <1.0.0 ? | 14:37 |
TravT | i also am not sure why is always fails to verify with no message... | 14:37 |
rosmaita | well, there are going to be a lot of bugfixes coming | 14:37 |
rosmaita | don't think people will want to use 1.0.0 for very long | 14:37 |
*** lakshmiS has joined #openstack-searchlight | 14:38 | |
* rosmaita is pretty sure i didn't expose 'deleted' through the client | 14:39 | |
TravT | lakshmiS o/ | 14:40 |
TravT | just talking about https://review.openstack.org/#/c/219168/ | 14:40 |
TravT | and glance client 1.0 | 14:40 |
lakshmiS | ok | 14:40 |
TravT | it isn't clear to me if that's going to be okay to use, yet or not. | 14:41 |
lakshmiS | what do you mean? | 14:41 |
TravT | well, has the rest of openstack adopted it in liberty yet? will that be a problem? | 14:41 |
lakshmiS | hmm. | 14:41 |
lakshmiS | in that case we keep it parked | 14:42 |
TravT | lakshmiS: rosmaita: do we need dual path code based on glance client version? | 14:43 |
TravT | or am i just being paranoid here | 14:43 |
TravT | ? | 14:43 |
TravT | lakshmiS: does it not work at all? | 14:43 |
lakshmiS | not with client ver 1.0.0 | 14:43 |
TravT | so if we have 0.18, it works? | 14:44 |
TravT | today | 14:44 |
TravT | ? | 14:44 |
lakshmiS | have to check what was my previous version on devstack | 14:44 |
lakshmiS | TravT: your idea on checking version is not bad | 14:45 |
TravT | we do that in horizon. | 14:46 |
TravT | but it is api version that is checked | 14:46 |
TravT | not the release version check of the package | 14:46 |
TravT | but, maybe we need to do that here? | 14:47 |
lakshmiS | yes | 14:47 |
TravT | ok. | 14:47 |
TravT | everybody, as FYI, I have to leave in about 5 minutes. I tweaked my knee a few weeks back and have a dr apt at the top of the hour. | 14:48 |
TravT | lakshmiS: does this on have any dependency on glance client version? | 14:49 |
TravT | https://review.openstack.org/#/c/220149/ | 14:49 |
lakshmiS | no | 14:49 |
TravT | ok | 14:50 |
TravT | then i can try it out when i get back. | 14:50 |
TravT | ok, i do need to drop now. thanks for some review time. | 14:53 |
rosmaita | np, hope your knee is ok | 14:53 |
TravT | i have a couple patches that i'm going to put up later today, i hope. but also will go back over the designate patch that i've been harassing ekarlso on | 14:53 |
TravT | thx | 14:53 |
*** lakshmiS has quit IRC | 15:43 | |
ekarlso | sigh | 16:02 |
ekarlso | mor stuff to code :p | 16:02 |
TravT | ekarlso: re designate patch? | 16:06 |
openstackgerrit | Brian Rosmaita proposed openstack/searchlight: Clarify glance api restart. https://review.openstack.org/221860 | 16:06 |
openstackgerrit | Merged openstack/searchlight: Add 'sort' parameter https://review.openstack.org/206268 | 16:20 |
openstackgerrit | Brian Rosmaita proposed openstack/searchlight: Corrected 'Openstack' references https://review.openstack.org/221868 | 16:21 |
ekarlso | so TravT | 16:34 |
ekarlso | how do I map parent child ? | 16:34 |
TravT | ekarlso, i put what I think you needed to do in those comments... l | 16:35 |
ekarlso | kk, i'll try | 16:35 |
TravT | but I didn't actually try it out with the comments I gave you. about half the time I actually code things up before leaving comments. | 16:36 |
TravT | see comment on line 40 here: | 16:37 |
TravT | https://review.openstack.org/#/c/199099/17/searchlight/elasticsearch/plugins/designate/recordsets.py | 16:37 |
sjmc7 | is this for the relationship inside recordsets? | 16:37 |
ekarlso | ya sjmc7 | 16:37 |
openstackgerrit | Merged openstack/searchlight: Clarify glance api restart. https://review.openstack.org/221860 | 16:37 |
sjmc7 | and one Zone always belongs to one Recordset? | 16:38 |
TravT | sjmc7: that's what ekarlso indicated in an IRC yesterday. | 16:39 |
TravT | 1 zone --> many recordsets | 16:39 |
openstackgerrit | Merged openstack/searchlight: Corrected 'Openstack' references https://review.openstack.org/221868 | 16:39 |
sjmc7 | errr.. yes, sorry | 16:40 |
TravT | although cardinality may be better expressed like this | 16:40 |
TravT | 1 zone <-- many recordsets | 16:40 |
sjmc7 | parent-child is pretty new (newer at least than last time i used e-s in anger) but it seems like a good fit here | 16:41 |
TravT | yeah, i was thinking in the recordset | 16:41 |
TravT | we could add this: | 16:41 |
TravT | "_parent": { | 16:41 |
TravT | "type": “OS::Designate::Zone” | 16:41 |
TravT | } | 16:41 |
TravT | and then in my other comments there | 16:41 |
TravT | it seems pretty easy to pass the parent ID through in both notifications and initial indexing | 16:42 |
ekarlso | TravT: not using a mapping ? | 16:42 |
ekarlso | sorry i'm very vague when it comes to ES | 16:42 |
TravT | so, in the recordsets mapping | 16:43 |
sjmc7 | just checking the python-es library support for it | 16:43 |
TravT | i checked that yesterday | 16:43 |
TravT | that's what those comments here are based on: https://review.openstack.org/#/c/199099/17/searchlight/elasticsearch/plugins/designate/recordsets.py | 16:43 |
sjmc7 | i know, just for my own edification :) yeah, that seems sensible | 16:43 |
TravT | but good to have your view too | 16:43 |
openstackgerrit | Brian Rosmaita proposed openstack/searchlight: Corrected RST markup https://review.openstack.org/221875 | 16:43 |
sjmc7 | ekarlso - yes, in the mapping you'd define the _parent | 16:43 |
TravT | ekarlso: in the mapping, you define in the child who the parent is | 16:44 |
TravT | the each time you index a child document you have to specify the id of the parent | 16:44 |
sjmc7 | and the recordset indexing would need to add the parent id as travis indicated in the comments | 16:44 |
TravT | since we use the OS ID's for the doc ID and you already have the zone_id, you can pass that in | 16:44 |
TravT | as the parent id | 16:44 |
TravT | for initial indexing and in notification indexing | 16:44 |
sjmc7 | one hting to watch for - deleting a parent does NOT delete all children | 16:45 |
ekarlso | but uh | 16:45 |
sjmc7 | needs a delete_by_query | 16:45 |
ekarlso | TravT: in the examples in "mapping": {} has the diff types it seems and then the properties inside the type? | 16:45 |
TravT | link? | 16:46 |
ekarlso | based on hat https://www.elastic.co/guide/en/elasticsearch/guide/current/parent-child-mapping.html | 16:46 |
sjmc7 | ekarlso - this would be oustide 'properties' | 16:46 |
ekarlso | oh, nvm | 16:46 |
sjmc7 | {"recordset": {"properties": {...}, "_parent": {"type"... | 16:46 |
ekarlso | uh? | 16:47 |
ekarlso | aint it in the mappings section ? | 16:47 |
sjmc7 | yes | 16:47 |
sjmc7 | at the top level in the dict that get_mappings returns | 16:47 |
ekarlso | http://paste.ubuntu.com/12321965/ < at that ? | 16:47 |
sjmc7 | err... no | 16:48 |
sjmc7 | the "mappings" is done for you by searchlight | 16:48 |
ekarlso | ahh | 16:48 |
sjmc7 | so it's {"mappings": {"recordset": get_mapping() | 16:48 |
sjmc7 | https://github.com/openstack/searchlight/blob/master/searchlight/elasticsearch/plugins/base.py#L54 | 16:49 |
ekarlso | ?should w | 16:49 |
TravT | ekarlso i think it is this (gimme sec to make paste) | 16:49 |
ekarlso | http://paste.ubuntu.com/12321987/ sjmc7 ? | 16:50 |
sjmc7 | ekarlso - nope :) | 16:50 |
TravT | you don't need the zone wrapping that | 16:50 |
ekarlso | rofl :p | 16:51 |
TravT | and it is sibling to properties | 16:51 |
sjmc7 | at the same level as "properties" goes the "_parent" bit | 16:51 |
sjmc7 | you're thinking too SQL :) | 16:51 |
ekarlso | sjmc7: http://paste.ubuntu.com/12322004/ .. | 16:52 |
TravT | yes | 16:53 |
sjmc7 | there you go | 16:53 |
TravT | so, yesterday i was also playing with nesting these. | 16:54 |
ekarlso | then just pass parent=... in engine.index() ? | 16:54 |
sjmc7 | right | 16:54 |
sjmc7 | just the zone id | 16:54 |
TravT | yes, using the zone_id | 16:54 |
sjmc7 | i'll stop talking now :) | 16:54 |
TravT | sjmc7: | 16:54 |
TravT | i was looking at nesting | 16:54 |
TravT | but based on what ekarlso said that there could thousands of recordsets | 16:55 |
TravT | updating individually, it seemed that maybe parent child made more sense | 16:55 |
sjmc7 | yeah, nesting's not really for this | 16:55 |
TravT | ES docs say nested queries are still faster than parent child | 16:55 |
TravT | "but they are working on that" | 16:55 |
TravT | :S | 16:55 |
sjmc7 | it's all relative :) | 16:55 |
sjmc7 | i need to look at what kind of joining is possible | 16:56 |
TravT | https://www.elastic.co/guide/en/elasticsearch/guide/current/has-child.html | 16:56 |
ekarlso | so based on that .. | 16:56 |
TravT | https://www.elastic.co/guide/en/elasticsearch/guide/current/has-parent.html | 16:56 |
ekarlso | 2015-09-09 16:56:07.707 ERROR searchlight.cmd.manage [-] Failed to setup index extension recordset: ('25 document(s) failed to index.', [{u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'4bfed609-f762-45d6-932b-716d08d9fd25', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for | 16:56 |
sjmc7 | there you go :) | 16:56 |
ekarlso | [searchlight]/[OS::Designate::RecordSet]/[4bfed609-f762-45d6-932b-716d08d9fd25]]'}}, {u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'bf4d86c1-4b4b-4e01-b170-5dcf2d32492d', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for [searchlight]/[OS::Designate::RecordSet]/[bf4d86c1-4b4b-4e01-b170-5dcf2d32492d]]'}}, {u'index': {u'status': | 16:56 |
ekarlso | 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'994595dc-852a-4ca2-868a-c24e541fe095', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for [searchlight]/[OS::Designate::RecordSet]/[994595dc-852a-4ca2-868a-c24e541fe095]]'}}, {u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'7ae46726-4dcb-4e1e-97ed-ff7215b2ae85', u'_index': | 16:56 |
ekarlso | u'searchlight', u'error': u'RoutingMissingException[routing is required for [searchlight]/[OS::Designate::RecordSet]/[7ae46726-4dcb-4e1e-97ed-ff7215b2ae85]]'}}, {u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'a5f11a2a-93c3-4106-82e9-09ccc2b84486', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for | 16:56 |
ekarlso | [searchlight]/[OS::Designate::RecordSet]/[a5f11a2a-93c3-4106-82e9-09ccc2b84486]]'}}, {u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'57314230-b8ea-48d7-afcb-709f91c0f859', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for [searchlight]/[OS::Designate::RecordSet]/[57314230-b8ea-48d7-afcb-709f91c0f859]]'}}, {u'index': {u'status': | 16:56 |
ekarlso | 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'18eb658d-85e1-4064-9c20-8b5ee125917f', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for [searchlight]/[OS::Designate::RecordSet]/[18eb658d-85e1-4064-9c20-8b5ee125917f]]'}}, {u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'27f0f416-8c59-4c33-9e1d-9b9216a6a4a2', u'_index': | 16:56 |
ekarlso | u'searchlight', u'error': u'RoutingMissingException[routing is required for [searchlight]/[OS::Designate::RecordSet]/[27f0f416-8c59-4c33-9e1d-9b9216a6a4a2]]'}}, {u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'51bb6541-495a-4469-a533-54ba8488ddc8', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for | 16:56 |
ekarlso | [searchlight]/[OS::Designate::RecordSet]/[51bb6541-495a-4469-a533-54ba8488ddc8]]'}}, {u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'791d80de-cddb-4b2e-8816-6b9e9ad5db5a', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for [searchlight]/[OS::Designate::RecordSet]/[791d80de-cddb-4b2e-8816-6b9e9ad5db5a]]'}}, {u'index': {u'status': | 16:57 |
TravT | augh | 16:57 |
ekarlso | 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'7aae70d1-cee7-4998-98a2-acaa7b48afaf', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for [searchlight]/[OS::Designate::RecordSet]/[7aae70d1-cee7-4998-98a2-acaa7b48afaf]]'}}, {u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'8a907d6d-e8c5-45c1-bb69-6725685d8d7a', u'_index': | 16:57 |
sjmc7 | hahahahaha | 16:57 |
ekarlso | u'searchlight', u'error': u'RoutingMissingException[routing is required for [searchlight]/[OS::Designate::RecordSet]/[8a907d6d-e8c5-45c1-bb69-6725685d8d7a]]'}}, {u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'aaa9883f-3bb4-44bb-9ed2-2db6b5dfce9c', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for | 16:57 |
ekarlso | [searchlight]/[OS::Designate::RecordSet]/[aaa9883f-3bb4-44bb-9ed2-2db6b5dfce9c]]'}}, {u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'cf8edf10-2c2e-4d4e-a084-58600e29a0c1', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for [searchlight]/[OS::Designate::RecordSet]/[cf8edf10-2c2e-4d4e-a084-58600e29a0c1]]'}}, {u'index': {u'status': | 16:57 |
sjmc7 | stop, man! | 16:57 |
ekarlso | 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'cfe40861-cdb5-4abc-b67b-bdcd2e66b40f', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for [searchlight]/[OS::Designate::RecordSet]/[cfe40861-cdb5-4abc-b67b-bdcd2e66b40f]]'}}, {u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'd8491fb8-4fa4-4b7b-9a25-51562068f3cb', u'_index': | 16:57 |
TravT | make it stop! | 16:57 |
ekarlso | u'searchlight', u'error': u'RoutingMissingException[routing is required for [searchlight]/[OS::Designate::RecordSet]/[d8491fb8-4fa4-4b7b-9a25-51562068f3cb]]'}}, {u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'eded1c15-392e-4375-a577-aa783f078792', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for | 16:57 |
ekarlso | [searchlight]/[OS::Designate::RecordSet]/[eded1c15-392e-4375-a577-aa783f078792]]'}}, {u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'eeedd854-8082-4e81-8e5c-30a8fe216068', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for [searchlight]/[OS::Designate::RecordSet]/[eeedd854-8082-4e81-8e5c-30a8fe216068]]'}}, {u'index': {u'status': | 16:57 |
ekarlso | 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'fbaa6f73-6390-4da1-9819-3b908a18a123', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for [searchlight]/[OS::Designate::RecordSet]/[fbaa6f73-6390-4da1-9819-3b908a18a123]]'}}, {u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'77d5357b-d742-4fc4-8748-5dfd3646d5eb', u'_index': | 16:57 |
sjmc7 | the goggles do nothing! | 16:57 |
ekarlso | u'searchlight', u'error': u'RoutingMissingException[routing is required for [searchlight]/[OS::Designate::RecordSet]/[77d5357b-d742-4fc4-8748-5dfd3646d5eb]]'}}, {u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'fe050b20-67ac-434b-8350-df4f35d6782f', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for | 16:57 |
ekarlso | [searchlight]/[OS::Designate::RecordSet]/[fe050b20-67ac-434b-8350-df4f35d6782f]]'}}, {u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'f39f3c99-62d3-43cb-81a7-7deaed9b8fa9', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for [searchlight]/[OS::Designate::RecordSet]/[f39f3c99-62d3-43cb-81a7-7deaed9b8fa9]]'}}, {u'index': {u'status': | 16:57 |
ekarlso | 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'f9feb535-ccdc-465a-8002-6b94b548330f', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for [searchlight]/[OS::Designate::RecordSet]/[f9feb535-ccdc-465a-8002-6b94b548330f]]'}}, {u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'6bcb0730-af8f-4b3f-b949-40a6611bc41b', u'_index': | 16:57 |
ekarlso | u'searchlight', u'error': u'RoutingMissingException[routing is required for [searchlight]/[OS::Designate::RecordSet]/[6bcb0730-af8f-4b3f-b949-40a6611bc41b]]'}}, {u'index': {u'status': 400, u'_type': u'OS::Designate::RecordSet', u'_id': u'537610b9-65f5-4ada-9b9a-848087d12c65', u'_index': u'searchlight', u'error': u'RoutingMissingException[routing is required for | 16:57 |
TravT | i'm getting motion sick | 16:57 |
ekarlso | [searchlight]/[OS::Designate::RecordSet]/[537610b9-65f5-4ada-9b9a-848087d12c65]]'}}]) | 16:57 |
ekarlso | oh feck | 16:57 |
ekarlso | lol | 16:57 |
ekarlso | didn't expect it to be that big :P | 16:57 |
ekarlso | wha tthe crap does that mean? : p | 16:57 |
TravT | i think you should stop tailing logs to irc | 16:57 |
sjmc7 | i wish someone's irc handle was 'designate' | 16:57 |
ekarlso | :p | 16:57 |
ekarlso | +1 TravT :p | 16:58 |
TravT | ekarlos | 16:58 |
TravT | ekarlso: you might need to delete your mappings manually | 16:58 |
TravT | and try again | 16:58 |
ekarlso | yeah, I did http DELETE http://localhost:9200/_all | 16:58 |
ekarlso | then sync | 16:58 |
TravT | hmm, ok | 16:58 |
ekarlso | but I wonder if the mapping is wrong ? | 16:59 |
ekarlso | ohmm | 17:00 |
ekarlso | in the indexing do I need to add like a _parent thing in the payload ? | 17:00 |
TravT | yes | 17:00 |
sjmc7 | no, just a parent_id in the indexing. the parent does have to be indexed already though | 17:00 |
TravT | For initial indexing, I am thinking that we could add _parent field to the objects returned from get_objects(). | 17:01 |
TravT | searchlight/elasticsearch/plugins/base.py | 17:01 |
TravT | Uses the bulk API, which means we should be able to just add that field and it will work correctly. | 17:01 |
TravT | https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-bulk.html#bulk-parent | 17:01 |
TravT | please note the *should* | 17:01 |
ekarlso | oh no, the kid woke up.. | 17:01 |
ekarlso | why can't he ever sleep when expected : p | 17:02 |
sjmc7 | :D | 17:02 |
sjmc7 | first one, i will presume :) | 17:02 |
ekarlso | meh, yeh :p | 17:02 |
TravT | ekarlso: i usually put the kids to bed and then somehow find myself back to the computer screen | 17:03 |
TravT | seems you must do similar | 17:03 |
ekarlso | TravT: :P | 17:13 |
ekarlso | TravT: any idea on the ^ boom ? | 17:13 |
TravT | hey, ekarlso, did you add the _payload like I mentioned above? | 17:14 |
ekarlso | _parent you mean to _payload ? | 17:14 |
TravT | yes sorry | 17:16 |
ekarlso | yeah, in recordset I did | 17:16 |
ekarlso | it should be _parent: <zone id> no ? | 17:16 |
TravT | i *think* so. | 17:16 |
sjmc7 | ekarlso - i will have a little play now | 17:17 |
ekarlso | meh :p | 17:17 |
ekarlso | I can put up the latest changeset for ya sjmc7 | 17:17 |
ekarlso | so u can see | 17:17 |
sjmc7 | ok | 17:17 |
openstackgerrit | Endre Karlson proposed openstack/searchlight: Add Designate plugin. https://review.openstack.org/199099 | 17:19 |
ekarlso | done | 17:20 |
sjmc7 | ok. i need to play with parent-child a bit, but i have a suspicion the ordering will be important | 17:20 |
ekarlso | :/ | 17:21 |
TravT | mmm | 17:21 |
sjmc7 | and i think the reason you get a routing error is that it's trying to figure out which shard the parent lives on | 17:21 |
sjmc7 | but that's a wild semi-educated guess | 17:21 |
TravT | i'm wondering if zone has already been populated | 17:21 |
TravT | are recordsets getting populated prior to zones when you hit this error? | 17:22 |
*** TravT_ has joined #openstack-searchlight | 17:34 | |
*** TravT has quit IRC | 17:35 | |
*** TravT_ is now known as TravT | 17:35 | |
openstackgerrit | Merged openstack/searchlight: Allow indexing of single type or index https://review.openstack.org/210759 | 17:46 |
openstackgerrit | Merged openstack/searchlight: Corrected RST markup https://review.openstack.org/221875 | 17:50 |
sjmc7 | TravT and ekarlso... one other thing; reindexing the parent may not maintain the parent/child relationship | 17:55 |
TravT | did i miss some other conversation? | 17:57 |
TravT | my internet got really flaky the last 40 mins | 17:57 |
sjmc7 | no, but just reading more on this - https://www.elastic.co/guide/en/elasticsearch/guide/current/indexing-parent-child.html | 17:57 |
sjmc7 | because of the strnage routing that's required, you have to provide the parent id on all single-document requests (i.e. for a recordset) so that e-s can find it on the right shard | 17:57 |
sjmc7 | reindexing the parent *should* be ok because the id doesn't change | 17:58 |
TravT | just read it... | 17:59 |
sjmc7 | ekarlso, i can reproduce the error you're getting | 17:59 |
sjmc7 | curl 192.168.235.128:9200/test/child/1 | 17:59 |
TravT | we aren't trying to change parents | 17:59 |
TravT | so, re-index shouldn't be a problem. | 17:59 |
sjmc7 | raises the error because e-s knows it needs to be told where to index | 17:59 |
sjmc7 | TravT no, but we do reindex parent documents | 18:00 |
sjmc7 | that's going to be ok because the id won't change, so red herring | 18:00 |
sjmc7 | this is ok: curl 192.168.235.128:9200/test/child/1?parent=AU-zMCb316T5c0I1tBXU | 18:00 |
sjmc7 | so i think the indexing request was missing the parent id | 18:00 |
sjmc7 | having read it, the order's unimportant; e-s doesn't care if the parent actually exists | 18:01 |
sjmc7 | we need a patch to plugins/base.py to support bulk indexing documents with parents i think, TravT/ekarlso. i'll get something up shortly | 18:08 |
TravT | so, then what I'm thinking is that we could consider landing designate without the parent child relationship | 18:09 |
TravT | and add that in a follow on patch | 18:09 |
sjmc7 | also an option | 18:10 |
TravT | just need to reverify the rbac. | 18:10 |
TravT | looks like ekarlso made changes based on my comments there | 18:10 |
sjmc7 | yep | 18:11 |
TravT | my brain needs some food. | 18:11 |
TravT | https://teszmillan.files.wordpress.com/2011/11/brain_drain.jpg | 18:11 |
TravT | so, i'm gonna go eat some lunch and be back shortly. | 18:12 |
openstackgerrit | Steve McLellan proposed openstack/searchlight: Add '_parent' to bulk indexing if needed https://review.openstack.org/221903 | 18:31 |
sjmc7 | ekarlso - try rebasing on top of that ^ | 18:31 |
sjmc7 | and implementing get_parent_id_field to return 'zone_id' | 18:39 |
ekarlso | uh sjmc7 | 20:21 |
ekarlso | sjmc7: does that work on notifications too ? | 20:21 |
sjmc7 | notifications you're idnexing one by one | 20:21 |
sjmc7 | so the problem isn't there; you're setting parent=zone_id in the index call | 20:22 |
ekarlso | blows up still sjmc7 | 20:25 |
ekarlso | same error actually | 20:25 |
sjmc7 | GRRR! | 20:26 |
sjmc7 | ok, i'll take another look | 20:26 |
ekarlso | :d | 20:29 |
sjmc7 | ekarlso, did you implement get_parent_id_field in the rec ordset plugin? | 20:43 |
ekarlso | sjmc7: ya! | 20:43 |
sjmc7 | i'd prefer it if you hadn't :) | 20:44 |
ekarlso | uh ?:p | 20:44 |
sjmc7 | then there'd be a good reason it didn't work :) | 20:44 |
sjmc7 | i'll take a look in a sec, just got designate running in devstack again | 20:44 |
ekarlso | :p | 20:47 |
sjmc7 | ekarlso, worked for me after adding get_parent_id_field to recordset.py | 21:26 |
ekarlso | rly ? | 21:27 |
ekarlso | sjmc7: can u up a new PS then ? | 21:27 |
sjmc7 | errr.. wait a minute. | 21:27 |
ekarlso | :P | 21:27 |
sjmc7 | no, my recordsets all went away :) | 21:27 |
sjmc7 | one moment please! | 21:27 |
sjmc7 | ekarlso - 015-09-09 16:30:43.176 ERROR searchlight.cmd.manage [-] Failed to setup index extension recordset: No module named ipdb | 21:30 |
ekarlso | oh haha | 21:31 |
ekarlso | oops :D | 21:31 |
ekarlso | debug! | 21:31 |
sjmc7 | :) | 21:31 |
sjmc7 | worked though, after reomving that | 21:31 |
ekarlso | btw, you logging just a LOG.warn in debugmode when something splats is REALLY annoying | 21:31 |
sjmc7 | yeah... we need to fix that | 21:32 |
sjmc7 | it should explode | 21:32 |
ekarlso | you get literally no trace of what's going on except going in and adding LOG.exception... | 21:32 |
sjmc7 | you can now do index sync --type OS::Designate::RecordSet | 21:32 |
ekarlso | ya, I know :P | 21:32 |
sjmc7 | but yes, i agree | 21:32 |
sjmc7 | you can now do index sync --type OS::Designate::RecordSet | 21:32 |
sjmc7 | gah | 21:32 |
sjmc7 | + def get_parent_id_field(self): | 21:32 |
sjmc7 | + return "zone_id" | 21:32 |
sjmc7 | + | 21:32 |
sjmc7 | that's the change to recordsets.py, on top of 1493958 | 21:33 |
ekarlso | yeah I thought I had done that ? :/ | 21:33 |
sjmc7 | i don't want to submit a patchset because then i can't review it :) | 21:33 |
ekarlso | ah!!! | 21:33 |
ekarlso | get_parent_id_fields... | 21:34 |
ekarlso | vs field | 21:34 |
sjmc7 | ah :) | 21:34 |
ekarlso | that's what I get for getting up at 0500 and going to bed at 0100 | 21:34 |
ekarlso | meh :P | 21:34 |
sjmc7 | and spinning :) | 21:34 |
ekarlso | let's see if my setup works | 21:34 |
ekarlso | well, spinning 45 mins of interval spinning and 30 minutes of interval training actually :p | 21:34 |
ekarlso | was a zombie at the office today | 21:35 |
sjmc7 | it's just.. wrong | 21:35 |
ekarlso | it's nice :p | 21:35 |
ekarlso | break tmrw and interval runniong on friday :P | 21:35 |
ekarlso | praise you sjmc7 that worked! | 21:36 |
sjmc7 | hurrah | 21:36 |
ekarlso | ^ gogo | 21:36 |
sjmc7 | if you +1 my patch i'll get it approved so we can get designate in | 21:37 |
openstackgerrit | Endre Karlson proposed openstack/searchlight: Add Designate plugin. https://review.openstack.org/199099 | 21:37 |
ekarlso | ehm, ^ | 21:37 |
ekarlso | done sjmc7 | 21:39 |
sjmc7 | thanks. now go to bed :) | 21:40 |
ekarlso | haha, nah | 21:40 |
ekarlso | got 1 patch to fix first htne some other stuff :/ | 21:40 |
ekarlso | besides, tmrw is sleep until 8 ish day :P | 21:41 |
ekarlso | luxure! | 21:41 |
sjmc7 | :) | 21:41 |
ekarlso | sjmc7: fixing up v2 for designate.. | 21:43 |
ekarlso | and filing dandy ux tickets.. | 21:43 |
ekarlso | v2 horizon that is | 21:43 |
sjmc7 | what what what | 21:43 |
ekarlso | sjmc7: support for the Designate V2 api in horizon | 21:44 |
sjmc7 | a lot of the javascript folks are at HP | 21:44 |
ekarlso | TravT: you got time for a horizon q ? | 22:00 |
TravT | ekarlso: yeah, what's up? | 22:02 |
ekarlso | TravT: so, I have a wizardcontroller in angular and a stepcontroller | 22:03 |
ekarlso | I've defined ctrl.zone = {} on the wizctrl and ctrl.zone = {type: 'PRIMARY'} on the step one | 22:03 |
ekarlso | but when I do submit the data is empty ? | 22:03 |
TravT | do you happen to have a patchset i can look at? | 22:04 |
ekarlso | uh, there's github :P | 22:04 |
TravT | i can try to look at that. | 22:05 |
ekarlso | https://github.com/ekarlso/designate-dashboard/blob/master/designatedashboard/static/designatedashboard/zones/steps/create-zone/create-zone.controller.js | 22:05 |
ekarlso | I've defined PRIMARY there as a base for the inputs in the form | 22:06 |
ekarlso | then when hitting submit() in https://github.com/ekarlso/designate-dashboard/blob/master/designatedashboard/static/designatedashboard/zones/actions/create.wizard.controller.js ctrl.zone is {} | 22:06 |
ekarlso | which makes me kinda :/ | 22:08 |
TravT | ok, is this in a state that I can pull it and try it out? | 22:10 |
ekarlso | should be yeah | 22:11 |
ekarlso | no manual with it though ;) | 22:12 |
ekarlso | just link in the enabled foles | 22:12 |
ekarlso | s/foles/files | 22:12 |
TravT | ok, i think i'll have to pull another horizon as well. | 22:13 |
ekarlso | sjmc7: when do you think we should look at adding options for plugins ? | 22:27 |
ekarlso | TravT: did hipchat blow up for you ? | 22:38 |
TravT | no... too many windows. | 22:41 |
sjmc7 | ekarlso - soon. now :) i'm going to do some related config stuff now, so i'll maybe take a look at plugin confs while i'm doing it | 23:02 |
ekarlso | sjmc7: meh, I was actually doing it :p | 23:07 |
ekarlso | if you want I can put it up tmrw and save you it :p | 23:07 |
sjmc7 | ah. then go for it :) | 23:07 |
sjmc7 | nah, take a stab at it | 23:07 |
sjmc7 | but get some sleep! | 23:08 |
ekarlso | yap, that's next up haha :P | 23:08 |
ekarlso | seeya :) | 23:08 |
sjmc7 | g night | 23:09 |
*** david-lyle has quit IRC | 23:11 | |
*** david-lyle has joined #openstack-searchlight | 23:12 | |
*** david-lyle has quit IRC | 23:22 | |
*** david-lyle has joined #openstack-searchlight | 23:23 | |
*** sballe has quit IRC | 23:36 |
Generated by irclog2html.py 2.14.0 by Marius Gedminas - find it at mg.pov.lt!