1)
List "neutron-server" service and copy the command
#ps -aux | grep neutron
2)
Command used to start "neutron-server" service
#/usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --log-file /var/log/neutron/server.log --config-file /etc/neutron/plugins/opencontrail/ContrailPlugin.ini
3)
Stop "neutron-server" service
#sudo /etc/init.d/neutron-server stop
4)
Start "neutron-server" service manually
#/usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --log-file /var/log/neutron/server.log --config-file /etc/neutron/plugins/opencontrail/ContrailPlugin.ini
5)
Find the path of neutron package
#find /usr -name neutron
#cd /usr/lib/python2.7/dist-packages/neutron
#ls
6)
Goto "api" directory, open a *.py file anf add debug statement.
Example:
#import pdb; pdb.set_trace()
7)
Restart "neutron-server" service manually
#/usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --log-file /var/log/neutron/server.log --config-file /etc/neutron/plugins/opencontrail/ContrailPlugin.ini
8)
Fire OpenStack neutron CLI commands
Examples:
#neutron net-list
#neutron subnet-list
List "neutron-server" service and copy the command
#ps -aux | grep neutron
2)
Command used to start "neutron-server" service
#/usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --log-file /var/log/neutron/server.log --config-file /etc/neutron/plugins/opencontrail/ContrailPlugin.ini
3)
Stop "neutron-server" service
#sudo /etc/init.d/neutron-server stop
4)
Start "neutron-server" service manually
#/usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --log-file /var/log/neutron/server.log --config-file /etc/neutron/plugins/opencontrail/ContrailPlugin.ini
5)
Find the path of neutron package
#find /usr -name neutron
#cd /usr/lib/python2.7/dist-packages/neutron
#ls
6)
Goto "api" directory, open a *.py file anf add debug statement.
Example:
#import pdb; pdb.set_trace()
7)
Restart "neutron-server" service manually
#/usr/bin/python /usr/bin/neutron-server --config-file /etc/neutron/neutron.conf --log-file /var/log/neutron/server.log --config-file /etc/neutron/plugins/opencontrail/ContrailPlugin.ini
8)
Fire OpenStack neutron CLI commands
Examples:
#neutron net-list
#neutron subnet-list
No comments:
Post a Comment