13:01:08 #startmeeting tricircle 13:01:09 Meeting started Wed Feb 17 13:01:08 2016 UTC and is due to finish in 60 minutes. The chair is joehuang. Information about MeetBot at http://wiki.debian.org/MeetBot. 13:01:10 Useful Commands: #action #agreed #help #info #idea #link #topic #startvote. 13:01:11 Thanks 13:01:13 The meeting name has been set to 'tricircle' 13:01:37 #topic rollcall 13:01:46 #info joehuang 13:01:54 #info yipei 13:01:54 #info BeanZhang 13:02:04 #info zhiyuan 13:02:06 hi Yipei, your connection is not stable 13:02:09 #info Pengfei 13:02:11 #info yipei 13:02:11 yes 13:02:31 #topic progress review 13:02:32 i have already tried many times 13:02:54 you can use VPN 13:03:53 Hi Yipei, have you report a bug to DevStack for the multi-region installation issue 13:04:11 yes, i have 13:04:18 link? 13:04:42 https://bugs.launchpad.net/devstack/+bug/1540802 13:04:42 Launchpad bug 1540802 in devstack "Installing devstack with multi-region setting fails" [Undecided,New] 13:05:53 Bean and Pengfei, how about your environment setup, is there any challenge? 13:06:15 Bean and I had try devstack already, and we both succeed install devstack and tricircle plugin. But when we try the Step 6 ,command "nova aggregate-list" cannot show any result. 13:06:32 After we installed, we try to create pod instances for Tricircle and bottom OpenStack using curl POST request, but “nova aggregate-list” shows nothing, didn’t show the results as README, Name=ag_Pod1, AZ=az1. 13:07:03 we use the latest tricirle code from github, having 130 commits 13:07:21 in README, it says Tricircle API service will automatically create a aggregate when user creates a bottom pod 13:07:44 we have not found the reason 13:08:08 yes, we have tested many times, it's unusual that it doesn't work 13:08:47 Was the result showing in step 5 as expectd? 13:09:11 yes, in step 5, it shows more than README 13:09:14 have you tried to log in to the mysql, and check to see if all tables are there 13:10:00 we haven't check the mysql tables 13:10:07 ubuntu@devstack-1:~$ token=1af602f8c4fd479dab52d8ca2de72903 ubuntu@devstack-1:~$ curl -X POST http://127.0.0.1:19999/v1.0/pods -H "Content-Type: application/json" \ > -H "X-Auth-Token: $token" -d '{"pod": {"pod_name": "RegionOne"}}' {"pod": {"dc_name": "", "pod_az_name": "", "pod_id": "38d38c23-4dd8-4111-be91-313ad18455f4", "az_name": "", "pod_name": "RegionOne"}}ubuntu@devstack-1:~$ ubuntu@devstack-1:~$ ubuntu@devsta 13:11:43 How to know there should be how many and which tables? 13:12:50 pengfei, zhiyuan and joe have left from my client 13:13:33 login again, the tool I used was suddenly offline 13:13:50 sorry, my connection was lost 13:14:19 Me too 13:14:21 TT 13:14:31 i use LimeChat as an IRC client and it seems very stable 13:14:34 What about the result of curl -X GET http://127.0.0.1:19999/v1.0/pods? Were the two pods created successfully? 13:14:53 let me have a try 13:15:57 It's very strange that there are two region-one records 13:16:54 duplicated entry exception will be raised if insertion from the API 13:16:56 Please show the list of endpoints again, I missed that 13:18:32 region-one pod was added once or twice? 13:18:59 I entered curl -X GET http://127.0.0.1:19999/v1.0/pods? -H "Content-Type: application/json" -H "X-Auth-Token: $token" 13:19:22 sorry about the bad connection 13:19:23 but Authentication required, echo $token 9a3506f375884c399bde48e992cb6634 13:19:54 sure you need -H "X-Auth-Token: $token" 13:20:27 no CLI provided yet to insert the token by default, you have to add the token head 13:20:42 oh, please remove the "?" 13:20:54 i still try to solve the bug correctly, and the progress is a little slow. i will speed up in the next week 13:20:58 curl -X POST http://127.0.0.1:19999/v1.0/pods -H "Content-Type: application/json" \ > -H "X-Auth-Token: $token" -d '{"pod": {"pod_name": "RegionOne"}}' 13:21:10 {"pod": {"dc_name": "", "pod_az_name": "", "pod_id": "38d38c23-4dd8-4111-be91-313ad18455f4", "az_name": "", "pod_name": "RegionOne"}} 13:21:25 curl -X POST http://127.0.0.1:19999/v1.0/pods -H "Content-Type: application/json" \ > -H "X-Auth-Token: $token" -d '{"pod": {"pod_name": "Pod1", "az_name": "az1"}}' 13:21:34 {"pod": {"dc_name": "", "pod_az_name": "", "pod_id": "64f60853-00b4-43c6-a36e-59afdce62f9d", "az_name": "az1", "pod_name": "Pod1"}} 13:21:35 to Yipei, it's ok. Please also send a mail in the M-L for the bug 13:21:45 ok 13:22:18 To Pengfei, the last one you post is successful and correct 13:22:46 nova aggregate-list 13:22:53 +----+------+-------------------+ | Id | Name | Availability Zone | +----+------+-------------------+ +----+------+-------------------+ 13:23:16 nothing ...TT 13:23:34 you need top region to insert first 13:23:40 curl -X GET http://127.0.0.1:19999/v1.0/pods -H "X-Auth-Token: $token" 13:23:47 {"pods": [{"dc_name": "", "pod_az_name": "", "pod_id": "056b3cc9-c8a5-454f-be2b-32bd2bbf57f2", "az_name": "", "pod_name": "RegionOne"}, {"dc_name": "", "pod_az_name": "", "pod_id": "48cd53e0-036f-43d2-908c-daa9769fcd87", "az_name": "az1", "pod_name": "ag_Pod1"}, {"dc_name": "", "pod_az_name": "", "pod_id": "d977b991-44f4-47f6-9ad7-5ffb3623be5e", "az_name": "az1", "pod_name": "Pod1"}]} 13:24:49 the token was expired just now 13:25:17 are the results right? 13:25:21 A strange pod "ag_Pod1" 13:25:32 could you show the openstack region information 13:25:39 openstack region list 13:26:05 Region | Parent Region | Description 13:26:11 Pod1 | None | 13:26:16 the ag_Pod1 is post intended ot created by API automaticly? 13:26:17 RegionOne | None | 13:26:30 ag_Pod1 is created by me 13:26:37 post intended 13:26:52 i see the 1 | ag_Pod1 | az1 13:27:10 so create it 13:27:21 you mean get pod list 13:27:39 Need to check the log of nova_api_gw, pod api will send request to it to create aggregates 13:28:55 where is the log of nova_api_gw, /opt/stack/logs? 13:28:57 Hi, Bean, now you have one record in aggregate-list 13:30:39 nova aggregate-list shows still nothing 13:31:38 no error returned when post a new pod request? 13:31:46 no error 13:31:48 opt/stack/new/screen-logs/screen-xxx 13:32:33 i enter the first post request again, it echos Top region already exists 13:32:34 So I think this maybe the nova client is not accessing the tricircle 13:32:57 i enter the second post request again, it echos Record already exists 13:33:06 could you use nova --debug aggregate-list to see which region the client issues a command to 13:33:21 sure, duplicated error 13:34:24 maybe the nova-client is issueing the command to a bottom pod 13:36:19 At least two regions in your environment, and if the command is issued to Tricircle Nova-APIGW, 13:37:26 it should look like a request to port: 19998 13:37:39 sorry about the bad connection, I haven't go to school 13:37:48 --debug, it echos a lot of found extension, REQ, RESP 13:38:15 Nova-APIGW listened on port 19998 13:38:21 yes 13:38:31 the import part is the url nova client uses 13:38:49 will showed when using --debug 13:39:35 yeah, REQ: curl -g -i -X GET http://127.0.0.1:8774/v2.1/ -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}2b9a5c81209c44dffcce741de090f29552a0435b" 13:39:42 "GET /v2.1/ HTTP/1.1" 200 383 13:39:48 RESP: [200] Content-Length: 383 X-Compute-Request-Id: req-d3c7bcfc-a55a-4b84-8f5a-b798c0e782d6 Vary: X-OpenStack-Nova-API-Version Connection: keep-alive X-Openstack-Nova-Api-Version: 2.1 Date: Wed, 17 Feb 2016 13:33:33 GMT Content-Type: application/json 13:39:56 RESP BODY: {"version": {"status": "CURRENT", "updated": "2013-07-23T11:33:21Z", "links": [{"href": "http://127.0.0.1:8774/v2.1/", "rel": "self"}, {"href": "http://docs.openstack.org/", "type": "text/html", "rel": "describedby"}], "min_version": "2.1", "version": "2.22", "media-types": [{"base": "application/json", "type": "application/vnd.openstack.compute+json;version=2.1"}], "id": "v2.1"}} 13:40:05 so the url is not correct 13:40:31 8774 is nova port , right? 13:40:33 which url? 13:41:01 http://127.0.0.1:8774/v2.1/ is nova endpoint 13:41:14 but we have two nova api 13:41:29 one nova api gateway, one bottom nova api 13:41:55 try "openstack endpoint list" to see which port is for nova api 13:41:57 nova-apigw listened on the port 19998, althouth service type is nova 13:42:14 before the results above, there are other logs 13:42:32 REQ: curl -g -i -X GET http://127.0.0.1:8774/v2.1/ab54b5c3a73c4dff9762ed7bac5d55a2 -H "User-Agent: python-novaclient" -H "Accept: application/json" -H "X-Auth-Token: {SHA1}2b9a5c81209c44dffcce741de090f29552a0435b" 13:42:33 INFO (connectionpool:207) Starting new HTTP connection (1): 127.0.0.1 13:42:35 From the above information "min_version": "2.1", "version": "2.22", it must be nova 13:43:05 but 404 not found,"GET /v2.1/ab54b5c3a73c4dff9762ed7bac5d55a2 HTTP/1.1" 404 52 13:43:11 RESP: [404] Date: Wed, 17 Feb 2016 13:33:33 GMT Connection: keep-alive Content-Type: text/plain; charset=UTF-8 Content-Length: 52 X-Compute-Request-Id: req-45145d94-c409-4230-a7c5-5783116d1ccf 13:43:15 try this: nova --os-region-name RegionOne aggregate-list 13:43:23 so Bean and Pengfei, please check endpoint in KeyStone. 13:43:34 1 | ag_Pod1 | az1 13:43:40 3 | ag_ag_Pod1 | az1 13:43:43 yes ZHiyuan's work 13:44:00 bingo! 13:44:14 ubuntu@devstack-1:/home/stack/devstack$ nova --os-region-name RegionOne aggregate-list Your request was processed by a Nova API which does not support microversions (X-OpenStack-Nova-API-Version header is missing from response). Warning: Response may be incorrect. +----+---------+-------------------+ | Id | Name | Availability Zone | +----+---------+-------------------+ | 1 | ag_Pod1 | az1 | +----+--------- 13:44:22 so you need to specify Region in your openrc/adminrc file 13:44:23 yeah, i know where is the reason 13:44:28 yes 13:44:30 Zhiyuan, I am afraid your script change for two nodes may lead to chaos 13:44:34 haha~ 13:44:55 or the admin-rc issue? 13:45:13 maybe in tricircle README, it should point out the suggested admin-openrc.sh 13:45:39 what's your admin-rc configuration? 13:45:42 Yes, maybe you two submit a patch to improve README 13:45:46 we use the admin-openrc.sh from the install guide 13:45:52 ok 13:46:10 ok~ 13:46:12 I always specify os_region so didn't find this issue 13:46:13 http://docs.openstack.org/liberty/install-guide-ubuntu/keystone-openrc.html 13:46:36 this is our openrc file 13:46:46 and not specify the os_region 13:46:53 OK. let's continue this in #openstack-tricircle channel for daily discussion 13:47:06 So, the problem is, without specifying os_region, nova client will try to find one nova service, thus it go to the wrong service 13:47:13 and please submit a patch for this 13:47:19 yeah 13:47:28 OK 13:47:35 Zhiyuan, your recent progress? 13:48:13 after specify the os-region-name, it echos Your request was processed by a Nova API which does not support microversions (X-OpenStack-Nova-API-Version header is missing from response). Warning: Response may be incorrect. 13:48:24 is it normal? 13:48:37 yes 13:48:43 ok~ 13:49:01 this can be changed later, since our nova api gateway doesn't support microversions currently 13:49:14 so nova client raises a warning 13:50:11 For my progress, the L3 N-S networking patch has been merged. Now I am working the security group part. It will take some times since it's also a big stuff...... 13:50:33 please split into into smaller patch 13:51:05 and also for the quota part, we have already have a terrible big patch :( 13:51:15 please review that, thanks 13:51:23 smaller patch? then maybe I can submit the RPC part first 13:51:45 yes 13:51:56 ok, I will find time to review it tomorrow 13:52:25 ok, it's a little bit late, let's have more chat in #openstack-tricircle channel 13:52:42 fine 13:52:44 thanks for your attendence 13:53:08 especially for Bean, Pengfei and Yipei, you are still in vacation 13:53:31 see you next time 13:53:56 #endmeeting