Skip to content

Debug API server

Tong edited this page Mar 22, 2018 · 5 revisions
  1. Figure out the docker that belongs to api server
docker ps | grep api
  1. Remove the running API server docker container
docker rm -f DOCKER_ID
  1. Run docker with a dummy entry point
docker run -itd --name config_api_1 --entrypoint sleep --net host --env-file  /etc/contrail/common_config.env opencontrailnightly/contrail-controller-config-api:latest 1000000
  1. Log into docker
docker exec -it <DOCKER_ID> bash
  1. run the entrypoint.sh which is under root
sh entrypoint.sh
  1. Run the VNC server in foreground
/usr/bin/python /usr/bin/contrail-api --conf_file /etc/contrail/contrail-api.conf --conf_file /etc/contrail/contrail-keystone-auth.conf --worker_id 0

After this you can make changes to the file on docker,set debug points, stop and relaunch the vnc server process

Clone this wiki locally