Wednesday, 2017-04-12

*** Xinran has quit IRC00:05
*** Xinran has joined #openstack-mogan00:09
*** wanghao has joined #openstack-mogan00:15
*** Xinran has quit IRC00:16
*** Xinran has joined #openstack-mogan00:16
*** Xinran has quit IRC00:26
*** Xinran has joined #openstack-mogan00:26
*** Xinran has quit IRC00:36
*** Xinran has joined #openstack-mogan00:36
zhenguomorning mogan!00:41
*** Xinran has quit IRC00:46
*** Xinran has joined #openstack-mogan00:47
*** Xinran has quit IRC00:57
*** Xinran has joined #openstack-mogan00:57
zhenguoliusheng: mind to have a look at this https://review.openstack.org/#/c/455548/ when you got time, on my test it works well01:00
liushengzhenguo: sure01:00
zhenguoliusheng: thanks01:00
liushengzhenguo: np01:00
*** Xinran has quit IRC01:07
*** Xinran has joined #openstack-mogan01:07
*** wanghao has quit IRC01:10
*** wanghao has joined #openstack-mogan01:11
liushengzhenguo: hi, 2 comments inline.01:11
zhenguoliusheng: ok, will check01:11
zhenguoliusheng: hah, seems the comments are made by harlowja https://review.openstack.org/#/c/455548/3/mogan/engine/api.py01:16
liushengzhenguo: lol01:17
*** Xinran has quit IRC01:17
*** Xinran has joined #openstack-mogan01:18
zhenguoliusheng: do you know why nova put user data to instance?01:21
zhenguoliusheng: seems all metadata related infomation like this will save to instance db01:22
liushengzhenguo: the instance already include most of the instance properties, I think the user_data don't need to be an exception01:26
*** Xinran has quit IRC01:27
zhenguoliusheng: as I understand, the reason why nova instance save with such properties is they have a metadata API01:27
zhenguoliusheng: otherwise, seems no need for this, and not only user data, all metadata API GET releated properties should be saved01:28
liushengzhenguo: oh, I got it, you mean in mogan, we don't save user_data in db01:28
zhenguobut we only save sunch data to configdrive, and we don't have a metadata API01:28
zhenguoliusheng: yes01:29
zhenguoliusheng: I don't find the reason to save all such data01:29
*** Xinran has joined #openstack-mogan01:29
zhenguoliusheng: another question, can user update user_data through metadata API?01:30
liushengzhenguo: let me ask others01:31
zhenguoliusheng: ok, thanks01:31
openstackgerritliusheng proposed openstack/mogan master: Add tool for adoptting baremetal servers from Nova  https://review.openstack.org/45569201:31
liushengzhenguo: zhenyu is in a meeting, he will help to check01:31
zhenguoliusheng: ok, and do you think we need to put configdrive task to creating workflow?01:32
liushengzhenguo: seems reasonable to me01:34
zhenguoliusheng: ok, will add that task later after user data finished01:35
liushengzhenguo: will review your big patch :D, ok01:35
zhenguoliusheng: hah, thanks very much01:35
liushengzhenguo: np, you are so capable01:35
liushengzhenguo: lol01:36
zhenguolol01:36
*** Xinran has quit IRC01:38
zhenguoliusheng: I think we need to put some time to our client, will compare with nova to see which fields should be presented for create/show/update/...01:38
*** Xinran has joined #openstack-mogan01:38
liushengzhenguo: ok01:38
*** wanghao has quit IRC01:43
*** wanghao has joined #openstack-mogan01:44
openstackgerritZhenguo Niu proposed openstack/mogan master: Add user_data support  https://review.openstack.org/45554801:47
*** Xinran has quit IRC01:47
*** wanghao has quit IRC01:58
*** wanghao has joined #openstack-mogan02:15
*** wanghao has quit IRC02:25
openstackgerritZhenguo Niu proposed openstack/mogan master: Add user_data support  https://review.openstack.org/45554802:26
*** Kevin_Zheng has joined #openstack-mogan02:54
*** luyao has joined #openstack-mogan03:00
liushengzhenguo: do you think if it is better to put the adoption tool under mogan/ and add an entry point to add an command like: mogan-nova-adoption ?03:19
zhenguoliusheng: maybe we can have a mogan-manage commands to handle all such operations,03:20
liushengzhenguo: you mean also use mogan-namage to perform db upgrade ?03:21
zhenguoliusheng: but seems no rush, we can hold on for a while for the adopt API, just a simple tool for now is enough, wdyt?03:21
zhenguoliusheng: maybe for all management commands03:21
liushengzhenguo: ok, but last night, I realized there maybe a challenge to clean the bms in Nova after adopting the bms to Mogan :(03:24
zhenguoliusheng: hah, yes, as it will triger real node deleting03:24
liushengzhenguo: and will try to delete port in nova code process03:24
zhenguoliusheng: yes, and the port also have some nova related properties03:25
liushengzhenguo: :(03:26
zhenguoliusheng: nova will set instance_uuid as port device_id03:26
zhenguoliusheng: we also set our instance_uuid to neutron port03:26
liushengzhenguo: in the adoption tool, the uuid of instance is same with nova03:27
zhenguoliusheng: can we just adopt that uuid as well?03:27
zhenguoliusheng: oh, that's good03:27
liushengzhenguo: yes, we reuse the instance properties and ports03:27
zhenguoliusheng: you also use flavor id for instance_type uuid?03:33
liushengzhenguo: yes03:33
zhenguoliusheng: hah03:33
zhenguoliusheng: the tool will automatically handle that if the instance_type doesn't exist?03:33
liushengzhenguo: bug create a mogan instance type, and when adopting multiple instances, will check if it existed fistly03:34
liushengzhenguo: yes03:34
zhenguoliusheng: nice03:34
openstackgerritliusheng proposed openstack/mogan master: Add tool for adoptting baremetal servers from Nova  https://review.openstack.org/45569203:36
openstackgerritliusheng proposed openstack/mogan master: Add tool for adoptting baremetal servers from Nova  https://review.openstack.org/45569203:37
openstackgerritMerged openstack/mogan master: Add user_data support  https://review.openstack.org/45554803:46
openstackgerritZhenguo Niu proposed openstack/mogan master: Ignore 404 exception when deleting port  https://review.openstack.org/45605705:33
*** Xinran has joined #openstack-mogan05:56
*** Xinran has quit IRC06:04
*** Xinran has joined #openstack-mogan06:06
openstackgerritliusheng proposed openstack/mogan master: Add tool for adoptting baremetal servers from Nova  https://review.openstack.org/45569206:07
*** Xinran has quit IRC06:14
*** Xinran has joined #openstack-mogan06:14
*** Xinran has quit IRC06:24
*** Xinran has joined #openstack-mogan06:25
*** Xinran has quit IRC06:34
*** Xinran has joined #openstack-mogan06:35
*** Xinran has quit IRC06:45
*** Xinran has joined #openstack-mogan06:45
*** Xinran has quit IRC06:55
*** Xinran has joined #openstack-mogan06:55
*** Xinran has quit IRC07:01
openstackgerritZhenguo Niu proposed openstack/python-moganclient master: Add more columns to server list  https://review.openstack.org/45610608:09
zhenguoliusheng: hi, do you think we need to return node_uuid with instance when list or get server?08:20
liushengzhenguo: at least, I think get server api should return08:21
zhenguoliusheng: does nova instance expose such information to common users?08:22
zhenguoliusheng: or only admin08:22
liushengzhenguo: the nova server includes the host name info08:22
zhenguoliusheng: so both admin and common users can see this, right?08:23
liushengzhenguo: I am sure the admin can08:24
zhenguoliusheng: hah, how about common users?08:24
liushengzhenguo: let me try with non-admin users08:25
zhenguoliusheng: ok, thanks08:25
liushengzhenguo: just confirmed, for amin users, the host will be directly show in the instance info. for non-admin user, host don't be showed directly, but it will be encoded with project_id by hash method as the "hostId" field of instance08:39
zhenguoliusheng: oh, that's convoluted :(08:40
liushengzhenguo: lol08:40
liushengzhenguo: host_id = hashlib.sha224((project_id + self.conf.host).encode('utf-8')).hexdigest()08:40
zhenguoliusheng: hah, I would like to enable this for mogan as well08:40
liushengzhenguo: "OS-EXT-SRV-ATTR:host": "liusheng",08:41
liushengzhenguo: for admin users, there is this field08:41
zhenguoliusheng: do you want to do it :D08:41
liushengzhenguo: sure, I can pick it if you have other tasks :D08:41
zhenguoliusheng: thanks very much!08:42
* liusheng sometimes have to care about Telemetry...08:42
zhenguohah08:42
liushengzhenguo: np :)08:43
openstackgerritZhenguo Niu proposed openstack/python-moganclient master: Add more columns to server list  https://review.openstack.org/45610609:04
openstackgerritZhenguo Niu proposed openstack/mogan master: Following up patch of c6102131994d8b1ab7189ddb3b3210c83edc4cd7  https://review.openstack.org/45614409:58
openstackgerritMerged openstack/python-moganclient master: Add more columns to server list  https://review.openstack.org/45610611:07
openstackgerritMerged openstack/mogan master: Ignore 404 exception when deleting port  https://review.openstack.org/45605711:38
openstackgerritMerged openstack/mogan master: Following up patch of c6102131994d8b1ab7189ddb3b3210c83edc4cd7  https://review.openstack.org/45614411:41
openstackgerritOpenStack Proposal Bot proposed openstack/mogan master: Updated from global requirements  https://review.openstack.org/45593911:45
openstackgerritOpenStack Proposal Bot proposed openstack/python-moganclient master: Updated from global requirements  https://review.openstack.org/45599911:53
*** luyao_ has joined #openstack-mogan12:08
openstackgerritZhenguo Niu proposed openstack/python-moganclient master: Add support to specify userdata when creating a server  https://review.openstack.org/45619912:23
* zhenguo away12:26
*** luyao_ has quit IRC12:26
openstackgerritMerged openstack/python-moganclient master: Updated from global requirements  https://review.openstack.org/45599912:26
*** luyao_ has joined #openstack-mogan12:27
*** luyao has quit IRC12:28
*** luyao_ is now known as luyao12:28
*** luyao has quit IRC12:33
*** luyao has joined #openstack-mogan12:33
luyaoshaohe_feng, ping12:37
openstackgerritMerged openstack/mogan master: Updated from global requirements  https://review.openstack.org/45593913:02
*** liusheng has quit IRC14:42
*** Xinran_ has joined #openstack-mogan14:59
Xinran_luyao, ping14:59
*** Xinran_ has quit IRC15:04
*** Xinran has joined #openstack-mogan15:08
*** Xinran has quit IRC15:11
*** Xinran has joined #openstack-mogan15:11
Xinranluyao, ping15:16
*** Kevin_Zheng has quit IRC16:13
*** l4yerffeJ has joined #openstack-mogan16:21
*** l4yerffeJ has quit IRC16:23
-openstackstatus- NOTICE: Restarting Gerrit for our weekly memory leak cleanup.21:26

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