I have connected the openstack cloud by openstacksdk:
auth_args = {
'auth_url':settings.AUTH_URL,
'project_name':'admin',
'user_domain_name':'default',
'project_domain_name':'default',
'username':username,
'password':password
}
print ('before connect')
connection = connection.Connection(**auth_args)
conn = singleton.OpenstackConn()
conn.conn = connection
I have this issue in my project when I access the `conn.compute.servers()`.
> HttpException: HttpException: Invalid input for field 'identity/password/user/password': None is not of type 'string' (HTTP 400) (Request-ID: req-7a30ccd1-fd09-4ec8-bb27-e532237d7738), Invalid input for field 'identity/password/user/password': None is not of type 'string'
My code is:
for server in op_conn.conn.compute.servers(): # there comes the error.
print(" a server ")
↧