openbaton / openbaton-cli Goto Github PK
View Code? Open in Web Editor NEWThe new openbaton CLI
License: Apache License 2.0
The new openbaton CLI
License: Apache License 2.0
The openbaton-cli seems to work fine with http, but on https, I am getting a certificate verification failure when I run it.
Additional Info: I have both Python 2.7.12 as well as Python3 on this system. I have run it with Python 3.5.2 (python3 openbaton) but when I run it with Python 3 I get an import error (tabulate module). When I run it with Python 2 (python openbaton) it will work properly when nfvo configure on port 8080 with https, but not on port 8443 https (error below).
This might be related to Python Requests. I have considered issuing my own self-signed certificate and putting that into the pk12 file of the nfvo, but everything else in openbaton seems to be working just fine so I hesitate to do that. Anyone have any suggestions?
openbaton@ubuntu-openbaton:/opt/wittling/openbaton/develop-branch/openbaton-cli# env | grep OB
OB_NFVO_PORT=8443
OB_NFVO_IP=172.31.0.136
OB_PASSWORD=openbaton
OB_USERNAME=openbaton-user
OB_PROJECT_ID=b4cf42ce-3b12-40b7-9edf-a9c851f026ab
openbaton@ubuntu-openbaton:/opt/wittling/openbaton/develop-branch/openbaton-cli# ./openbaton -pid ${OB_PROJECT_ID} -u openbaton-user -p openbaton -d ip 172.31.0.136 --nfvo-port 8443 project list
usage: openbaton [-h] [-pid PROJECT_ID] [-u USERNAME] [-p PASSWORD] [-d]
[-ip NFVO_IP] [--nfvo-port NFVO_PORT]
{project,vnfci,vdu,log,vnfd,csarnsd,nsd,csarvnfd,vim,vnfr,service,user,key,vnfpackage,nsr,event,market}
{list,show,delete,create} [params [params ...]]
openbaton: error: argument agent: invalid choice: 'ip' (choose from 'project', 'vnfci', 'vdu', 'log', 'vnfd', 'csarnsd', 'nsd', 'csarvnfd', 'vim', 'vnfr', 'service', 'user', 'key', 'vnfpackage', 'nsr', 'event', 'market')
root@ubuntu-openbaton:/opt/wittling/openbaton/develop-branch/openbaton-cli# ./openbaton -pid ${OB_PROJECT_ID} -u openbaton-user -p openbaton -d -ip 172.31.0.136 --nfvo-port 8443 project list
DEBUG:org.openbaton.cli.MainAgent:username 'openbaton-user'
DEBUG:org.openbaton.cli.MainAgent:project_id 'b4cf42ce-3b12-40b7-9edf-a9c851f026ab'
DEBUG:org.openbaton.cli.MainAgent:nfvo_ip '172.31.0.136'
DEBUG:org.openbaton.cli.MainAgent:nfvo_port '8443'
DEBUG:urllib3.connectionpool:Starting new HTTPS connection (1): 172.31.0.136
ERROR: HTTPSConnectionPool(host='172.31.0.136', port=8443): Max retries exceeded with url: /oauth/token (Caused by SSLError(SSLError("bad handshake: Error([('SSL routines', 'ssl3_get_server_certificate', 'certificate verify failed')],)",),))
when trying to scale out:
(openbaton-cli) openbaton-cli|master ⇒ ./openbaton --format json vnfci create '{"vnfComponent":{"connection_point":[{"floatingIp":"random","interfaceId":0,"virtual_link_reference":"private"}]},"vimInstanceNames":["vim-instance"]}'
ERROR: usage: openbaton vnfci create <vnfcomponent> <nsr_id> <vnfr_id> [vdu_id [standby]]
(openbaton-cli) openbaton-cli|master ⇒
(openbaton-cli) openbaton-cli|master ⇒
(openbaton-cli) openbaton-cli|master ⇒
(openbaton-cli) openbaton-cli|master ⇒ ./openbaton --format json vnfci create 9c2c3f71-934c-42dc-9317-e5362172a212 2aa60e13-16be-43ec-bf9b-222ea20e12bd '{"vnfComponent":{"connection_point":[{"floatingIp":"random","interfaceId":0,"virtual_link_reference":"private"}]},"vimInstanceNames":["vim-instance"]}'
ERROR: 9c2c3f71-934c-42dc-9317-e5362172a212 is neither a file nor does it seem to be valid JSON
Without asking which one to use
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.