PowerStore: SMB domain join status is not updated properly when using svc_nas_cifssupport
Summary: When joining or unjoining an Active Directory domain using the svc_nas_cifssupport command-line tool, PowerStore UI may not reflect the new state of the SMB server's join state.
Symptoms
An inability to manage SMB server Active Directory configuration through the PowerStore UI or PSTCLI.
The following error my appear:

Cause
While the internal state of the SMB server is updated appropriately, when joining or unjoining a domain using svc_nas_cifssupport, the current status is not properly synced to the PowerStore management database.
Resolution
How to identify the issue:
Attempting to modify the SMB server Active Directory join state using the PowerStore UI may return conflicting errors when attempting to modify the join state. For instance, if the domain is joined using svc_nas_cifssupport, the PowerStore UI may show that it is not joined and return an error when trying to join. Also, the system my report issues with AD connectivity although no impact occurs.
# pstcli -d POWERSTORE_MGMT_IP -u admin -service -session
cli> nas_server show -query "name = NAS_SERVER_NAME" -select id
# | id
----+--------------------------------------
1 | xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
cli> nas_server object_sync -object_type nas_server -id NAS_SERVER_ID_FROM_ABOVE -mode local
Success
cli> smb_server show
# | id | computer_name | domain | workgroup | is_standalone | is_joined | nas_server.name
----+--------------------------------------+---------------+----------------+-----------+---------------+-----------+-----------------
1 | yyyyyyyy-yyyy-yyyy-yyyy-xxxxxxxxxxxx| COMPUTER_NAME | AD_DOMAIN.COM | | no | yes | NAS_SERVER_NAME
Workaround:
The PowerStore platform current state can be properly synced when using the PSTCLI. Further changes can be done using normal means in the GUI/pstcli.