| Posted | Nick | Remark | |
|---|---|---|---|
| #openstack-sdks - 2019-03-19 | |||
| 22:10:11 | openstack | dustinc: Error: "!!" is not a valid command. | |
| #openstack-sdks - 2019-03-20 | |||
| 13:41:16 | nullscan | hi | |
| 13:42:07 | nullscan | i have been trying to use the python openstack client with osprofiler but when i try to execute any command with --os-profile HMAC_KEY the client responds that the --os-profile switch is invalid | |
| 13:42:19 | nullscan | am i missing something ? | |
| 13:43:18 | nullscan | the client is installed using debian package and the version is 3.16.2 | |
| 13:43:32 | nullscan | the same happens when i try to use the latest version installed via pip | |
| 13:48:15 | dtroyer | nullscan: what version of osc-lib? That is where the —os-profile option is actually declared, although it has been around for a while... | |
| 13:48:52 | nullscan | 1.11.1 | |
| 13:50:53 | dtroyer | That is a global option so it needs to appear on the command line before the actual command: openstack —os-profile qaz server list | |
| 13:51:23 | nullscan | yes, i have actually been testing with openstack --os-profile qwerty image list | |
| 13:51:27 | nullscan | but still no luck | |
| 13:51:52 | dtroyer | hmmm… it's giving me trouble too (I've never actually used it before) | |
| 13:52:13 | dtroyer | oh, duh, liiking at the code... | |
| 13:52:14 | nullscan | openstack: '--os-profile qqqq image list' is not an openstack command. See 'openstack --help'. Did you mean one of these? | |
| 13:52:17 | dtroyer | *looking | |
| 13:52:18 | nullscan | that is what i am getting | |
| 13:52:25 | dtroyer | do you have osprofiler installed? | |
| 13:52:32 | nullscan | yes i do | |
| 13:52:48 | dtroyer | if impporting osprofiler.profiler fails the option isn't defined | |
| 13:52:56 | nullscan | but from what i understand osprofiler is used only to get information from trackIDs | |
| 13:53:26 | nullscan | and the actual documentation does not list any other steps, just enable profiling in the services i want and run any command with --os-profile switch | |
| 13:53:35 | dtroyer | so if OSc is in a venv that venv also needs to have osprofiler in it, etc | |
| 13:54:37 | nullscan | no its not in venv, its installed along with the rest of my system | |
| 13:56:20 | dtroyer | what do you get with: python -m osprofiler | |
| 13:56:21 | nullscan | ah i just found it | |
| 13:56:40 | nullscan | nevemind, i had the python3 version of osc-lib installed instead of the python v2 ones | |
| 13:56:41 | nullscan | :) | |
| 13:56:49 | dtroyer | aha! | |
| 13:56:54 | nullscan | thanks for your help though! | |
| 13:56:59 | dtroyer | np | |
| 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 | edleafe | https://www.youtube.com/watch?v=E5Ql6tOPM90 | |
| 16:01:30 | elmiko | wow, there's a ramones version!?! | |
| 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 | 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: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: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 | self.assertIsInstance(exc, ...) | |
| 13:45:56 | efried | exc = self.assertRaises(Exception, ...) | |
| 13:45:56 | efried | There's also | |
| 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 | |