Friday, 2017-06-16

*** dave-mccowan has quit IRC00:24
*** tuanluong has joined #openstack-sahara00:24
*** shuyingya has joined #openstack-sahara00:28
*** masber has quit IRC00:32
*** masber has joined #openstack-sahara00:32
*** dave-mccowan has joined #openstack-sahara01:23
*** tuanluong_ has joined #openstack-sahara02:50
*** chlong has quit IRC03:12
*** dave-mccowan has quit IRC03:43
*** akuznetsov has joined #openstack-sahara03:53
*** akuznetsov has quit IRC04:04
*** zemuvier has quit IRC05:20
*** zemuvier has joined #openstack-sahara05:20
*** pgadiya has joined #openstack-sahara05:41
*** tuanluong has quit IRC05:46
*** tuanluong_ has quit IRC05:46
*** rcernin has joined #openstack-sahara06:19
*** rcernin has quit IRC06:24
*** rcernin has joined #openstack-sahara06:40
*** pcaruana has joined #openstack-sahara06:43
*** anshulbehl has joined #openstack-sahara06:57
*** tesseract has joined #openstack-sahara07:09
*** abalutoiu has quit IRC07:12
*** zemuvier has quit IRC07:15
*** hoonetorg has joined #openstack-sahara07:31
*** abalutoiu has joined #openstack-sahara07:38
*** abalutoiu has quit IRC08:18
*** rcernin has quit IRC08:21
*** mgoddard has joined #openstack-sahara08:21
*** rcernin has joined #openstack-sahara08:22
*** shuyingya has quit IRC08:33
*** shuyingya has joined #openstack-sahara08:33
*** shuyingy_ has joined #openstack-sahara08:43
*** shuyingya has quit IRC08:46
*** tosky has joined #openstack-sahara08:57
*** abalutoiu has joined #openstack-sahara09:00
*** sudipto has joined #openstack-sahara09:33
*** sudipto_ has joined #openstack-sahara09:34
openstackgerritrocky proposed openstack/sahara master: Add test to sahara/plugins/vanilla/hadoop2/scaling.py  https://review.openstack.org/47494010:41
*** pgadiya has quit IRC10:51
*** sudipto_ has quit IRC11:24
*** sudipto has quit IRC11:24
*** tellesnobrega has quit IRC11:30
*** mgoddard has quit IRC12:01
*** shuyingy_ has quit IRC12:10
*** tellesnobrega has joined #openstack-sahara12:16
*** iwonka has quit IRC12:49
*** akuznetsov has joined #openstack-sahara12:55
*** akuznetsov has quit IRC12:57
*** dave-mccowan has joined #openstack-sahara12:59
*** iwonka has joined #openstack-sahara13:11
*** jeremyfreudberg has joined #openstack-sahara13:21
*** akuznetsov has joined #openstack-sahara13:30
*** mgoddard has joined #openstack-sahara13:35
*** lucasxu has joined #openstack-sahara13:36
*** abalutoiu has quit IRC13:46
*** abalutoiu has joined #openstack-sahara13:47
openstackgerritVitaly Gridnev proposed openstack/sahara master: Fix wrong patch unit tests  https://review.openstack.org/47498213:52
openstackgerritVitaly Gridnev proposed openstack/sahara master: Fix wrong patch in unit tests  https://review.openstack.org/47498213:53
*** abalutoiu has quit IRC14:04
*** abalutoiu has joined #openstack-sahara14:04
*** anshulbehl has quit IRC14:06
*** chlong has joined #openstack-sahara14:14
*** jeremyfreudberg has quit IRC14:16
*** jeremyfreudberg has joined #openstack-sahara14:19
*** tellesnobrega has quit IRC14:46
*** abalutoiu has quit IRC14:48
*** abalutoiu has joined #openstack-sahara14:48
*** abalutoiu_ has joined #openstack-sahara14:51
*** abalutoiu has quit IRC14:51
*** akuznetsov has quit IRC15:00
*** rcernin has quit IRC15:15
*** pcaruana has quit IRC15:20
jeremyfreudberglucasxu, ping15:23
jeremyfreudbergoops wrong channel15:23
openstackgerritMerged openstack/sahara master: Fix wrong patch in unit tests  https://review.openstack.org/47498216:18
*** jeremyfreudberg has quit IRC16:23
*** jeremyfreudberg has joined #openstack-sahara16:24
*** jeremyfreudberg has quit IRC16:31
*** mgoddard has quit IRC16:47
*** sudipto has joined #openstack-sahara16:57
*** sudipto_ has joined #openstack-sahara16:57
*** jamielennox has quit IRC17:03
*** jamielennox has joined #openstack-sahara17:03
*** tosky has quit IRC17:07
*** tellesnobrega has joined #openstack-sahara17:26
*** jeremyfreudberg has joined #openstack-sahara17:27
tellesnobregaiwonka,17:32
tellesnobregaping17:32
*** tosky has joined #openstack-sahara17:36
iwonkatellesnobrega: pong17:41
tellesnobregaiwonka, now I have access to my instance, I will try to getting the token and let you know how it works17:41
tellesnobregadid you run: openstack endpoint list?17:42
iwonkayes17:42
iwonkahttp://paste.openstack.org/show/612884/17:42
tellesnobregarun: openstack endpoint show identity17:44
tellesnobregaso, I tried the command for token request and it worked17:48
iwonkaMore than one endpoint exists with the name 'identity'.17:49
tellesnobregaiwonka, ^17:49
iwonkait doesn't work for me :(17:49
iwonkahttp://paste.openstack.org/show/612887/17:50
iwonkait's output of openstack endpoint show and id of endpoint with name identity17:51
tellesnobregaweird, maybe keystone is not v3? this is a possibility I'm thinking now17:52
tellesnobregait should be17:52
*** pcaruana has joined #openstack-sahara18:04
*** sudipto has quit IRC18:04
*** sudipto_ has quit IRC18:04
iwonkatellesnobrega: so what to do about it?18:19
tellesnobregaiwonka, looking into it18:19
tellesnobregatry running netstat -anp | grep 500018:20
tellesnobreganetstat -anp | grep 3535718:20
tellesnobregasee if anything comes up18:20
iwonkanothing for both18:21
iwonka(ran with root)18:21
jeremyfreudbergtellesnobrega, the endpoints show keystone running on port 80 anyway18:22
tellesnobregakeystone is running on 80?18:22
jeremyfreudbergi'm trying to find the reference to the change in devstack but now keystone and sometimes other services do http://host/service_type as their endpoint instead of their own service port18:23
jeremyfreudbergso http://host/identity for keystone, I'll find the gerrit link soon18:23
tellesnobregajeremyfreudberg, thanks18:23
tellesnobregaiwonka, try the request on port 8018:24
jeremyfreudberg(using the endpoint from openstack endpoint show ___ )18:24
iwonkaThe requested URL /v3/auth/tokens was not found on this server18:24
tellesnobregajeremyfreudberg, the url should be http://192.168.0.7/identity_admin:80 ??18:25
jeremyfreudberghttp://192.168.0.7/identity/v3/auth/tokens just worked for me on my devstack18:26
jeremyfreudberg(well, i had a different ip, but you get the idea)18:26
iwonkacurl -i -H "Content-Type: application/json" -d '{ "auth": { "identity": { "methods": ["password"], "password": { "user": {"name": "demo", "domain": { "id": "default" }, "password": "openstack"}}} }}' "http://192.168.0.7/identity/v3/auth/tokens"; echo18:27
iwonkai have exactly the same ip :)18:27
iwonkathe command gives curl: (1) Protocol "http" not supported or disabled in libcurl18:27
iwonkabut when using -v option i get this The requested URL /identity_admin:80 was not found on this server.18:28
iwonkatellesnobrega ^18:28
tellesnobregahttp://192.168.0.7/identity/v3/auth/tokens this should be the right one18:28
tellesnobregathanks jeremyfreudberg18:28
iwonkaso that's exactly what i'm using18:29
tellesnobregatry using the token-request.json again18:29
tellesnobregaiwonka, also, you don't need to put " on the url18:30
tellesnobrega"http://192.168.0.7/identity/v3/auth/tokens" ---> http://192.168.0.7/identity/v3/auth/tokens18:30
iwonkaokay18:31
jeremyfreudbergcurl -i -H "Content-Type: application/json" -d '{ "auth": { "identity": { "methods": ["password"], "password": { "user": {"name": "admin", "domain": { "id": "default" }, "password": "nomoresecret"}}} }}' http://localhost/identity/v3/auth/tokens18:31
jeremyfreudbergworked for me, although i had different username and password18:31
jeremyfreudbergso change them if you copy that18:31
iwonkajeremyfreudberg: for some magical reason that worked, thanks a lot!18:32
jeremyfreudbergno problem, happy i could help18:33
iwonkatellesnobrega: so now when i got the token i'm doing  curl 192.168.0.7:8386/node_groups_templates/export/fe7b4ed1-b3a2-4028-ad4d-2f3942db1135 -H"X-Auth-Token:$TOKEN"18:39
tellesnobregaiwonka, makes sense18:39
iwonkaand it gives18:39
iwonka  <h1>503 Service Unavailable</h1>18:39
iwonka  The server is currently unavailable. Please try again at a later time.<br /><br />18:39
iwonkawhich seems not to be what i want18:39
iwonkai wrote and exception feature not implemented18:40
iwonka*an18:40
tellesnobregaiwonka, probably not18:40
tellesnobregatry to make a simple API change and see if it returns what is expected18:40
*** pcaruana has quit IRC18:41
iwonkai tking it doesn't18:44
tellesnobregadid you restart sahara API after applying the change?18:45
iwonkanow yes, it didn't help :(18:48
tellesnobregaiwonka, probably something wrong on the url18:51
iwonkaid of the node group template is copied18:51
iwonkaso it's ok18:52
iwonkai have port 8386 used18:52
iwonkait was an assumption that sahara is running  on 838618:52
tellesnobregacurl 192.168.0.7:8386/v1.1/node_groups_templates/export/fe7b4ed1-b3a2-4028-ad4d-2f3942db1135 -H"X-Auth-Token:$TOKEN"18:52
tellesnobregai think you missed v1.118:53
tellesnobregatry this ^18:53
iwonkaexactly the same18:53
*** ltosky[m] has quit IRC18:55
jeremyfreudbergcould I see the api change you made? what do you return in the function which defines that "export" api endpoint?18:57
jeremyfreudbergotherwise, checking sahara-api logs can be good too, sometimes there's more context around that 503 error18:58
tellesnobregahttps://developer.openstack.org/api-ref/data-processing/18:58
tellesnobregaiwonka, looks like you are missing project id18:58
tellesnobrega /v1.1/{project_id}/node-group-templates18:59
jeremyfreudbergtellesnobrega, you're right, I bet that would fix it18:59
tellesnobregaalso use - not _18:59
tellesnobrega curl 192.168.0.7:8386/{project_id}/node-groups-templates/export/fe7b4ed1-b3a2-4028-ad4d-2f3942db1135 -H"X-Auth-Token:$TOKEN"18:59
iwonkai should use demo project?19:00
jeremyfreudbergif the user you used to get the token is a member of that project19:01
jeremyfreudbergwhich is not as easy to find out as it sounds19:01
jeremyfreudbergI know admin is member of demo and admin by default devstack config19:02
jeremyfreudbergdemo should be a member of demo and invisible_to_admin19:03
jeremyfreudbergalso, you'll probably need a token that is scoped to the specific project19:03
iwonkaO_O19:06
iwonkai used demo user, so i guess it's member of demo project19:06
jeremyfreudbergyeah, that was a little overwhelming of an explanation... but yes, let's just try with demo project, you can get the id through `openstack project list` command19:07
tellesnobregaiwonka, yes, demo project should be good19:09
iwonkaanyway, still the server unavailable error19:12
jeremyfreudbergstill the 503? anything in the sahara-api log?19:14
jeremyfreudbergor i guess i should ask, anything interesting19:14
iwonkastill 50319:15
iwonkanothing in sahara-api log i think19:16
tellesnobregatry simple curl 192.168.0.7:8386/{project_id}/node-groups-templates19:17
tellesnobregatry listing node-group-templates19:17
tellesnobregaiwonka, ^19:33
*** tesseract has quit IRC19:53
iwonkatellesnobrega: sorry for disappearing20:01
iwonkait doesn't work, the same error20:01
tellesnobregaiwonka, no need to apologize20:01
tellesnobregaso probably the curl request is wrong here20:01
iwonkaboth with v1.1 in addres and without20:02
tellesnobregacurl -si -H"X-Auth-Token:$TOKEN" -H "Content-type: application/json" http:/192.168.0.7:8386/{$project_id}/node-groups-templates20:03
tellesnobregasee if that works20:03
tellesnobregamissed a slash there20:04
tellesnobregahttp://20:04
iwonkaand that returns nothing20:05
openstackgerritMerged openstack/sahara master: remove workaround in grenade  https://review.openstack.org/47446220:06
tellesnobregatry without -si20:06
iwonkaunauthorised20:07
iwonkacreated new token, service unavailable20:08
tellesnobregacan you try any of sahara calls20:20
tellesnobregawe need to understand that you can curl sahara properly20:20
tellesnobregalist templates, list plugins20:21
tellesnobregasomething20:21
iwonkaokay20:22
toskylist plugins is the real base base test20:25
iwonkaso apparently I cannot20:25
iwonkai used  curl -si -H"X-Auth-Token:$TOKEN" -H "Content-type: application/json" http://192.168.0.7:8386/v1.1/51dfd7a09144450dac99bcd668f37d07/plugins20:25
iwonkawhich according to the docs should list plugins20:25
toskyis that a project_id?20:27
tosky51df...20:27
toskyit doesn't look like an UUID20:27
iwonkaits copied from ID field for openstack project list20:28
iwonkafor project demo20:28
jeremyfreudbergtosky, I don't think projects are UUIDs, in my devstack they don't have the hyphens either20:28
toskyuhm20:28
toskyoki, I don't have my environment around now20:29
jeremyfreudbergiwonka, can you try source {your devstack folder}/openrc demo demo; openstack dataprocessing plugin list is also error? that would tell us whether there is some problem with your curl, or actual sahara problem20:29
toskyand my memory is what it is :)20:29
iwonkajeremyfreudberg: openstack cli command gives something that seems to be ok20:31
iwonkalike a normal table with list of plugins and versions20:31
iwonkaso the problem is with my curl request20:31
jeremyfreudbergthat's my thought20:32
jeremyfreudberguh, your curl worked for me20:34
jeremyfreudbergto be fair, this is a real ocata openstack and not master devstack, but this worked for me20:36
jeremyfreudberghttp://paste.openstack.org/show/612893/20:36
jeremyfreudberg^ iwonka20:39
iwonkasaw that20:39
iwonkai got different result for the first query20:39
iwonkaopenstack token something20:39
iwonkaand there was different project id than i used20:40
iwonkaso i checked with this other project id20:40
iwonkabut still got the same error20:40
jeremyfreudbergyour project ID will be different on your own devstack. and instead of REDACTED you will have actual token20:40
jeremyfreudbergI had to hide the token since that environment I tested it on is a real openstack on the internet.20:40
iwonkait had different format20:41
iwonkathat's what i ment by different20:41
jeremyfreudbergwhat had a different format?20:41
jeremyfreudbergthe whole response?20:41
iwonkakind of differnt20:42
iwonkabut nevermind20:42
iwonkagot something else20:42
iwonkawhen i changed the token to the one i get there and project id to the one i got there20:42
iwonkathere is something that looks like a json20:42
iwonkaso it probably listed plugins20:43
jeremyfreudbergsomething that looks like a json is good20:43
jeremyfreudbergespecially if it's big and has words like vanilla and spark in it20:43
iwonkayes, it does20:43
jeremyfreudbergok, then it works20:43
iwonkaso i have to get tokens with this openstack token issue20:43
iwonkathanks a lot!20:43
jeremyfreudbergno problem. happy to help. technically you should be able to get a token through curl too. i just remembered openstack token issue exists and generally works.20:44
jeremyfreudbergbut i think openstack token issue is easier for everyone20:44
iwonkait's easier20:45
iwonkaworks out of box20:45
jeremyfreudbergyep20:46
tellesnobregaso the problem was the token?20:48
iwonkayes, apparently20:49
iwonkaand project  id20:49
iwonkai had to use project id i git with the token20:49
iwonka*got20:49
iwonkanow curl that lists node-group-templates works fine20:49
iwonkabut with /export added it gives 40420:50
iwonkaso that's probably problem with my code20:50
iwonkatellesnobrega ^20:53
tellesnobregaiwonka, probably, you can now add a simple return to that endpoint and see if it returns20:54
*** jeremyfreudberg has quit IRC20:54
iwonkawhat do you mean?20:56
tellesnobregaiwonka, create a new endpoint, export for example21:18
tellesnobregaand just add a simple return21:18
tellesnobregato see if it returns or is it a 40421:19
iwonkaso with openstack endpoint create?21:19
*** lucasxu has quit IRC21:22
*** chlong has quit IRC21:30
*** ltosky[m] has joined #openstack-sahara21:31
*** dave-mccowan has quit IRC21:32
*** tosky has quit IRC22:44
*** masuberu has joined #openstack-sahara23:16
*** logan_ has joined #openstack-sahara23:25
*** hoonetorg has quit IRC23:26
*** masber has quit IRC23:26
*** logan- has quit IRC23:26
*** hoonetorg has joined #openstack-sahara23:27
*** logan_ is now known as logan-23:29

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