Thursday, 2017-07-20

*** randomhack has joined #openstack-barbican00:20
*** randomhack has quit IRC00:27
tdasilvais Jeremy Liu in the channel?00:32
*** liujiong has joined #openstack-barbican01:23
liujiongtdasilva: hi01:30
tdasilvahello01:31
liujiong:)01:31
tdasilvaliujiong: I submitted the bug as you asked, but when trying to fix the tests I started questioning if my patch is correct01:32
tdasilvaliujiong: it does seem like the correct default version should be v1 and not just '1'01:32
liujiongtdasilva: but 'v1' works with openstack command, right?01:33
tdasilvabut I also tried making this change instead: https://github.com/openstack/python-barbicanclient/blob/master/barbicanclient/osc_plugin.py#L1801:33
tdasilvaliujiong: master doesn't work01:34
tdasilvaif I leave client.py as v1 and change osc_plugin.py to v1, then I get a different error01:34
liujiongtdasilva: I don't think we can change DEFAULT_API_VERSION of osc_plugin, that comes first01:35
tdasilvahttp://paste.openstack.org/show/615916/01:35
tdasilvammm..ok01:35
tdasilvaso do you think changing client.py to '1' is correct?01:35
liujiongI suppose so01:36
tdasilvait seems like it will force me to make changes to functional tests that have been there for a while01:36
liujiongYes, functionaltests need changed for the version change01:37
liujiongtdasilva: can you change functionaltest as well? we need your patch merged into Pike01:39
tdasilvaliujiong: I'm not sure I know where to make the changes, if you would like, feel free to take over patch01:39
tdasilvai'm looking now, if you have pointers I can keep looking01:40
tdasilvafirst time I used barbican client was yesterday ;)01:40
*** randomhack has joined #openstack-barbican01:41
liujiongtdasilva: let me check01:43
*** ssmith has quit IRC01:44
liujiongtdasilva: you can refer to my refactor patch to see functionaltest changes01:45
liujiongtdasilva: functionaltests/client/base.py and functionaltests/client/test_client_connectivity.py01:46
*** randomhack has quit IRC01:46
liujiongtdasilva: changes should be in these two files ^01:46
tdasilvalooking01:46
tdasilvaliujiong: so for example, i'm guessing you are saying one of the changes should be here? https://github.com/openstack/python-barbicanclient/blob/master/functionaltests/client/base.py#L4801:52
tdasilvabut versions is not required as it should take the default value01:52
liujiongtdasilvaļ¼šAhh, yes, i need see the logs of your first patchset01:54
liujiongtdasilva: your patchset 1 should do the right fix01:57
tdasilvaliujiong: the only different to the patchset1 and patchset2 are the unit tests, no?01:58
liujiongtdasilva: can you fetch the patchset1 logs?02:02
tdasilvaliujiong: yeah, which logs? py27 or functests?02:04
liujiongtdasilva: both02:07
tdasilvapy27 http://logs.openstack.org/26/484926/1/check/gate-python-barbicanclient-python27-ubuntu-xenial/dcb5827/02:08
tdasilvafunctest - http://logs.openstack.org/26/484926/1/check/gate-python-barbicanclient-devstack-dsvm-ubuntu-xenial/9eeebf5/02:08
liujiongtdasilva: OK, let me check02:09
tdasilvaliujiong: what I don't understand is that before your refactor, the default version was already 'v1': https://review.openstack.org/#/c/403604/27/barbicanclient/client.py@a3302:09
tdasilvathat's why I thought my change to make it just '1' was incorrect, no?02:09
liujiongtdasilva: yes, i see it.02:11
liujiongtdasilva: we add 'version' to the endpoint directly02:13
liujiongtdasilva: now, we need confirm why the refactor change breaks openstack command02:16
tdasilvaliujiong: this change also works for me02:16
tdasilvahttp://paste.openstack.org/show/615951/02:16
liujiongtdasilva: ahh, that's confusing02:17
tdasilvawell..not really...before refactor you didn't use the version to instantiate that Client class02:18
tdasilvaand I think you supported either 1 or v102:18
tdasilvabut now you created _SUPPORTED_API_VERSION_MAP and you are using that to instantiate the client class02:18
liujiongtdasilva: oh, we set different values for the default version from barbicanclient side and osc_plugin side02:21
tdasilvaright02:21
liujiongtdasilva: so, we need support both of them02:21
tdasilvaexactly02:22
liujiongtdasilva: just make that change02:22
tdasilvaok02:22
liujiongtdasilva: what do you think that we change this to 'v1': https://github.com/openstack/python-barbicanclient/blob/master/barbicanclient/osc_plugin.py#L1802:23
tdasilvathat doesnt work: you get this error: http://paste.openstack.org/show/615916/02:24
openstackgerritThiago da Silva proposed openstack/python-barbicanclient master: fix default version  https://review.openstack.org/48492602:27
liujiongtdasilva: OK, to fix this, we need the 'version' args be 'v1': https://github.com/openstack/python-barbicanclient/blob/master/barbicanclient/client.py#L3802:30
liujiongtdasilva: the rest is just how we handle the version map to support osc_plugin02:31
tdasilvaliujiong: maybe we could also just revert this change: https://review.openstack.org/#/c/403604/27/barbicanclient/osc_plugin.py02:35
tdasilvathat way the osc_plugin will just use the default version defined in client.py02:36
tdasilvaas it used to do before refactor02:36
tdasilvaliujiong: current patchset 3 passed all tests, let me know what you think02:46
tdasilvaI need to drop off now02:46
liujiongtdasilva: I prefer we revert the change in osc_plugin.py02:50
openstackgerritThiago da Silva proposed openstack/python-barbicanclient master: fix default version  https://review.openstack.org/48492602:53
liujiongtdasilva: thank you for making the fix!02:57
openstackgerritKiran Totad proposed openstack/barbican master: Stop using deprecated 'message' attribute in Exception  https://review.openstack.org/48542003:30
*** chlong_ has joined #openstack-barbican04:20
*** dave-mccowan has quit IRC04:23
*** liujiong has quit IRC04:33
openstackgerritKiran Totad proposed openstack/barbican master: Stop using deprecated 'message' attribute in Exception  https://review.openstack.org/48542004:36
*** randomhack has joined #openstack-barbican05:23
*** chlong_ has quit IRC05:26
*** randomhack has quit IRC05:28
*** liujiong has joined #openstack-barbican06:00
*** andreas_s has joined #openstack-barbican06:15
*** mathiasb has quit IRC08:41
*** mathiasb has joined #openstack-barbican08:42
*** salmankhan has joined #openstack-barbican08:59
*** randomhack has joined #openstack-barbican09:24
*** pbourke has joined #openstack-barbican09:25
pbourkeHi, was wondering can anyone tell me, how important is it to use a byte array when storing opaque secret types09:26
pbourkeas both byte arrays and strings seem to be accepted09:26
*** randomhack has quit IRC09:28
*** salmankhan has quit IRC09:32
*** salmankhan has joined #openstack-barbican09:32
*** salmankhan has quit IRC10:02
*** liujiong has quit IRC10:13
*** salmankhan has joined #openstack-barbican10:24
openstackgerritDavanum Srinivas (dims) proposed openstack/castellan master: Use Stevedore for better extensions  https://review.openstack.org/48401511:16
*** dave-mccowan has joined #openstack-barbican11:21
openstackgerritKiran Totad proposed openstack/barbican master: Stop using deprecated 'message' attribute in Exception  https://review.openstack.org/48542011:40
*** raildo has joined #openstack-barbican11:56
*** chlong_ has joined #openstack-barbican12:16
*** randomhack has joined #openstack-barbican12:23
*** randomhack has quit IRC12:28
*** catintheroof has joined #openstack-barbican12:36
*** pbourke has quit IRC12:58
*** pbourke has joined #openstack-barbican13:00
*** alee_ has quit IRC13:22
openstackgerritDavanum Srinivas (dims) proposed openstack/castellan master: Use Stevedore for better extensions  https://review.openstack.org/48401513:36
openstackgerritKaitlin Farr proposed openstack/barbican-tempest-plugin master: Add ephemeral disk encryption scenario test  https://review.openstack.org/45545913:38
*** chlong_ has quit IRC13:40
*** ssmith has joined #openstack-barbican13:44
*** cpusmith has joined #openstack-barbican13:45
*** ssmith has quit IRC13:49
*** cpusmith_ has joined #openstack-barbican14:00
*** cpusmith has quit IRC14:04
*** alee has joined #openstack-barbican14:11
*** cpusmith_ has quit IRC14:15
*** ssmith has joined #openstack-barbican14:15
*** l4bytt has joined #openstack-barbican14:17
*** cpusmith has joined #openstack-barbican14:21
*** ssmith has quit IRC14:25
l4byttHi there. Is the github documentation, especially for barbican, up to date? I am currenty following this guide and the first command fails -> https://github.com/cloudkeep/barbican/wiki/Barbican-Quick-Start-Guide#generate-a-secret14:41
openstackgerritDavanum Srinivas (dims) proposed openstack/castellan master: Use Stevedore for better extensions  https://review.openstack.org/48401514:49
*** l4bytt has quit IRC14:52
openstackgerritMerged openstack/barbican-tempest-plugin master: Add ephemeral disk encryption scenario test  https://review.openstack.org/45545914:57
*** chlong_ has joined #openstack-barbican14:58
*** andreas_s has quit IRC15:39
*** chlong_ has quit IRC16:19
*** aspiers has joined #openstack-barbican16:44
aspiershi all, we've just noticed an issue where barbican won't stop cleanly with more than one asynchronous_worker configured - is that a known issue?16:45
aspiers2017-07-20 16:26:31.023 17964 INFO barbican.queue.server [-] Halting the TaskServer16:47
aspiers2017-07-20 16:26:31.031 17950 INFO oslo_service.service [-] Caught SIGTERM, stopping children16:47
aspiers2017-07-20 16:26:31.032 17950 INFO barbican.queue.server [-] Halting the TaskServer16:47
aspiers2017-07-20 16:27:01.033 17950 WARNING oslo_messaging.server [-] Possible hang: stop is waiting for start to complete16:47
aspiersif I change asynchronous_workers from 2 to 1 then the problem vanishes16:47
aspiersthis is true whether queue.enable is True or False16:48
aspiersI can report a bug if that makes sense16:55
aspiersahah, I found the same bug in sahara, and porting the fix works :)17:19
*** kfarr has joined #openstack-barbican17:23
kfarraspiers I don't think that's a known issue, please open a bug report17:24
aspierskfarr: already doing so :) I'll submit to gerrit too17:24
kfarrl4bytt that documentation you're referencing is pretty old17:26
kfarrthanks aspiers !17:26
kfarrpbourke the important thing is if the object you get when you retrieve it is the same as the original object17:28
kfarrand when you say byte array, do you mean bytestring?17:29
*** chlong_ has joined #openstack-barbican17:33
openstackgerritAdam Spiers proposed openstack/barbican master: Start task RPC service before waiting  https://review.openstack.org/48575517:44
aspierskfarr: there you go ... but really I have not much clue how this stuff is supposed to work, so it definitely needs careful sanity checking ;-)17:45
aspiersit fixed the issue for me on 3.0.1 at least17:46
aspiersbut I have no idea why the issue would appear with 2 workers and not with 117:46
kfarraspiers unfortunately the folks who did most of the work for the workers functionality aren't working on OpenStack anymore :(17:46
kfarraspiers so your guess is as good as mine17:46
aspiershah17:46
kfarrbut will be happy to  look over it17:47
aspiersthanks!17:47
kfarrglad you were able to find a solution17:47
aspiersI find it particularly weird that changing the queue size has an effect regardless of whether queue.enabled is True or False17:47
* aspiers shrugs17:47
*** diazjf has joined #openstack-barbican17:48
*** diazjf has quit IRC17:50
openstackgerritMerged openstack/castellan master: Replace LOG.warn with LOG.warning  https://review.openstack.org/48507317:57
openstackgerritMerged openstack/python-barbicanclient master: fix default version  https://review.openstack.org/48492617:57
openstackgerritMerged openstack/python-barbicanclient master: Update doc references  https://review.openstack.org/48423817:57
openstackgerritMerged openstack/python-barbicanclient master: Switch from oslosphinx to openstackdocstheme  https://review.openstack.org/47912317:57
*** salmankhan has quit IRC18:25
aleedave-mccowan, when are the barbican sessions being held at the ptg?19:29
aleekfarr, are you ptg-ing?19:30
kfarralee yes!19:31
kfarrnot sure what the schedule is though19:31
kfarrI'll be there m-f19:31
aleekfarr, cool - I'm not confirmed yet - but there is a good chance I will be too19:31
kfarralee awesome :)19:32
alee:)19:32
*** cpusmith has quit IRC19:39
*** cpusmith_ has joined #openstack-barbican19:39
*** cpusmith has joined #openstack-barbican19:40
*** cpusmith_ has quit IRC19:44
*** openstack has joined #openstack-barbican19:58
*** raildo has quit IRC20:07
*** openstackgerrit has quit IRC20:17
dave-mccowanalee kfarr  i'll be there Monday through Thursday20:18
dave-mccowansecurity group has a room monday and tuesday, barbican has a room wednesday and thursday20:19
dave-mccowanhere's the current schedule https://docs.google.com/spreadsheets/d/1xmOdT6uZ5XqViActr5sBOaz_mEgjKSCY7NEWcAEcT-A/pubhtml?gid=397241312&single=true20:20
dave-mccowanalee kfarr i started an etherpad: https://etherpad.openstack.org/p/barbican-ptg-queens20:29
*** cpusmith has quit IRC20:47
aleedave-mccowan, cool - thaks21:04
*** catintheroof has quit IRC21:10
*** chlong_ has quit IRC21:16
*** randomhack has joined #openstack-barbican21:23
*** randomhack has quit IRC21:27
*** alee has quit IRC21:31
*** dave-mccowan has quit IRC21:31
*** openstackgerrit has joined #openstack-barbican21:35
openstackgerritMerged openstack/castellan master: Improve docs around configuring Castellan  https://review.openstack.org/48346121:35
*** ssmith has joined #openstack-barbican21:41
*** dave-mccowan has joined #openstack-barbican22:06
openstackgerritMerged openstack/barbican master: Add PBR wsgi_scripts entrypoint for barbican api  https://review.openstack.org/47699522:06
openstackgerritMerged openstack/barbican master: Update internal doc reference according to doc migration result  https://review.openstack.org/48424022:07
*** kfarr has quit IRC22:10
*** dave-mccowan has quit IRC22:24
*** alee has joined #openstack-barbican22:52
openstackgerritMerged openstack/barbican master: Set entry point for dogtag config correctly  https://review.openstack.org/48385323:17

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