5 Essential Tips for Maximizing Your Experience at Nutanix .NEXT for Bloggers
Hi Anish, Thanks for your reply, I haven’t resolve the issue yet. I’ve read the document that you’ve pointed and I think that maybe my proxy may be the problem, cause I need to pass autentication to it, and for what I’ve read, it’s a problem with Karbon deployment. The thing is that I’m not certain that I can avoid it. I’m working with my team on this point for now. PS : The karbon_core log file in the directory data/logs is not very helpful, the only message print is : 2020/06/15 09:45:13.463794 common_handler.go:145: [ERROR] Error type: Unauthorized, code: 401, message: Failed to get authentication info
Hi, I finally resolved the authentication error. The solution was to authenticate a first time to the Prism Central API, and store the cookie session into a variable. Then you can call the Karbon API with adding the cookie to the request, and Voila ! I rewrite my code to make the call with ansible, and it’s working. I have some additionnals errors (NTP servers are not properly set, but there are note tied to the authentication and we are currently fixing it). For information, here’s my code for ansible call : - name: Check that you can connect (GET) to Nutanix API with your identification uri: url: "https://{{ prism_central_api_url }}:{{ prism_central_api_port }}/api/nutanix/v3/clusters/list" user: "{{ prism_central_user }}" password: "{{ prism_central_password }}" method: "POST" body: "{{ lookup('file', 'nutanix-list-cluster.json') }}" body_format: json force_basic_auth: yes validate_certs: no return_content: yes status_code: 200 register: log
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.