vmware / vic-product

vSphere Integrated Containers enables VMware customers to deliver a production-ready container solution to their developers and DevOps teams.
https://vmware.github.io/vic-product/
Other
177 stars 92 forks source link

document how to change the debug state/level of an existing container #510

Open stuclem opened 7 years ago

stuclem commented 7 years ago

@chengwang86 commented on Fri Apr 07 2017

User Statement:

As a VIC user, after I change the debug state of my VCH, new containers created by the VCH will take the updated debug state for logging. However, existing containers will still use the previous debug state. We need documentation on how to use govc or direct editing to update the debug state for such existing containers when needed.

Acceptance Criteria:

stuclem commented 7 years ago

@chengwang86 I just found this one and migrated it to the vic-product repo. Do we need this in the doc for 1.2? Thanks!

chengwang86 commented 7 years ago

@stuclem Yes, I think we do need this for 1.2 since the corresponding feature (vic-machine configure --debug) is in 1.2

stuclem commented 7 years ago

Awaiting confirmation from @chengwang86 as to whether this was implemented in 1.2.

chengwang86 commented 7 years ago

@stuclem Here are the steps:

  1. stop the container via docker stop
  2. connect to the vcenter server via govc.
  3. update the debug level configuration for the container via govc vm.change -vm vmName -e guestinfo.vice./diagnostics/debug=Debug_level. Here vmName is usually containerName-containerShortID and can be replaced by containerName*. The user set the Debug_level to a desired integer.
  4. start the container via docker start.
stuclem commented 6 years ago

Looks like this slipped through the net.

zjs commented 5 years ago

Perhaps this would be more appropriate for a KB (or iKB) as there's no user-friendly container debug logging.

stuclem commented 5 years ago

Moving this into the KB bucket.