Friday, 2017-08-11

zhenguomorning mogan!00:56
*** litao__ has joined #openstack-mogan01:09
*** openstackgerrit has joined #openstack-mogan01:10
openstackgerritZhenguo Niu proposed openstack/mogan master: Add checks for aggregate availability_zone  https://review.openstack.org/48987601:10
openstackgerritZhenguo Niu proposed openstack/mogan master: Move baremetal dir out from engine  https://review.openstack.org/49208401:12
*** openstackgerrit has quit IRC02:21
*** wanghao has quit IRC02:27
*** wanghao has joined #openstack-mogan02:28
*** openstackgerrit has joined #openstack-mogan02:36
openstackgerritliusheng proposed openstack/python-moganclient master: Add node aggregate commands support  https://review.openstack.org/49200202:36
openstackgerritliusheng proposed openstack/python-moganclient master: Add commands for aggregate node actions  https://review.openstack.org/49237002:36
openstackgerritliusheng proposed openstack/python-moganclient master: Add commands for aggregate node actions  https://review.openstack.org/49237002:37
openstackgerritliusheng proposed openstack/mogan master: Add the missed quota object importing  https://review.openstack.org/49202402:40
openstackgerritliusheng proposed openstack/python-moganclient master: Improve flavor set command to support updating flavor  https://review.openstack.org/48686502:55
openstackgerritliusheng proposed openstack/python-moganclient master: Add node aggregate commands support  https://review.openstack.org/49200203:07
openstackgerritliusheng proposed openstack/python-moganclient master: Add commands for aggregate node actions  https://review.openstack.org/49237003:07
openstackgerritliusheng proposed openstack/python-moganclient master: Remove some useless code of flavor unset command  https://review.openstack.org/49278503:10
openstackgerritliusheng proposed openstack/python-moganclient master: Add node aggregate commands support  https://review.openstack.org/49200203:17
openstackgerritliusheng proposed openstack/python-moganclient master: Add commands for aggregate node actions  https://review.openstack.org/49237003:17
openstackgerritZhenguo Niu proposed openstack/mogan master: Make disabled flavors not available for common users  https://review.openstack.org/49248803:23
zhenguoshaohe_feng: please have a look at this https://review.openstack.org/#/c/492366/ when you got time, thanks!03:24
*** fredli__ has joined #openstack-mogan03:56
openstackgerritZhenguo Niu proposed openstack/mogan master: Move baremetal dir out from engine  https://review.openstack.org/49208404:55
openstackgerritZhenguo Niu proposed openstack/mogan master: Add aggregates filters when do scheduling  https://review.openstack.org/49169505:25
*** fredli__ has quit IRC06:05
openstackgerritwanghao proposed openstack/mogan master: Manage existing BMs: Part-1  https://review.openstack.org/47966006:13
openstackgerritwanghao proposed openstack/mogan master: Introduce Cinder client into Mogan  https://review.openstack.org/48945506:17
Xinranzhenguo,  hi, I gave the reply on your comments of rebuid patch  https://review.openstack.org/#/c/490421/  Pls check it if you got time06:23
zhenguoXinran: ok06:35
zhenguoXinran: wrt the roll-back, you mean when setting provision state failed?06:41
Xinranzhenguo, yes when rebuild failed, will reset the image_uuid06:42
zhenguoXinran: when rebuild failed the server should be moved to error state06:42
zhenguoXinran: and you may already change the ironic node image to the new one06:43
Xinranzhenguo,  I thind ironic has a roll-back when node redeployement failed.06:53
zhenguoXinran: seems not06:57
Xinranzhenguo,  so we should reset  the ironic node image manually in mogan ?07:02
zhenguoXinran: I dont' think so, if the rebuild failed, I don't think we can roll back it07:07
Xinranzhenguo,  yes, I didn't find an ironic driver to set ironic node image ...07:11
Xinranzhenguo,  so we just move server to error state?07:12
zhenguoXinran: for now, I think it's ok07:12
Xinranzhenguo,  ok07:12
Xinranzhenguo,  btw I didn't pass image_uuid to ironic driver, just passed it to engine.manage, because there is a try/except :)07:14
zhenguoXinran: ok, I see07:16
zhenguoXinran: but do we need to set the image_uuid back if there's an exception?07:16
openstackgerritMerged openstack/mogan master: Replace default_availability_zone with default_schedule_zone  https://review.openstack.org/49236607:19
openstackgerritZhenguo Niu proposed openstack/mogan master: Add aggregates filters when do scheduling  https://review.openstack.org/49169507:24
Xinranzhenguo, yes I think so07:27
Xinranzhenguo,  But as you mentioned, the error is occured when rebuilding with new image,  well... seems don't set back is more reasonable ...07:31
Xinranzhenguo, hah07:31
zhenguoXinran: hah07:50
zhenguoliusheng: please go through the patches :D07:52
liushengzhenguo: ok07:52
zhenguoliusheng: seems there's only one patch left for aggregates, and the server groups api has landed07:53
*** openstackgerrit has quit IRC08:02
wanghaozhenguo: ping08:36
zhenguowanghao: pong08:36
wanghaozhenguo: I found we miss some log in some operations  like delete server, do you think we should improve them now?08:36
zhenguowanghao: sure :D08:37
wanghaozhenguo: sure, quick fix.08:37
zhenguowanghao: thanks08:37
wanghaozhenguo: np : )08:37
*** wanghao has quit IRC08:40
*** wanghao has joined #openstack-mogan08:41
liushengzhenguo: do you think shold we set the flavor as disabled when deleting a server which still in use by some servers ?08:44
*** wanghao_ has joined #openstack-mogan08:44
liushengzhenguo: s/deleting a server/deleting a flavor08:44
zhenguoliusheng: seems not08:45
zhenguoliusheng: only admin can do delete or set disabled08:45
zhenguoliusheng: but we should raise an error08:46
liushengzhenguo: I mean set the flavor automatically08:46
liushengzhenguo: just like a flavor in deleted state08:46
liushengzhenguo: but unvisionable for common users08:46
liushengzhenguo: invisible08:47
*** wanghao has quit IRC08:48
zhenguoliusheng: we can just raise an error when deleting a flavor in use08:49
zhenguoliusheng: not usre if admins always hope it get disabled when delete a flavor in use08:50
liushengzhenguo: only the admin can delete flavor08:50
zhenguoliusheng: maybe they just want to try to delete it08:50
zhenguoliusheng: as we provide two APIs, they can choose delete or disabled,08:51
liushengzhenguo: even for admin, it shouldn't delete the flavor in use I think08:51
zhenguoliusheng: yes, so in this case, they should disable it08:52
zhenguoliusheng: by themselves instead of doing automatically by us08:52
liushengzhenguo: ..08:52
liushengzhenguo: for common users, we can treat the disabled flavor as deleted flavor08:53
liushengzhenguo: only for internal usage08:53
liushengzhenguo: just personal thoughs, but maybe just raise an error to remind admins to disable is also a good choice08:55
zhenguoliusheng: hah08:59
zhenguoliusheng: we still don't raise error now when deleting flavors in use09:00
liushengzhenguo: I prefer to my suggestion :(, I am a admin, so I know I am deleting a flavor, but if the flavor is inuse, I need to disable it. why don't merge these two steps to one ?09:01
zhenguoliusheng: but there maybe other admins like me, I dont' want to be automatically get deleted :D09:01
liushengzhenguo: why ?09:02
zhenguoliusheng: maybe I just want to try to delete it to see if it's in use09:02
liushengzhenguo: ..alright, that is a usecase09:03
zhenguoliusheng: if it's in use, maybe I will keep it for a while, or maybe I will disable it09:03
zhenguoliusheng: automatically dialbled seems a hardcoding09:03
liushengzhenguo: we already support listing servers filtered by flavor uuid09:04
zhenguoliusheng: yes,09:04
liushengzhenguo: we can treat it as a integrated deleting process09:04
liushengzhenguo: so there isnt any hardcoding matter09:05
zhenguoliusheng: it's not a must for us09:05
zhenguoliusheng: I perfer to keep it as is until customers request us to change09:06
liushengzhenguo: ok09:06
*** wanghao has joined #openstack-mogan09:09
zhenguoliusheng: do you think admins should be able to use disabled flavor to create a server?09:09
liushengzhenguo: I don't think so09:10
zhenguoliusheng: so we should need to check the flavor.disabled when creating servers09:10
zhenguoliusheng: can't leverage the db flavor_get api09:10
liushengzhenguo: you mean your new flavor patche ?09:11
zhenguoliusheng: yes09:11
liushengzhenguo: why cannot leverage the de flavor get api ?09:11
*** wanghao_ has quit IRC09:12
zhenguoliusheng: for common users when get the flavor, it will raise not found09:12
liushengzhenguo: yes09:12
zhenguoliusheng: as in db flavor get api it will check whether it's admin09:12
zhenguoliusheng: so I check the disabled there and raise disabled error to just admins09:12
*** openstackgerrit has joined #openstack-mogan09:13
openstackgerritwanghao proposed openstack/mogan master: Add some missing logs in Mogan  https://review.openstack.org/49291709:13
liushengzhenguo: but disabled error of flavor will make common users recognise wichi flavor is disabled09:15
zhenguoliusheng: I will make a change to move admin check to api layer09:16
zhenguoliusheng: then when get flavor before we check the flavor disabled it will raise not found for common useres09:16
zhenguoliusheng: only admin can get that disabled flavor, then raise disabled to common users09:17
zhenguos/common users/admins09:17
liushengzhenguo: why don' raise notfound error also ?09:18
zhenguoliusheng: as admins can get that flavor09:18
zhenguoliusheng: you are an admin, you list the flavor, then create a server with it but got not found error,09:19
zhenguoliusheng: then you check the flavor again, and it's there,09:19
liushengzhenguo: so I am tinking another thing, should we don't display the disabled flavor defaulty for admin, but can support a --deleted option ?09:20
liushengzhenguo: like Nova does ?09:20
zhenguoliusheng: I don't think so, don't you think it makes things more complex09:21
zhenguoliusheng: why do you think we can't raise the flavor is disabled to admins when creating servers09:21
liushengzhenguo: if we have many flavors in an env, and some of them are disabled, I am an admin user and want to select a flavor to use, but there are many flavors cannot be sued09:22
zhenguoliusheng: I understand we don't want to expose that to common users, but for admins it's ok09:22
zhenguoliusheng: in fact, admins should not create servers09:22
liushengzhenguo: why ?09:22
zhenguoliusheng: you even can't create servers in admin's panel on horizon09:23
*** wanghao has quit IRC09:24
zhenguoliusheng: let's go back to the question of not displaying disabled flavors default by admins, but they can also get the flavor09:25
zhenguoliusheng: it's not deleted, they can make it enable again09:25
*** wanghao has joined #openstack-mogan09:26
zhenguoliusheng: see my replies here https://review.openstack.org/#/c/491695/09:32
liushengzhenguo: ok09:33
zhenguoliusheng: we can't manage to make one request for our aggregates09:34
zhenguoliusheng: as every key may match with a list of aggregates which is a request with member_of the aggregates list09:35
liushengzhenguo: I got it. if so, shouldn't we remove the duplicated aggregates ?09:36
zhenguoliusheng: how?09:37
zhenguoliusheng: it's just a sql filter in placement09:37
zhenguoliusheng: the cost there is lower then we make many loops to remove it09:38
liushengzhenguo: I mean the agg filters maybe: [[agg1], [agg1, agg2], [agg2, agg3]]09:38
zhenguoliusheng: yes, it's ok I think09:39
zhenguoliusheng: but we can remove the things like [[agg1, agg2], [agg1, agg2]]09:39
liushengzhenguo: got it, seems yes09:42
zhenguoliusheng: and if that happens, that's because the operators defined a bad aggregate09:43
liushengzhenguo: looks good to me, do do you think it is valuable to add the above cleanup ?09:50
zhenguoliusheng: yes,09:51
zhenguoliusheng: or maybe later09:51
liushengzhenguo: ok, wait for your new patchset09:51
zhenguoliusheng: I hope we can make aggregates done by this week :D09:52
liushengzhenguo: ok09:52
zhenguoliusheng: thanks, a following up patch will up when we finished the urgent work09:53
liushengzhenguo: np, ok09:53
zhenguoliusheng: maybe it's time for you to rebase your scheduler_hints patch :D09:54
liushengzhenguo: ok, will do it later :)09:54
zhenguoliusheng: ok09:54
liushengzhenguo: seems gate has been broken..09:54
liushengzhenguo: no unstable09:54
liushengzhenguo: or unstable09:55
zhenguoliusheng: seems not related to us09:55
zhenguoliusheng: because it's release period, they all quickly +A patches :D09:55
liushengzhenguo: hah, it should be09:55
zhenguoliusheng: lol09:56
*** wanghao has quit IRC10:23
openstackgerritMerged openstack/mogan master: Add the missed quota object importing  https://review.openstack.org/49202410:30
openstackgerritMerged openstack/mogan master: Add aggregates filters when do scheduling  https://review.openstack.org/49169510:40
openstackgerritMerged openstack/mogan master: Add checks for aggregate availability_zone  https://review.openstack.org/48987611:32
*** zhuli has quit IRC12:19
*** zhuli has joined #openstack-mogan12:19
openstackgerritMerged openstack/mogan master: Do not allow update flavor internal attributes  https://review.openstack.org/49243812:41
openstackgerritMerged openstack/mogan master: Move baremetal dir out from engine  https://review.openstack.org/49208413:46

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