Monday, 2013-11-04

*** datajerk has joined #openstack-ironic01:16
*** michchap has joined #openstack-ironic01:26
*** michchap has quit IRC01:29
*** michchap has joined #openstack-ironic01:46
*** datajerk has quit IRC01:52
*** datajerk has joined #openstack-ironic01:57
*** michchap has quit IRC02:03
*** martyntaylor has joined #openstack-ironic03:08
*** datajerk has quit IRC04:00
*** martyntaylor1 has joined #openstack-ironic04:37
*** martyntaylor has quit IRC04:37
*** martyntaylor1 has quit IRC04:41
*** romcheg has joined #openstack-ironic04:43
*** romcheg has quit IRC04:46
*** datajerk has joined #openstack-ironic04:56
*** datajerk has quit IRC05:05
*** datajerk has joined #openstack-ironic05:57
*** datajerk has quit IRC06:01
*** martyntaylor has joined #openstack-ironic06:06
*** datajerk has joined #openstack-ironic06:28
*** datajerk has quit IRC06:32
*** datajerk has joined #openstack-ironic06:58
*** datajerk has quit IRC07:03
*** martyntaylor has quit IRC07:07
openstackgerritA change was merged to openstack/ironic: Add wrapper for keystone service catalog  https://review.openstack.org/5260107:07
*** martyntaylor has joined #openstack-ironic07:07
openstackgerritHaomeng,Wang proposed a change to openstack/python-ironicclient: Enable created_at/updated_at for port-show/chassis-show  https://review.openstack.org/5399107:09
openstackgerritHaomeng,Wang proposed a change to openstack/ironic: Change Port create API to EAFP  https://review.openstack.org/5453707:12
*** datajerk has joined #openstack-ironic07:29
*** datajerk has quit IRC07:33
*** harlowja has quit IRC07:38
openstackgerritHaomeng,Wang proposed a change to openstack/ironic: ipmitool SHOULD accept empty username/password  https://review.openstack.org/5488607:44
*** harlowja has joined #openstack-ironic07:53
*** datajerk has joined #openstack-ironic08:00
*** datajerk has quit IRC08:05
*** datajerk has joined #openstack-ironic08:31
*** datajerk has quit IRC08:35
*** lifeless_ has joined #openstack-ironic08:55
*** lifeless has joined #openstack-ironic08:57
*** datajerk has joined #openstack-ironic09:01
*** datajerk has quit IRC09:05
openstackgerritYuriy Zveryanskyy proposed a change to openstack/ironic: Allows unicode description for chassis  https://review.openstack.org/5473709:06
*** martyntaylor has quit IRC09:23
*** martyntaylor has joined #openstack-ironic09:23
openstackgerritYuriy Zveryanskyy proposed a change to openstack/ironic: Remove 'basestring' from objects utils  https://review.openstack.org/5513109:41
*** martyntaylor has quit IRC09:52
*** martyntaylor has joined #openstack-ironic09:53
*** romcheg has joined #openstack-ironic09:56
*** romcheg has quit IRC10:03
*** martyntaylor has quit IRC10:03
*** martyntaylor has joined #openstack-ironic10:03
*** martyntaylor has quit IRC10:31
*** sjing has joined #openstack-ironic10:42
*** sjing has quit IRC12:17
*** sjing has joined #openstack-ironic13:03
*** jdob has joined #openstack-ironic13:19
*** bauzas has joined #openstack-ironic13:26
openstackgerritLucas Alvares Gomes proposed a change to openstack/ironic: Required fields on nodes  https://review.openstack.org/5366413:35
*** datajerk has joined #openstack-ironic13:39
*** datajerk has quit IRC13:44
*** linggao has joined #openstack-ironic13:48
*** datajerk has joined #openstack-ironic13:51
*** jdob_ has joined #openstack-ironic13:52
*** jdob has quit IRC13:54
*** jdob_ is now known as jdob13:54
*** datajerk has quit IRC13:55
*** linggao_ has joined #openstack-ironic14:00
*** linggao_ has quit IRC14:02
*** linggao has quit IRC14:02
*** linggao_ has joined #openstack-ironic14:02
*** bauzas has quit IRC14:09
*** sjing has quit IRC14:10
*** bauzas has joined #openstack-ironic14:11
*** blamar has joined #openstack-ironic14:12
*** jbjohnso has joined #openstack-ironic14:14
*** martyntaylor has joined #openstack-ironic14:35
*** martyntaylor has left #openstack-ironic14:41
*** kobier has joined #openstack-ironic15:23
*** bauzas has quit IRC15:27
*** kobier has quit IRC15:40
*** linggao_ has quit IRC16:09
*** linggao has joined #openstack-ironic16:13
linggaoHi max_lobur,16:20
max_loburHi linggao16:20
linggaoone question on instance_uuid,  /v1/nodes/?instance_uuid=<xxx>  if no node has this intance_uuid, should we return an empty list or error?16:22
linggaoI mean the REST API,16:23
max_loburI think empty list will be consistent with other filters16:26
max_loburso on the client16:27
max_loburin show method16:27
max_loburwe could check if list is empty, and show the appropriate message to the user16:27
max_loburbut for REST API, since we semantically just applying a filter to the collection - IMO it should return an empty list16:28
linggaook, I'll make the change accordingly. Currently, the REST API  gives error saying 'Instance xxx could not be found"16:29
max_loburhm16:29
max_loburthat's probably because of our db api. Because in DB API we have strict method get_node_by_instance16:32
max_loburwhich is similar to get_node for example16:33
max_loburit implements "one or error" behavior16:33
linggaoyes, another thing is that get_node validates uuid first, get_node_by_instance does not.16:35
max_loburyea. I think it should too, but not sure if we can to fix this in the same patch16:38
max_loburso here is the problem16:41
max_loburfor collection filters we usually have something like get_nodes_by_chassis in DB API16:42
max_loburbut this time it's strict "one or error"16:42
max_loburfrom one side it's consistent with DB - we can have only one node by instance id. also it's handy16:43
linggaoyes,16:44
max_loburfrom the other side it will be overhead for API classes16:44
max_loburthey would need to eat those exception to emulate that this was a usual collection query16:44
linggaothat's because we put it in a collection16:44
max_loburI'd rather change DB API than build workarounds..16:46
max_loburto get_nodes_by_instance_id16:46
max_loburI think we should avoid such "strict get by a property" methods in db API since they cannot be reflected to REST concept16:48
linggaowe need to bring this up to the team, but most folks are at Hong Kong Simmit.16:49
linggaosummit16:49
max_loburyea16:50
max_loburthose DB API was introduced by a separate patch..16:50
max_loburand I don't see any usages of this method except yours16:50
max_loburand unit tests of course16:50
max_loburI'm wondering if we will need a separate patch to update it16:51
linggaowill get_node_by_instance be used in deployment process?16:52
max_loburunfortunately I don't know. I searched ".get_node_by_instance(" string through the ironic project and found only unit tests16:53
linggaoI like get_node_by _instance over get_nodes_by_instance because it should return one node.16:54
max_loburI think for now you could eat those exception - create a new patch with workaround. And comment this workaround so we can bring this to the team and this will be visually clear that something wrong here. Anyway I left a few comments to you :P16:55
max_loburyea, I like get_node_by_instance too, but if we will use it only in REST API classes it will make sence to refactor it16:57
max_loburto be like get_nodes_by_chassis16:57
linggaoanyway, I'll create a new patch for get_node_by_instance, through different exceptiions for different error, then the REST API will eat the "no node has this uuid" error and return an empty list.16:59
linggaothrough-> throw16:59
max_loburyea16:59
max_loburthis will work in any case17:00
linggaoyes, thanks max for your help.17:00
max_lobursure, np =)17:00
*** john-n-seattle1 has quit IRC18:17
*** john-n-seattle has joined #openstack-ironic18:26
*** harlowja has quit IRC18:58
linggaoanyone,  I got "Authentication required" when using ironic REST APIs19:11
linggaoany hint?19:11
linggao I reinstalled the openstack using devstack.19:11
linggaocurl -X GET -H 'Content-Type:application/json'   http://localhost:6385/v1/nodes/19:15
linggaoAuthentication required19:15
linggaoCLI works though.19:16
*** anniec has joined #openstack-ironic21:40
*** jdob has quit IRC21:46
*** anniec has quit IRC21:47
*** harlowja has joined #openstack-ironic21:57
*** linggao has quit IRC22:07
NobodyCamgood morning from Hong Kong Ironic22:20
*** jbjohnso has quit IRC22:30
*** harlowja has quit IRC22:49

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