Quantcast
Viewing all articles
Browse latest Browse all 3

Answer by brian.curtin for 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 ")

I don't have a working keystone v3 cloud to check this on, but I have been told a few times that the `*_name` fields are supposed to be capital "Default" while the equivalent `*_id` fields are "default". Try switching `user_domain_name` and `project_domain_name` to be `user_domain_id` and `project_domain_id`. Additionally, I keep seeing your questions in #openstack-sdks but you're never around for the answer. Can you email me at brian at python.org so I can know what you're trying to do here?

Viewing all articles
Browse latest Browse all 3

Trending Articles