Saturday, 2017-05-27

openstackgerritMerged openstack/senlin master: Updated from global requirements  https://review.openstack.org/46695600:57
*** xinhuili has joined #senlin01:17
openstackgerritHongbin Li proposed openstack/python-senlinclient master: remove redundant value when cluster-show  https://review.openstack.org/46859201:35
*** XueFeng has joined #senlin01:36
openstackgerritlu.li proposed openstack/senlin master: update test.attr() to  decorators.attr()  https://review.openstack.org/46859601:46
*** XueFeng has quit IRC01:51
*** XueFeng has joined #senlin01:52
XueFengQiMing, I want to integrate senlin to openstack K version productio environment. which version should I use?01:55
XueFengproduction01:55
Qiming_... latest version I think01:58
Qiming_K is too old I'm afraid01:58
Qiming_but anyway01:58
Qiming_openstacksdk doesn't have a strict version checking or a flexible version negotiation capability in place01:59
Qiming_so .. when talking to an old version of nova or heat, there might be some subtle bugs01:59
XueFengOK, I will try latest senlin version in one environment first02:37
chenyb4Hi, I have a question, when extend receiver_update api , allways appear "<ValidationError: "Additional properties are not allowed (u'receiver' was unexpected)">"02:54
chenyb4PATCH body params "{02:55
chenyb4    "receiver": {02:55
chenyb4        "name": "cluster_inflate",02:55
chenyb4        "params": {02:55
chenyb4            "count": "1"02:55
chenyb4        }02:55
chenyb4    }02:55
chenyb4}"02:55
openstackgerritlu.li proposed openstack/senlin master: update test.attr() to  decorators.attr()  https://review.openstack.org/46859603:00
Qiming_where is your ReceiverUpdateRequest?03:03
chenyb4Qiming_, senlin/objects/requests/receivers.py class ReceiverUpdateRequest(base.SenlinObject):03:05
chenyb4fields = {03:06
chenyb4        'identity': fields.StringField(),03:06
chenyb4        'name': fields.NameField(nullable=True),03:06
chenyb4        'params': fields.JsonField(nullable=True, default={})03:06
chenyb4    }03:06
Qiming_obviously, your request object is not accepting a 'receiver' property03:07
chenyb4Qiming_, What should I do ?03:09
chenyb4Qiming_, I has add update to policy.json03:10
Qiming_check how cluster update api is supported03:10
Qiming_this has nothing to do with policy03:10
*** xinhuili has quit IRC04:53
*** XueFeng has quit IRC05:25
*** XueFeng has joined #senlin05:25
openstackgerritchenyb4 proposed openstack/senlin master: Versioned object for receiver update request  https://review.openstack.org/46861205:27
openstackgerritlu.li proposed openstack/senlin master: update test.attr() to  decorators.attr()  https://review.openstack.org/46859605:52
openstackgerritMerged openstack/senlin master: delete profile base invalid variable  https://review.openstack.org/46789506:10
openstackgerritlu.li proposed openstack/senlin master: Replace test.attr with decorators.attr Function 'tempest.test.attr()' has moved to 'tempest.lib.decorators .attr()' in Pike and will be removed in a future version[1]. This patch replaces the 'tempest.test.attr()' with the 'tempest.lib .decorators.attr().  https://review.openstack.org/46859606:25
openstackgerritlu.li proposed openstack/senlin master: Replace test.attr with decorators.attr  https://review.openstack.org/46859606:30
openstackgerritlu.li proposed openstack/senlin master: Replace test.attr with decorators.attr  https://review.openstack.org/46859606:38
openstackgerritlu.li proposed openstack/senlin master: Replace test.attr with decorators.attr  https://review.openstack.org/46859606:44
openstackgerritlu.li proposed openstack/senlin master: Replace test.attr with decorators.attr  https://review.openstack.org/46859606:46
openstackgerritlu.li proposed openstack/senlin master: Replace test.attr with decorators.attr  https://review.openstack.org/46859606:50
chenyb4Hi, Qiming_ I don't find about "Additional properties are not allowed", I only find test about "Additional properties are not allowed" message.06:54
chenyb4I find I find "API layer support to node adoption" https://review.openstack.org/#/c/462354/ but don't find about it message06:54
openstackgerritlu.li proposed openstack/senlin master: Replace test.attr with decorators.attr  https://review.openstack.org/46859606:55
openstackgerritlu.li proposed openstack/senlin master: Replace test.attr with decorators.attr  https://review.openstack.org/46859606:58
openstackgerritlu.li proposed openstack/senlin master: Replace test.attr with decorators.attr  https://review.openstack.org/46859607:01
openstackgerritlu.li proposed openstack/senlin master: Replace test.attr with decorators.attr  https://review.openstack.org/46859607:09
Qiming_chenyb4, cannot understand what you are saying07:31
chenyb4Qiming_, I add new receiver update api interface ,configure policy.json, add router map, but i patch params after appear "<ValidationError: "Additional properties are not allowed (u'receiver' was unexpected)">"07:33
Qiming_what kind of a JSON are you passing to the API?07:34
Qiming_how are you modeling the ReceiverUpdateRequest object?07:34
chenyb4{"receiver":{"name": "test"}}07:34
Qiming_is your ReceiverUpdateRequest prepared to receive something like {'receiver': {...}} ?07:35
Qiming_then the object must contain a 'receiver' field at the top level07:35
chenyb4https://review.openstack.org/#/c/468612/ this is request about receiver07:35
chenyb4Qiming_, http://paste.ubuntu.com/24676140/  api code07:38
Qiming_so ... you still don't understand what I am saying07:39
Qiming_and what I was suggesting07:39
Qiming_In your ReceiverUpdateRequest class, there is no such a field named 'receiver', right?07:39
Qiming_how could API layer accept such a JSON, {'receiver': {...}} ?07:40
Qiming_previously I told you to learn about this from ClusterUpdateRequest, and you didn't do that either07:40
Qiming_okay, my fault07:42
Qiming_you have been faithfully following the cluster update example07:42
Qiming_let me check where the problem is07:42
Qiming_how are you invoking the API now?07:43
Qiming_via SDK?07:43
openstackgerritlu.li proposed openstack/senlin master: Replace test.attr with decorators.attr  https://review.openstack.org/46859607:45
chenyb4Qiming_, use Postman tool PATCH body07:46
Qiming_what is the body look like?08:00
chenyb4Hi, Qiming_ I see the data error. params = body i must change params = receiver_data. I'm sorry08:01
chenyb4So, appear jsonschema format error08:02
chenyb4receiver_data = body.get('receiver', None)08:02
chenyb4params = body08:02
chenyb4change params = receiver_data right08:03
Qiming_...08:12
openstackgerritchenyb4 proposed openstack/senlin master: Add receiver new api interface  https://review.openstack.org/46862708:29
openstackgerritlu.li proposed openstack/senlin master: Replace test.attr with decorators.attr  https://review.openstack.org/46859608:31
openstackgerritchenyb4 proposed openstack/senlin master: Add receiver new api interface  https://review.openstack.org/46862708:37
*** XueFeng has quit IRC09:56
openstackgerritchenyb4 proposed openstack/senlin master: Add receiver new api interface  https://review.openstack.org/46862710:12
*** openstackgerrit has quit IRC12:02
-openstackstatus- NOTICE: The Gerrit service on review.openstack.org is restarting to clear some hung API connections and should return to service momentarily.12:05
*** Rita has joined #senlin12:23
*** Rita is now known as chenyb4_12:24
*** openstackgerrit has joined #senlin14:57
*** ChanServ sets mode: +v openstackgerrit14:57
openstackgerritchenyb4 proposed openstack/senlin master: Add receiver update interface engine service support  https://review.openstack.org/46861214:57
*** chenyb4_ has quit IRC14:59
*** chenyb4_ has joined #senlin15:07
*** chenyb4_ has quit IRC15:07
*** chenyb4_ has joined #senlin15:07
*** chenyb4_ has quit IRC16:02
*** chenyb4_ has joined #senlin16:03
*** chenyb4_ has quit IRC16:07
*** openstackgerrit has quit IRC16:47
*** chenyb4_ has joined #senlin23:43

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