Joining a Embedded vCenter Server Appliance 6.7 or External Platform Services Controller 6.7 to an Existing SSO Domain Fails with: "Failed to validate sso.(log_info() takes 1 positional argument but 2 were given)"
search cancel

Joining a Embedded vCenter Server Appliance 6.7 or External Platform Services Controller 6.7 to an Existing SSO Domain Fails with: "Failed to validate sso.(log_info() takes 1 positional argument but 2 were given)"

book

Article ID: 317566

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

  • Deploying an Embedded vCenter Server Appliance 6.7 or an External Platform Services Controller 6.7 to an Existing SSO domain fails displaying the following error message:

Failed to validate sso.(log_info() takes 1 positional argument but 2 were given)



Cause

This issue occurs due to a syntax error in the sso-cli.py utility that was introduced in vSphere 6.7.

Resolution

This issue is resolved in vCenter Server 6.7.0c.

Workaround:

Correct the syntax error in sso-cli.py with the steps below on the vCenter Server Appliance after stage 1,

  1. Log into the bash shell as root.
  2. Create a backup of the sso-cli.py utility. 
cp /opt/vmware/share/htdocs/vami/backend/sso-cli.py /tmp/sso-cli.py
  1. Change the sso-cli.py utility to be writable. 
chmod 744 /opt/vmware/share/htdocs/vami/backend/sso-cli.py
  1. Edit the sso-cli.py utility to correct the syntax error on line 82.
From:
vami.log_info("Ignoring non-IP/DNS subjectAltName " "extension: '%s'", ext_str)

To:
vami.log_info("Ignoring non-IP/DNS subjectAltName "
            "extension: '%s'" % ext_str)


where the second line is indented from the first line by 12 spaces.

Note: For more details on editing see Editing files on an ESX host using vi or nano.  
  1. Revert the changes in step 3 to make the sso-cli.py utility read-only.  
chmod 444 /opt/vmware/share/htdocs/vami/backend/sso-cli.py