| Posted | Nick | Remark | |
|---|---|---|---|
| #openstack-sdks - 2024-03-14 | |||
| 07:33:58 | opendevreview | Kevin Honka proposed openstack/ansible-collections-openstack master: add an option to use only IPv4 only for ansible_host and ansible_ssh_host https://review.opendev.org/c/openstack/ansible-collections-openstack/+/912715 | |
| 14:50:30 | opendevreview | Joel Capitao proposed openstack/ansible-collections-openstack master: Disable auto-discovery for setuptools https://review.opendev.org/c/openstack/ansible-collections-openstack/+/912772 | |
| #openstack-sdks - 2024-03-15 | |||
| 21:13:56 | opendevreview | Oria Weng proposed openstack/openstacksdk master: Identity: Add support for os_inherit_extension_inherited_to for role_assignments https://review.opendev.org/c/openstack/openstacksdk/+/913448 | |
| 21:19:20 | opendevreview | Oria Weng proposed openstack/python-openstackclient master: Identity: Migrate 'role assignment' commands to SDK https://review.opendev.org/c/openstack/python-openstackclient/+/910664 | |
| #openstack-sdks - 2024-03-16 | |||
| 07:33:11 | opendevreview | BAESUKJU proposed openstack/python-openstackclient master: Add new glance cache command https://review.opendev.org/c/openstack/python-openstackclient/+/893905 | |
| #openstack-sdks - 2024-03-18 | |||
| 07:31:41 | opendevreview | Wenping Song proposed openstack/openstacksdk master: Adding basic implementation for Accelerator attribute resource https://review.opendev.org/c/openstack/openstacksdk/+/883238 | |
| 09:43:07 | opendevreview | Wenping Song proposed openstack/openstacksdk master: Adding basic implementation for Accelerator attribute resource https://review.opendev.org/c/openstack/openstacksdk/+/883238 | |
| 14:04:25 | opendevreview | OpenStack Release Bot proposed openstack/python-openstackclient stable/2024.1: Update .gitreview for stable/2024.1 https://review.opendev.org/c/openstack/python-openstackclient/+/913564 | |
| 14:04:27 | opendevreview | OpenStack Release Bot proposed openstack/python-openstackclient stable/2024.1: Update TOX_CONSTRAINTS_FILE for stable/2024.1 https://review.opendev.org/c/openstack/python-openstackclient/+/913565 | |
| 14:04:29 | opendevreview | OpenStack Release Bot proposed openstack/python-openstackclient master: Update master for stable/2024.1 https://review.opendev.org/c/openstack/python-openstackclient/+/913566 | |
| 17:29:47 | opendevreview | Merged openstack/python-openstackclient stable/2024.1: Update .gitreview for stable/2024.1 https://review.opendev.org/c/openstack/python-openstackclient/+/913564 | |
| 17:29:49 | opendevreview | Merged openstack/python-openstackclient stable/2024.1: Update TOX_CONSTRAINTS_FILE for stable/2024.1 https://review.opendev.org/c/openstack/python-openstackclient/+/913565 | |
| 19:12:37 | ozzzo_work | I'm trying to use the SDK to access Swift user accounts with admin credentials. I'm connected with admin credentials and can do non-swift stuff, but for Swift I need to use connect_as | |
| 19:12:38 | ozzzo_work | https://opendev.org/openstack/openstacksdk/src/branch/master/openstack/cloud/openstackcloud.py#L123 | |
| 19:12:54 | ozzzo_work | So I tried a few permutations of this: | |
| 19:13:04 | ozzzo_work | https://paste.openstack.org/show/by8nUrkR118yAWQUVLkG/ | |
| 19:13:41 | ozzzo_work | But I am getting errors: TypeError: connect_as() takes 1 positional argument but 2 were given | |
| 19:14:23 | ozzzo_work | What should **kwargs look like? | |
| 19:15:44 | ozzzo_work | If I try this: | |
| 19:15:46 | ozzzo_work | cloud.connect_as(OS_STORAGE_PROJECT_ID=project.id) | |
| 19:16:00 | ozzzo_work | I get "got an unexpected keyword argument 'OS_STORAGE_PROJECT_ID'" | |
| 19:24:55 | frickler | ozzzo_work: how about cloud.connect_as(project_id='my_project_id') ? | |
| 19:36:03 | ozzzo_work | frickler: That was it, ty! | |
| 19:38:17 | ozzzo_work | but I can't seem to use the connection | |
| 19:39:35 | ozzzo_work | I'm trying this: https://paste.openstack.org/show/bEgA98PkbaAiSOpceQFX/ | |
| 19:39:48 | ozzzo_work | but I get "The request you have made requires authentication. | |
| 19:41:20 | ozzzo_work | Do I need to provide more parameters to connect_as? | |
| 23:02:26 | opendevreview | Steve Baker proposed openstack/ansible-collections-openstack master: Add application_credential module https://review.opendev.org/c/openstack/ansible-collections-openstack/+/910463 | |
| 23:02:27 | opendevreview | Steve Baker proposed openstack/ansible-collections-openstack master: Include usable cloud config in app credential https://review.opendev.org/c/openstack/ansible-collections-openstack/+/913609 | |
| #openstack-sdks - 2024-03-19 | |||
| 00:40:25 | opendevreview | Steve Baker proposed openstack/ansible-collections-openstack master: Include usable cloud config in app credential https://review.opendev.org/c/openstack/ansible-collections-openstack/+/913609 | |
| 03:41:17 | opendevreview | Cyril Roelandt proposed openstack/openstacksdk master: image: make sure the target for "clear_cache" is valid https://review.opendev.org/c/openstack/openstacksdk/+/913614 | |
| 03:49:05 | opendevreview | Steve Baker proposed openstack/ansible-collections-openstack master: Include usable cloud config in app credential https://review.opendev.org/c/openstack/ansible-collections-openstack/+/913609 | |
| 06:41:40 | opendevreview | Steve Baker proposed openstack/ansible-collections-openstack master: Include usable cloud config in app credential https://review.opendev.org/c/openstack/ansible-collections-openstack/+/913609 | |
| 14:44:01 | opendevreview | Merged openstack/python-openstackclient master: Bug Fix, Default SG Rule Custom SG https://review.opendev.org/c/openstack/python-openstackclient/+/909815 | |
| 17:33:20 | opendevreview | Merged openstack/ansible-collections-openstack master: router: Allow specifying external network name in a different project https://review.opendev.org/c/openstack/ansible-collections-openstack/+/905979 | |
| 20:27:04 | ozzzo_work | I'm trying to use connect_as to get information about a user's Swift containers as admin user. I'm able to open a connection, but I'm having trouble using it. What am I missing? | |
| 20:27:05 | ozzzo_work | https://paste.openstack.org/show/bB6KnWy3qROZKbecmnp1/ | |
| 20:27:21 | ozzzo_work | I get error "The request you have made requires authentication." | |
| 21:14:51 | opendevreview | Steve Baker proposed openstack/ansible-collections-openstack master: Include usable cloud config in app credential https://review.opendev.org/c/openstack/ansible-collections-openstack/+/913609 | |
| 22:49:45 | opendevreview | Steve Baker proposed openstack/ansible-collections-openstack master: Include usable cloud config in app credential https://review.opendev.org/c/openstack/ansible-collections-openstack/+/913609 | |
| 23:58:00 | opendevreview | Steve Baker proposed openstack/ansible-collections-openstack master: Include usable cloud config in app credential https://review.opendev.org/c/openstack/ansible-collections-openstack/+/913609 | |
| #openstack-sdks - 2024-03-20 | |||
| 01:49:26 | opendevreview | Steve Baker proposed openstack/ansible-collections-openstack master: Include usable cloud config in app credential https://review.opendev.org/c/openstack/ansible-collections-openstack/+/913609 | |
| 03:33:17 | opendevreview | Steve Baker proposed openstack/ansible-collections-openstack master: Add application_credential module https://review.opendev.org/c/openstack/ansible-collections-openstack/+/910463 | |
| 14:29:59 | ozzzo_work | Can anyone help with my sdk question? | |
| 14:30:13 | ozzzo_work | THis is what I'm trying: https://paste.openstack.org/show/bB6KnWy3qROZKbecmnp1/ | |
| 14:30:46 | diablo_rojo | stephenfin or gtema ^ ? | |
| 14:31:03 | diablo_rojo | ozzzo_work: trying to help you out :) I don't know the answer, but maybe they do. | |
| 14:31:37 | stephenfin | I've no idea how that 'connect_as' functionality works, I'm afraid. I've never used it | |
| 14:32:14 | gtema | the error says that you have not received proper auth | |
| 14:32:57 | gtema | problem with swift is that the endpoint has a different format and eventually "connect_as" is not going the full re-auth way respecting new endpoint format | |
| 14:33:04 | diablo_rojo | stephenfin: thanks for the response anyway! | |
| 14:34:10 | ozzzo_work | This is the output I get: https://paste.openstack.org/show/baZT5Biy8fSKQV33hygi/ | |
| 14:35:58 | gtema | you should try to change your script and enable debugging before doing auth ("openstack.enable_logging(debug=True)) | |
| 14:36:44 | gtema | with logging enabled you should see 2 things: reconnect causes going to keystone and fetching new token AND query to the swift with new project_id in the url | |
| 14:37:18 | ozzzo_work | ok trying that | |
| 14:46:19 | ozzzo_work | When I do stuff with my admin connection I get back "RESP" and "RESP BODY". The "usercloud = cloud.connect_as(project_id=project.id)" doesn't generate any debug output but the print statement after indicates that it worked | |
| 14:46:36 | ozzzo_work | After creating the usercloud connection with connect_as, and calling "container_list = usercloud.list_containers()" I get "Request returned failure status: 401" | |
| 14:47:43 | gtema | is the url list_containers result in correct or not? | |
| 14:48:26 | ozzzo_work | it llooks correct; it includes the customer project ID | |
| 14:49:30 | gtema | just to ensure: can you pls create a new clouds.yaml entry with admin creds and the desired project_id With that try to connect and list containers | |
| 14:50:52 | ozzzo_work | From CLI, when I access customer projects as admin, I export a new OS_AUTH_URL that includes the customer project ID instead of the admin project ID, and that works | |
| 14:51:11 | gtema | do not use osc, use sdk only | |
| 14:51:23 | gtema | they are not equals wrt swift | |
| 14:51:48 | ozzzo_work | oic you mean auth into Swift with the customer OS_AUTH_URL and then run the script? | |
| 14:52:51 | gtema | I mean clouds.yaml with admin creds and user_project_id set to the one you try to switch to | |
| 14:56:16 | ozzzo_work | I've never used a clouds.yaml; I have everything set in my env. I think I need to set OS_PROJECT_ID in my env | |
| 14:56:58 | gtema | then what is the project.id in your script? | |
| 14:58:09 | ozzzo_work | that's an input. I provide the project I want to check as a parameter | |
| 14:59:01 | gtema | then with all your initial env set OS_PROJECT_ID to that one you pass as input parameter and with SDK try to list containers | |
| 14:59:11 | gtema | its bad that you do not use clouds.yaml | |
| 14:59:31 | ozzzo_work | where can I find a document on how to use clouds.yaml? | |
| 15:00:41 | ozzzo_work | ok I found it; reading here: https://docs.openstack.org/python-openstackclient/train/configuration/index.html | |
| 15:00:49 | ozzzo_work | I'll experiment with this; thanks for your help! | |
| 15:00:59 | gtema | https://docs.openstack.org/openstacksdk/latest/user/guides/connect_from_config.html | |
| 15:01:27 | ozzzo_work | reading that also, ty! | |
| 15:02:08 | gtema | btw, pls try to change connect_as in your script to "connect_as(project={"id": project.id})" | |
| 15:02:22 | gtema | I suppose you are expected to pass a dict there and not just project_id | |
| 15:15:57 | gtema | you definitely need to pass an auth info as dict, so it's not project_id, but dict of project: {"id": XXX} | |
| 15:16:08 | gtema | ozzzo_work ^^^ | |
| 15:17:52 | ozzzo_work | Trying: usercloud = cloud.connect_as(project={"id": project.id}) | |
| 15:18:06 | ozzzo_work | That throws error: TypeError: __init__() got an unexpected keyword argument 'project' | |
| 15:19:18 | gtema | does it tell which line? | |
| 15:20:29 | ozzzo_work | urd. oy | |
| 15:20:41 | ozzzo_work | yes, it's the connect_as line | |
| 15:20:46 | ozzzo_work | if I do this: usercloud = cloud.connect_as(project_id={"project": project.id}) | |
| 15:21:07 | ozzzo_work | then it creates the usercloud connection and I'm back to "The request you have made requires authentication. " | |
| 15:22:22 | gtema | second invocation is clearly wrong | |
| 15:23:56 | gtema | and what if you do "connect_as_project({"id": XXX}) | |
| 15:26:51 | ozzzo_work | Back to "The request you have made requires authentication" | |
| 15:27:45 | ozzzo_work | I tried hardcoding the user project ID to replace XXX, and also: usercloud = cloud.connect_as_project({"id": project.id}) | |
| 15:28:24 | ozzzo_work | in both cases I see the usercloud connection created but then the container_list throws the auth error | |
| 15:45:59 | opendevreview | Merged openstack/ansible-collections-openstack master: Disable auto-discovery for setuptools https://review.opendev.org/c/openstack/ansible-collections-openstack/+/912772 | |
| 18:16:26 | opendevreview | Steve Baker proposed openstack/ansible-collections-openstack master: Add application_credential module https://review.opendev.org/c/openstack/ansible-collections-openstack/+/910463 | |
| #openstack-sdks - 2024-03-23 | |||
| 15:04:31 | opendevreview | Merged openstack/codegenerator master: Initial import https://review.opendev.org/c/openstack/codegenerator/+/910960 | |
| 15:06:07 | opendevreview | Artem Goncharov proposed openstack/codegenerator master: Add jobs to generate Nova OpenAPI spec https://review.opendev.org/c/openstack/codegenerator/+/910971 | |
| 15:23:36 | opendevreview | Artem Goncharov proposed openstack/codegenerator master: Add jobs to generate networking openapi spec https://review.opendev.org/c/openstack/codegenerator/+/911101 | |
| 15:27:44 | opendevreview | Merged openstack/codegenerator master: Add jobs to generate Nova OpenAPI spec https://review.opendev.org/c/openstack/codegenerator/+/910971 | |
| 15:28:18 | opendevreview | Artem Goncharov proposed openstack/codegenerator master: Add jobs to generate cinder OpenAPI spec https://review.opendev.org/c/openstack/codegenerator/+/911109 | |
| 15:28:24 | opendevreview | Artem Goncharov proposed openstack/codegenerator master: Add jobs to generate Keystone OpenAPI spec https://review.opendev.org/c/openstack/codegenerator/+/911110 | |
| 15:28:29 | opendevreview | Artem Goncharov proposed openstack/codegenerator master: Add jobs to generate Glance OpenAPI spec https://review.opendev.org/c/openstack/codegenerator/+/911111 | |