Wednesday, 2017-06-07

*** wanghao has joined #openstack-mogan00:26
zhenguomorning mogan!01:02
zhenguoliusheng: hi, please look at this https://review.openstack.org/#/c/471243/ and this https://review.openstack.org/#/c/471236/01:14
liushengzhenguo: ok01:17
wanghaomorning!01:19
wanghaozhenguo: ping01:20
zhenguowanghao: pong01:20
wanghaozhenguo: about your comment with specify port_id when creating service01:20
wanghao            ports = self._get_available_ports(context, context.project_id,01:20
wanghao                                              port_ids_requested, client)01:20
zhenguowanghao: you can refer to nova neutronv2 implementation01:20
wanghaozhenguo: this function will check if the ports are existing too I think01:21
zhenguowanghao: you mean list all ports then check if it exists?01:21
wanghaozhenguo: not all ports,  just user speicfied.01:22
wanghaozhenguo: I know your concern,  we should add more check about in-use and fixIP01:23
wanghaozhenguo: I just think we didn't need to use show_port one by one.01:23
zhenguowanghao: yes, I tested it yesterday, currently it can use port which already used by other server01:23
zhenguowanghao: let me check01:24
wanghaozhenguo: yep,  that we should check.01:24
wanghaozhenguo: I just reuse the network checking to check if those ports are existing.01:25
zhenguowanghao: please look at this https://github.com/openstack/nova/blob/master/nova/network/neutronv2/api.py#L1584-L159701:29
wanghaozhenguo: yes, I got this01:30
wanghaozhenguo: I mean I didn't use show_port to check existing one by one.01:30
wanghaozhenguo: but I used other logic to check exising.01:31
wanghaozhenguo: I think the purpose is same01:31
zhenguowanghao: seems it's ok, but not sure if list_ports can show the details01:31
wanghaozhenguo: sure I will check it.01:32
zhenguowanghao: thanks01:32
wanghaozhenguo: :) np,  just let's on same page.01:32
wanghaozhenguo: https://developer.openstack.org/api-ref/networking/v2/?expanded=list-ports-detail01:35
wanghaozhenguo: we can get what we want from list ports01:35
zhenguowanghao: yes, but if a project has many ports, we should use one API to list all the port details01:37
zhenguowanghao: and when claiming a server, we may only specify one or two ports,01:37
zhenguowanghao: not sure which is better01:38
wanghaozhenguo: so I used search_opts to filter ports01:38
zhenguowanghao: aha, yes,01:38
wanghaozhenguo: indeed, I'm not sure which is better.01:39
wanghaozhenguo: do you think server in mogan may have more than two nics?01:39
wanghaozhenguo: I'm not sure that01:40
zhenguowanghao: yes, they can have more ports01:40
zhenguowanghao: if you can specify the port_ids, it's ok to list port details as they are all we needed.01:40
wanghaozhenguo: emm, yes,   it's a little depend on how neutron implements the filter ports.01:41
zhenguowanghao: hah, yes01:41
wanghaozhenguo: if it filters ports in DB layer, that will be greater them show port one by one.01:42
wanghaozhenguo: well, okay,  maybe I should ask hanzhang for this question. haha01:42
zhenguowanghao: hah, yes, we should ask some neutron guys01:43
zhenguowanghao: in fact, I also want to get some neutron guys to help refactor the network part, but seems hanzhang is busy currently with downstream work01:44
wanghaozhenguo: :) haha yes01:47
wanghaozhenguo: he is very busy now...01:47
wanghaozhenguo: anyway, I just ask hanzhang for this,  neutron implement the filtering in db layer.01:48
zhenguowanghao: hah01:48
wanghaozhenguo: so we can use it safety01:48
zhenguowanghao: that's cool01:49
openstackgerritMerged openstack/mogan master: Optimize the link address  https://review.openstack.org/47123601:57
openstackgerritMerged openstack/mogan master: Fix some typos in Mogan doc  https://review.openstack.org/47124301:57
openstackgerritwanghao proposed openstack/mogan master: Specify neutron port when creating servers  https://review.openstack.org/47082402:06
* zhenguo brb02:08
openstackgerritwanghao proposed openstack/mogan master: Specify neutron port when creating servers  https://review.openstack.org/47082402:09
*** litao__ has joined #openstack-mogan02:16
openstackgerritZhenguo Niu proposed openstack/mogan-specs master: Node aggregates  https://review.openstack.org/47092702:46
zhenguoliusheng: can you help to check whether this is a tempest error or just need to recheck https://review.openstack.org/#/c/471192/ ?02:52
liushengzhenguo: let me check02:53
zhenguoliusheng: thanks02:54
liushengzhenguo: sorry, I have made a mistake broken the tempest gate :(03:23
zhenguoliusheng: but not sure why other patches pass the gate, because they are not rebased?03:23
openstackgerritliusheng proposed openstack/mogan master: Fix the test_flavor_show tempest test  https://review.openstack.org/47156503:24
liushengzhenguo: yes, patches will randomly pass the gate...03:24
zhenguoliusheng: hah03:24
openstackgerritliusheng proposed openstack/mogan master: Fix the test_flavor_show tempest test  https://review.openstack.org/47156503:25
zhenguoliusheng: why that could happen?03:28
zhenguoliusheng: as I understand when you create the flavor, you must know it's public or private03:28
liushengzhenguo: I use a statement: bool(data_utils.rand_int_id(0, 1)) to randomly generate the value of "is_public". lol03:29
liushengzhenguo: in preparing resource03:30
zhenguoliusheng: why03:30
zhenguoliusheng: seems that should be two test cases.03:30
liushengzhenguo: just tried to make the preparaed flavors' is_public has two possible values03:31
zhenguoliusheng: maybe you can just change it to public03:31
liushengzhenguo:yes, that is ok, you prefer this ?03:32
zhenguoliusheng: and add another case later to test using private flavor03:32
liushengzhenguo: ok03:32
liushengzhenguo: I can update the patch03:32
zhenguoliusheng: yes, I would like to add different test cases for that03:32
liushengzhenguo: ok03:32
zhenguoliusheng: ok, thanks03:32
* zhenguo brb03:34
openstackgerritliusheng proposed openstack/mogan master: Fix the test_flavor_show tempest test  https://review.openstack.org/47156503:43
openstackgerritliusheng proposed openstack/mogan master: Add support for scheduler_hints  https://review.openstack.org/46353403:49
openstackgerritMerged openstack/mogan master: [DOC] Move gmr to Advanced testing and guides section  https://review.openstack.org/47119204:04
openstackgerritliusheng proposed openstack/mogan master: Fix the test_flavor_show tempest test  https://review.openstack.org/47156504:24
openstackgerritZhenguo Niu proposed openstack/mogan master: Fix the test_flavor_show tempest test  https://review.openstack.org/47156505:05
*** dims has quit IRC05:09
openstackgerritRajat Sharma proposed openstack/mogan master: Use get_rpc_transport instead of get_transport  https://review.openstack.org/47158705:23
*** dims has joined #openstack-mogan05:41
*** wanghao_ has joined #openstack-mogan06:24
*** wanghao has quit IRC06:25
openstackgerritZhenguo Niu proposed openstack/mogan master: [DOC] Add states and transitons diagram  https://review.openstack.org/47129306:35
zhenguohi all, I added a simple states trasation diagram http://111.20.68.219:7950/docs/states.html , please help to review this https://review.openstack.org/#/c/471293/06:46
openstackgerritMerged openstack/mogan master: Fix the test_flavor_show tempest test  https://review.openstack.org/47156506:47
openstackgerritRajat Sharma proposed openstack/mogan master: Use get_rpc_transport instead of get_transport  https://review.openstack.org/47158707:05
*** wanghao_ has quit IRC07:19
*** wanghao has joined #openstack-mogan07:19
openstackgerritZhenguo Niu proposed openstack/mogan master: [DOC] Add sample config and policy files to mogan docs  https://review.openstack.org/47163708:38
*** wanghao_ has joined #openstack-mogan09:02
*** wanghao has quit IRC09:06
openstackgerritliusheng proposed openstack/mogan master: Add support for scheduler_hints  https://review.openstack.org/46353409:09
*** wanghao_ has quit IRC09:24
openstackgerritMerged openstack/mogan master: Use get_rpc_transport instead of get_transport  https://review.openstack.org/47158709:41
zhenguoliusheng: seems we discussed this before https://bugs.launchpad.net/mogan/+bug/169637810:05
openstackLaunchpad bug 1696378 in Mogan "Return node uuid with server for admins" [Undecided,New]10:05
* zhenguo away10:08
*** litao__ has quit IRC11:38
-openstackstatus- NOTICE: The Gerrit service on review.openstack.org is being restarted now to clear some excessive connection counts while we debug the intermittent request failures reported over the past few minutes20:05
*** RuiChen has quit IRC21:29
*** Kevin_Zheng has quit IRC21:29
*** openstack has joined #openstack-mogan23:16
*** Kevin_Zheng has joined #openstack-mogan23:21
*** RuiChen has joined #openstack-mogan23:21

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