| Posted | Nick | Remark | |
|---|---|---|---|
| #openstack-sdks - 2024-03-11 | |||
| 23:10:24 | 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-12 | |||
| 01:56:13 | opendevreview | Steve Baker proposed openstack/ansible-collections-openstack master: Add application_credential module https://review.opendev.org/c/openstack/ansible-collections-openstack/+/910463 | |
| 07:39:38 | opendevreview | Youngjun Yoo proposed openstack/python-openstackclient master: refectory: remove duplicate declaration https://review.opendev.org/c/openstack/python-openstackclient/+/912508 | |
| 07:41:27 | opendevreview | Youngjun Yoo proposed openstack/python-openstackclient master: refectory: remove unreachable code https://review.opendev.org/c/openstack/python-openstackclient/+/912509 | |
| 12:41:55 | opendevreview | Merged openstack/keystoneauth stable/2024.1: Update .gitreview for stable/2024.1 https://review.opendev.org/c/openstack/keystoneauth/+/912177 | |
| 12:46:25 | opendevreview | Merged openstack/keystoneauth stable/2024.1: Update TOX_CONSTRAINTS_FILE for stable/2024.1 https://review.opendev.org/c/openstack/keystoneauth/+/912178 | |
| 12:46:33 | opendevreview | Merged openstack/osc-lib stable/2024.1: Update .gitreview for stable/2024.1 https://review.opendev.org/c/openstack/osc-lib/+/912139 | |
| 12:46:34 | opendevreview | Merged openstack/osc-lib stable/2024.1: Update TOX_CONSTRAINTS_FILE for stable/2024.1 https://review.opendev.org/c/openstack/osc-lib/+/912140 | |
| 13:43:34 | opendevreview | Merged openstack/openstacksdk stable/2024.1: Update .gitreview for stable/2024.1 https://review.opendev.org/c/openstack/openstacksdk/+/912136 | |
| 13:43:35 | opendevreview | Merged openstack/openstacksdk stable/2024.1: Update TOX_CONSTRAINTS_FILE for stable/2024.1 https://review.opendev.org/c/openstack/openstacksdk/+/912137 | |
| 18:59:02 | opendevreview | Cyril Roelandt proposed openstack/python-openstackclient master: Fix typo in the list of Glanceclient/OSC commands https://review.opendev.org/c/openstack/python-openstackclient/+/912631 | |
| 21:47:40 | 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-13 | |||
| 01:04:21 | opendevreview | Youngjun Yoo proposed openstack/python-openstackclient master: refectoring: remove duplicate declaration https://review.opendev.org/c/openstack/python-openstackclient/+/912508 | |
| 01:25:59 | opendevreview | Steve Baker proposed openstack/ansible-collections-openstack master: CI: Don't create port with binding profile https://review.opendev.org/c/openstack/ansible-collections-openstack/+/912684 | |
| 08:18:14 | opendevreview | Kevin Honka proposed openstack/ansible-collections-openstack master: Force IPv4 only for ansible_host and ansible_ssh_host https://review.opendev.org/c/openstack/ansible-collections-openstack/+/912715 | |
| 08:29:35 | opendevreview | Kevin Honka proposed openstack/ansible-collections-openstack master: Force IPv4 only for ansible_host and ansible_ssh_host https://review.opendev.org/c/openstack/ansible-collections-openstack/+/912715 | |
| 08:35:49 | opendevreview | Kevin Honka proposed openstack/ansible-collections-openstack master: Force IPv4 only for ansible_host and ansible_ssh_host https://review.opendev.org/c/openstack/ansible-collections-openstack/+/912715 | |
| 08:49:18 | opendevreview | Kevin Honka proposed openstack/ansible-collections-openstack master: Force IPv4 only for ansible_host and ansible_ssh_host https://review.opendev.org/c/openstack/ansible-collections-openstack/+/912715 | |
| 08:55:57 | opendevreview | Kevin Honka proposed openstack/ansible-collections-openstack master: Force IPv4 only for ansible_host and ansible_ssh_host https://review.opendev.org/c/openstack/ansible-collections-openstack/+/912715 | |
| 09:42:19 | opendevreview | Merged openstack/ansible-collections-openstack master: CI: Don't create port with binding profile https://review.opendev.org/c/openstack/ansible-collections-openstack/+/912684 | |
| 13:34:59 | opendevreview | Joel Capitao proposed openstack/ansible-collections-openstack master: Set explicitly packages in setup.cfg https://review.opendev.org/c/openstack/ansible-collections-openstack/+/912772 | |
| 13:42:58 | opendevreview | Kevin Honka proposed openstack/ansible-collections-openstack master: Force IPv4 only for ansible_host and ansible_ssh_host https://review.opendev.org/c/openstack/ansible-collections-openstack/+/912715 | |
| 13:44:43 | opendevreview | Joel Capitao proposed openstack/ansible-collections-openstack master: Set explicitly packages in setup.cfg https://review.opendev.org/c/openstack/ansible-collections-openstack/+/912772 | |
| 13:55:39 | opendevreview | Simon Hensel proposed openstack/ansible-collections-openstack master: Allow to specify multiple allocation pools when creating a subnet https://review.opendev.org/c/openstack/ansible-collections-openstack/+/912775 | |
| 14:39:23 | opendevreview | Joel Capitao proposed openstack/ansible-collections-openstack master: Set explicitly packages in setup.cfg https://review.opendev.org/c/openstack/ansible-collections-openstack/+/912772 | |
| 18:23:21 | 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-14 | |||
| 03:11:51 | opendevreview | Cyril Roelandt proposed openstack/python-openstackclient master: image cache clear: fix value of default target https://review.opendev.org/c/openstack/python-openstackclient/+/912836 | |
| 07:30:32 | 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 | |
| 07:31:31 | 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 | |
| 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? | |