Monday, 2016-11-21

*** yuntongjin has joined #openstack-nimble01:43
*** RuiChen has joined #openstack-nimble02:46
shaohe_fengliusheng: hi.03:32
liushengshaohe_feng: hi03:32
shaohe_fengliusheng: just a reminder.  when you write functional test, you case may failed for authorization03:33
shaohe_fengliusheng: you can pass the roles to avoid this03:33
shaohe_fengliusheng: https://review.openstack.org/#/c/399820/3/nimble/tests/unit/api/v1/test_instance.py@7903:34
shaohe_fengliusheng: such as this.  pass the roles in HTTP headers, in this way, we can not use fixpolicy03:34
shaohe_fengliusheng: we do not need fixpolicy03:35
liushengshaohe_feng: thanks for reminding me03:35
*** yuntongjin has quit IRC03:36
shaohe_fengliusheng: :P03:36
liushengshaohe_feng: btw, do you think nimble-api should be able to interact with Ironic directly ?03:39
liushengshaohe_feng: or only nimble-engine can interact with Ironic03:40
shaohe_fengliusheng: what's the pros and cons?03:41
liushengshaohe_feng: seems like the Ironic is an driver of Nimble, so may it can only interact with nimble-engine03:42
liushengshaohe_feng: the change https://review.openstack.org/#/c/398924/ has broken the instance-show API, just want to fix it, that need api to init an Ironicclient03:43
liushengzhenguo: ping03:43
zhenguoliusheng: hi03:43
liushengzhenguo: ^^ what do you think ?03:44
shaohe_fengliusheng: instance-show still interact with Ironic directly?03:45
liushenghttps://github.com/openstack/nimble/blob/master/nimble/api/controllers/v1/instances.py#L337  this line of code need to pass an ironicclient now03:45
liushengshaohe_feng: yes03:46
zhenguoliusheng, shaohe_feng: seems it's better to do this on engine side, but don't have strong option.03:46
liushengafter change  https://review.openstack.org/#/c/398924/03:46
zhenguoliusheng: oh, yes03:48
liushenghttps://github.com/openstack/nimble/blob/master/nimble/api/controllers/v1/instances.py#L283-L285 and here, I have search all the api's code, just these two places03:48
zhenguoliusheng: after that refactor, we only initizlize ironicclient on engine side03:48
liushengzhenguo: yes03:49
zhenguoliusheng: good find :)03:49
shaohe_fengliusheng: yes, also a  get_node_list.03:49
liushengshaohe_feng, zhenguo, so we should better to use "pecan.request.rpcapi.xxx" and expose these api in engine side, or init an ironicclient ?03:51
zhenguoliusheng, shaohe_feng: I think it's better to interact with ironic on engine side, but I don't think out what's the cros and pros now.03:53
liushengzhenguo: I also think so :)03:57
shaohe_fengzhenguo: seems code is more readable. the other components, at present, just nimble-api, juct call engine api, do not care ironic. engine layer  help to comunication with ironic03:58
zhenguoshaohe_feng: yes03:58
zhenguoshaohe_feng: i have to be away for lunch, ttyl03:59
* zhenguo away03:59
* liusheng lunch03:59
*** kevinz has quit IRC05:35
*** yuntongjin has joined #openstack-nimble05:44
openstackgerritliusheng proposed openstack/nimble: Add instance CURD related functional tests  https://review.openstack.org/39806806:09
*** yuntongjin has quit IRC06:34
*** yuntongjin has joined #openstack-nimble06:43
openstackgerritZhenguo Niu proposed openstack/nimble: Add engine api interfaces  https://review.openstack.org/39947606:54
*** kevinz has joined #openstack-nimble07:28
*** kevinz has quit IRC07:38
*** kevinz has joined #openstack-nimble07:39
shaohe_fengzhenguo: hi, liusheng07:50
liushengshaohe_feng: hi07:50
zhenguoshaohe_feng: hi07:50
shaohe_fengwhere is the api doc07:50
shaohe_fengafter I run tox -e docs07:50
zhenguoshaohe_feng: you mean api-ref?07:50
shaohe_fengzhenguo: yes.07:51
zhenguoshaohe_feng: for api-ref you should use tox -eapi-ref07:51
shaohe_fengI what to start a local httpserver to browse it07:51
shaohe_fengzhenguo: got it.07:52
shaohe_fengzhenguo: not docs commant.07:52
shaohe_fengzhenguo: I run the wrong command07:52
zhenguoshaohe_feng: for offical project, api-ref will publish to docs.openstack.org07:52
shaohe_fengzhenguo: thanks07:52
shaohe_fengzhenguo: that's great07:52
zhenguoshaohe_feng: for use, it just generate a api-ref/build/html directory :(07:53
zhenguoshaohe_feng: so we need to put that directory under apache root dir07:53
* liusheng also learning from zhenguo :)07:54
zhenguoshaohe_feng: IIRC, you can just copy the html dir to /var/www/html on ubuntu env, and restart httpd service07:54
zhenguoliusheng: hah07:54
zhenguoshaohe_feng, liusheng: then on http://yourip you can see our api doc07:55
shaohe_fengzhenguo: yes. $ python -m SimpleHTTPServer 800007:56
zhenguoshaohe_feng: hah, yes that's more easy07:57
shaohe_fengzhenguo: http://yourip:8000 is also OK.07:57
shaohe_fengzhenguo: in this way, do not need copy it ot /var/www/html07:57
shaohe_fengs/ot/to07:57
zhenguoshaohe_feng: yes, and seems we have this mentioned in our dev doc07:57
shaohe_fengzhenguo: yes. in our dev doc07:58
liushengfound it07:58
shaohe_fengzhenguo: python is easy to use. also easy to setup an simple http server07:58
shaohe_fengzhenguo: Warning, treated as error:07:58
shaohe_fengapi-ref/source/instances.inc:210: WARNING: Title underline too short.07:58
shaohe_fengDelete Instance07:58
shaohe_feng=============07:58
shaohe_fengzhenguo: I build failed.07:59
zhenguoshaohe_feng: oh,07:59
zhenguoshaohe_feng: as we don't have api-ref check in our gate :(07:59
shaohe_fengzhenguo: Oh. got it.08:00
zhenguoshaohe_feng: maybe you can help to fix that :P08:00
shaohe_fengzhenguo: OK.08:00
zhenguoshaohe_feng: thansk08:00
shaohe_fengzhenguo: still other errors.08:00
shaohe_fengzhenguo: /opt/stack/nimble/api-ref/source/api-ref/source/instances.inc:225 .rst:: WARNING: No field definition for ``instances_uuid_path`` found in ``/opt/stack/nimble/api-ref/source/parameters.yaml``.  Skipping.08:00
shaohe_fengzhenguo: let's fix it together.08:01
zhenguoshahe_feng: sorry for that, seems because I just merged the api-ref patches, not use tox to check whether it's ok08:01
zhenguoshaohe_feng: ok, will check the errors08:02
shaohe_fengzhenguo: we do  not define instances_uuid_path08:02
shaohe_fengzhenguo: we can use instances_uuid directly08:02
zhenguoshaohe_feng: seems we have instance_uuid in both path and body08:03
zhenguoshaohe_feng: not sure they are same, like it's required or optional attribute08:04
shaohe_fengzhenguo: some difference. we need add a instances_uuid_path08:04
zhenguoshaohe_feng: ok08:04
shaohe_fengzhenguo: instances_uuid_path to instance_uuid_path is OK?  singular?08:05
zhenguoshaohe_feng: I think so, as it just one instance's uuid :)08:05
shaohe_fengzhenguo: yes.08:06
shaohe_fengzhenguo: the description of instance_uuid:08:08
shaohe_fengzhenguo: The UUID of the server instance08:09
shaohe_fengzhenguo: do we need server?08:09
zhenguoshaohe_feng: seems not08:09
shaohe_fengzhenguo: we have a instance_ident in path08:10
shaohe_fengso do not need define instance_uuid_path08:10
zhenguoshaohe_feng: if so, we can just use that08:10
shaohe_fengzhenguo: well, build successfully.08:11
zhenguoshaohe_feng: hah, so you may find more errors while scanning the docs08:12
shaohe_fengzhenguo: yes. first,  let the api-ref building successfully08:22
openstackgerritShaoHe Feng proposed openstack/nimble: fix some api-ref error  https://review.openstack.org/40009408:23
openstackgerritShaoHe Feng proposed openstack/nimble: update api-ref for admin tenant filter.  https://review.openstack.org/40010708:34
shaohe_fengzhenguo: liusheng: about the instance functional test. https://review.openstack.org/#/c/398068/308:36
shaohe_fengzhenguo: liusheng: some edge case are not covered. such as fields in query for get, all_test for get_all, and other.08:37
shaohe_fengzhenguo: liusheng: do we still need unit test for API? or these edge cases will covered in functional testes?08:38
liushengshaohe_feng: ok, I wll add more tests, I'd like UT for API may foucus on method, right ?08:40
zhenguoshaohe_feng, liusheng: yes, I think we must have UT for api08:40
shaohe_fengliusheng: yes. UT should focus on method.09:04
shaohe_fengliusheng: zhenguo: In neutron doc, they says, the UT more than functional test, and more than full-stack test09:05
zhenguoshaohe_feng, liusheng: yes, it should be09:07
openstackgerritZhenguo Niu proposed openstack/nimble: Import ironicclient directly  https://review.openstack.org/40013909:26
*** kevinz has quit IRC09:42
*** kevinz has joined #openstack-nimble09:43
*** yuntongjin has quit IRC09:59
-openstackstatus- NOTICE: We are currently having capacity issues with our ubuntu-xenial nodes. We have addressed the issue but will be another few hours before new images have been uploaded to all cloud providers.12:19
openstackgerritMerged openstack/nimble: fix some api-ref error  https://review.openstack.org/40009413:18
*** kevinz has quit IRC15:21
*** RuiChen has quit IRC16:10
*** liusheng has quit IRC20:24
*** liusheng has joined #openstack-nimble20:31
*** openstack has joined #openstack-nimble23:47

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