Monday, 2016-10-17

*** shaohe_feng has quit IRC02:02
*** shaohe_feng has joined #openstack-nimble02:02
*** Kevin_Zheng has joined #openstack-nimble02:44
*** Kevin_Zheng has quit IRC05:26
*** lei-zh has joined #openstack-nimble06:07
openstackgerritZhenguo Niu proposed openstack/nimble: Set instance info before do validate check  https://review.openstack.org/38719006:52
openstackgerritMerged openstack/nimble: Set instance info before do validate check  https://review.openstack.org/38719006:59
shaohe_fengzhenguo: hi07:26
shaohe_fengzhenguo: I have check the ironic-client code and nimble code for API version07:27
shaohe_fengzhenguo: in nimble code, we set a hard code IRONIC_API_VERSION = (1, 21)07:27
shaohe_fengzhenguo: then nimbe set kwargs['os_ironic_api_version'] from  IRONIC_API_VERSION07:29
shaohe_fengzhenguo: kwargs['os_ironic_api_version'] = '%d.%d' % IRONIC_API_VERSION07:29
shaohe_fengzhenguo: This  os_ironic_api_version will pass to ironic07:29
shaohe_fengzhenguo: I suggest to set IRONIC_API_VERSION as configable.07:30
shaohe_fengzhenguo: the default version is the latest  version.07:31
zhenguoshaohe_feng: that's copied from Nova07:32
shaohe_fengzhenguo: so, if the ironic upgrade to v1.22, what should nova do?07:32
zhenguoshaohe_feng: and seems it updated as long as ironic updated07:33
shaohe_fengzhenguo: does nova need to chage the hard code IRONIC_API_VERSION = (1, 22) ?07:33
zhenguoshaohe_feng: let me check07:33
shaohe_fengzhenguo: then ironic upgrade to v1.23? then  chage the hard code IRONIC_API_VERSION = (1, 23) ?07:33
shaohe_fengzhenguo: OK.07:33
*** openstackgerrit has quit IRC07:34
*** openstackgerrit has joined #openstack-nimble07:35
shaohe_fengzhenguo: you can run this command: $ git whatchanged -p  nova/virt/ironic/client_wrapper.py07:36
shaohe_fengzhenguo: in nova.07:36
shaohe_fengzhenguo: and then search IRONIC_API_VERSION07:37
shaohe_fengzhenguo: you can find nova really change IRONIC_API_VERSION by manually07:37
zhenguoshaohe_feng: yes indeed07:38
zhenguoshaohe_feng: but seems only update when it is required07:38
shaohe_fengzhenguo: nova first support 1.8,  then bump to 1.20, then bump 1.2107:38
zhenguoshaohe_feng: yes, if no new functionalities get in, they won't upgrade it07:39
shaohe_fengzhenguo: so how about user want to use the version between  v1.9-v.19?07:40
zhenguoshaohe_feng: seems it can't be used.07:41
zhenguoshaohe_feng: I think nova bump to 1.20 as it needs some functionalities only 1.20 supported07:41
zhenguoshaohe_feng: so old version may break Nova,07:41
zhenguoshaohe_feng: for example ironic add portgroup API support in 1.xx and Nova change to uses it, then old version will not work.07:43
shaohe_fengzhenguo: yes.07:44
zhenguoshaohe_feng: so I think it's ok to just follow Nova's way07:45
zhenguoshaohe_feng: make it configurable will bring new problems in07:45
shaohe_fengzhenguo: but that nova's problem.07:45
shaohe_fengzhenguo: I just wonder why not set the api_version in configurable, and give a sugesstion version to user.07:47
zhenguoshaohe_feng: I don't see any value to give the API version option to users07:47
zhenguoshaohe_feng: I think they should never care about this.07:48
shaohe_fengzhenguo: if the developer has test higher ironic api can works well, the developer can manually change it in configue file.07:48
shaohe_fengzhenguo: no, you should know, every code may be has bug.07:48
shaohe_fengzhenguo: for example, nov nova  support v1.2107:49
shaohe_fengzhenguo: if some bugs user test in v1.2107:49
shaohe_fengzhenguo: in their enviroment07:50
shaohe_fengzhenguo: how does they do?07:50
shaohe_fengzhenguo: 1. maybe they add patch for this v1.2107:50
shaohe_fengzhenguo: maybe they can downgrade to v1.807:51
shaohe_fengzhenguo: but that means other features that nova support, they can not used.07:51
shaohe_fengdruing 1.9-1.1907:52
shaohe_fengfor users do not care the functionalities that ironic supports, such as your example portgroup API support in 1.xx.07:53
zhenguoshaohe_feng: that's would break nova I mean.07:54
zhenguoshaohe_feng: Nova already call portgroup API in ironic driver07:54
shaohe_fengI know, you just give me one of the reason, why nova use hardcode.07:55
zhenguoshaohe_feng: no better way I think07:55
shaohe_fengzhenguo: but this is just a guess. We do not know  the really reason why hardcode.07:56
zhenguoshaohe_feng: configurable client version seems not used in any project, like Horizon uses all client but it's not configurable.07:57
zhenguoshaohe_feng: and client is already in the requirement file.07:58
shaohe_fengzhenguo: do you means python-ironicclient>=1.6.0?07:59
zhenguoshaohe_feng: No, it has been removed from requirement08:00
zhenguoshaohe_feng: Ironicclient is anot a dependecy for Nova08:01
shaohe_fengzhenguo: OK. we can hardcode it. if no ironic configure, nimble can use hardcode. if ironic_version in configure, then use this one.08:06
zhenguoshaohe_feng: yes, the hardcode should be the base requirement, lower version will not be supported.08:07
zhenguoshaohe_feng: we can upgrade it if new fuctionalities introduced from higher version, but it should never be downgraded.08:08
zhenguoshaohe_feng: as if there are problems with the current hardcode version, a new higher version will address it, and then we will upgrade to the new version.08:10
*** yuntongjin has joined #openstack-nimble09:07
*** yuntongjin has quit IRC09:59
openstackgerritLei Zhang proposed openstack/nimble: Add instance list and detail api  https://review.openstack.org/37741811:21
openstackgerritMerged openstack/nimble: Updated from global requirements  https://review.openstack.org/38714311:40
*** lei-zh has quit IRC12:03
*** shihanzhang has quit IRC14:27
*** shihanzhang has joined #openstack-nimble14:28
*** shz has joined #openstack-nimble14:35
*** shihanzhang has quit IRC14:36
openstackgerritMerged openstack/nimble: Add api-ref for instance power state  https://review.openstack.org/38073416:03
openstackgerritZhenguo Niu proposed openstack/nimble: Following up patch of I85a1d177754c29fe331df5f6119ade1ac64f2939  https://review.openstack.org/38755416:20
openstackgerritZhenguo Niu proposed openstack/nimble: Add missed ValidationError exception  https://review.openstack.org/38755516:23
openstackgerritZhenguo Niu proposed openstack/nimble: Add missed ValidationError exception  https://review.openstack.org/38755516:48
openstackgerritZhenguo Niu proposed openstack/nimble: Following up patch of I85a1d177754c29fe331df5f6119ade1ac64f2939  https://review.openstack.org/38755416:50
openstackgerritZhenguo Niu proposed openstack/nimble: Fix changing instance power state exception  https://review.openstack.org/38756516:56
openstackgerritMerged openstack/nimble: Add missed ValidationError exception  https://review.openstack.org/38755517:00
openstackgerritMerged openstack/nimble: Following up patch of I85a1d177754c29fe331df5f6119ade1ac64f2939  https://review.openstack.org/38755417:02
openstackgerritZhenguo Niu proposed openstack/nimble: Fix changing instance power state exception  https://review.openstack.org/38756517:03
openstackgerritZhenguo Niu proposed openstack/nimble: Fix msg format err when raising InvalidActionParameterValue  https://review.openstack.org/38757117:06
openstackgerritMerged openstack/nimble: Fix changing instance power state exception  https://review.openstack.org/38756517:34
openstackgerritMerged openstack/nimble: Fix msg format err when raising InvalidActionParameterValue  https://review.openstack.org/38757117:34
openstackgerritMerged openstack/nimble: Add instance list and detail api  https://review.openstack.org/37741817:36

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