-
Notifications
You must be signed in to change notification settings - Fork 6
Debug API server
Tong edited this page Mar 22, 2018
·
5 revisions
- Figure out the docker that belongs to api server
docker ps | grep api
- Remove the running API server docker container
docker rm -f DOCKER_ID
- 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
- Log into docker
docker exec -it <DOCKER_ID> bash
- run the entrypoint.sh which is under root
sh entrypoint.sh
- 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