Custom Search

Tuesday, June 9, 2015

How to debug neutron command flow in contrail vnc_openstack

How to debug neutron command opencontrail vnc_openstack

1)
Add breakpoint or print statement
#sudo vim /usr/local/lib/python2.7/dist-packages/vnc_openstack/neutron_plugin_interface.py

def plugin_http_post_network(self):

    print "=======", context['operation']
    import pdb; pdb.set_trace()



2)
Restart API Server

#python /usr/local/lib/python2.7/dist-packages/vnc_cfg_api_server/vnc_cfg_api_server.py --conf_file /etc/contrail/contrail-api.conf --reset_config --rabbit_user guest --rabbit_password contrail123 & echo $! >/home/dev-net/contrail-installer/status/contrail/apiSrv.pid; fg || echo "apiSrv failed to start" | tee "/home/dev-net/contrail-installer/status/contrail/apiSrv.failure"

3)
Fire neutron commands

#neutron net-list
#neutron net-create nw1





No comments:

Post a Comment