Wednesday, 2021-01-06

*** spatel has joined #senlin00:46
*** spatel has quit IRC00:52
*** sapd1 has joined #senlin01:30
*** spatel has joined #senlin02:26
*** spatel has quit IRC02:28
*** sapd1_x has joined #senlin04:39
*** sapd1 has quit IRC04:43
*** sapd1_x has quit IRC05:38
*** sapd1_x has joined #senlin05:57
*** sapd1_x has quit IRC06:51
*** sapd1_x has joined #senlin07:06
*** sapd1_x has quit IRC07:59
*** sapd1 has joined #senlin12:24
*** sapd1 has quit IRC13:19
*** spatel has joined #senlin14:15
spateldtruong: morning14:48
spatelI saw your comments and i did try to use exception to trigger error but somehow its throwing nasty error in logs and failing to create LB - https://review.opendev.org/c/openstack/senlin/+/768296/10/senlin/policies/lb_policy.py#34414:48
spatelI will give it a try again and will ask you to see if i missed or did something wrong14:49
*** sapd1 has joined #senlin15:20
dtruongIf you see the error again, can you post it?16:43
*** sapd1 has quit IRC17:07
spatelsure17:08
*** sapd1 has joined #senlin17:21
*** sapd1 has quit IRC17:47
spateldtruong: there?21:02
spatelThis is what i am trying - http://paste.openstack.org/show/801465/21:02
spatellook like its not going inside try:21:02
spatelThis is the error i am getting when trying to create policy with bad flavor_id21:03
spatelResourceNotFound: 404: Client Error for url: http://10.65.0.121:8778/v1/policies, The policy_type 'senlin.policy.loadbalance-1.1' could not be found.21:03
*** jmlowe has quit IRC21:33
spatelI have indented 4 space in try: block and look like it works but seeing this error in logs - http://paste.openstack.org/show/801467/21:40
spatelIt should print msg = _()  block but it doesn't going there. can you verify if anything wrong in my snippet21:42
*** spatel has quit IRC22:40
dtruongYou are calling the openstacksdk method directly using oc.conn.  In order for it to return an InternalError exception, you need to wrap the call to openstacksdk in this file: https://github.com/openstack/senlin/blob/master/senlin/drivers/os/octavia_v2.py23:02
dtruongI.e. create a method called flavor_get in that file23:03
dtruongusing the @sdk.translate_exception decorator, then the correct exception will be returned23:04

Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!