Earlier  
Posted Nick Remark
#openstack-sdks - 2019-03-20
23:49:11 zer0c00l Is there an example of how to mock openstacksdk calls
23:49:20 zer0c00l For example i mocked openstack.connect
23:49:43 zer0c00l But how do i mock openstack.baremetal.chassis() call
23:52:12 zer0c00l The main app connects to a cluster using sdk = openstack.connect(cloud="a.b.c")
23:53:00 zer0c00l with the sdk object i fetch chassis by running sdk.baremetal.chassis() . Now i would like to mock both openstack.connect and sdk.baremetal.chassis calls
23:53:08 zer0c00l Is there any examples somewhere i can look?
#openstack-sdks - 2019-03-21
00:59:52 zer0c00l Looks like i just needed to mock openstack.connection.Connection
00:59:58 zer0c00l Not anything else
10:39:16 cdent dtantsur: that wsme fix needed a requirements change before it was good, so I went ahead and did it
10:39:26 cdent which has also reminded me to remove myself from wsme core ...
10:39:47 dtantsur heh
15:19:12 openstackgerrit Merged openstack-infra/shade master: Update master for stable/stein https://review.openstack.org/644221
15:21:19 openstackgerrit Merged openstack/os-client-config master: Update master for stable/stein https://review.openstack.org/644024
15:59:29 elmiko i feel like we need some intro music
16:00:01 edleafe The API-SIG Office Hour has begun. Don't crowd; we'll get to all of you in turn.
16:00:02 cdent "she's the one" by bruce springsteen just came around randomly on my musc. how about that?
16:00:16 elmiko lol cdent
16:00:23 cdent it has good intro piano
16:00:43 edleafe I prefer the Ramones version
16:01:30 elmiko wow, there's a ramones version!?!
16:01:30 edleafe https://www.youtube.com/watch?v=E5Ql6tOPM90
16:01:48 elmiko edleafe++
16:01:50 openstackgerrit Monty Taylor proposed openstack/openstacksdk master: Bail earlier on a version mismatch for a supported service https://review.openstack.org/637563
16:01:51 openstackgerrit Monty Taylor proposed openstack/openstacksdk master: Clarify error if no version can be found https://review.openstack.org/640835
16:04:35 elmiko hmm, i am starting to suspect these are not the same song... XD
16:13:11 openstackgerrit Ed Leafe proposed openstack/api-sig master: Added Placement to the liaisons file https://review.openstack.org/645223
16:18:32 dtantsur o/
16:18:47 elmiko \o
16:44:55 openstackgerrit Merged openstack/openstacksdk master: Add DNS support https://review.openstack.org/623009
17:03:58 edleafe Well, that was an exciting office hour!
17:04:05 elmiko ++
17:26:32 dtantsur totally
17:35:58 cdent damn I forgot to ask if we can remove the use of the term REST from all our guidelines
17:54:22 elmiko nope, gotta wait till next week
18:18:22 zer0c00l Is there a list of projects that use openstacksdk?
18:25:26 Shrews zer0c00l: no official list that i know of. you could try using codesearch. e.g.) http://codesearch.openstack.org/?q=openstacksdk&i=nope&files=requirements.txt&repos=
19:05:32 zer0c00l Shrews: thanks
#openstack-sdks - 2019-03-22
00:46:06 openstackgerrit OpenStack Release Bot proposed openstack/python-openstackclient master: Update master for stable/stein https://review.openstack.org/645421
02:46:18 openstackgerrit Merged openstack/keystoneauth master: Factor Adapter conf-processing logic into a helper https://review.openstack.org/644251
16:29:36 openstackgerrit Merged openstack/python-openstackclient master: Update master for stable/stein https://review.openstack.org/645421
#openstack-sdks - 2019-03-23
12:24:25 brtknr Anyone here??
13:56:23 brtknr I dont understand how to use the **query parameter for orchestration.stacks and orchestration.resources
#openstack-sdks - 2019-03-24
15:16:48 efried brtknr: I'm guessing it'll be the same as https://developer.openstack.org/api-ref/orchestration/v1/?expanded=list-stacks-detail#list-stacks
15:16:48 efried But you should open a bug against openstacksdk so they can fill in the reference page here https://docs.openstack.org/openstacksdk/latest/user/proxies/orchestration.html#openstack.orchestration.v1._proxy.Proxy.stacks
15:17:55 efried Here's where that bug should go (it would be a "story"): https://storyboard.openstack.org/#!/project/openstack/openstacksdk
17:21:10 openstackgerrit Merged openstack/openstacksdk master: Create runtime descriptor for new service https://review.openstack.org/643918
21:19:36 openstackgerrit Ian Wienand proposed openstack/js-openstack-lib master: Replace openstack.org git:// URLs with https:// https://review.openstack.org/646426
22:23:51 openstackgerrit Ian Wienand proposed openstack-infra/shade master: Replace openstack.org git:// URLs with https:// https://review.openstack.org/647135
#openstack-sdks - 2019-03-25
00:44:21 openstackgerrit Merged openstack-infra/shade master: Replace openstack.org git:// URLs with https:// https://review.openstack.org/647135
10:58:09 openstackgerrit sahid proposed openstack/os-service-types master: add python 3.7 unit test job https://review.openstack.org/647397
11:02:00 openstackgerrit sahid proposed openstack/openstacksdk master: add python 3.7 unit test job https://review.openstack.org/647401
12:59:31 openstackgerrit Monty Taylor proposed openstack/openstacksdk master: add python 3.7 unit test job https://review.openstack.org/647401
13:00:06 mordred dtantsur: ^^ I fixed the broken test. https://stackoverflow.com/questions/51700960/runtimeerror-generator-raised-stopiteration-every-time-i-try-to-run-app is a fun one
13:13:28 dtantsur oh, this is a good one indeed
13:14:54 dtantsur mordred: an idea inline
13:19:20 mordred dtantsur: oh - does that work? neat
13:19:35 dtantsur I think I remember somebody using it in one of our projects
13:20:36 openstackgerrit Monty Taylor proposed openstack/openstacksdk master: add python 3.7 unit test job https://review.openstack.org/647401
13:20:45 mordred dtantsur: yup! works great
13:45:56 efried There's also
13:45:56 efried exc = self.assertRaises(Exception, ...)
13:45:56 efried self.assertIsInstance(exc, ...)
13:46:01 efried but what you've done is way nicer.
13:48:25 mordred \o/
16:34:00 openstackgerrit Monty Taylor proposed openstack/openstacksdk master: Add support for generating form-post signatures https://review.openstack.org/639760
16:34:15 mordred fungi: ^^ updated that with tests
16:37:24 fungi thanks mordred!!!
16:58:19 mordred Shrews: if you have a sec and feel like assaulting your brain by looking at code I wrote ^^ is in support of adding a storyboard feature for attaching files/images to stories and storing them in swift on the backend
17:14:58 Shrews mordred: ack. lemme get to a break point on this nodepool issue first
17:20:23 mordred Shrews: no worries / rush
18:28:02 openstackgerrit Rodolfo Alonso Hernandez proposed openstack/openstacksdk master: Add "name" filter in "list" call when retrieving a single register https://review.openstack.org/637238
19:27:07 Shrews mordred: other than a doc nit,lgtm
19:33:11 openstackgerrit Monty Taylor proposed openstack/openstacksdk master: Add support for generating form-post signatures https://review.openstack.org/639760
19:33:23 mordred Shrews: sweet - thanks - fixed the nit and added a release note ^^
19:34:46 Shrews mordred: oh yah, good idea
#openstack-sdks - 2019-03-26
10:03:37 openstackgerrit Artem Goncharov proposed openstack/openstacksdk master: Split OpenStackCloud into reasonable pieces https://review.openstack.org/642218
11:52:36 openstackgerrit Artem Goncharov proposed openstack/openstacksdk master: Split OpenStackCloud into reasonable pieces https://review.openstack.org/642218
12:46:49 openstackgerrit Dmitry Tantsur proposed openstack/openstacksdk master: [WIP] Make PATCH a first class operation and support it for baremetal https://review.openstack.org/647730
12:46:51 dtantsur mordred: early comments welcome ^^
13:50:59 mordred dtantsur: ooh fun. will look in a bit
13:51:12 mordred dtantsur: (seems like a good thing to have as a first-class operation)
13:51:25 gtema ++
15:20:29 openstackgerrit Merged openstack/openstacksdk master: add python 3.7 unit test job https://review.openstack.org/647401
15:27:53 openstackgerrit Artem Goncharov proposed openstack/openstacksdk master: Split OpenStackCloud into reasonable pieces https://review.openstack.org/642218
15:56:51 openstackgerrit Dmitry Tantsur proposed openstack/openstacksdk master: Make PATCH a first class operation and support it for baremetal https://review.openstack.org/647730
15:56:54 dtantsur this is it, assuming the ironic CI passes ^^
17:34:27 dtruong mordred I'm using openstacksdk 0.26.0 and am seeing connections that are not being closed when calling network APIs.
17:34:35 dtruong If you run this file: http://paste.openstack.org/show/748415/
17:35:02 dtruong and watch the number of open connections of that process, it just keeps increasing and using more memory
17:36:04 dtruong I run that file as python blah.py
17:36:22 dtruong and watch the connections like this: watch -n 1 "pgrep -o -f blah | xargs sudo lsof -i 4 -a -p "
17:48:08 dtruong mordred It looks like this started with openstacksdk 0.18.0
17:48:34 dtruong With openstacksdk 0.17.2 it only has 2 or 3 connections open when running my sample program
17:58:43 dtantsur regressions \o/
18:00:40 dtruong actually, looks like using openstacksdk master doesn't have this problem
18:01:06 dtruong so I guess you something changed between 0.26.0 and currently master that fixed it?
18:06:11 dtruong Looking at the commit history, I'm guessing this commit fixed it:
18:06:12 dtruong https://opendev.org/openstack/openstacksdk/commit/e7a9b52998f23d7d7af99ecd9adb0554102f9604
19:33:16 openstackgerrit Jeremy Houser proposed openstack/python-openstackclient master: Refactor test_transfer_request.py and test_snapshot.py https://review.openstack.org/647892
19:33:33 openstackgerrit Jeremy Houser proposed openstack/python-openstackclient master: Refactor test_transfer_request.py and test_snapshot.py https://review.openstack.org/647892

Earlier   Later