Friday, 2016-08-26

openstackgerritKota Tsuyuzaki proposed openstack/swift3: List system dependencies for running common tests  https://review.openstack.org/33434200:25
timburkekota_: what platform do you usually use? debating about getting a centos env up and running to test ^^00:31
kota_timburke: ubuntu 14:04 usually00:32
kota_timburke: i thought we need gcc for rpm as well as Swift looking at its bindep.txt.00:33
kota_timburke: making centos env sounds awesome!00:33
kota_timburke: and congrats you got an official topic for swift encryption in barcelona summit ;-)00:34
timburkethanks! now i just need to have some new data to present00:35
timburkei'll try to get a centos env up (maybe tomorrow? maybe next week?)00:35
kota_sounds good, so you are thinking we need more binary dependencies for rpm?00:36
kota_or, just setting up to prevent future regression00:36
kota_?00:36
timburkei'm curious about whether we can get away with fewer :-)00:37
kota_:-)00:38
*** m_kazuhiro has joined #swift301:01
timburkekota_: any objections on https://review.openstack.org/#/c/319404/? it shouldn't really matter much since we're got (and recommend) the auth_uri config option, but it might be nice01:09
kota_looking01:11
kota_sorry lazy review pace01:11
timburkeno worries. just figured i'd go through some of my old patches :-)01:11
timburkehttps://review.openstack.org/#/c/326765/ might be another good one (lets you run both keystoneauth and tempauth, say), and fairly low-risk01:12
kota_to be safe, that "[]" wrapping should be IIF that doesn't end with ']'?01:12
timburkei figured it'd be unlikely that someone would set it to something like '::FFFF:129.144.52.38]', so just checking startswith ought to be sufficient01:14
kota_does it work? looks odd to me...01:14
timburkeat that point, no matter what we do they're misconfigured it01:15
timburkei linked to a similar change in the auth_token middleware (back when it was still part of keystoneclient)01:15
kota_that rfc2732 says, "To use a literal IPv6 address in a URL, the literal address should be enclosed in "[" and "]" characters."01:16
timburkeyup, so something like `curl --globoff 'http://[::1]:8080/info'` should work, while something like `curl --globoff 'http://::1:8080/info'` won't01:18
kota_netaddr.valid_ipv6("::FFFF:129.144.52.38]") -> False, bah01:18
timburkealthough curiously, my irc client thinks the latter is a valid link and the former isn't :-/01:19
kota_looks like that we need [] for http uri01:20
kota_looking at the related change you suggested, https://review.openstack.org/#/c/43041/15/keystoneclient/middleware/auth_token.py@38001:20
kota_it looks better to use netaddr.valid_ipv6?01:21
-kota_- >>> netaddr.valid_ipv6("3ffe:2a00:100:7031::1")01:21
-kota_- True01:21
-kota_- >>> netaddr.valid_ipv6("[3ffe:2a00:100:7031::1]")01:21
kota_False01:21
timburkemaybe. i figured, if someone was already working around the problem by specifying a []-wrapped ipv6 address, no sense in breaking their config01:22
kota_netaddr.valid_ipv6 will be True only if we don't set "[]" wrap auth_host config, so it seems safe...01:24
timburkeoh, yeah! duh01:24
timburkecuriously, current keystonemiddleware just does a check for ':' in auth_host -- https://github.com/openstack/keystonemiddleware/blob/4.9.0/keystonemiddleware/auth_token/_auth.py#L5101:25
timburkei think that may have been where i got the idea... but maybe netaddr.valid_ipv6 *is* better...01:25
kota_hah, keystonemiddleware seems wrong :/01:27
*** onovy has quit IRC02:48
*** onovy has joined #swift302:48
*** tdasilva has quit IRC07:04
*** tdasilva has joined #swift307:42
*** openstackgerrit has quit IRC08:18
*** openstackgerrit has joined #swift308:19
*** mattoliverau has quit IRC09:06
*** matt6434 has joined #swift309:06
*** matt6434 is now known as mattoliverau10:26
*** nikivi has joined #swift310:41
*** nikivi has quit IRC10:42
*** m_kazuhiro has quit IRC10:59
openstackgerritTim Burke proposed openstack/swift3: Fix assorted typos  https://review.openstack.org/33972821:16
openstackgerritMerged openstack/swift3: Fix assorted typos  https://review.openstack.org/33972821:38
timburkekota_: i figured out another part of why i didn't go straight for netaddr.valid_ipv6... it's not in requirements! so i think it makes sense to use swift's is_valid_ipv6, but it was only added in 2.3.0 :-(21:45
timburkei'm debating between trying to import it and inlining it if/when it fails vs. just always inlining it21:46
openstackgerritTim Burke proposed openstack/swift3: Allow IPv6 addresses in auth_host config option  https://review.openstack.org/31940422:33
openstackgerritTim Burke proposed openstack/swift3: Allow IPv6 addresses in auth_host config option  https://review.openstack.org/31940422:44

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