Tuesday, 2017-08-15

*** ChanServ has joined #openstack-mogan00:00
*** tepper.freenode.net sets mode: +o ChanServ00:00
zhenguomorning mogan!00:48
zhenguoliusheng: ironic has changed to use 'baremetal' as default resource class, so we can't find filtered node00:52
liushengzhenguo: ... that is the reason !00:53
zhenguoliusheng: I think so00:53
*** wanghao has quit IRC01:01
*** wanghao has joined #openstack-mogan01:02
wanghaomorning!01:02
*** litao__ has joined #openstack-mogan01:13
openstackgerritwanghao proposed openstack/mogan master: Manage existing BMs: Part-1  https://review.openstack.org/47966001:26
openstackgerritZhenguo Niu proposed openstack/mogan master: Correct placement start order in devstack  https://review.openstack.org/49352101:28
zhenguoliusheng: we got this error GET http://mogan.readthedocs.io/projects/api-ref/en/latest/_static/api-site.css  on readdocs for api01:39
zhenguoliusheng: GET failed01:39
liushengzhenguo: maybe it because openstack doc frame lack of that css file01:41
zhenguoliusheng: but that's the extention of our api-ref, they should install with that01:41
liushengzhenguo: don't know why..01:42
zhenguoliusheng: can you fork ironic then test with it to see whether it's ok?01:42
liushengzhenguo: ok01:42
zhenguoliusheng: thanks01:42
liushengzhenguo: http://myironicdoc.readthedocs.io/en/latest/#01:48
liushengzhenguo: same01:48
zhenguoliusheng :(01:48
*** wanghao_ has joined #openstack-mogan01:51
*** wanghao has quit IRC01:52
zhenguoliusheng: copying static files... WARNING: html_static_path entry '/home/docs/checkouts/readthedocs.org/readthedocs/templates/sphinx/_static' does not exist02:03
zhenguoliusheng: hi, I just find both doc and api-ref can't find the html_static_path02:20
liushengzhenguo: :(02:21
liushengzhenguo: maybe the openstack doc cannot be well compatible with readthedocs02:21
zhenguoliusheng: let me dig02:22
Xinranzhenguo, question : why we should start placement before mogan ?02:26
zhenguoXinran: when mogan-engine started, it will sync resources to placement02:26
zhenguoXirnan: so if placement not started, it wil fail, but seems not big issue if we can gracefully handle the exceptions02:27
Xinranzhenguo,  that why we got the dismatch of resource name ?02:28
zhenguoXinran: no02:29
zhenguoXirnan: that's because ironic changed the default resource class name to 'baremetal'02:29
zhenguoXinran: there's a patch up to change that in mogan :D02:29
zhenguoliusheng: https://review.openstack.org/#/c/493521/02:29
Xinranzhenguo,  ok I see, thanks :)02:30
zhenguoXinran: np02:30
zhenguoliusheng: hi, the patch passed the gate02:30
liushengzhenguo: cool, thanks02:30
zhenguoliusheng: hah02:30
liushengzhenguo: maybe I can give a +2 +A to quick fix gate02:31
liushengzhenguo: lol02:31
zhenguoliusheng: sure02:34
zhenguoliusheng: can you try to set html_static_path = ['static'] in api-ref/source/conf.py02:42
zhenguoliusheng: in fact you just need to remove the prefix '#'02:42
liushengzhenguo: OK02:42
zhenguoliusheng: thanks02:42
liushengzhenguo: let me try02:42
* zhenguo brb02:43
openstackgerritMerged openstack/mogan master: Correct placement start order in devstack  https://review.openstack.org/49352103:07
openstackgerritZhenguo Niu proposed openstack/mogan master: Make disabled flavors not available for common users  https://review.openstack.org/49248803:13
openstackgerritZhenguo Niu proposed openstack/mogan master: Do not allow to remove flavor which is still in use.  https://review.openstack.org/49341203:13
zhenguohi guys, please recheck you patches, our gate just got fixed03:14
openstackgerritliusheng proposed openstack/python-moganclient master: Add node aggregate commands support  https://review.openstack.org/49200203:19
openstackgerritliusheng proposed openstack/python-moganclient master: Add commands for aggregate node actions  https://review.openstack.org/49237003:19
openstackgerritliusheng proposed openstack/mogan master: Trival-Fix: Correct the placement auth credentials in devstack  https://review.openstack.org/49348303:20
liushengzhenguo: seems this still needed, but a trival fix, :D   https://review.openstack.org/#/c/493483/03:20
zhenguoliusheng: sure03:21
openstackgerritTao Li proposed openstack/mogan master: Manage existing BMs: Part-2  https://review.openstack.org/48154403:21
openstackgerritliusheng proposed openstack/python-moganclient master: Add support for node list command  https://review.openstack.org/49164403:23
openstackgerritliusheng proposed openstack/python-moganclient master: Add node aggregate commands support  https://review.openstack.org/49200203:29
openstackgerritliusheng proposed openstack/python-moganclient master: Add commands for aggregate node actions  https://review.openstack.org/49237003:29
openstackgerritMerged openstack/mogan-specs master: Node aggregates  https://review.openstack.org/47092703:30
openstackgerritMerged openstack/mogan-specs master: Change adopt to manage in managing-existing-node spec  https://review.openstack.org/49031003:30
openstackgerritMerged openstack/python-moganclient master: Remove log translations  https://review.openstack.org/48282503:32
openstackgerritMerged openstack/python-moganclient master: Update the docs link to readthedocs  https://review.openstack.org/49341603:33
openstackgerritliusheng proposed openstack/python-moganclient master: Improve flavor set command to support updating flavor  https://review.openstack.org/48686503:45
openstackgerritliusheng proposed openstack/python-moganclient master: Remove some useless code of flavor unset command  https://review.openstack.org/49278503:47
liushengzhenguo: it cannnot fix the doc issue03:54
liushengzhenguo: http://my-mogan-api-ref.readthedocs.io/en/latest/v1/index.html#service-urls03:54
openstackgerritMerged openstack/mogan master: Make disabled flavors not available for common users  https://review.openstack.org/49248804:32
openstackgerritMerged openstack/mogan master: Trival-Fix: Correct the placement auth credentials in devstack  https://review.openstack.org/49348304:41
openstackgerritTao Li proposed openstack/mogan master: Manage existing BMs: Part-2  https://review.openstack.org/48154406:02
openstackgerritTao Li proposed openstack/mogan master: Manage existing BMs: Part-2  https://review.openstack.org/48154406:17
openstackgerritTao Li proposed openstack/mogan master: Manage existing BMs: Part-2  https://review.openstack.org/48154406:27
zhenguoliusheng: is there a way to show flavor access info with CLI?07:22
zhenguolitao__: does nova instance move to error state if power action failed?07:24
openstackgerritZhenguo Niu proposed openstack/mogan master: Add checks for aggregate affinity_zone  https://review.openstack.org/49349507:29
litao__zhenguo: let me check07:30
zhenguolitao__: ok, thanks07:30
openstackgerritMerged openstack/python-moganclient master: Add support for node list command  https://review.openstack.org/49164407:31
liushengzhenguo: not yet07:32
zhenguoliusheng: how nova handle that?07:32
zhenguoliusheng: return with flavor or a separated CLI07:33
liushengzhenguo: seems Nova has sapareted commands to list flavor acess07:36
liushengzhenguo: but OSC use flavor show07:36
zhenguoliusheng: ok07:36
zhenguoliusheng: you mean OSC can show flavor with access info?07:36
liushengzhenguo: yes07:36
zhenguoliusheng: I forget the reason why we don't return it with flavor07:37
liushengzhenguo: not sure, did we rejected to return it with flavor show ?07:40
zhenguoliusheng: I remember there was a patch up for that by you07:41
liushengzhenguo: let me check07:41
zhenguoliusheng: ok07:41
liushengzhenguo: cannot find any patches about this :(07:44
zhenguoliusheng: hah, let me find07:44
zhenguoliusheng: https://review.openstack.org/#/c/463308/07:46
liushengzhenguo: oh, it is in mogan side, i searched in client side07:46
zhenguoliusheng: hah07:47
zhenguoliusheng: if client should return it, better to change on mogan side07:47
zhenguoliusheng: but we should not return it to comon useres07:47
zhenguo*users07:47
liushengzhenguo: so deprecate the flavor access APIs ?07:48
liushengzhenguo: we have sapareted flavor access APIs07:48
zhenguoliusheng: do you know why we don't deprecate it before?07:48
liushengzhenguo: dont know :(07:49
zhenguoliusheng: hah, maybe we should07:49
zhenguoliusheng: I can't find anything harmful07:49
zhenguoliusheng: and only admins can do that07:50
liushengzhenguo: yes07:50
zhenguoliusheng: ok, let's deprecate it07:50
liushengzhenguo: ok07:51
zhenguoXinran: attach interface should also support specifying port_id07:53
zhenguoXinran: only network supported presently07:53
openstackgerritliusheng proposed openstack/python-moganclient master: Add node aggregate commands support  https://review.openstack.org/49200207:53
openstackgerritliusheng proposed openstack/python-moganclient master: Add commands for aggregate node actions  https://review.openstack.org/49237007:53
litao__zhenguo: The power on/off failed don't set the server to error state, just rollback task_state. But reboot server failed will set server to error status when the server' state is not running.07:54
zhenguolitao__: is there any error recorded if the server status don't move to error state?07:55
litao__zhenguo: Yes , It will record the error to db07:56
zhenguolitao__: how? with fault_info?07:56
litao__zhenguo: yes, use fault_info07:58
zhenguolitao__: but I remember only when the instance in error state, it will return with get instance07:58
zhenguolitao__: does nova use cast or call for power action?07:59
litao__zhenguo:  cast for powering off  and call for powering on ,  cast for rebooting08:00
zhenguolitao__: so power on can return error with API08:01
zhenguolitao__: power off just set the fault_info to db and rebooting move the instance to error state?08:01
litao__yes, but reboot failed and the state is running will not set server to error state.08:03
litao__zhenguo: reboot failed and the state is shutdown will set server to error state08:04
zhenguolitao__: you mean cast method will set the the instance to error state, right?08:04
Xinranzhenguo,  you mean ironic port ? I saw your comments : https://review.openstack.org/#/c/459921/6/api-ref/source/v1/samples/server_networks/server-attach-interface-req.json08:05
zhenguoXinran: neutron port instead of ironic port08:05
zhenguoXinran: we need to specify to attach the interface to a specific neutron port08:05
litao__zhenguo: only for rebooting failed08:06
zhenguoXinran: instead of letting neutron to create a port in the specified network08:06
zhenguolitao: how about powering off?08:06
zhenguolitao__: oh, only when the instance status is shutdown and reboot failed then nova will move it to error08:07
Xinranzhenguo,  ok got it08:08
litao__zhenguo: YES08:09
litao__Power on: call : not set server to error, just record error to db08:09
litao__Power off: cast: not set server to error, just record error to db08:09
litao__Reboot: cast: record error to db when server is running, set server to error when server is shutdown08:09
zhenguolitao__: so how users know the power action failed if just record error to db08:09
openstackgerritMerged openstack/python-moganclient master: Add node aggregate commands support  https://review.openstack.org/49200208:09
litao__zhenguo: It should use notification to tell users08:13
zhenguolitao__: seems yes08:13
zhenguolitao__: so we can follow nova's way?08:13
litao__zhenguo: sure, we can08:14
zhenguolitao__: ok, then you can rebase your patch08:14
litao__zhenguo: ok08:14
zhenguolitao__: thanks08:14
litao__zhenguo,liusheng ,wanghao,shaohe_feng : pls review my patch in your spare time.08:27
litao__https://review.openstack.org/#/c/481544/08:27
zhenguolitao__: sure08:34
liushengzhenguo, litao__ actually I think it is a bit werid about the api request: POST /v1/manageable_servers/  it looks like creating a manageable server, wdyt ?08:35
zhenguoliusheng: yes,08:35
zhenguoliusheng: but not find other good way08:36
liushengzhenguo, litao__ how about POST /v1/manageable_servers/{manageable_server_id}/adopt/08:36
zhenguoliusheng: adopt is a verb08:37
zhenguoliusheng: and we already decided to get rid of the notion adopt08:37
liushengzhenguo: yes, we can define a custom interface adopt than post08:37
litao__liusheng: I think it is a bit complexity08:37
liushengzhenguo: or manage08:37
zhenguoliusheng: that's also weird08:38
liushenglitao__ zhenguo or  POST /v1/manageable_servers/{manageable_server_id} with a request body includeing: {'action': manage}08:39
litao__The resource is manageable_server like server08:39
litao__liusheng: How do i get the manageable_server_id?08:39
liushenglitao__: yes, but post /v1/manageable_servers/ looks like you will add a manageable server08:39
liushenglitao__: don't we will provide get_all()08:40
litao__liusheng: yes, i will create a manageable server08:40
zhenguoliusheng: then it should not be POST but PUT08:40
liushenglitao__: by wanghao's patch08:40
liushenglitao__:no, you don't create a manageable server08:40
liushenglitao__: you are managing an existing manageable server08:41
litao__liusheng: Actually I will manage an existing bare metal node08:42
liushengzhenguo: not very sure about POST or PUT08:42
liushenglitao__: yes08:42
litao__liusheng: The manageable server is a resource like server08:42
liushenglitao__: it is "manageable server" before managing, then you manage it, it is a normal mogan server08:43
zhenguoliusheng: POST should be with a specific resource id08:43
litao__liusheng: So I think the spec sould be modified for list intereface.08:43
zhenguoliusheng: should not be I mean :D08:44
liushengzhenguo: hah08:44
litao__zhenguo: what is resource id, you mean bare metal node uuid?08:45
liushenglitao__: do you will put your interface "post" under the same controller class with wanghao's ?08:45
liushenglitao__: I found one is ManageableServersController, another is ManageableServerController08:45
zhenguolitao__: I mean not specific for this manageable servers, but the generic using08:46
litao__liusheng: The spec design them in one Controller08:48
litao__zhenguo:  more details08:49
zhenguoliusheng: I mean liusheng's suggestion should be be POST if we use URI like /resources/resource_id08:50
zhenguolitao__^^08:50
liushengzhenguo: hah08:50
zhenguoliusheng, litao__: POST should be /resources, and PUT/DELETE/GET should be with /resources/resource_id08:51
liushengzhenguo: maybe my suggestion is not good, but  post /v1/manageable_servers/ is really like we adding a manageable server resource08:51
liushengzhenguo: got it08:51
zhenguoliusheng: yes, aggree, that' cinder's way08:52
liushengzhenguo litao__ maybe we can keep current way if we don't have a better choice, we can improve in future08:55
zhenguoliusheng: ok,08:56
litao__liusheng: OK, I agree08:56
openstackgerritZhenguo Niu proposed openstack/mogan master: Add checks for aggregate affinity_zone  https://review.openstack.org/49349509:03
openstackgerritXinran WANG proposed openstack/mogan master: Specify image when do rebuilding  https://review.openstack.org/49042109:11
*** wanghao_ has quit IRC10:15
*** wanghao has joined #openstack-mogan10:15
*** wanghao has quit IRC10:16
*** wanghao has joined #openstack-mogan10:16
*** wanghao has quit IRC10:16
*** wanghao has joined #openstack-mogan10:17
*** wanghao has quit IRC10:17
*** wanghao has joined #openstack-mogan10:17
*** wanghao has quit IRC10:18
*** wanghao has joined #openstack-mogan10:18
*** wanghao has quit IRC10:19
*** wanghao has joined #openstack-mogan10:19
*** wanghao has quit IRC10:20
*** wanghao has joined #openstack-mogan10:20
*** wanghao has quit IRC10:20
*** wanghao has joined #openstack-mogan10:21
openstackgerritZhenguo Niu proposed openstack/mogan master: Add checks for aggregate affinity_zone  https://review.openstack.org/49349511:11
openstackgerritZhenguo Niu proposed openstack/mogan master: WIP: Add socat console support  https://review.openstack.org/49383611:22
*** litao__ has quit IRC11:51

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