Earlier  
Posted Nick Remark
#openstack-cyborg - 2018-06-20
14:09:08 zhipeng to discuss the os-acc
14:09:12 Rahul I copied this token from cyborg denver presentation
14:09:22 Rahul i didnt get that token
14:09:42 Rahul i know i am using wrong token.. so i want to know how i can get the correct token
14:09:53 shaohe_feng Rahul, you should get the token from keystone. let me show it
14:10:02 Sundar OK, Howard.
14:11:26 sum12 zhipeng Sundar: I would be interested in os-acc, could you somehow loop me in if you have the discussion outside the meeting ?
14:11:27 shaohe_feng http://localhost:6666/v1/accelerators -H 'Content-Type: application/json' -H "X-Auth-Token: $(openstack token issue -f value -c id)" -d '{ "name": "test" "description": "test" "device_type": "test" "acc_type": "test" "acc_capability": "test" "vendor_id": "test" "product_id": "test" "remotable": 1 }'
14:11:45 zhipeng sum12 no problem
14:12:08 sum12 thanks
14:12:48 Rahul Thank you Shaohe, Should i use this curl command?
14:13:01 zhipeng shaohe_feng is the current cli workable for basic cmds ?
14:13:05 Sundar sum12: Sure. The crux of the extended os-acc proposals are: #link https://etherpad.openstack.org/p/os-acc-discussion and https://docs.google.com/drawings/d/1gbfimiyA1f5sTeobN9mpavEkHT7Z_ScNUqimOkdIYGA/edit
14:15:11 Rahul Hi Shaohe, I am still getting auth error
14:15:12 Rahul Missing value auth-url required for auth plugin password HTTP/1.1 401 Unauthorized Content-Type: application/json Content-Length: 114 Www-Authenticate: Keystone uri="http://192.168.2.159/identity" X-Openstack-Request-Id: req-f4d773a6-2f17-4d36-900a-7c34b9b1121e Date: Wed, 20 Jun 2018 14:14:31 GMT {"error": {"message": "The request you have made requires authentication.", "code": 401, "title": "Unauthorized"}}
14:15:32 Rahul i used the curl command you sent
14:15:57 shaohe_feng the cli can work
14:16:10 shaohe_feng but only one command. list accelerators
14:16:22 Sundar Rahul, did you source openrc?
14:16:22 shaohe_feng zhipeng, we need add more commands.
14:17:08 zhipeng ok :)
14:17:09 Sundar Like this: source openrc admin admin
14:17:53 Rahul Ok . i will do that now
14:20:57 shaohe_feng zhipeng, if a developer add a new api or change the exist api, he should add a command in the CLI
14:21:02 Sundar Need to drop now. Take care, everybody
14:21:28 zhipeng shaohe_feng yes that should be the rule
14:22:12 Rahul well after doing source openrc, error msg got changed... saying faulty json format. I will check the json. Thanks all
14:22:40 sum12 folks I would like to add a spec file to the rpm-packing repo for cyborg
14:23:00 sum12 so that it can be installed as an rpm
14:23:02 shaohe_feng Rahul, #link https://github.com/shaohef/cyborg/commit/5fcc739290cec436b734579bce439b8272a67d2c
14:23:19 sum12 any inputs ?
14:23:44 shaohe_feng can also support deb?
14:24:48 sum12 #link https://wiki.openstack.org/wiki/Rpm-packaging
14:25:22 sum12 the spec files are used to build rpms, I do not know how to build a deb
14:25:49 sum12 once the spec file is included,an rpm can be built with every commit
14:26:23 shaohe_feng sum12, so we can yum install cyborg?
14:27:14 sum12 shaohe_feng: well you will definitely need a repo, but if you have a rpm built locally, then one can install the rpm without a repo
14:27:23 sum12 shaohe_feng: in short yes
14:27:36 Rahul Thank you Shaohe.. just a question from the link
14:27:42 Li_Liu #info Li_Liu
14:27:46 Rahul i used the same curl command from the link
14:28:05 Rahul getting error as reason='uuid is required')\\n\\nObjectActionError: Object action create failed because: uuid is required\\n\"
14:28:30 Rahul should i use a uuid (random generated number)?
14:28:47 zhipeng sum12 I doubt we need a spec for pkging
14:28:58 Li_Liu C ya Sundar
14:29:24 sum12 zhipeng: oops, I mean a spec-file
14:29:49 zhipeng ya I think that's welcomed :)
14:30:08 shaohe_feng Rahul, you can have a try.
14:30:10 sum12 this is nova #link https://github.com/openstack/rpm-packaging/blob/master/openstack/nova/nova.spec.j2
14:30:18 shaohe_feng random uuid is OK.
14:30:59 Rahul Thanks Shaohe
14:33:46 sum12 okay will try to get one
14:35:18 zhipeng sum12 thx
14:41:13 zhipeng Rahul still got the problem ?
14:48:42 Rahul actually yes
14:48:57 zhipeng okey since we have some sync problem with core folks's schedule, let's move some of the discussion topics offline
14:49:01 Rahul i tried a random generated number and put a new header in json as uuid
14:49:13 Rahul but still the error is there
14:50:04 shaohe_feng Rahul, which error?
14:52:18 Rahul Curl command
14:52:22 Rahul curl -g -i -X POST http://localhost:66token issue -f value -c id)" -d 'Content-Type: application/json" -H "Accept: application/json" -H "X-Auth-Token: $(openstack t { "uuid": "2311444", "instance_uuid": "4047d422-5d2f-432c-b87f-5e1749e95ee6", "host": "cyborg-1", "resources1:CUSTOM_FPGA_INTEL_VF": "1", "resources:CUSTOM_FPGA_INTEL_PF": "1", "trait1:CUSTOM_CYBORG_FPGA": "re
14:52:41 Rahul i aded a uuid header there before instance_uuid
14:52:47 Rahul error msg
14:53:04 Rahul HTTP/1.1 500 Internal Server Error Content-Type: application/json Content-Length: 1314 X-Openstack-Request-Id: req-055dfa1a-1ce6-4556-89fe-e38e92916a2f Date: Wed, 20 Jun 2018 14:51:27 GMT {"error_message": "{\"debuginfo\": null, \"faultcode\": \"Server\", \"faultstring\": \"Cannot load 'parent_uuid' in the base class\\nTraceback (most recent call last):\\n\\n File \\\"/usr/local/lib/python2.7/dist-packages/oslo_messaging/r
14:53:22 Rahul its for the uuid only i guess
14:54:06 Li_Liu try to use https://www.uuidgenerator.net/
14:54:23 Li_Liu to generate a uuid in the proper format
14:54:28 zhipeng let me close the meeting first, you guys carry on :)
14:54:36 zhipeng #endmeeting
14:54:38 openstack Meeting ended Wed Jun 20 14:54:36 2018 UTC. Information about MeetBot at http://wiki.debian.org/MeetBot . (v 0.1.4)
14:54:39 openstack Minutes: http://eavesdrop.openstack.org/meetings/openstack_cyborg/2018/openstack_cyborg.2018-06-20-14.02.html
14:54:40 openstack Minutes (text): http://eavesdrop.openstack.org/meetings/openstack_cyborg/2018/openstack_cyborg.2018-06-20-14.02.txt
14:54:41 openstack Log: http://eavesdrop.openstack.org/meetings/openstack_cyborg/2018/openstack_cyborg.2018-06-20-14.02.log.html
14:56:08 Rahul I used a generated uuid from your link Li_Liu, but the same error is there
14:56:28 Rahul important part of the error is
14:56:29 Rahul "/usr/local/lib/python2.7/dist-packages/oslo_versionedobjects/base.py\\\", line 603, in obj_load_attr\\n _(\\\"Cannot load '%s' in the base class\\\") % attrname)\\n\\nNotImplementedError: Cannot load 'parent_uuid' in the base class\\n\"}"}
14:56:45 Rahul should i mention parent uuid too?
14:56:54 Rahul little confused
14:59:14 Li_Liu are you trying to add an accelerator to cyborg?
14:59:31 Rahul yes.. just to check the post method
15:00:15 Li_Liu the format is knida hard to read tho
15:01:09 Rahul i used the same from Shaohe's link
15:01:12 Rahul https://github.com/shaohef/cyborg/commit/5fcc739290cec436b734579bce439b8272a67d2c
15:01:13 Li_Liu did you use the rul http://localhost:6666/v1/accelerators?
15:01:20 Rahul just added uuid
15:01:56 Li_Liu ahh
15:01:57 Li_Liu i see
15:02:26 Li_Liu this code is written by shaohe a while ago, which did not have the parent_uuid stuff in place yet
15:02:55 Rahul ok .. i see
15:03:15 Rahul can i get a curl command, which will work in current code
15:03:24 Li_Liu I will ask shaohe to provide the command for you
15:03:33 Rahul Thanks Li_liu
15:03:55 Rahul My mail id :
15:04:15 Rahul and
15:04:15 Rahul rahul_cse09@yahoo.co.in
15:04:22 Rahul rahul.dutta@huawei.com
15:05:17 Li_Liu sure, ok
15:05:24 Li_Liu you keep you updated
15:05:34 Rahul Thanks li Liu
15:06:32 Li_Liu npnp

Earlier   Later