Already a member?
Sign in
Welcome! This is a website that everyone can build together. It's easy!
Location: Management API
Discussion: ovs-agent authentication
Keyword tags:
api
management
oracle vm
rpc
xml
Watch
|
Insystek |
ovs-agent authentication
Nov 27 2007, 11:38 AM EST Does anyone know the exposed xmlrpc method to pass the username and password to the ovsagent? (i.e. session.login_with_password) I am accessing the agent but, recieving an Code 403 Unauthorized HTTP Access attempt in the var/log/ovs-agent/ovs_root.log 1 out of 4 found this valuable. Do you? |
|
tmro tmro |
RE: ovs-agent authentication
Dec 27 2007, 7:34 PM EST Sure would be nice if they would produce an API guide that had some examples. I found the same problem and ended up having to go through the OVSAgentServer.py and OVSServerProxy.py code... You can use the ServerProxy method of xmlrpclib, passing the username/password, using basic authentication. However, I noticed that what I *thought* was the password I was using for "admin", was not the same as what was being used by the ovs-agent process. When you run /etc/init.d/ovs-agent configure, and it prompts you for a password, it looks like it updates /etc/ovs-agent/passwdfile as well as /etc/ovs-agent/agent.ini. However, to execute XML-RPC remote methods, authentication to the OVS agent is done using the username of "admin" and password stored in /etc/ovs-agent/agent.ini: ;admin.password -- ;admin is the default privileged user with full control of ovs-agent, ;agtctl used this passwd to shutdown ovs-agent gracefully ;this passwd will be generated randomly when /etc/init.d/ovs-agent configure ;is called. ;(HIDDEN) admin.password=<passwd> Example: #!/bin/env python from xmlrpclib import ServerProxy server = ServerProxy("https://admin:<passwd>@<hostname>:8899") print server.echo( "Hello World!" ) ######################################### Hope this helps. -Todd 0 out of 3 found this valuable. Do you? |

