*** markvoelker has joined #openstack-sdks | 00:17 | |
*** markvoelker has quit IRC | 00:21 | |
*** markvoelker has joined #openstack-sdks | 00:48 | |
*** slaweq has joined #openstack-sdks | 00:56 | |
*** slaweq has quit IRC | 01:00 | |
*** cdent has quit IRC | 01:01 | |
*** whoami-rajat has joined #openstack-sdks | 01:30 | |
*** markvoelker has quit IRC | 01:49 | |
*** dave-mccowan has quit IRC | 03:39 | |
*** markvoelker has joined #openstack-sdks | 05:53 | |
*** Luzi has joined #openstack-sdks | 06:45 | |
*** e0ne has joined #openstack-sdks | 07:17 | |
*** e0ne has quit IRC | 07:27 | |
*** tosky has joined #openstack-sdks | 07:29 | |
*** holser|run is now known as holser_ | 07:39 | |
*** e0ne has joined #openstack-sdks | 07:42 | |
*** jpich has joined #openstack-sdks | 07:48 | |
*** slaweq has joined #openstack-sdks | 07:55 | |
*** gtema has joined #openstack-sdks | 08:00 | |
*** ttsiouts has joined #openstack-sdks | 08:05 | |
*** e0ne has quit IRC | 08:15 | |
*** ttsiouts has quit IRC | 08:26 | |
*** ttsiouts has joined #openstack-sdks | 08:34 | |
*** ttsiouts has quit IRC | 08:52 | |
*** jpena|off is now known as jpena | 08:53 | |
*** ttsiouts has joined #openstack-sdks | 08:54 | |
*** ralonsoh has joined #openstack-sdks | 08:58 | |
*** Luzi has quit IRC | 08:59 | |
*** gildub has joined #openstack-sdks | 09:11 | |
*** dtantsur|afk is now known as dtantsur | 09:21 | |
*** gildub has quit IRC | 10:15 | |
*** cdent has joined #openstack-sdks | 10:27 | |
*** e0ne has joined #openstack-sdks | 10:45 | |
*** dave-mccowan has joined #openstack-sdks | 10:57 | |
*** yolanda has quit IRC | 10:59 | |
*** yolanda has joined #openstack-sdks | 10:59 | |
*** ttsiouts has quit IRC | 11:21 | |
*** gtema has quit IRC | 11:24 | |
*** ttsiouts has joined #openstack-sdks | 11:37 | |
*** jpich has quit IRC | 11:42 | |
*** ttsiouts has quit IRC | 11:42 | |
*** jpich has joined #openstack-sdks | 11:42 | |
*** tssurya has joined #openstack-sdks | 11:47 | |
*** jpich has quit IRC | 11:49 | |
*** jpich has joined #openstack-sdks | 11:49 | |
*** dave-mccowan has quit IRC | 11:51 | |
*** ttsiouts has joined #openstack-sdks | 12:04 | |
*** e0ne has quit IRC | 12:07 | |
*** markvoelker has quit IRC | 12:13 | |
*** markvoelker has joined #openstack-sdks | 12:14 | |
*** jpich has quit IRC | 12:19 | |
*** jpich has joined #openstack-sdks | 12:20 | |
*** jpena is now known as jpena|lunch | 12:29 | |
*** jpich has quit IRC | 12:35 | |
*** jpich has joined #openstack-sdks | 12:35 | |
*** jpich has quit IRC | 12:39 | |
*** gtema has joined #openstack-sdks | 12:50 | |
*** jpich has joined #openstack-sdks | 13:09 | |
*** e0ne has joined #openstack-sdks | 13:16 | |
*** jpena|lunch is now known as jpena | 13:39 | |
*** nullscan has joined #openstack-sdks | 13:41 | |
nullscan | hi | 13:41 |
---|---|---|
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 |
nullscan | am i missing something ? | 13:42 |
nullscan | the client is installed using debian package and the version is 3.16.2 | 13:43 |
nullscan | the same happens when i try to use the latest version installed via pip | 13:43 |
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 |
nullscan | 1.11.1 | 13:48 |
*** holser_ is now known as holser|run | 13:49 | |
*** holser|run is now known as holser|away_2h_d | 13:49 | |
*** holser|away_2h_d has quit IRC | 13:50 | |
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:50 |
nullscan | yes, i have actually been testing with openstack --os-profile qwerty image list | 13:51 |
nullscan | but still no luck | 13:51 |
dtroyer | hmmm… it's giving me trouble too (I've never actually used it before) | 13:51 |
dtroyer | oh, duh, liiking at the code... | 13:52 |
nullscan | openstack: '--os-profile qqqq image list' is not an openstack command. See 'openstack --help'. Did you mean one of these? | 13:52 |
dtroyer | *looking | 13:52 |
nullscan | that is what i am getting | 13:52 |
dtroyer | do you have osprofiler installed? | 13:52 |
nullscan | yes i do | 13:52 |
dtroyer | if impporting osprofiler.profiler fails the option isn't defined | 13:52 |
nullscan | but from what i understand osprofiler is used only to get information from trackIDs | 13:52 |
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 |
dtroyer | so if OSc is in a venv that venv also needs to have osprofiler in it, etc | 13:53 |
nullscan | no its not in venv, its installed along with the rest of my system | 13:54 |
dtroyer | what do you get with: python -m osprofiler | 13:56 |
nullscan | ah i just found it | 13:56 |
nullscan | nevemind, i had the python3 version of osc-lib installed instead of the python v2 ones | 13:56 |
nullscan | :) | 13:56 |
dtroyer | aha! | 13:56 |
nullscan | thanks for your help though! | 13:56 |
dtroyer | np | 13:56 |
*** nullscan has quit IRC | 13:58 | |
*** gildub has joined #openstack-sdks | 14:02 | |
*** Luzi has joined #openstack-sdks | 14:03 | |
*** ttsiouts has quit IRC | 14:10 | |
*** ttsiouts has joined #openstack-sdks | 14:10 | |
*** gtema has quit IRC | 14:13 | |
*** ttsiouts has quit IRC | 14:15 | |
*** ttsiouts has joined #openstack-sdks | 14:19 | |
*** dtantsur is now known as dtantsur|bbl | 14:51 | |
*** Luzi has quit IRC | 15:17 | |
*** efried is now known as efried_rolling | 16:03 | |
*** jangutter has quit IRC | 16:20 | |
*** dtantsur|bbl is now known as dtantsur | 16:22 | |
*** holser_ has joined #openstack-sdks | 16:36 | |
*** altlogbot_1 has joined #openstack-sdks | 16:40 | |
*** altlogbot_1 has quit IRC | 16:41 | |
*** yolanda has quit IRC | 16:49 | |
*** e0ne has quit IRC | 17:07 | |
*** altlogbot_3 has joined #openstack-sdks | 17:26 | |
*** altlogbot_0 has joined #openstack-sdks | 17:27 | |
*** altlogbot_0 has quit IRC | 17:28 | |
*** altlogbot_3 has quit IRC | 17:28 | |
*** altlogbot_2 has joined #openstack-sdks | 17:30 | |
*** jpich has quit IRC | 17:33 | |
*** ttsiouts has quit IRC | 17:40 | |
*** ttsiouts has joined #openstack-sdks | 17:41 | |
*** ttsiouts has quit IRC | 17:46 | |
*** dtantsur is now known as dtantsur|afk | 17:53 | |
*** jpena is now known as jpena|off | 18:15 | |
*** e0ne has joined #openstack-sdks | 18:17 | |
*** ralonsoh has quit IRC | 18:19 | |
*** irclogbot_2 has quit IRC | 18:21 | |
*** irclogbot_1 has joined #openstack-sdks | 18:24 | |
*** irclogbot_1 has quit IRC | 18:27 | |
*** irclogbot_3 has joined #openstack-sdks | 18:29 | |
*** amito has quit IRC | 18:31 | |
*** pas-ha has quit IRC | 18:31 | |
*** amito has joined #openstack-sdks | 18:33 | |
*** pas-ha has joined #openstack-sdks | 18:34 | |
*** e0ne has quit IRC | 18:53 | |
*** altlogbot_2 has quit IRC | 19:00 | |
*** altlogbot_0 has joined #openstack-sdks | 19:02 | |
*** altlogbot_0 has quit IRC | 19:06 | |
*** tssurya has quit IRC | 19:07 | |
*** altlogbot_3 has joined #openstack-sdks | 19:07 | |
*** efried_rolling is now known as efried | 19:11 | |
*** irclogbot_3 has quit IRC | 19:16 | |
*** tssurya has joined #openstack-sdks | 19:16 | |
*** irclogbot_1 has joined #openstack-sdks | 19:17 | |
*** irclogbot_1 has quit IRC | 19:30 | |
*** irclogbot_0 has joined #openstack-sdks | 19:32 | |
*** altlogbot_3 has quit IRC | 19:34 | |
*** altlogbot_1 has joined #openstack-sdks | 19:36 | |
*** irclogbot_0 has quit IRC | 20:45 | |
*** holser_ has quit IRC | 20:46 | |
*** irclogbot_2 has joined #openstack-sdks | 20:47 | |
*** e0ne has joined #openstack-sdks | 20:52 | |
*** altlogbot_1 has quit IRC | 20:53 | |
*** altlogbot_1 has joined #openstack-sdks | 20:55 | |
*** whoami-rajat has quit IRC | 21:29 | |
*** e0ne has quit IRC | 22:00 | |
*** gildub has quit IRC | 22:17 | |
*** tosky has quit IRC | 23:31 | |
*** zer0c00l has joined #openstack-sdks | 23:48 | |
zer0c00l | Is there an example of how to mock openstacksdk calls | 23:49 |
zer0c00l | For example i mocked openstack.connect | 23:49 |
zer0c00l | But how do i mock openstack.baremetal.chassis() call | 23:49 |
zer0c00l | The main app connects to a cluster using sdk = openstack.connect(cloud="a.b.c") | 23:52 |
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 |
zer0c00l | Is there any examples somewhere i can look? | 23:53 |
Generated by irclog2html.py 2.15.3 by Marius Gedminas - find it at mg.pov.lt!