Tuesday, 2018-01-30

adriantmordred: as part of the sdk stuff you were going to potentially make some nice constructor functions for people using it without an underlying clouds.yaml00:09
*** salv-orlando has joined #openstack-sdks00:09
adriantthere is something that sort of lets you do that, but it... still looks for underlying cloud.yaml unless you explicitly tell it not to or something.00:10
adriantam trying to find where that doc was00:11
*** salv-orlando has quit IRC00:13
adrianthere: https://github.com/openstack/python-openstacksdk/blob/master/doc/source/user/connection.rst#getting-a-connection-from-python-arguments-avoiding-cloudsyaml00:16
adriantyou were talking about making that into a nicer callable constructor that does that, without all the pointless boiler plate00:17
mordredadriant: yes indeed. I'm just now AFKing - but thanks for the reminder I can hit that first thign in the morning00:20
adriantmordred: sweet, thanks :)00:21
adriantand are they any docks on doing that type of thing and saying what versions of stuff you want?00:21
adriantsince sometimes you do want to use a specific version of a given services API when you setup something like that in code00:22
adriant...00:22
adriantdocs* not docks00:22
adriantI'll be around tomorrow and can test/review as needed!00:23
mordredadriant: the docs need to be cleaned up - the tl;dr is that you can pass args like service_type_api_version to get_one_cloud (or to Connection itself) ... or via env vars ..00:30
mordredadriant: so - for instance, OS_COMPUTE_API_VERSION='2' or compute_api_version='2'00:30
adriantideally, I would love a constructor function that is basically: explicitly ignore clouds.yaml, envvars, etc, and ONLY use what I'm giving it00:31
mordredadriant: nod - can do00:31
adrianta consumer of that is 100% certain of exactly where the config data it gets is coming from00:31
adriantwhich is what I'd want for using it in services type stuff00:32
adriantand cool, if you can easily enough supply what versions of a given service you need that makes it ideal00:32
*** dave-mccowan has quit IRC00:32
mordredadriant: woot. for now it's BASICALLY "config = openstack.config.OpenStackConfig(load_yaml_config=False, envvar_prefix='GARBAGE').get_one(region_name='my-region', auth=dict(auth_url='http://foo.example.com', username='', password=''), compute_api_version='2', compute_interface='public') ; conn = openstack.connect(config=config)"00:39
mordredadriant: but that's obviously ugly - so when I awaken I'll get you a better option :)00:40
openstackgerritMerged openstack/python-openstackclient master: Use find_ip from openstacksdk  https://review.openstack.org/53895800:40
adriantmordred: tyvm good dir!00:40
adriant... sir*00:40
mordredI'm more like a dir :)00:40
mordredadriant: I also have another version-selection related patch I've been hacking on today that should be ready for you to check out  by tomorrow as well00:41
*** shu-mutou has joined #openstack-sdks00:41
adriantvery cool. I'm going to play with the SDK as is today and see what it's like to use and mostly test out the old pain points I had with it.00:41
adriantand tomorrow I'll follow up and see where you're at with that stuff00:42
*** sdague has quit IRC00:52
*** chenyb4 has joined #openstack-sdks00:55
*** pzchen has joined #openstack-sdks01:02
*** melwitt has quit IRC01:10
*** salv-orlando has joined #openstack-sdks01:33
*** salv-orlando has quit IRC01:39
openstackgerritchenyb4 proposed openstack/python-openstacksdk master: Rename unit test cluster to clustering  https://review.openstack.org/53907101:41
*** slaweq_ has joined #openstack-sdks01:54
*** melwitt has joined #openstack-sdks01:56
*** melwitt is now known as Guest9430601:56
*** Guest94306 is now known as jgwentworth01:58
*** slaweq_ has quit IRC01:59
*** jgwentworth is now known as melwitt02:01
*** harlowja has quit IRC02:10
openstackgerritOpenStack Proposal Bot proposed openstack/openstackclient master: Updated from global requirements  https://review.openstack.org/52190202:26
*** slaweq_ has joined #openstack-sdks02:29
*** slaweq_ has quit IRC02:34
*** fzdarsky_ has joined #openstack-sdks02:35
*** fzdarsky|afk has quit IRC02:39
*** d0ugal has quit IRC02:51
*** d0ugal has joined #openstack-sdks02:52
*** edmondsw has joined #openstack-sdks02:54
*** edmondsw has quit IRC02:58
*** dave-mccowan has joined #openstack-sdks02:58
*** gildub has joined #openstack-sdks03:18
*** ldl has joined #openstack-sdks03:26
*** ldl has quit IRC03:27
*** ldl has joined #openstack-sdks03:27
*** ldl has quit IRC03:28
*** ldl has joined #openstack-sdks03:28
openstackgerritMerged openstack/python-openstackclient master: Fix tox -e venv -- reno new <slug>  https://review.openstack.org/53853603:33
*** salv-orlando has joined #openstack-sdks03:36
*** slaweq_ has joined #openstack-sdks03:37
*** salv-orlando has quit IRC03:41
*** slaweq_ has quit IRC03:42
*** tovin07 has quit IRC03:51
*** dave-mccowan has quit IRC03:52
*** tovin07 has joined #openstack-sdks03:52
*** slaweq_ has joined #openstack-sdks03:58
*** slaweq_ has quit IRC04:03
*** adriant has quit IRC04:18
*** harlowja has joined #openstack-sdks04:21
*** harlowja has quit IRC04:26
*** harlowja has joined #openstack-sdks04:26
*** harlowja has quit IRC04:27
*** adriant has joined #openstack-sdks04:30
*** salv-orlando has joined #openstack-sdks04:37
*** salv-orlando has quit IRC04:42
*** edmondsw has joined #openstack-sdks04:42
*** edmondsw has quit IRC04:46
Qimingmodred05:01
Qimingthere?05:02
*** slaweq_ has joined #openstack-sdks05:12
*** slaweq_ has quit IRC05:16
openstackgerritMerged openstack/python-openstacksdk master: Rename unit test cluster to clustering  https://review.openstack.org/53907105:19
adriantmordred: the envvar_prefix doesn't work as intended. I'm hitting this when adding SDK support to my interpreter tool since I have a constructor function that takes elements from the cloud config as defaults, and lets you build a different connection object with a specified region and api versions.05:26
adriantthe error I'm getting is: OpenStackConfigException: Region RegionTwo is not a valid region name for cloud envvars. Valid choices are RegionOne. Please note that region names are case sensitive.05:26
adriantwhen I do it in a clean env, no OS_* stuff set, it does work, but... when there are some set, I can actually build an entirely clean config/connection object entirely with values I supply.05:27
adriant I can't* actually build05:28
*** salv-orlando has joined #openstack-sdks05:38
*** gildub has quit IRC05:39
*** salv-orlando has quit IRC05:43
*** gkadam has joined #openstack-sdks05:52
*** salv-orlando has joined #openstack-sdks05:59
*** slaweq has quit IRC06:00
adriantmordred: code I was trying to get working that complains if OS_REGION_NAME is set: https://github.com/Adrian-Turjak/openstack-interpreter/pull/3/files#diff-f02c38fdd6ae5f99d7f313ce3277d81d06:12
adriantalso, if you know of how I can do something similar for the shade cloud object, that would be cool, because I would like to be able to build a shade cloud object with a constructor function that do pretty much the same thing I'm doing for my get_connection function with the SDK.06:15
*** slaweq has joined #openstack-sdks06:16
*** slaweq_ has joined #openstack-sdks06:17
*** slaweq_ has quit IRC06:21
*** slaweq has quit IRC06:21
*** slaweq has joined #openstack-sdks06:24
*** gildub has joined #openstack-sdks06:30
*** edmondsw has joined #openstack-sdks06:30
*** gildub has quit IRC06:30
*** slaweq has quit IRC06:31
*** gildub has joined #openstack-sdks06:34
*** edmondsw has quit IRC06:34
*** gildub has quit IRC06:40
openstackgerritHunt Xu proposed openstack/python-openstacksdk master: set paginated to False for list operations  https://review.openstack.org/53911507:08
openstackgerritHunt Xu proposed openstack/python-openstacksdk master: set paginated to False for list operations  https://review.openstack.org/53911507:10
openstackgerritHunt Xu proposed openstack/python-openstacksdk master: set paginated to False for list operations  https://review.openstack.org/53911507:11
openstackgerritHunt Xu proposed openstack/python-openstacksdk master: orchestration: fix typo in doc  https://review.openstack.org/53911607:17
*** annp has joined #openstack-sdks07:27
*** gildub has joined #openstack-sdks07:32
*** d0ugal has quit IRC07:34
*** salv-orlando has quit IRC07:36
*** e0ne has joined #openstack-sdks07:36
*** salv-orlando has joined #openstack-sdks07:36
*** slaweq has joined #openstack-sdks07:39
*** salv-orlando has quit IRC07:41
*** slaweq has quit IRC07:44
*** slaweq has joined #openstack-sdks07:54
*** slaweq has quit IRC07:58
*** salv-orlando has joined #openstack-sdks07:59
*** d0ugal has joined #openstack-sdks08:02
*** slaweq has joined #openstack-sdks08:11
*** edmondsw has joined #openstack-sdks08:18
*** edmondsw has quit IRC08:23
*** ralonsoh has joined #openstack-sdks08:25
*** Halbinger has joined #openstack-sdks08:28
*** slaweq_ has joined #openstack-sdks08:28
*** gildub has quit IRC08:29
*** gildub has joined #openstack-sdks08:31
*** slaweq_ has quit IRC08:32
*** Halbinger has quit IRC08:34
*** Halbinger has joined #openstack-sdks08:35
*** jpena|off is now known as jpena08:50
*** jpich has joined #openstack-sdks08:58
*** slaweq_ has joined #openstack-sdks09:00
*** slaweq_ has quit IRC09:04
*** kmy has quit IRC09:08
*** kmy has joined #openstack-sdks09:08
*** fzdarsky_ is now known as fzdarsky09:12
*** salv-orlando has quit IRC09:17
*** salv-orlando has joined #openstack-sdks09:18
*** salv-orlando has quit IRC09:23
*** shu-mutou is now known as shu-mutou-AWAY09:26
*** fzdarsky has quit IRC09:34
*** fzdarsky has joined #openstack-sdks09:35
openstackgerritDeepak Mourya proposed openstack/keystoneauth master: Override support message in AuthorizationFailure  class  https://review.openstack.org/53916609:53
*** reedip has quit IRC10:05
*** edmondsw has joined #openstack-sdks10:06
*** edmondsw has quit IRC10:10
*** edmondsw has joined #openstack-sdks10:12
*** edmondsw has quit IRC10:12
*** chenyb4 has quit IRC10:24
*** pzchen has quit IRC10:25
*** sdague has joined #openstack-sdks10:28
*** reedip has joined #openstack-sdks10:29
*** salv-orlando has joined #openstack-sdks10:31
*** dave-mccowan has joined #openstack-sdks10:32
*** pooja-jadhav has joined #openstack-sdks10:34
*** pooja_jadhav has quit IRC10:37
*** slaweq_ has joined #openstack-sdks10:48
*** reedip has quit IRC10:50
*** slaweq_ has quit IRC10:52
openstackgerritKairat Kushaev proposed openstack/keystoneauth master: use defusedxml for XML parsing  https://review.openstack.org/53676110:54
*** slaweq_ has joined #openstack-sdks10:54
*** Halbinger has quit IRC10:55
*** Halbinger has joined #openstack-sdks10:56
*** slaweq_ has quit IRC11:02
*** fzdarsky is now known as fzdarsky|afk11:22
*** salv-orlando has quit IRC11:32
*** salv-orlando has joined #openstack-sdks11:32
*** d0ugal has quit IRC11:34
*** salv-orlando has quit IRC11:37
*** d0ugal has joined #openstack-sdks11:54
*** d0ugal has quit IRC11:54
*** d0ugal has joined #openstack-sdks11:54
*** edmondsw has joined #openstack-sdks12:08
*** cdent has joined #openstack-sdks12:21
*** ldl has quit IRC12:40
*** chenyb4 has joined #openstack-sdks12:44
*** jpena is now known as jpena|lunch12:45
*** edmondsw_ has joined #openstack-sdks12:49
*** edmondsw has quit IRC12:51
*** salv-orlando has joined #openstack-sdks12:52
*** slaweq_ has joined #openstack-sdks12:58
*** edmondsw_ has quit IRC12:58
*** edmondsw has joined #openstack-sdks13:00
*** slaweq_ has quit IRC13:05
*** salv-orl_ has joined #openstack-sdks13:13
*** salv-orlando has quit IRC13:16
*** dave-mccowan has quit IRC13:37
*** slaweq has quit IRC13:37
*** slaweq has joined #openstack-sdks13:38
-openstackstatus- NOTICE: Our ubuntu-xenial images (used for e.g. unit tests and devstack) are currently failing to install any packages, restrain from *recheck* or *approve* until the issue has been investigated and fixed.13:43
*** jpena|lunch is now known as jpena13:46
*** jpich has quit IRC13:54
openstackgerritMerged openstack/service-types-authority master: Add .zuul.yaml file with tox job  https://review.openstack.org/53830513:57
*** ldl has joined #openstack-sdks14:03
*** ldl has quit IRC14:03
openstackgerritMerged openstack/service-types-authority master: Add masakari and service-type instance-ha  https://review.openstack.org/53487514:19
*** slaweq_ has joined #openstack-sdks14:36
*** slaweq_ has quit IRC14:41
*** d0ugal has quit IRC14:44
*** slaweq_ has joined #openstack-sdks14:46
*** d0ugal has joined #openstack-sdks14:47
*** slaweq_ has quit IRC14:50
*** dave-mccowan has joined #openstack-sdks14:56
*** d0ugal has quit IRC14:58
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Add a descriptor object for each service proxy  https://review.openstack.org/53923215:03
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Ensure Connection can be made from keyword arguments  https://review.openstack.org/53923315:03
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Add OpenStackCloud object to Connection  https://review.openstack.org/53923415:03
mordredadriant: ok. that ^^ should take care of all of your questions and use cases (I hope)15:03
*** gkadam has quit IRC15:14
*** zhongjun has quit IRC15:18
*** chenyb4 has quit IRC15:21
*** d0ugal has joined #openstack-sdks15:25
openstackgerritMonty Taylor proposed openstack/service-types-authority master: Update build to put content into sphinx location  https://review.openstack.org/53923915:36
mordreddtroyer: jeez. it seems like devstack on pike is just flat broken for us there does't it :(15:37
*** slaweq_ has joined #openstack-sdks15:45
*** slaweq_ has quit IRC15:50
*** tulivu_ has joined #openstack-sdks15:55
*** Halbinger has quit IRC15:57
*** slaweq_ has joined #openstack-sdks15:58
*** tulivu_ has quit IRC16:02
*** slaweq_ has quit IRC16:04
*** e0ne has quit IRC16:12
openstackgerritMonty Taylor proposed openstack/service-types-authority master: Update build to put content into sphinx location  https://review.openstack.org/53923916:23
mordreddtroyer: oh - those errors may have just been this morining's image issue16:30
dtroyermordred: I'm hoping so16:30
mordreddtroyer: although the volume type create seems less happy16:32
mordredlocally, with stable/pike osc and master sdk I get:16:33
mordredmordred@solace:~/src/git.openstack.org/openstack/python-openstackclient$ openstack --os-cloud=vexxhost volume type create monty16:33
mordredPolicy doesn't allow volume_extension:types_manage to be performed. (HTTP 403) (Request-ID: req-d9acb541-fa27-4983-9e07-65c5c0e42f6b)16:33
dtroyerIn the log I poked through that seemed to be the first osc invocation… I wonder if something got moved around?16:33
mordred(which is what I'd expect, since I can't do that - but it's certainly getting past auth)16:33
dtroyeroh, that's different16:33
mordredso - my local error seems like correct behavior16:34
mordreddtroyer: so - I might need to spin up a devstack and poke16:34
mordreddtroyer: I put in a zuul hold so we can grab the node from that job next time it breaks and look16:36
*** slaweq_ has joined #openstack-sdks16:52
*** slaweq_ has quit IRC16:57
*** gkadam has joined #openstack-sdks16:58
*** slaweq has quit IRC17:03
*** slaweq has joined #openstack-sdks17:03
*** slaweq_ has joined #openstack-sdks17:03
*** slaweq_ has quit IRC17:07
*** slaweq has quit IRC17:08
*** ralonsoh_ has joined #openstack-sdks17:28
*** ralonsoh has quit IRC17:31
*** markvoelker has joined #openstack-sdks17:36
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Add OpenStackCloud object to Connection  https://review.openstack.org/53923417:37
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Cleanup the BaseProxy docs a bit  https://review.openstack.org/53927017:37
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Rename BaseProxy to Proxy  https://review.openstack.org/53927117:37
*** ralonsoh__ has joined #openstack-sdks17:54
*** ralonsoh_ has quit IRC17:58
*** slaweq has joined #openstack-sdks18:08
*** slaweq has quit IRC18:13
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Add a descriptor object for each service proxy  https://review.openstack.org/53923218:20
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Ensure Connection can be made from keyword arguments  https://review.openstack.org/53923318:21
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Add OpenStackCloud object to Connection  https://review.openstack.org/53923418:21
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Cleanup the BaseProxy docs a bit  https://review.openstack.org/53927018:21
openstackgerritMonty Taylor proposed openstack/python-openstacksdk master: Rename BaseProxy to Proxy  https://review.openstack.org/53927118:21
*** ralonsoh__ has quit IRC18:33
*** slaweq has joined #openstack-sdks18:33
*** slaweq has quit IRC18:38
*** salv-orl_ has quit IRC18:39
*** salv-orlando has joined #openstack-sdks18:39
*** salv-orlando has quit IRC18:44
*** thrash is now known as thrash|biab18:44
*** cdent has quit IRC18:52
*** jpena is now known as jpena|off19:00
openstackgerritMerged openstack/python-openstacksdk master: Provide compatibility for people passing raw sessions  https://review.openstack.org/53896819:09
openstackgerritMerged openstack/python-openstacksdk master: Update reno for stable/queens  https://review.openstack.org/53869319:09
*** slaweq has joined #openstack-sdks19:12
*** slaweq has quit IRC19:16
*** harlowja has joined #openstack-sdks19:17
openstackgerritHongbin Lu proposed openstack/python-openstackclient master: [WIP] Disallow setting default on internal network  https://review.openstack.org/53930319:19
*** cdent has joined #openstack-sdks19:50
*** cdent has quit IRC19:52
*** slaweq has joined #openstack-sdks20:17
*** d0ugal has quit IRC20:26
*** thrash|biab is now known as thrash20:29
adriantmordred: looking at those constructor patches now20:36
mordredadriant: awesome! thanks!20:39
openstackgerritHongbin Lu proposed openstack/python-openstackclient master: Disallow setting default on internal network  https://review.openstack.org/53930320:39
*** d0ugal has joined #openstack-sdks20:41
*** e0ne has joined #openstack-sdks20:42
openstackgerritColleen Murphy proposed openstack/python-openstackclient master: Add CRUD support for application credentials  https://review.openstack.org/53616320:50
adriantmordred: with that code I think I can swap to just reusing the session, which actually makes things much simpler20:53
adriantstill reading, found a few typos on the comments/docs, but so far the code looks good20:53
*** e0ne has quit IRC20:55
*** slaweq_ has joined #openstack-sdks21:08
*** slaweq_ has quit IRC21:13
mordredadriant: awesome21:17
*** slaweq has quit IRC21:55
*** edmondsw has quit IRC22:11
*** edmondsw has joined #openstack-sdks22:12
*** salv-orlando has joined #openstack-sdks22:14
*** edmondsw has quit IRC22:17
openstackgerritMerged openstack/python-openstacksdk master: orchestration: fix typo in doc  https://review.openstack.org/53911622:33
*** dave-mccowan has quit IRC23:03
*** sdague has quit IRC23:13
*** salv-orlando has quit IRC23:21
*** salv-orlando has joined #openstack-sdks23:22
*** salv-orlando has quit IRC23:26
*** slaweq has joined #openstack-sdks23:40
*** slaweq has quit IRC23:45

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