OpenStack Swift auth_version Invalid Version

Description

Version : TrueNAS-12.0-U3.1

Impact : Unable to create any OpenStack Swift cloud credentials, which prevents setting up cloud sync tasks.

Details:

When trying to add OpenStack Swift cloud credentials, I am getting the following error:

Error: Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 137, in call_method
result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self,
File "/usr/local/lib/python3.8/site-packages/middlewared/main.py", line 1195, in _call
return await methodobj(*prepared_call.args)
File "/usr/local/lib/python3.8/site-packages/middlewared/schema.py", line 973, in nf
return await f(*args, **kwargs)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/cloud_sync.py", line 559, in verify
await self._validate("cloud_sync_credentials_create", data)
File "/usr/local/lib/python3.8/site-packages/middlewared/plugins/cloud_sync.py", line 650, in _validate
raise verrors
middlewared.service_exception.ValidationErrors: [EINVAL] cloud_sync_credentials_create.attributes.auth_version: Invalid choice: 3

How to replicate:

Create a new Cloud Credential
Select OpenStack Swift as the provider
Fill in required fields
Select any version of AuthVersion (v3 in this case)
Save
Edit the Cloud Crednials you just created
Note immediately that the AuthVersion field is not displaying v3, but rather the placeholder text "AuthVersion". Also note that some additional fields are now appearing under "Authentication Advanced Options": User Id , User Domain , Tentant Domain .
Press "Verify Credential", get the above error.

Additional obersvations.

If you subsequently re-select "v3" for Auth Version , the User Id , User Domain , and Tentant Domain fields disappear.
If you re-select "v3" for Auth Version and press "Verify Credntial" without saving, the following error occurs:

Error: 2021/05/17 09:28:11 Failed to create file system for "remote:": Bad Request

I did see ticket #109311 ( https://jira.ixsystems.com/browse/NAS-109311 ) which appears to be a similar bug, however this issue still exists in TrueNAS-12.0-U3.1

Problem/Justification

None

Impact

None

is cloned by

SmartDraw Connector

Katalon Manual Tests (BETA)

Activity

Show:

Bug Clerk July 7, 2021 at 11:21 AM

Bug Clerk July 7, 2021 at 11:01 AM

Fletcher Johnston May 17, 2021 at 2:11 PM

Please find attached the requested debug file

Bonnie Follweiler May 17, 2021 at 1:53 PM

Thank you for the report, .

 

Can you please attach a debug file to this ticket? To generate a debug file on TrueNAS CORE, log in to the TrueNAS web interface, go to System > Advanced, then click Save Debug and wait for the file to download to your local system. In TrueNAS SCALE, this option is in System Settings > Advanced.

Complete

Details

Assignee

Reporter

Labels

Impact

High

Time remaining

0m

Components

Affects versions

Priority

Katalon Platform

Created May 17, 2021 at 1:31 PM
Updated July 6, 2022 at 8:58 PM
Resolved July 8, 2021 at 12:37 PM