*** dave-mccowan has quit IRC | 00:24 | |
*** tuanluong has joined #openstack-sahara | 00:24 | |
*** shuyingya has joined #openstack-sahara | 00:28 | |
*** masber has quit IRC | 00:32 | |
*** masber has joined #openstack-sahara | 00:32 | |
*** dave-mccowan has joined #openstack-sahara | 01:23 | |
*** tuanluong_ has joined #openstack-sahara | 02:50 | |
*** chlong has quit IRC | 03:12 | |
*** dave-mccowan has quit IRC | 03:43 | |
*** akuznetsov has joined #openstack-sahara | 03:53 | |
*** akuznetsov has quit IRC | 04:04 | |
*** zemuvier has quit IRC | 05:20 | |
*** zemuvier has joined #openstack-sahara | 05:20 | |
*** pgadiya has joined #openstack-sahara | 05:41 | |
*** tuanluong has quit IRC | 05:46 | |
*** tuanluong_ has quit IRC | 05:46 | |
*** rcernin has joined #openstack-sahara | 06:19 | |
*** rcernin has quit IRC | 06:24 | |
*** rcernin has joined #openstack-sahara | 06:40 | |
*** pcaruana has joined #openstack-sahara | 06:43 | |
*** anshulbehl has joined #openstack-sahara | 06:57 | |
*** tesseract has joined #openstack-sahara | 07:09 | |
*** abalutoiu has quit IRC | 07:12 | |
*** zemuvier has quit IRC | 07:15 | |
*** hoonetorg has joined #openstack-sahara | 07:31 | |
*** abalutoiu has joined #openstack-sahara | 07:38 | |
*** abalutoiu has quit IRC | 08:18 | |
*** rcernin has quit IRC | 08:21 | |
*** mgoddard has joined #openstack-sahara | 08:21 | |
*** rcernin has joined #openstack-sahara | 08:22 | |
*** shuyingya has quit IRC | 08:33 | |
*** shuyingya has joined #openstack-sahara | 08:33 | |
*** shuyingy_ has joined #openstack-sahara | 08:43 | |
*** shuyingya has quit IRC | 08:46 | |
*** tosky has joined #openstack-sahara | 08:57 | |
*** abalutoiu has joined #openstack-sahara | 09:00 | |
*** sudipto has joined #openstack-sahara | 09:33 | |
*** sudipto_ has joined #openstack-sahara | 09:34 | |
openstackgerrit | rocky proposed openstack/sahara master: Add test to sahara/plugins/vanilla/hadoop2/scaling.py https://review.openstack.org/474940 | 10:41 |
---|---|---|
*** pgadiya has quit IRC | 10:51 | |
*** sudipto_ has quit IRC | 11:24 | |
*** sudipto has quit IRC | 11:24 | |
*** tellesnobrega has quit IRC | 11:30 | |
*** mgoddard has quit IRC | 12:01 | |
*** shuyingy_ has quit IRC | 12:10 | |
*** tellesnobrega has joined #openstack-sahara | 12:16 | |
*** iwonka has quit IRC | 12:49 | |
*** akuznetsov has joined #openstack-sahara | 12:55 | |
*** akuznetsov has quit IRC | 12:57 | |
*** dave-mccowan has joined #openstack-sahara | 12:59 | |
*** iwonka has joined #openstack-sahara | 13:11 | |
*** jeremyfreudberg has joined #openstack-sahara | 13:21 | |
*** akuznetsov has joined #openstack-sahara | 13:30 | |
*** mgoddard has joined #openstack-sahara | 13:35 | |
*** lucasxu has joined #openstack-sahara | 13:36 | |
*** abalutoiu has quit IRC | 13:46 | |
*** abalutoiu has joined #openstack-sahara | 13:47 | |
openstackgerrit | Vitaly Gridnev proposed openstack/sahara master: Fix wrong patch unit tests https://review.openstack.org/474982 | 13:52 |
openstackgerrit | Vitaly Gridnev proposed openstack/sahara master: Fix wrong patch in unit tests https://review.openstack.org/474982 | 13:53 |
*** abalutoiu has quit IRC | 14:04 | |
*** abalutoiu has joined #openstack-sahara | 14:04 | |
*** anshulbehl has quit IRC | 14:06 | |
*** chlong has joined #openstack-sahara | 14:14 | |
*** jeremyfreudberg has quit IRC | 14:16 | |
*** jeremyfreudberg has joined #openstack-sahara | 14:19 | |
*** tellesnobrega has quit IRC | 14:46 | |
*** abalutoiu has quit IRC | 14:48 | |
*** abalutoiu has joined #openstack-sahara | 14:48 | |
*** abalutoiu_ has joined #openstack-sahara | 14:51 | |
*** abalutoiu has quit IRC | 14:51 | |
*** akuznetsov has quit IRC | 15:00 | |
*** rcernin has quit IRC | 15:15 | |
*** pcaruana has quit IRC | 15:20 | |
jeremyfreudberg | lucasxu, ping | 15:23 |
jeremyfreudberg | oops wrong channel | 15:23 |
openstackgerrit | Merged openstack/sahara master: Fix wrong patch in unit tests https://review.openstack.org/474982 | 16:18 |
*** jeremyfreudberg has quit IRC | 16:23 | |
*** jeremyfreudberg has joined #openstack-sahara | 16:24 | |
*** jeremyfreudberg has quit IRC | 16:31 | |
*** mgoddard has quit IRC | 16:47 | |
*** sudipto has joined #openstack-sahara | 16:57 | |
*** sudipto_ has joined #openstack-sahara | 16:57 | |
*** jamielennox has quit IRC | 17:03 | |
*** jamielennox has joined #openstack-sahara | 17:03 | |
*** tosky has quit IRC | 17:07 | |
*** tellesnobrega has joined #openstack-sahara | 17:26 | |
*** jeremyfreudberg has joined #openstack-sahara | 17:27 | |
tellesnobrega | iwonka, | 17:32 |
tellesnobrega | ping | 17:32 |
*** tosky has joined #openstack-sahara | 17:36 | |
iwonka | tellesnobrega: pong | 17:41 |
tellesnobrega | iwonka, now I have access to my instance, I will try to getting the token and let you know how it works | 17:41 |
tellesnobrega | did you run: openstack endpoint list? | 17:42 |
iwonka | yes | 17:42 |
iwonka | http://paste.openstack.org/show/612884/ | 17:42 |
tellesnobrega | run: openstack endpoint show identity | 17:44 |
tellesnobrega | so, I tried the command for token request and it worked | 17:48 |
iwonka | More than one endpoint exists with the name 'identity'. | 17:49 |
tellesnobrega | iwonka, ^ | 17:49 |
iwonka | it doesn't work for me :( | 17:49 |
iwonka | http://paste.openstack.org/show/612887/ | 17:50 |
iwonka | it's output of openstack endpoint show and id of endpoint with name identity | 17:51 |
tellesnobrega | weird, maybe keystone is not v3? this is a possibility I'm thinking now | 17:52 |
tellesnobrega | it should be | 17:52 |
*** pcaruana has joined #openstack-sahara | 18:04 | |
*** sudipto has quit IRC | 18:04 | |
*** sudipto_ has quit IRC | 18:04 | |
iwonka | tellesnobrega: so what to do about it? | 18:19 |
tellesnobrega | iwonka, looking into it | 18:19 |
tellesnobrega | try running netstat -anp | grep 5000 | 18:20 |
tellesnobrega | netstat -anp | grep 35357 | 18:20 |
tellesnobrega | see if anything comes up | 18:20 |
iwonka | nothing for both | 18:21 |
iwonka | (ran with root) | 18:21 |
jeremyfreudberg | tellesnobrega, the endpoints show keystone running on port 80 anyway | 18:22 |
tellesnobrega | keystone is running on 80? | 18:22 |
jeremyfreudberg | i'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 port | 18:23 |
jeremyfreudberg | so http://host/identity for keystone, I'll find the gerrit link soon | 18:23 |
tellesnobrega | jeremyfreudberg, thanks | 18:23 |
tellesnobrega | iwonka, try the request on port 80 | 18:24 |
jeremyfreudberg | (using the endpoint from openstack endpoint show ___ ) | 18:24 |
iwonka | The requested URL /v3/auth/tokens was not found on this server | 18:24 |
tellesnobrega | jeremyfreudberg, the url should be http://192.168.0.7/identity_admin:80 ?? | 18:25 |
jeremyfreudberg | http://192.168.0.7/identity/v3/auth/tokens just worked for me on my devstack | 18:26 |
jeremyfreudberg | (well, i had a different ip, but you get the idea) | 18:26 |
iwonka | curl -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"; echo | 18:27 |
iwonka | i have exactly the same ip :) | 18:27 |
iwonka | the command gives curl: (1) Protocol "http" not supported or disabled in libcurl | 18:27 |
iwonka | but when using -v option i get this The requested URL /identity_admin:80 was not found on this server. | 18:28 |
iwonka | tellesnobrega ^ | 18:28 |
tellesnobrega | http://192.168.0.7/identity/v3/auth/tokens this should be the right one | 18:28 |
tellesnobrega | thanks jeremyfreudberg | 18:28 |
iwonka | so that's exactly what i'm using | 18:29 |
tellesnobrega | try using the token-request.json again | 18:29 |
tellesnobrega | iwonka, also, you don't need to put " on the url | 18:30 |
tellesnobrega | "http://192.168.0.7/identity/v3/auth/tokens" ---> http://192.168.0.7/identity/v3/auth/tokens | 18:30 |
iwonka | okay | 18:31 |
jeremyfreudberg | curl -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/tokens | 18:31 |
jeremyfreudberg | worked for me, although i had different username and password | 18:31 |
jeremyfreudberg | so change them if you copy that | 18:31 |
iwonka | jeremyfreudberg: for some magical reason that worked, thanks a lot! | 18:32 |
jeremyfreudberg | no problem, happy i could help | 18:33 |
iwonka | tellesnobrega: 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 |
tellesnobrega | iwonka, makes sense | 18:39 |
iwonka | and it gives | 18: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 |
iwonka | which seems not to be what i want | 18:39 |
iwonka | i wrote and exception feature not implemented | 18:40 |
iwonka | *an | 18:40 |
tellesnobrega | iwonka, probably not | 18:40 |
tellesnobrega | try to make a simple API change and see if it returns what is expected | 18:40 |
*** pcaruana has quit IRC | 18:41 | |
iwonka | i tking it doesn't | 18:44 |
tellesnobrega | did you restart sahara API after applying the change? | 18:45 |
iwonka | now yes, it didn't help :( | 18:48 |
tellesnobrega | iwonka, probably something wrong on the url | 18:51 |
iwonka | id of the node group template is copied | 18:51 |
iwonka | so it's ok | 18:52 |
iwonka | i have port 8386 used | 18:52 |
iwonka | it was an assumption that sahara is running on 8386 | 18:52 |
tellesnobrega | curl 192.168.0.7:8386/v1.1/node_groups_templates/export/fe7b4ed1-b3a2-4028-ad4d-2f3942db1135 -H"X-Auth-Token:$TOKEN" | 18:52 |
tellesnobrega | i think you missed v1.1 | 18:53 |
tellesnobrega | try this ^ | 18:53 |
iwonka | exactly the same | 18:53 |
*** ltosky[m] has quit IRC | 18:55 | |
jeremyfreudberg | could I see the api change you made? what do you return in the function which defines that "export" api endpoint? | 18:57 |
jeremyfreudberg | otherwise, checking sahara-api logs can be good too, sometimes there's more context around that 503 error | 18:58 |
tellesnobrega | https://developer.openstack.org/api-ref/data-processing/ | 18:58 |
tellesnobrega | iwonka, looks like you are missing project id | 18:58 |
tellesnobrega | /v1.1/{project_id}/node-group-templates | 18:59 |
jeremyfreudberg | tellesnobrega, you're right, I bet that would fix it | 18:59 |
tellesnobrega | also 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 |
iwonka | i should use demo project? | 19:00 |
jeremyfreudberg | if the user you used to get the token is a member of that project | 19:01 |
jeremyfreudberg | which is not as easy to find out as it sounds | 19:01 |
jeremyfreudberg | I know admin is member of demo and admin by default devstack config | 19:02 |
jeremyfreudberg | demo should be a member of demo and invisible_to_admin | 19:03 |
jeremyfreudberg | also, you'll probably need a token that is scoped to the specific project | 19:03 |
iwonka | O_O | 19:06 |
iwonka | i used demo user, so i guess it's member of demo project | 19:06 |
jeremyfreudberg | yeah, 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` command | 19:07 |
tellesnobrega | iwonka, yes, demo project should be good | 19:09 |
iwonka | anyway, still the server unavailable error | 19:12 |
jeremyfreudberg | still the 503? anything in the sahara-api log? | 19:14 |
jeremyfreudberg | or i guess i should ask, anything interesting | 19:14 |
iwonka | still 503 | 19:15 |
iwonka | nothing in sahara-api log i think | 19:16 |
tellesnobrega | try simple curl 192.168.0.7:8386/{project_id}/node-groups-templates | 19:17 |
tellesnobrega | try listing node-group-templates | 19:17 |
tellesnobrega | iwonka, ^ | 19:33 |
*** tesseract has quit IRC | 19:53 | |
iwonka | tellesnobrega: sorry for disappearing | 20:01 |
iwonka | it doesn't work, the same error | 20:01 |
tellesnobrega | iwonka, no need to apologize | 20:01 |
tellesnobrega | so probably the curl request is wrong here | 20:01 |
iwonka | both with v1.1 in addres and without | 20:02 |
tellesnobrega | curl -si -H"X-Auth-Token:$TOKEN" -H "Content-type: application/json" http:/192.168.0.7:8386/{$project_id}/node-groups-templates | 20:03 |
tellesnobrega | see if that works | 20:03 |
tellesnobrega | missed a slash there | 20:04 |
tellesnobrega | http:// | 20:04 |
iwonka | and that returns nothing | 20:05 |
openstackgerrit | Merged openstack/sahara master: remove workaround in grenade https://review.openstack.org/474462 | 20:06 |
tellesnobrega | try without -si | 20:06 |
iwonka | unauthorised | 20:07 |
iwonka | created new token, service unavailable | 20:08 |
tellesnobrega | can you try any of sahara calls | 20:20 |
tellesnobrega | we need to understand that you can curl sahara properly | 20:20 |
tellesnobrega | list templates, list plugins | 20:21 |
tellesnobrega | something | 20:21 |
iwonka | okay | 20:22 |
tosky | list plugins is the real base base test | 20:25 |
iwonka | so apparently I cannot | 20:25 |
iwonka | i used curl -si -H"X-Auth-Token:$TOKEN" -H "Content-type: application/json" http://192.168.0.7:8386/v1.1/51dfd7a09144450dac99bcd668f37d07/plugins | 20:25 |
iwonka | which according to the docs should list plugins | 20:25 |
tosky | is that a project_id? | 20:27 |
tosky | 51df... | 20:27 |
tosky | it doesn't look like an UUID | 20:27 |
iwonka | its copied from ID field for openstack project list | 20:28 |
iwonka | for project demo | 20:28 |
jeremyfreudberg | tosky, I don't think projects are UUIDs, in my devstack they don't have the hyphens either | 20:28 |
tosky | uhm | 20:28 |
tosky | oki, I don't have my environment around now | 20:29 |
jeremyfreudberg | iwonka, 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 problem | 20:29 |
tosky | and my memory is what it is :) | 20:29 |
iwonka | jeremyfreudberg: openstack cli command gives something that seems to be ok | 20:31 |
iwonka | like a normal table with list of plugins and versions | 20:31 |
iwonka | so the problem is with my curl request | 20:31 |
jeremyfreudberg | that's my thought | 20:32 |
jeremyfreudberg | uh, your curl worked for me | 20:34 |
jeremyfreudberg | to be fair, this is a real ocata openstack and not master devstack, but this worked for me | 20:36 |
jeremyfreudberg | http://paste.openstack.org/show/612893/ | 20:36 |
jeremyfreudberg | ^ iwonka | 20:39 |
iwonka | saw that | 20:39 |
iwonka | i got different result for the first query | 20:39 |
iwonka | openstack token something | 20:39 |
iwonka | and there was different project id than i used | 20:40 |
iwonka | so i checked with this other project id | 20:40 |
iwonka | but still got the same error | 20:40 |
jeremyfreudberg | your project ID will be different on your own devstack. and instead of REDACTED you will have actual token | 20:40 |
jeremyfreudberg | I had to hide the token since that environment I tested it on is a real openstack on the internet. | 20:40 |
iwonka | it had different format | 20:41 |
iwonka | that's what i ment by different | 20:41 |
jeremyfreudberg | what had a different format? | 20:41 |
jeremyfreudberg | the whole response? | 20:41 |
iwonka | kind of differnt | 20:42 |
iwonka | but nevermind | 20:42 |
iwonka | got something else | 20:42 |
iwonka | when i changed the token to the one i get there and project id to the one i got there | 20:42 |
iwonka | there is something that looks like a json | 20:42 |
iwonka | so it probably listed plugins | 20:43 |
jeremyfreudberg | something that looks like a json is good | 20:43 |
jeremyfreudberg | especially if it's big and has words like vanilla and spark in it | 20:43 |
iwonka | yes, it does | 20:43 |
jeremyfreudberg | ok, then it works | 20:43 |
iwonka | so i have to get tokens with this openstack token issue | 20:43 |
iwonka | thanks a lot! | 20:43 |
jeremyfreudberg | no 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 |
jeremyfreudberg | but i think openstack token issue is easier for everyone | 20:44 |
iwonka | it's easier | 20:45 |
iwonka | works out of box | 20:45 |
jeremyfreudberg | yep | 20:46 |
tellesnobrega | so the problem was the token? | 20:48 |
iwonka | yes, apparently | 20:49 |
iwonka | and project id | 20:49 |
iwonka | i had to use project id i git with the token | 20:49 |
iwonka | *got | 20:49 |
iwonka | now curl that lists node-group-templates works fine | 20:49 |
iwonka | but with /export added it gives 404 | 20:50 |
iwonka | so that's probably problem with my code | 20:50 |
iwonka | tellesnobrega ^ | 20:53 |
tellesnobrega | iwonka, probably, you can now add a simple return to that endpoint and see if it returns | 20:54 |
*** jeremyfreudberg has quit IRC | 20:54 | |
iwonka | what do you mean? | 20:56 |
tellesnobrega | iwonka, create a new endpoint, export for example | 21:18 |
tellesnobrega | and just add a simple return | 21:18 |
tellesnobrega | to see if it returns or is it a 404 | 21:19 |
iwonka | so with openstack endpoint create? | 21:19 |
*** lucasxu has quit IRC | 21:22 | |
*** chlong has quit IRC | 21:30 | |
*** ltosky[m] has joined #openstack-sahara | 21:31 | |
*** dave-mccowan has quit IRC | 21:32 | |
*** tosky has quit IRC | 22:44 | |
*** masuberu has joined #openstack-sahara | 23:16 | |
*** logan_ has joined #openstack-sahara | 23:25 | |
*** hoonetorg has quit IRC | 23:26 | |
*** masber has quit IRC | 23:26 | |
*** logan- has quit IRC | 23:26 | |
*** hoonetorg has joined #openstack-sahara | 23: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!