This topic describes how to upload an ODP installation package to the obshell meta-database by using obshell-sdk-python.
Note
This API is supported starting with obshell V4.2.6.
Considerations
Make sure that obshell is running normally.
Make sure that ODP is deployed on the node corresponding to the client.
Sample code
from obshell import ClientSet
from obshell.auth import PasswordAuth
# Create a client instance. The node address is '10.10.10.1', the port is 2886, and the agent password is '***'.
client = ClientSet("10.10.10.1", 2886, PasswordAuth(agent_password='***'))
client.v1.upload_obproxy_pkg(
"/home/download/obproxy-ce-4.3.3.0-5.el7.x86_64.rpm")
References
For more information about the API for uploading an ODP installation package, see Upload an ODP installation package.