Friday, 2017-06-02

*** wanghao has joined #openstack-zaqar00:36
wanghaoflwang: ping00:40
*** openstackgerrit has joined #openstack-zaqar01:17
openstackgerritNgo Quoc Cuong proposed openstack/zaqar master: Replace deprecated oslo.messaging.get_transport with get_notification_transport  https://review.openstack.org/47007101:17
openstackgerritwanghao proposed openstack/zaqar-specs master: Service Queue in Zaqar  https://review.openstack.org/44943301:50
flwangwanghao: yep02:27
wanghaoflwang: Just let you know I have see your discussion and also talked with wxy about service queue.02:28
wanghaoflwang: there is a poc patch02:28
wanghaohttps://review.openstack.org/#/c/469343/02:29
wanghaoflwang: use service token to post messages in other project's queue.02:29
wxyVery simple, but effective i think02:29
wanghaoyep02:29
wanghaoso we can see if it's what we want.02:30
*** mpanetta has quit IRC02:30
wanghaoBTW, since Zaqar cann't support service.xxx name in queue. So I use service- prefix.02:30
*** mpanetta has joined #openstack-zaqar02:31
wanghaoSpec also be updated according our discussion.02:31
wxyI think we need searchlight guys to take a look at the spec since they need do some work for service token02:31
wanghaoyes, and also the new HTTP Header they should take in reqeust.02:32
flwangwxy: do you know how to generate a service token?02:32
flwangi'd like to get a script to simulate sending notifications to zaqar as a service user02:33
wanghaoflwang: it like user token I think, just use tenant name is service and user name is like 'nova'.02:34
wanghaoI use them to generate the service token.02:34
wxyActually in keystone sight,  there is no difference between service token and user token. It's called service token because the header is "X-Service-Token"02:35
wanghaoyes02:35
wxywe need config Zaqar to let it know what token is service token02:36
wanghaothe process of authorization is same in keystone02:36
wxyThere are some conifg option in keystonemiddleware02:36
wanghaowxy: no need,  if you take the X-Service-Token in request, keytonemiddler will set service token headers in request.02:37
wanghaowxy: so just get them from request if they exist02:38
wxybut it will check the role in token02:38
wxy"Service " by default02:39
openstackgerritOpenStack Proposal Bot proposed openstack/zaqar master: Updated from global requirements  https://review.openstack.org/47014902:39
wxyThe check is turned off by default02:40
flwangi know what you said, i just want to figure out what the change searchlight need to do in their patch, see https://review.openstack.org/#/c/271958/2/searchlight/publisher/plugins/zaqar/zaqar_publisher.py02:41
wxyhttps://github.com/openstack/keystonemiddleware/blob/master/keystonemiddleware/auth_token/_opts.py#L184-L19602:42
wxySearchlight should pass "X-Service-Token" and "X-Service-Delegated-Project-ID" headers to Zaqar. Right?02:43
flwangwxy: that's my question :D02:43
wanghaoflwang: they need to generate the service token by using their service credentials02:46
wxyflwang: hah, I guess yes. Searchlight should provide that which project/tenant will receive the message. My concern here is whether it's possible. Can searchlight do it?02:46
wanghaoflwang: and also add a new HTTP header "X-Service-Delegated-Project-ID"02:46
wanghaowxy: flwang: searchligh should know the user project ids which it will send the messages.02:47
wanghaoflwang: that's we didn't ensure,  how it know those user projects?02:48
flwangi don't think it's real problem, when searchlight got the notifications, see line 35 https://review.openstack.org/#/c/271958/2/searchlight/publisher/plugins/zaqar/zaqar_publisher.py02:48
flwangor line 6802:49
wxywhere the project_id come from?02:51
wxyby the resource?02:52
flwangsee line 6502:52
flwangit's in the data02:52
wanghaobut the token is from line 3302:53
wanghaoit seems not the user project token.02:53
*** mpanetta has quit IRC02:54
*** mpanetta has joined #openstack-zaqar02:55
flwangthat's what we need to change, right?02:55
flwangyou guys just asked where to get the project id02:55
wxyyeah, I asked Kevin just now. The notification stored by Searchlight contains the resource's project_id. I think we can use it.02:58
*** wanghao has quit IRC02:59
*** wanghao has joined #openstack-zaqar03:00
wanghaoyes, and we also need to take service token in searchlight03:00
wanghaowe just need to know user project (get from resource's project_id) and Service token (get from searchlight's service credentials?)03:02
wanghaowe don't care about the X-Auth-Token,  it just be valid is ok03:03
*** wanghao_ has joined #openstack-zaqar03:04
wxy+103:06
flwangi will contact with zhang lei to let him know what's going on and it would be nice if he can try the PoC code03:07
*** wanghao has quit IRC03:08
wanghao_flwang: sure thanks03:09
wanghao_wxy: BTW, about the role in token,  I agree with you that we should open it.03:10
wanghao_wxy: to make sure the role in service token is 'service'03:10
wxywanghao_: :)03:10
wxyflwang: cool.03:11
flwangi'm reviewing the poc patch03:12
flwangso if we can get the X-SERVICE-PROJECT-NAME, that means there is a service token? don't we need to just check if there is a service token?03:13
wxyYes, the X-SERVICE-PROJECT-NAME is generated by keystonemiddleware after the service token is checked.03:17
wanghao_X-SERVICE-PROJECT-NAME is set by keystonemiddleware if there is X-Service-Token in request. So it means there is a service token03:18
wanghao_:)03:19
wanghao_flwang: and we check the Service-Project-Name to ensure the token is came from 'Service' project03:20
wanghao_flwang: to avoid some exception case03:20
flwangwanghao_: cool03:26
wanghao_:)03:27
flwangwanghao_: as for this feature, can we add an option as that operator can turn off it?03:32
flwangand personally, i prefer to use 'service.' instead of 'service-' as the prefix? wxy, concern?03:32
wxycan "service." be analysised analysed in url?03:36
wxycan "service." be analysed in url?03:36
flwangwxy: why not?03:43
wxypaste.openstack.org/show/61126603:51
wxyflwang: at least we can't at this moment.03:52
flwangah, right03:53
*** lhx__ has joined #openstack-zaqar04:22
openstackgerritMerged openstack/zaqar master: Updated from global requirements  https://review.openstack.org/47014904:39
wanghao_flwang: we can add the option to turn off it.04:40
wanghao_flwang: and as wxy said we cann't support it now, maybe need some changes, I'll check it later.04:41
*** lhx__ has quit IRC04:43
*** rcernin has joined #openstack-zaqar05:26
*** wanghao_ has quit IRC05:40
*** wanghao has joined #openstack-zaqar05:41
openstackgerritwangxiyuan proposed openstack/zaqar master: Remove usage of parameter enforce_type  https://review.openstack.org/46940506:05
*** lhx__ has joined #openstack-zaqar06:38
*** lhx__ has quit IRC06:42
*** lhx__ has joined #openstack-zaqar06:43
*** lhx__ has quit IRC06:45
*** lhx__ has joined #openstack-zaqar06:46
*** tesseract has joined #openstack-zaqar07:04
openstackgerritwanghao proposed openstack/zaqar master: [POC]Service Queue In Zaqar  https://review.openstack.org/46934307:12
openstackgerritwanghao proposed openstack/zaqar-specs master: Service Queue in Zaqar  https://review.openstack.org/44943307:20
openstackgerritVan Hung Pham proposed openstack/zaqar master: Optimize the link address  https://review.openstack.org/47018707:48
openstackgerritMerged openstack/zaqar master: Remove usage of parameter enforce_type  https://review.openstack.org/46940508:09
openstackgerritwanghao proposed openstack/python-zaqarclient master: Fix the inconsistent command format in openstackclient  https://review.openstack.org/47020108:33
*** flwang has quit IRC09:00
*** lhx__ has quit IRC09:07
*** lhx__ has joined #openstack-zaqar09:07
*** wanghao has quit IRC09:11
*** wanghao has joined #openstack-zaqar09:25
*** wanghao has quit IRC09:36
*** flwang has joined #openstack-zaqar10:15
*** lhx__ has quit IRC12:40
*** mpanetta has quit IRC14:11
*** mpanetta has joined #openstack-zaqar14:12
*** mpanetta has quit IRC14:55
*** mpanetta has joined #openstack-zaqar14:55
*** mpanetta has quit IRC14:56
*** mpanetta has joined #openstack-zaqar14:56
*** rcernin has quit IRC15:05
*** tesseract has quit IRC16:00
*** pcaruana has quit IRC16:16
*** harlowja has quit IRC17:28
*** harlowja has joined #openstack-zaqar20:04
*** rcernin has joined #openstack-zaqar20:12
*** kgriffs_alt has joined #openstack-zaqar22:34
*** andreaf has quit IRC22:35
*** rcernin has quit IRC22:39
*** david_cu has quit IRC22:40
*** andreaf has joined #openstack-zaqar22:40
*** kgriffs has quit IRC22:40
*** kgriffs_alt is now known as kgriffs22:40

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