Friday, 2018-10-05

*** rcernin has quit IRC00:27
*** rcernin has joined #openstack-swift00:29
*** two_tired has joined #openstack-swift00:46
timburkemattoliverau: on the kmip logging -- iirc, it's just a matter of turning on debug logging for the proxy-server. i think i maybe had it up in the [DEFAULT] section? then when we attach the middleware's handlers at https://github.com/openstack/swift/blob/2.19.0/swift/common/middleware/crypto/kmip_keymaster.py#L119-L121 ... you see things like01:03
timburkeOct  4 18:24:44 centos74node1 kmip.services.server.kmip_protocol: KMIPProtocol.read: 42007b010000011042007a0100000048420069010000002042006a0200000004000000010000000042006b020000000400000002000000004200920900000008000000005bb65aec42000d0200000004000000010000000042000f01000000b842005c05000000040000000a0000000042007f0500000004000000000000000042007c0100000090420057050000000400000002000000004200940700000001310000000000000042008f0100000068401:03
timburke2004001000000604200420500000004000000010000000042004501000000284200430800000020d24274b2a4e37a10987efc291313c4ed80b9519251eac772fed96d76408c14164200280500000004000000030000000042002a0200000004000001000000000001:03
mattoliverautimburke: oh, that's what I was trying. But wasn't seeing anything. Maybe I've got something wrong01:04
*** _david_sohonet has quit IRC01:04
mattoliverauie, turning debug level logging on in the proxy01:04
timburke(it's a junk key anyway, so i don't mind you knowing that the "d24274b2a4e37a10987efc291313c4ed80b9519251eac772fed96d76408c1416" is my hex-encoded key)01:05
timburkehmm....01:05
*** two_tired has quit IRC01:06
mattoliverautimburke: are you using a proper kmip implementation. Maybe the demo env acoles setup is slightly different.01:08
timburkehuh. so i don't see it on my all-in-one... but when i was testing with what i plan to ship to customers, i do...01:14
timburkeit all comes down to https://github.com/OpenKMIP/PyKMIP/blob/v0.8.0/kmip/services/server/kmip_protocol.py#L50-L5101:15
timburkenow i want to figure out what's different, but i ought to head home...01:15
mattoliveraufrom the `kmip.services.server.kmip_protocol` it seems your connecting the kmip servers log, not nessesarily the clients.01:16
mattoliveraumaybe your production implementation your running a server inline as well as the client?01:16
mattoliverautimburke: but yeah, head home. spend time with the fam :)01:17
timburkenah, the client's definitely using the same kmip_protocol module to read/write (as it should, i think): https://github.com/OpenKMIP/PyKMIP/blob/v0.8.0/kmip/services/kmip_client.py#L5301:19
* timburke heads out before i go too far down this rabbit hole01:19
timburkei'll let you know what i find out tomorrow01:19
mattoliveraulol, sorry :)01:22
*** aluria has quit IRC01:29
*** gyee has quit IRC02:01
*** itlinux has joined #openstack-swift02:05
*** dosaboy has quit IRC02:35
*** rcernin has quit IRC04:42
*** rcernin has joined #openstack-swift04:46
*** kukacz has quit IRC04:52
*** guimaluf has quit IRC04:52
*** openstackgerrit has quit IRC04:52
*** d0ugal has quit IRC04:52
*** kukacz has joined #openstack-swift04:57
*** guimaluf has joined #openstack-swift04:57
*** openstackgerrit has joined #openstack-swift04:57
*** d0ugal has joined #openstack-swift04:57
*** e0ne has joined #openstack-swift05:34
*** e0ne has quit IRC05:50
*** e0ne has joined #openstack-swift05:53
*** e0ne has quit IRC06:12
*** alecuyer has quit IRC06:48
*** alecuyer has joined #openstack-swift06:52
*** pcaruana has joined #openstack-swift06:57
*** fatema__ has joined #openstack-swift06:59
*** rcernin has quit IRC07:04
*** dosaboy has joined #openstack-swift07:38
*** aluria has joined #openstack-swift07:47
*** e0ne has joined #openstack-swift07:49
*** mikecmpbll has joined #openstack-swift07:59
*** gkadam has joined #openstack-swift09:43
*** sheel has joined #openstack-swift10:05
*** itlinux has quit IRC10:24
*** fatema__ has quit IRC11:24
*** e0ne has quit IRC11:54
*** e0ne has joined #openstack-swift12:29
*** sheel has quit IRC12:34
*** dosaboy has quit IRC12:35
*** dosaboy has joined #openstack-swift12:36
*** dosaboy has quit IRC12:36
*** dosaboy has joined #openstack-swift12:56
*** two_tired has joined #openstack-swift13:48
*** two_tired has quit IRC14:38
*** e0ne has quit IRC14:38
*** gyee has joined #openstack-swift15:24
*** pcaruana has quit IRC15:39
*** cwright_ has quit IRC15:46
*** cwright has joined #openstack-swift15:50
*** e0ne has joined #openstack-swift15:50
*** e0ne has quit IRC15:55
*** mrjk_ has quit IRC15:56
*** mrjk_ has joined #openstack-swift15:57
*** mrjk_ has quit IRC15:58
*** mrjk_ has joined #openstack-swift15:58
*** mrjk_ has quit IRC16:00
*** mikecmpbll has quit IRC16:08
*** itlinux has joined #openstack-swift16:12
*** ianychoi_ is now known as ianychoi16:19
timburkegood morning16:20
*** _david_sohonet has joined #openstack-swift16:20
*** gkadam has quit IRC16:21
notmynamegood morning16:33
cwrightnotmyname: good morning16:36
cwrightnotmyname: Just following back up on something from a few weeks ago, have you had a chance to talk to the team there about open sourcing the Prometheus Swift alerts that SwiftStack is currently using?16:36
*** pcaruana has joined #openstack-swift16:42
notmynamecwright: I'll check16:45
*** pcaruana has quit IRC16:50
*** mikecmpbll has joined #openstack-swift16:58
cwrightnotmyname: thanks!17:24
openstackgerritTim Burke proposed openstack/swift master: internal_client: Require that request_tries be positive  https://review.openstack.org/60833017:51
timburkerequest_tries, request_retries... w/e17:52
timburkei think i got confused because swiftclient uses retries and *does* let you say 0... but internal_client didn't like it when i said to try zero times...17:53
*** e0ne has joined #openstack-swift19:38
*** e0ne has quit IRC19:43
zaitcevokay19:49
zaitcevtried  tox -e lower-constraints19:49
zaitcevresult is a nosetests ballooning to VIRT 9.862g RES 7.825g19:54
zaitcevThat sounds like no constraints at all lol19:54
*** e0ne has joined #openstack-swift19:55
notmynamelol19:55
*** e0ne has quit IRC19:56
zaitcevhttps://review.openstack.org/#/c/581905/ failed check on lower-constraints, so I thought I'd take a look. Even with FF quit, not enough RAM19:57
patchbotpatch 581905 - swift - py3: Adapt db.py - 5 patch sets19:57
*** mikecmpbll has quit IRC20:01
timburkezaitcev: i blame pickle. my best guess is that when it wrote out some random bytes over the builder file, it happened to write something that pickle interpreted like True[3] or something20:12
zaitcevumm, okay20:12
timburkeall the more reason for us to address https://bugs.launchpad.net/swift/+bug/164438720:13
openstackLaunchpad bug 1644387 in OpenStack Object Storage (swift) "Ring builder files need a consistent format" [Undecided,New]20:13
zaitcevBTW, if you could review it, it would be great. I'm looking into account/container now and db.py used basically everywhere.20:14
timburkedone!20:42
*** e0ne has joined #openstack-swift20:44
*** e0ne has quit IRC20:49
zaitcevthanks a lot!20:59
zaitcevYou had a knack of finding much simpler solutions, so I expected something like "what is this pile of.."20:59
zaitcevwaaaait a moment, I see a pile of comments21:00
timburkeall nits. it's better to have it tested on py3 than not21:32
timburkei was close to just doing a +1, but then i figured out why we were doing byte strings in tests, and why it didn't matter21:33
timburketdasilva: hmm... the storage1.error/storage1.log for the multinode tests... shouldn't that have more than just account-server? http://logs.openstack.org/05/581905/5/check/swift-multinode-rolling-upgrade/d3cab78/storage1.log21:34
zaitcevI did it because SQLite uses encoded (bytes) strings as arguments or returned values from selects and cursors.21:35
zaitcevBuuuut21:35
zaitcevor21:36
zaitcevwell, I'm just afraid to become incompatible with the ondisk format, with just 1 small mis-step somewhere.21:36
DHE/dev/sdi      3.7T  210G  3.5T   6% /srv/node/slot3-phy9    // x30... good first lab machine...21:37
timburkezaitcev: it is indeed... :-(21:39
timburkedon't worry about the follow-up; i'll take care of it. you go get some account/container servers going!21:40
openstackgerritTim Burke proposed openstack/swift master: DB follow-up  https://review.openstack.org/60836721:43
openstackgerritPete Zaitcev proposed openstack/swift master: Micro cleanup by using dict.clear  https://review.openstack.org/60836621:43
timburkebah! you beat me by a hair :P21:43
*** chocolate-elvis has quit IRC21:49
*** itlinux has quit IRC21:50
openstackgerritTim Burke proposed openstack/swift master: Move base64-decoding/unpickling into DatabaseBroker  https://review.openstack.org/60836922:00
timburkeone more follow-up. zaitcev, we might want to be careful that we always have byte strings coming out of make_tuple_for_pickle... if only to ensure we can read py2 pending files on py322:02
zaitcevHmm.22:04
openstackgerritTim Burke proposed openstack/swift master: Move base64-decoding/unpickling into DatabaseBroker  https://review.openstack.org/60836922:08
zaitcevIndeed, a record supplied to put_record() is full of native strings and integers.22:10
zaitcevMaking a tuple of it does nothing to cast.22:10
timburkeyeah -- i meant the items *in* the tuple. native strings might be ok... but only if we can also handle bytes when we find 'em22:13
timburkeor, we could say that py3 servers need to be *new* servers, similar to what rledisez and alecuyer are doing with losf -- the new thing will accept new data and can handle replication (and maybe even rsynced dbs), but it's not willing to read old pending files22:16
timburkebut we'd need to be very clear about that22:16
timburkei've got this feeling like it wouldn't be *so* bad to be willing to read py2 pendings, though. just gotta make sure it's tested22:17
zaitcevShould we open a bug as a reminder?22:18
*** itlinux has joined #openstack-swift22:19
*** itlinux has quit IRC22:22
zaitcevOooh great, now it's the upgrade gate.22:39
zaitcevSo, basically recheck until it succeeds23:14
notmynamenow you know how to openstack! ;-)23:22
*** gyee has quit IRC23:31
openstackgerritMerged openstack/swift master: py3: Adapt db.py  https://review.openstack.org/58190523:55
openstackgerritMerged openstack/swift master: DB follow-up  https://review.openstack.org/60836723:56
openstackgerritMerged openstack/swift master: Move base64-decoding/unpickling into DatabaseBroker  https://review.openstack.org/60836923:56

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