Tuesday, 2016-08-16

*** chetna has quit IRC00:03
*** tonanhngo has quit IRC00:05
*** chetna has joined #openstack-containers00:06
*** chetna has quit IRC00:07
*** chetna has joined #openstack-containers00:08
openstackgerritStephen Watson proposed openstack/python-magnumclient: Adds 'cluster' and 'cluster template'  https://review.openstack.org/35443600:08
*** chetna has quit IRC00:09
*** chetna has joined #openstack-containers00:10
*** chetna has quit IRC00:11
*** chetna has joined #openstack-containers00:12
*** chetna has quit IRC00:13
*** swatson_ has quit IRC00:16
*** banix has joined #openstack-containers00:24
*** eghobo has quit IRC00:24
*** tonanhngo has joined #openstack-containers00:34
*** hieulq has joined #openstack-containers00:36
*** tonanhngo has quit IRC00:39
*** banix has quit IRC00:44
*** Drago has quit IRC00:48
*** syed_ has quit IRC00:52
*** julim has joined #openstack-containers01:10
*** adrian_otto has quit IRC01:11
*** tonanhngo has joined #openstack-containers01:22
*** kevinz has joined #openstack-containers01:25
*** tonanhngo has quit IRC01:26
*** wangqun has joined #openstack-containers01:37
openstackgerritMerged openstack/magnum: Set bay status: DELETE_IN_PROGRESS before updated by poll  https://review.openstack.org/35532001:43
*** elo has quit IRC01:45
openstackgerritMotohiro/Yuanying Otsuka proposed openstack/magnum: Allow k8s cluster without Floating IP  https://review.openstack.org/33796501:57
openstackgerritMotohiro/Yuanying Otsuka proposed openstack/magnum: Add floating_ip_enabled field to baymodel  https://review.openstack.org/35152101:57
*** banix has joined #openstack-containers02:04
*** dimtruck is now known as zz_dimtruck02:05
*** zz_dimtruck is now known as dimtruck02:05
*** elo has joined #openstack-containers02:22
*** manikanta_tadi has joined #openstack-containers02:23
*** banix has quit IRC02:26
openstackgerritMerged openstack/magnum: Update to User Guide  https://review.openstack.org/35566002:29
*** houming has joined #openstack-containers02:36
*** manikanta_tadi has quit IRC02:40
*** fragatin_ has joined #openstack-containers02:42
*** hongbin has joined #openstack-containers02:44
*** fragatina has quit IRC02:45
*** zhenguo has joined #openstack-containers02:46
*** fragatin_ has quit IRC02:46
*** yuanying has quit IRC02:49
*** elo has quit IRC02:51
*** yuanying has joined #openstack-containers02:52
*** elo has joined #openstack-containers02:57
*** dimtruck is now known as zz_dimtruck03:07
*** sergmelikyan has joined #openstack-containers03:07
*** elo has quit IRC03:12
*** elo has joined #openstack-containers03:17
*** yatin has joined #openstack-containers03:18
*** sergmelikyan has quit IRC03:30
*** sergmelikyan has joined #openstack-containers03:30
*** sergmelikyan has quit IRC03:35
openstackgerritStephen Watson proposed openstack/python-magnumclient: Adds 'cluster' and 'cluster template'  https://review.openstack.org/35443603:40
*** rajiv_ has joined #openstack-containers03:40
*** vimal has joined #openstack-containers03:40
*** julim has quit IRC03:42
*** hongbin has quit IRC03:45
*** ramishra has quit IRC03:45
*** yuanying has quit IRC03:48
*** ramishra has joined #openstack-containers03:51
*** yuanying has joined #openstack-containers03:51
openstackgerritHieu LE proposed openstack/magnum: Align k8s CoreOS with atomic: add proxy config  https://review.openstack.org/35571004:01
*** GB21 has joined #openstack-containers04:01
*** eghobo has joined #openstack-containers04:02
*** vimal has quit IRC04:10
*** GB21 has quit IRC04:17
*** fragatina has joined #openstack-containers04:24
openstackgerritMotohiro/Yuanying Otsuka proposed openstack/magnum: Allow k8s cluster without Floating IP  https://review.openstack.org/33796504:26
openstackgerritMotohiro/Yuanying Otsuka proposed openstack/magnum: Add floating_ip_enabled field to baymodel  https://review.openstack.org/35152104:26
*** fragatina has quit IRC04:29
*** chandankumar has joined #openstack-containers04:30
*** vimal has joined #openstack-containers04:33
*** hieulq has quit IRC04:39
*** hieulq has joined #openstack-containers04:45
openstackgerritMerged openstack/magnum: Rollback bay on update failure  https://review.openstack.org/34347804:59
*** GB21 has joined #openstack-containers05:03
*** elo has quit IRC05:04
openstackgerritMerged openstack/magnum: Increase test coverage  https://review.openstack.org/35382405:11
openstackgerritThomas Bechtold proposed openstack/magnum: Fix tempest.conf generation  https://review.openstack.org/35572405:22
*** houming has quit IRC05:24
*** kushal has joined #openstack-containers05:29
*** Wenzhi has quit IRC05:30
*** Wenzhi_ has joined #openstack-containers05:31
*** Wenzhi_ has quit IRC05:32
*** Wenzhi has joined #openstack-containers05:33
*** Wenzhi has quit IRC05:34
*** Wenzhi has joined #openstack-containers05:34
*** fragatina has joined #openstack-containers05:40
*** fragatina has quit IRC05:45
*** manikanta_tadi has joined #openstack-containers05:51
*** rcernin has joined #openstack-containers06:15
*** elo has joined #openstack-containers06:16
*** wangqun_ has joined #openstack-containers06:18
*** wangqun has quit IRC06:21
*** diga_ has joined #openstack-containers06:22
*** elo has quit IRC06:27
*** elo has joined #openstack-containers06:27
*** maestropandy has joined #openstack-containers06:28
*** maestropandy has quit IRC06:32
*** maestropandy has joined #openstack-containers06:32
*** maestropandy has left #openstack-containers06:33
*** kushal has quit IRC06:39
*** maestropandy1 has joined #openstack-containers07:05
*** houming has joined #openstack-containers07:09
*** maestropandy1 has quit IRC07:17
*** maestropandy has joined #openstack-containers07:17
*** nicolasbock has quit IRC07:18
openstackgerritMotohiro/Yuanying Otsuka proposed openstack/magnum: Allow k8s cluster without Floating IP  https://review.openstack.org/33796507:19
openstackgerritMotohiro/Yuanying Otsuka proposed openstack/magnum: Add floating_ip_enabled field to baymodel  https://review.openstack.org/35152107:19
*** nicolasbock has joined #openstack-containers07:19
*** GB21 has quit IRC07:28
*** nicolasbock has quit IRC07:31
*** nicolasbock has joined #openstack-containers07:32
*** eghobo has quit IRC07:32
openstackgerritrajiv proposed openstack/magnum: Increased covergae of UT.  https://review.openstack.org/35462307:39
*** fragatina has joined #openstack-containers07:41
*** belmoreira has joined #openstack-containers07:46
*** fragatina has quit IRC07:46
openstackgerritrajiv proposed openstack/magnum: Heat templates of different drivers contain duplicate code  https://review.openstack.org/34785807:47
*** GB21 has joined #openstack-containers07:50
*** shu-mutou is now known as shu-mutou-AFK08:07
*** daneyon has joined #openstack-containers08:16
*** daneyon has quit IRC08:21
*** maestropandy has quit IRC08:25
*** wangqun_ has quit IRC08:27
*** manikanta_tadi has quit IRC08:30
*** maestropandy has joined #openstack-containers08:35
*** maestropandy1 has joined #openstack-containers08:36
openstackgerritrajiv proposed openstack/magnum: Consolidate heat fragments  https://review.openstack.org/34917308:37
*** maestropandy has quit IRC08:40
*** zenoway has joined #openstack-containers08:41
openstackgerritrajiv proposed openstack/magnum: Added Support for Listing all the information of magnum service  https://review.openstack.org/34937708:42
*** Wenzhi has quit IRC08:43
*** yamamoto has quit IRC08:44
*** maestropandy1 has left #openstack-containers08:49
openstackgerritrajiv proposed openstack/magnum: Allow disable/enable a magnum service.  https://review.openstack.org/35270008:49
openstackgerritLars Butler proposed openstack/magnum: Clean up docstrings in BayModel  https://review.openstack.org/35580409:15
*** GB21 has quit IRC09:18
*** kwazar is now known as quasar09:23
*** yamamoto has joined #openstack-containers09:31
*** yamamoto has quit IRC09:41
*** ramishra has quit IRC09:42
*** fragatina has joined #openstack-containers09:43
*** ramishra has joined #openstack-containers09:44
*** yamamoto has joined #openstack-containers09:46
*** yamamoto has quit IRC09:46
*** swatson__ has quit IRC09:48
*** yamamoto has joined #openstack-containers09:48
*** fragatina has quit IRC09:48
*** manikanta_tadi has joined #openstack-containers09:49
*** GB21 has joined #openstack-containers09:51
openstackgerritHieu LE proposed openstack/python-magnumclient: Adapt magnum client for async bay creation  https://review.openstack.org/35582009:55
*** daneyon has joined #openstack-containers10:05
*** kushal has joined #openstack-containers10:09
*** daneyon has quit IRC10:09
*** yasemin has quit IRC10:22
*** yamamoto has quit IRC10:25
openstackgerritrajiv proposed openstack/magnum: Consolidate heat fragments  https://review.openstack.org/34917310:25
*** kushal has quit IRC10:26
*** kushal has joined #openstack-containers10:27
openstackgerritrajiv proposed openstack/magnum: Consolidate heat fragments  https://review.openstack.org/34917310:29
openstackgerritrajiv proposed openstack/magnum: Consolidate heat fragments  https://review.openstack.org/34917310:30
*** yasemin has joined #openstack-containers10:34
*** fragatina has joined #openstack-containers10:47
*** yamamoto has joined #openstack-containers11:03
*** Wenzhi has joined #openstack-containers11:16
*** fragatin_ has joined #openstack-containers11:19
*** fragatina has quit IRC11:23
*** GB21 has quit IRC11:24
*** GB21 has joined #openstack-containers11:29
*** ramishra has quit IRC11:30
*** ramishra has joined #openstack-containers11:32
*** mbound has joined #openstack-containers11:34
*** sdake has joined #openstack-containers11:36
*** manikanta_tadi has quit IRC11:36
*** GB21 has quit IRC11:37
*** manikanta_tadi has joined #openstack-containers11:47
*** abelur_ has quit IRC11:51
*** daneyon has joined #openstack-containers11:53
*** daneyon has quit IRC11:58
*** sergmelikyan has joined #openstack-containers12:08
openstackgerritrajiv proposed openstack/python-magnumclient: Add magnum service delete command.  https://review.openstack.org/35242812:08
*** srwilkers has joined #openstack-containers12:15
*** Wenzhi has quit IRC12:19
openstackgerritrajiv proposed openstack/magnum: Allow magnum services to be deleted by admin  https://review.openstack.org/34872812:20
*** sergmelikyan has quit IRC12:23
*** zenoway has quit IRC12:24
openstackgerritMerged openstack/magnum: Use memory mode for sqlite in db test  https://review.openstack.org/35383412:24
*** sergmelikyan has joined #openstack-containers12:24
*** diga_ has quit IRC12:25
openstackgerritrajiv proposed openstack/magnum: Allow disable/enable a magnum service.  https://review.openstack.org/35270012:28
*** yamamoto has quit IRC12:33
*** mbalasre has joined #openstack-containers12:35
*** mbalasre is now known as manubalasree12:35
manubalasreeI am looking for a quide to install Magnum on Openstack Mitaka setup using Packstack12:38
*** sergmelikyan has quit IRC12:38
*** yamamoto has joined #openstack-containers12:39
*** zenoway has joined #openstack-containers12:40
*** rlrossit has joined #openstack-containers12:43
*** yamamoto has quit IRC12:43
*** vimal has quit IRC12:45
rajiv_can someone please tell, what are the possible values for server_types, when we create a bay?12:47
*** mbound has quit IRC12:48
*** kevinz has quit IRC12:52
*** sergmelikyan has joined #openstack-containers12:54
*** sergmelikyan has quit IRC12:56
*** sergmelikyan has joined #openstack-containers12:57
*** julim has joined #openstack-containers12:59
*** yamamoto has joined #openstack-containers13:07
*** yamamoto has quit IRC13:07
*** houming has quit IRC13:09
*** kushal has quit IRC13:23
*** sergmelikyan has quit IRC13:24
*** sergmelikyan has joined #openstack-containers13:24
*** manikanta_tadi has quit IRC13:27
*** sergmelikyan has quit IRC13:29
*** sergmelikyan has joined #openstack-containers13:35
*** ramishra has quit IRC13:44
*** ramishra has joined #openstack-containers13:44
*** mbound has joined #openstack-containers13:48
*** kushal has joined #openstack-containers13:49
*** mbound has quit IRC13:53
*** banix has joined #openstack-containers13:58
*** mbalasre_ has joined #openstack-containers13:58
*** anush_ has joined #openstack-containers14:00
*** manubalasree has quit IRC14:02
openstackgerritrajiv proposed openstack/magnum: Increase in UT coverage  https://review.openstack.org/35402214:06
*** yamamoto has joined #openstack-containers14:07
*** yamamoto has quit IRC14:13
*** kevinz has joined #openstack-containers14:22
*** sergmelikyan has quit IRC14:25
*** hongbin has joined #openstack-containers14:25
*** kevinz has quit IRC14:27
*** kevinz has joined #openstack-containers14:27
*** banix has quit IRC14:30
*** spedione|AWAY is now known as spedione14:31
*** zz_dimtruck is now known as dimtruck14:31
*** banix has joined #openstack-containers14:32
*** daneyon has joined #openstack-containers14:35
*** daneyon has quit IRC14:40
*** kushal has quit IRC14:40
*** kushal has joined #openstack-containers14:41
*** sergmelikyan has joined #openstack-containers14:43
*** mbalasre_ has quit IRC14:45
*** sergmelikyan has quit IRC14:46
*** sergmelikyan has joined #openstack-containers14:47
*** vijendar has joined #openstack-containers14:49
*** mbound has joined #openstack-containers14:49
*** zenoway has quit IRC14:53
*** zenoway has joined #openstack-containers14:53
*** mbound has quit IRC14:54
*** zenoway has quit IRC14:58
*** tonanhngo has joined #openstack-containers14:59
*** zenoway has joined #openstack-containers15:07
*** syed_ has joined #openstack-containers15:10
*** Drago1 has joined #openstack-containers15:10
*** Drago1 has quit IRC15:11
*** Drago1 has joined #openstack-containers15:11
*** zenoway has quit IRC15:15
*** zenoway has joined #openstack-containers15:15
*** belmoreira has quit IRC15:17
*** mtanino has joined #openstack-containers15:20
*** daneyon has joined #openstack-containers15:28
*** swatson__ has joined #openstack-containers15:29
*** swatson_ has joined #openstack-containers15:30
*** daneyon_ has quit IRC15:32
*** swatson___ has joined #openstack-containers15:39
*** daneyon_ has joined #openstack-containers15:43
*** swatson_ has quit IRC15:43
*** rpothier has joined #openstack-containers15:45
*** sergmelikyan has quit IRC15:45
*** daneyon has quit IRC15:45
*** rcernin has quit IRC15:46
*** sergmelikyan has joined #openstack-containers15:46
*** sergmelikyan has quit IRC15:50
*** eghobo has joined #openstack-containers15:52
*** kevinz has quit IRC15:53
*** hieulq_ has joined #openstack-containers15:55
*** vimal has joined #openstack-containers15:57
*** manikanta_tadi has joined #openstack-containers15:58
hongbinHi all, team meeting will start in minutes at #openstack-meeting-alt15:59
openstackgerritJaycen Grant proposed openstack/magnum: Rename Bay to Cluster in docs  https://review.openstack.org/35440415:59
openstackgerritJaycen Grant proposed openstack/magnum: [WIP]Rename Bay to Cluster in api  https://review.openstack.org/35372615:59
*** Drago1 has quit IRC16:01
*** Drago1 has joined #openstack-containers16:02
*** anush_ has quit IRC16:02
openstackgerritAkhila Kishore proposed openstack/python-magnumclient: Update magnum client to support async bay operations  https://review.openstack.org/33356216:02
openstackgerritAkhila Kishore proposed openstack/python-magnumclient: Magnum client to support sync and async bay operations  https://review.openstack.org/35603216:02
*** dane_leblanc has joined #openstack-containers16:03
openstackgerritJaycen Grant proposed openstack/magnum: Rename Bay to Cluster in api  https://review.openstack.org/35372616:03
*** srwilkers has quit IRC16:03
*** spedione is now known as spedione|AWAY16:06
*** sdake has quit IRC16:09
*** kebray has joined #openstack-containers16:09
*** chetna has joined #openstack-containers16:17
*** chandankumar has quit IRC16:19
*** adrian_otto has joined #openstack-containers16:21
*** zenoway has quit IRC16:34
*** zenoway has joined #openstack-containers16:35
openstackgerritJaycen Grant proposed openstack/magnum: Rename Bay to Cluster in api  https://review.openstack.org/35372616:36
*** vijendar has quit IRC16:37
*** zenoway has quit IRC16:40
*** vijendar has joined #openstack-containers16:45
*** manikanta_tadi has quit IRC16:54
*** vimal has quit IRC16:59
openstackgerritJaycen Grant proposed openstack/magnum: Rename Bay to Cluster in api  https://review.openstack.org/35372617:01
openstackgerritJaycen Grant proposed openstack/magnum: Rename Bay to Cluster in api  https://review.openstack.org/35372617:03
*** srwilkers has joined #openstack-containers17:05
*** david-lyle_ has joined #openstack-containers17:09
*** eghobo has quit IRC17:11
*** srwilkers_ has joined #openstack-containers17:11
*** david-lyle has quit IRC17:13
*** david-lyle_ is now known as david-lyle17:13
*** srwilkers has quit IRC17:15
*** srwilkers_ is now known as srwilkers17:15
*** srwilkers_ has joined #openstack-containers17:16
*** daneyon has joined #openstack-containers17:18
*** spedione|AWAY is now known as spedione17:19
*** srwilkers has quit IRC17:19
*** srwilkers_ is now known as srwilkers17:19
*** daneyon has quit IRC17:23
*** eghobo has joined #openstack-containers17:25
*** hieulq_ has quit IRC17:29
*** chandankumar has joined #openstack-containers17:32
*** hieulq_ has joined #openstack-containers17:36
*** sergmelikyan has joined #openstack-containers17:43
*** Drago1 has quit IRC17:48
*** Drago1 has joined #openstack-containers17:49
*** sergmelikyan has quit IRC17:50
*** hieulq_ has quit IRC17:50
*** Drago1 has quit IRC17:51
*** Drago1 has joined #openstack-containers17:51
*** sdake has joined #openstack-containers17:55
*** sergmelikyan has joined #openstack-containers17:58
*** rcernin has joined #openstack-containers18:01
openstackgerritStephen Watson proposed openstack/python-magnumclient: Adds 'cluster' and 'cluster template'  https://review.openstack.org/35443618:13
*** chandankumar has quit IRC18:24
*** fragatin_ has quit IRC18:24
*** fragatina has joined #openstack-containers18:24
*** fragatina has quit IRC18:35
*** rlrossit has quit IRC18:40
*** zenoway has joined #openstack-containers18:53
*** srwilkers has quit IRC19:00
*** fragatina has joined #openstack-containers19:13
*** fragatina has quit IRC19:13
*** fragatina has joined #openstack-containers19:13
*** sdake_ has joined #openstack-containers19:14
*** sdake has quit IRC19:14
*** sdake_ has quit IRC19:15
*** sdake has joined #openstack-containers19:16
*** kebray has quit IRC19:29
*** srwilkers has joined #openstack-containers19:29
*** flaviodsr has quit IRC19:36
*** rpothier has quit IRC19:40
*** akhilakishore has joined #openstack-containers19:47
*** kebray has joined #openstack-containers19:52
*** kebray_ has joined #openstack-containers19:53
*** zenoway has quit IRC19:54
*** zenoway has joined #openstack-containers19:55
*** kebray has quit IRC19:56
*** zenoway has quit IRC19:59
*** julim has quit IRC20:03
*** srwilkers has quit IRC20:04
openstackgerritJaycen Grant proposed openstack/magnum: Rename Bay to Cluster in docs  https://review.openstack.org/35440420:06
*** kebray_ has quit IRC20:15
*** akhilakishore has quit IRC20:24
*** akhilakishore has joined #openstack-containers20:25
*** vijendar has quit IRC20:29
*** vijendar has joined #openstack-containers20:29
*** vijendar has joined #openstack-containers20:41
*** daneyon has joined #openstack-containers20:55
*** daneyon has quit IRC20:59
*** Drago1 has quit IRC21:03
*** akhilakishore has quit IRC21:03
swatson__Does anyone have experience with the cliutils.py script in python-magnumclient?21:03
swatson__I'm currently wrestling with a bug I introduced here: https://review.openstack.org/#/c/354436/21:04
*** akhilakishore has joined #openstack-containers21:04
swatson__I added a new decorator in cliutils.py and now whenever I run a cluster command (e.g. 'python shell.py cluster-list') I get my deprecation message for both bay and bay model repeated a few times until I finally get my command output21:04
swatson__I'm guessing it has something to do with how the decorator is implemented but I'm not a Python guru yet so I'm not sure what the problem would be21:05
*** yamamoto has joined #openstack-containers21:08
*** abelur has joined #openstack-containers21:13
*** akhilakishore has quit IRC21:13
*** yamamoto has quit IRC21:15
openstackgerritHongbin Lu proposed openstack/magnum: Add floating_ip_enabled field to baymodel  https://review.openstack.org/35152121:22
*** vijendar has quit IRC21:25
*** rcernin has quit IRC21:27
hongbinswatson: I guess there are some magic on the decorator below21:29
hongbinswatson: how about putting @utls.deprecated at the bottom21:30
hongbinswatson: Like putting it under all the @utils.arg(...)21:31
swatson__hongbin: Same issue21:33
swatson__I noticed it also seems to trigger on everything now, bay or cluster commands :(21:34
swatson__I don't THINK that happened until I switched my magnum to Jaycen's bay->cluster API branch21:34
swatson__But the problem occurred with clusters without that branch anyway, so it's still an issue in my python client code regardless21:34
*** spedione is now known as spedione|AWAY21:37
jvgrant_if you weren't using my patch then the cluster commands would have just failed21:37
swatson__jvgrant_: They fail but still printed out the deprecated message, even without being decorated21:38
swatson__s/failed/fail21:38
jvgrant_swatson__: so for some reason that decorator is getting called in the path no matter what21:39
swatson__Yeah. And I can't see why21:39
hongbinI guess the problem is the the decorator is called when the module was loaded21:40
hongbinso if python loading the module, everything methods get printed21:41
hongbinI guess you can fix it by print the message before calling the actual function21:42
hongbinSee here: https://github.com/openstack/magnum/blob/master/magnum/api/validation.py21:42
hongbinThat is how we implemented decorator in api. See if it works21:42
swatson__I'll give that a shot21:43
swatson__Someone in Stack mentioned DebtCollector21:44
swatson__I'll try yours first since it seems pretty straightforward21:44
swatson__thanks21:44
*** kevinz has joined #openstack-containers21:50
*** kevinz has quit IRC21:55
*** sergmelikyan has quit IRC21:55
swatson__hongbin: I just tried out the solution you linked and I'm getting something almost stranger22:04
hongbin...22:04
swatson__Now I only see the deprecation message once, but I get an exception from unrelated functions22:04
swatson__python shell.py bay-list22:04
swatson__Bay model commands are deprecated and will be removed in a future release.22:04
swatson__Use cluster commands to avoid seeing this message.22:04
swatson__Traceback (most recent call last):22:04
swatson__  File "shell.py", line 55, in <module>22:04
swatson__    from magnumclient.v1 import shell as shell_v122:04
swatson__  File "/opt/stack/python-magnumclient/magnumclient/v1/shell.py", line 16, in <module>22:04
swatson__    from magnumclient.v1 import baymodels_shell22:04
swatson__  File "/opt/stack/python-magnumclient/magnumclient/v1/baymodels_shell.py", line 123, in <module>22:04
swatson__    @utils.deprecated(DEPRECATION_MESSAGE)22:04
swatson__  File "/opt/stack/python-magnumclient/magnumclient/common/cliutils.py", line 90, in wrapper22:05
swatson__    return func(*args, **kwargs)22:05
swatson__TypeError: do_baymodel_create() takes exactly 2 arguments (0 given)22:05
swatson__The error is definitely related to the fact that now my wrapper is:22:05
swatson__def wrapper(func, *args, **kwargs)22:05
hongbinCould you paste your cliutils.py?22:10
swatson__The whole thing? or just my decorator?22:10
hongbinjust the method22:11
hongbinYes, just the decorator22:11
swatson__def deprecated(message):22:11
swatson__    def wrapper(func, *args, **kwargs):22:11
swatson__        print(message)22:11
swatson__        return func(*args, **kwargs)22:11
swatson__    return wrapper22:11
hongbinNo " @decorator.decorator" ?22:12
hongbin@decorator.decorator22:13
swatson__oh god I missed that one line22:13
swatson__Putting that in fixes that exception I got22:13
hongbinAwesome22:13
swatson__But if I use a command without providing a required argument then I don't see the deprecation message22:14
swatson__Hold on, I'll try moving the decorator22:14
swatson__Hm...Still don't see the message when I don't have a required argument22:14
hongbin.....22:16
jvgrant_swatson__: do you need to see the message when it fails due to the command not being used correctly?22:16
swatson__jvgrant_: I assumed we wanted the deprecation message any time someone tried to use a bay command, regardless of it working or having required arguments22:17
jvgrant_i'd think that is ok not to see the message there, it is more of a warning for those who were previously using it22:17
swatson__That feels like a lacking user experience to me, but  maybe I'm overthinking it.22:17
jvgrant_i think it is a good thing to have, but i could understand why it might error out before reaching that part on an improperly used command22:18
swatson__if that's the case then I'll leave it as is22:18
jvgrant_that is just my opinion, i'd see what others think as well22:19
swatson__But I'm still confused as to the ordering of decorators if I don't see my message at all, regardless of the position22:19
hongbinThe way @decorator works is signature-perserving22:21
hongbinThat means it perserve the signature of the original method22:21
hongbinSo, it won't print anything if the signature doesn't match22:21
hongbinIf you want to try, maybe try @functools.wrap22:22
hongbinHere is an example: https://github.com/openstack/magnum/blob/master/magnum/common/exception.py#L5522:22
*** syed_ has quit IRC22:22
*** chetna16 has joined #openstack-containers22:22
hongbinNot sure it will works though22:22
swatson__I originally tried a functools.wrap decorator and had unit test issues22:22
hongbinI see22:23
hongbinBesides the unit tests issue, it works?22:23
swatson__And I don't know if wrap lets you use a parameter does it?22:23
swatson__The last time I tried it it seemed to work. But the unit test that failed, if I recall correctly, hit some type exception22:24
hongbinMaybe there are ways to fix the unit tests?22:24
swatson__I suppose there could be22:25
hongbinIf the issue is just the unit tests, then it should be fixable22:26
swatson__Regardless most of this feels very unintuitive.22:26
hongbinYes, decorator is complicated22:26
*** tonanhngo has quit IRC22:26
hongbinMost of the times I copied the pattern from the Internet22:26
*** sdake has quit IRC22:27
swatson__I feel like every time I look for another article about decorators I find a slightly different way to do them :P22:28
hongbin.....22:28
*** sdake has joined #openstack-containers22:28
*** dimtruck is now known as zz_dimtruck22:29
*** zz_dimtruck is now known as dimtruck22:29
*** syed_ has joined #openstack-containers22:30
*** banix has quit IRC22:31
chetna16Hi hongbin. I am trying to build K8s bay on coreOS. I am looking at K8s file enable-kube-apiserver-coreos.yaml.22:31
chetna16It has your name as 'TODO(hongbin): enable TLS'. My create-kube-namespace.service shows Waiting for Kubernetes API, so I was looking at this file.22:31
hongbinchetna16: Yes, then it looks I wrote that file22:32
hongbinchetna16: sup22:32
chetna16I am trying to build Kubernetes bay on coreOS.22:33
chetna16When I log into master, I get the error in create-kube-namespace.service that it is waiting for Kubernetes API22:34
hongbinsudo systemctl status create-kube-namespace22:35
hongbinsudo systemctl status create-kube-namespace -l22:35
chetna16sure22:35
hongbinCould you type that command and paste the output here?22:36
chetna16sure22:37
hongbinOh, btw, there is a fix that hasn't been landed: https://review.openstack.org/#/c/352542/22:37
hongbinchetna16: are you using the master branch or a stable branch?22:38
*** sergmelikyan has joined #openstack-containers22:38
*** adrian_otto has quit IRC22:38
chetna16I am using stable mitaka22:38
hongbinOK. Then, it is fine22:38
chetna16Thanks a lot. I inculcated changes and it worked22:39
chetna16create-kube-namespace.service - Create kube-system namespace22:39
chetna16   Loaded: loaded (/etc/systemd/system/create-kube-namespace.service; disabled; vendor preset: disabled)22:39
chetna16   Active: activating (start) since Tue 2016-08-16 21:41:54 UTC; 54min ago22:39
chetna16 Main PID: 1065 (create-kube-nam)22:39
chetna16    Tasks: 222:39
chetna16   Memory: 608.0K22:39
chetna16      CPU: 5.419s22:39
chetna16   CGroup: /system.slice/create-kube-namespace.service22:39
chetna16           ├─ 1065 /bin/sh /etc/sysconfig/create-kube-namespace.sh22:39
*** dimtruck is now known as zz_dimtruck22:39
chetna16           └─27079 sleep 522:39
chetna16 create-kube-namespace.sh[1065]: Waiting for Kubernetes API22:39
chetna16This is the output22:40
hongbinchetna16: sudo systemctl status kubelet22:40
hongbinchetna16: Could you confirm if kubelet is running?22:40
chetna16Yes22:41
chetna16It is active22:41
hongbinchetna16: sudo docker ps -a22:41
chetna16core@k8-yn4iam2k2r-0-4tbp5m5iyon2-kube-master-3yvwc2pi3zwn ~ $ sudo systemctl status kubelet22:41
chetna16● kubelet.service22:41
chetna16   Loaded: loaded (/etc/systemd/system/kubelet.service; enabled; vendor preset: disabled)22:41
chetna16   Active: active (running) since Tue 2016-08-16 21:41:54 UTC; 59min ago22:41
hongbinchetna16: could you paste the output again22:41
chetna16sure22:41
chetna16sudo docker ps -a  does not work.22:42
hongbinWhat is the error?22:42
hongbinhanging?22:43
*** daneyon has joined #openstack-containers22:43
chetna16core@k8-yn4iam2k2r-0-4tbp5m5iyon2-kube-master-3yvwc2pi3zwn ~ $ sudo systemctl status create-kube-namespace -l22:43
chetna16● create-kube-namespace.service - Create kube-system namespace22:43
chetna16   Loaded: loaded (/etc/systemd/system/create-kube-namespace.service; disabled; vendor preset: disabled)22:43
chetna16   Active: activating (start) since Tue 2016-08-16 21:41:54 UTC; 1h 1min ago22:43
chetna16 Main PID: 1065 (create-kube-nam)22:43
chetna16    Tasks: 222:43
chetna16   Memory: 616.0K22:43
chetna16      CPU: 6.076s22:43
chetna16   CGroup: /system.slice/create-kube-namespace.service22:43
chetna16           ├─ 1065 /bin/sh /etc/sysconfig/create-kube-namespace.sh22:43
chetna16           └─30501 sleep 522:43
chetna16Aug 16 22:42:22 k8-yn4iam2k2r-0-4tbp5m5iyon2-kube-master-3yvwc2pi3zwn.novalocal create-kube-namespace.sh[1065]: Waiting for Kubernetes API...22:43
chetna16Yes , docker command is hanging22:43
hongbinsudo systemctl status docker22:43
hongbinIs the docker daemon running?22:44
chetna16Here I got the error22:44
chetna16core@k8-yn4iam2k2r-0-4tbp5m5iyon2-kube-master-3yvwc2pi3zwn ~ $ sudo systemctl status docker22:44
chetna16● docker.service - Docker Application Container Engine22:44
chetna16   Loaded: loaded (/usr/lib64/systemd/system/docker.service; disabled; vendor preset: disabled)22:44
chetna16  Drop-In: /etc/systemd/system/docker.service.d22:44
chetna16           └─40-flannel.conf22:44
chetna16   Active: inactive (dead)22:44
chetna16     Docs: http://docs.docker.com22:44
chetna16Aug 16 22:43:36 k8-yn4iam2k2r-0-4tbp5m5iyon2-kube-master-3yvwc2pi3zwn.novalocal systemd[1]: Dependency failed for Docker Application Container Engine.22:44
chetna16Aug 16 22:43:36 k8-yn4iam2k2r-0-4tbp5m5iyon2-kube-master-3yvwc2pi3zwn.novalocal systemd[1]: docker.service: Job docker.service/start failed with result 'dependency'.22:44
*** sergmelikyan has quit IRC22:44
hongbinOne of the dependency failed22:45
hongbinsystemctl list-units | grep failed22:45
hongbindo you see any of the unit is failing?22:45
*** sergmelikyan has joined #openstack-containers22:45
chetna16yea..22:45
chetna16It does not get any failed unit22:46
hongbin......22:46
*** yamamoto has joined #openstack-containers22:46
hongbinbut docker is dead22:46
hongbinok, let me check22:47
chetna16Nothing is failed but I see dead status22:47
*** daneyon has quit IRC22:48
chetna16for docker.service, user-cloudinit-proc-cmdline.service, early-docker.targetsystem-config.target and user-config.target22:48
*** dane_leblanc has quit IRC22:49
hongbinIt looks unrelated22:49
hongbinHow about etcd22:50
hongbinchetna16: sudo systemctl status etcd --full22:50
chetna16core@k8-yn4iam2k2r-0-4tbp5m5iyon2-kube-master-3yvwc2pi3zwn ~ $ sudo systemctl status etcd --full22:51
chetna16● etcd.service - etcd22:51
chetna16   Loaded: loaded (/usr/lib64/systemd/system/etcd.service; static; vendor preset: disabled)22:51
chetna16  Drop-In: /run/systemd/system/etcd.service.d22:51
chetna16           └─10-oem.conf22:51
chetna16   Active: inactive (dead)22:51
hongbinchetna16: That is the root problem22:51
chetna16ohk22:52
hongbinchetna16: Need to figure out why etcd is dead22:52
hongbinsudo journalctl -u etcd --no-pager22:52
hongbinDo you see the etcd logs?22:52
chetna16no entries here22:52
chetna16No entries when I do journalctl -u etcd22:53
hongbinsudo journalctl -u etcd2 --no-pager22:53
chetna16yes.. It has bunch of logs22:54
hongbinCould you paste it in here: http://paste.openstack.org/22:54
chetna16sure22:55
chetna16http://paste.openstack.org/show/558609/22:56
hongbinIt looks fine actually22:58
chetna16ohk22:58
hongbinchetna16: sudo systemctl status etcd222:59
hongbinIt is active?22:59
chetna16active23:00
chetna16running23:00
chetna16yu23:00
chetna16yup*23:00
hongbinetcdctl ls /23:01
hongbinyou see anything?23:01
chetna16coreos.com23:01
hongbinetcdctl get /coreos.com/network/config23:02
chetna16sure23:02
hongbinsee the flannel configuration?23:02
chetna16I see the configuration for network, subnetlen23:03
chetna16These are set23:04
hongbinIt looks correct23:04
hongbinSorry I need to leave now23:04
*** sergmelikyan has quit IRC23:04
chetna16ohk.. sure. No worries. I will dig in more.23:04
hongbinchetna16: your problem is the docker daemon is not able to start23:04
*** sergmelikyan has joined #openstack-containers23:05
hongbinYes, if you can figure it out, that would be great23:05
chetna16ok.. Let me work on that and dig in more23:05
hongbinIf not, ping me tomorrow23:05
chetna16Thanks a lot for your help23:05
hongbinnp23:05
chetna16sure23:05
chetna16Thanks.23:05
*** hongbin has quit IRC23:05
*** sergmelikyan has quit IRC23:09
*** swatson___ has quit IRC23:15
*** tonanhngo has joined #openstack-containers23:27
*** tonanhngo has quit IRC23:29
*** mbound has joined #openstack-containers23:34
*** mbound has quit IRC23:39
*** zz_dimtruck is now known as dimtruck23:40
openstackgerritJaycen Grant proposed openstack/magnum: Rename Bay to Cluster in api  https://review.openstack.org/35372623:46
*** shu-mutou-AFK is now known as shu-mutou23:48

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