| Posted | Nick | Remark | |
|---|---|---|---|
| #openstack-sdks - 2018-04-26 | |||
| 13:38:03 | mordred | pabelanger: my biggest question is whetheror not they still show the old server id in their metadata | |
| 13:38:31 | mordred | pabelanger: (figuring out how to identify volumes that are safe to automatically delete is ... terrifying | |
| 13:38:45 | mordred | pabelanger: cause, you know, get that wrong and you could give someone a giant foot-cannon | |
| 13:40:28 | pabelanger | Agree, I too am hoping for some sort of metadata | |
| 13:42:33 | openstackgerrit | Monty Taylor proposed openstack/openstacksdk master: Add get_volume_limits() support https://review.openstack.org/564507 | |
| 13:42:43 | mordred | pabelanger: ^^ there, that's cherry-picked to sdk | |
| 13:45:06 | pabelanger | mordred: ah, right. Development on openstack-infra/shade is ending? | |
| 13:48:04 | mordred | pabelanger: wel - not quite yet - but yeah, for now we're cherry-picking patches | |
| 13:48:35 | mordred | pabelanger: hopefully we'll be able to get far enough along this cycle to make shade a thin wrapper | |
| 13:48:57 | pabelanger | ack | |
| 13:59:19 | umbSublime_ | I remember talking here a few months ago about making a cutsom api request not supported by the SDK, at the time the work-around was to use the <ressource>._action method and pass the connection.session object. I was discussed that new standard way would be eventualy implemented in the SDK. Was this added since ? | |
| 13:59:29 | mugsie | is there any easy way to take a path to openstack-client-config file in openstack-sdk? | |
| 13:59:54 | mugsie | (not using a env var) | |
| 14:33:49 | mordred | mugsie: you want to override the location of the clouds.yaml file? | |
| 14:34:23 | mugsie | yeah - I am writing a certbot plugin, and the location of the clouds.yaml file may be $RANDOM_DIR | |
| 14:34:48 | mordred | mugsie: the config_files parameter to openstack.config.loader.OpenStackConfig is what you want | |
| 14:35:20 | mordred | mugsie: there's some examples of usage in the test suite - one sec, lemme find you a reference | |
| 14:35:33 | mugsie | mordred: sweet - thanks | |
| 14:35:51 | mordred | mugsie: actualy - openstack/cloud/inventory.py and look for config_files= | |
| 14:37:07 | mordred | mugsie: but you;ll need to do config = loader.OpenStackConfig( ... then cloud_region = config.get_one( ... then conn = connection.Connection(config=cloud_region) | |
| 14:37:35 | mugsie | yup, looks doable - thanks :) | |
| 14:50:08 | openstackgerrit | Merged openstack/openstacksdk master: Fix openstack-inventory https://review.openstack.org/563754 | |
| 14:58:27 | mordred | samP: remote: https://review.openstack.org/564527 Release openstacksdk 0.13.0 | |
| 15:00:07 | Shrews | pabelanger: did you ping someone about the bifrost jobs fix? can't merge your shade change w/o it | |
| 15:00:44 | mordred | Shrews: oh - I thought I saw that was fixed - do we need to get something landed? | |
| 15:01:05 | Shrews | mordred: yeah. https://review.openstack.org/564279 | |
| 15:05:00 | mordred | dtantsur, TheJulia: ^^ have a sec to land a bifrost patch to unstick shade? | |
| 15:19:17 | dtantsur | mordred: looking | |
| 15:24:00 | crunchengine | hello mordred: with version 0.12.0, code like server = "conn.compute.get_server("db323e83-8913-4016-9d8e-7d452a3577f2")" then "server.get_console_output(conn.session)" does not work | |
| 15:24:11 | crunchengine | it fails with keystoneauth1.exceptions.catalog.EndpointNotFound: Could not find requested endpoint in Service Catalog. | |
| 15:24:39 | crunchengine | compute URL is not prepended to request URL, so it can't work, do you know why ? | |
| 16:03:50 | mordred | crunchengine: looking | |
| 16:04:22 | mordred | crunchengine: oh - don't use conn.session - use conn.compute | |
| 16:04:53 | crunchengine | already tried :/ | |
| 16:04:56 | mordred | crunchengine: server.get_console_output(conn.compute) | |
| 16:04:58 | mordred | yeah? | |
| 16:06:47 | crunchengine | oooh it working! | |
| 16:06:55 | crunchengine | let me try with _action :) | |
| 16:06:56 | mordred | \o/ | |
| 16:07:48 | mordred | the session parameter to resource ethods is currently very porrly named | |
| 16:22:46 | pabelanger | Shrews: oh, forgot about that | |
| 16:24:25 | openstackgerrit | Merged openstack/api-wg master: Add guidance on needing cache-control headers https://review.openstack.org/550468 | |
| 16:41:08 | openstackgerrit | Monty Taylor proposed openstack/keystoneauth master: Infer version from old versioned service type aliases https://review.openstack.org/564299 | |
| 16:42:25 | openstackgerrit | Monty Taylor proposed openstack/keystoneauth master: Allow tuples and sets in interface list https://review.openstack.org/564495 | |
| 16:51:48 | elmiko | cdent edleafe dtantsur ready for publish, https://etherpad.openstack.org/p/api-sig-newsletter | |
| 16:53:16 | dtantsur | LGTM | |
| 16:54:00 | cdent | elmiko: " elmiko as mentioned" not sure what you're after there | |
| 16:54:19 | elmiko | cdent: fixed, thanks | |
| 16:55:39 | cdent | lgtm | |
| 16:57:05 | elmiko | cool, gonna ship it unless edleafe tells me to pump the brakes | |
| 16:57:13 | edleafe | elmiko: hold on | |
| 16:57:23 | elmiko | yup yup, i see you changing things | |
| 16:59:54 | edleafe | yeah, the wording was a little awkward, so I changed it up a bit | |
| 17:00:05 | edleafe | If you agree with the chages, ship it! | |
| 17:00:55 | elmiko | looks good to me, thanks for the clarity edleafe =) | |
| 17:01:44 | elmiko | sent! | |
| 17:06:38 | cdent | I thought that lack of clarity was just elmiko's inimitable style | |
| 17:06:45 | cdent | which I took as artistry | |
| 17:10:48 | elmiko | cdent: pretty much XD | |
| 18:53:46 | JPL | Hi. I just started using shade to connect to our private cloud instances, and am having some issues switching projects (`connect_as_project`).Ref: https://docs.openstack.org/shade/latest/user/usage.html | |
| 18:53:53 | JPL | https://gist.github.com/jplindquist/acb4ddfb00f9e412563fb26343b138a2 | |
| 18:55:10 | harlowja | ya, i've been trying that same thing with JPL | |
| 18:55:13 | JPL | I can connect to my user-project, list servers, etc, all without issue, but if I attempt to connect_as_project to another project, I receive an error: `os_client_config.exceptions.OpenStackConfigException: Cloud defaults was not found.` | |
| 18:55:40 | harlowja | JPL u also put in a 'defaults:{}' and 'default:{}' in your clouds.yaml right | |
| 18:55:46 | harlowja | with no luck with those right? | |
| 18:56:01 | JPL | Correct | |
| 18:57:02 | JPL | Looks like it's trying to combine defaults here when it does connect_as: https://github.com/openstack-infra/shade/blob/master/shade/openstackcloud.py#L366-L369 | |
| 19:19:05 | Shrews | that code is *really* new. a bug there does not surprise me | |
| 19:23:36 | JPL | Yeah, I wouldn't be surprised, wasn't sure if anybody else had used it successfully or not :/ | |
| 19:26:20 | Shrews | so it looks like OCC is supposed to give you a 'defaults' cloud if you have none defined. If you do have some defined, you don't get that. | |
| 19:26:28 | Shrews | so yeah, i think that's a bug | |
| 19:26:39 | Shrews | may need to confer with mordred on how to handle that | |
| 19:27:31 | Shrews | i wonder why our tests didn't catch it though | |
| 19:36:10 | Shrews | JPL: out of curiosity, what is your OCC version? | |
| 19:36:26 | JPL | os-client-config (1.29.0) | |
| 19:37:41 | mordred | Shrews, JPL: I believe that's fixed in master - but I need to check | |
| 19:37:43 | mordred | (and sorry) | |
| 19:38:20 | JPL | All good, thanks for checking, I appreciate your help | |
| 19:38:38 | Shrews | i do not see a fix in master | |
| 19:38:50 | mordred | Shrews: maybe you're not squinting hard enough? | |
| 19:38:59 | Shrews | entirely possible | |
| 19:39:00 | JPL | rofl | |
| 19:39:51 | Shrews | it also might help if i were not looking at the occ git log | |
| 19:40:02 | mordred | well | |
| 19:40:28 | mordred | so - it's fixed in sdk master and I'm a bad person and didn't cherry-pick it back into shade master | |
| 19:42:15 | Shrews | lol | |
| 19:42:39 | JPL | aaah | |
| 19:43:38 | openstackgerrit | Monty Taylor proposed openstack-infra/shade master: Backport connect_as fix from openstacksdk https://review.openstack.org/564604 | |
| 19:44:15 | mordred | Shrews, JPL I'm pretty sure that will fix it - and it's no wonder it didn't get backported, it was hidden inside of a patch for using oslotest's base class | |
| 19:44:16 | mordred | sigh | |
| 19:45:26 | JPL | * highfive | |
| 19:45:26 | mordred | Shrews: with the release of sdk I put in apatch for today, we should be able to land the patch to make occ a shim and at least remove that layer of confusion - and then I think it'll be time to do the same thing with shade - the two-parallel-codebases thing is too much for my brain | |
| 19:46:10 | Shrews | too much for anyone's brain | |
| 19:54:23 | harlowja | mordred so how much of openstacksdk vs shade going forward? | |
| 19:54:29 | harlowja | merging? maybe/ | |
| 19:54:30 | harlowja | ? | |
| 19:54:49 | harlowja | someday?, soon? never? | |
| 19:54:50 | JPL | I tried updating my local copy with that diff, got this nwo:AttributeError: 'OpenStackCloud' object has no attribute 'config' | |
| 19:55:55 | mordred | JPL: ok. darn. I'll have to work slighly harder :) | |
| 19:56:32 | JPL | Traceback (most recent call last): File "shade-test.py", line 22, in <module> project_cloud = default_cloud.connect_as_project(project=project_name) File "/usr/local/lib/python2.7/site-packages/shade/openstackcloud.py", line 411, in connect_as_project return self.connect_as(**auth) File "/usr/local/lib/python2.7/site-packages/shade/openstackcloud.py", line 328, in connect_as if self.config._openstack_config: Att | |