vic-product icon indicating copy to clipboard operation
vic-product copied to clipboard

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

Open stuclem opened this issue 7 years ago • 7 comments

@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:

  • I should be able to update the debug state of an existing container following the instructions from the documentation.

stuclem avatar Aug 02 '17 15:08 stuclem

@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!

stuclem avatar Aug 02 '17 15:08 stuclem

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

chengwang86 avatar Aug 02 '17 15:08 chengwang86

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

stuclem avatar Oct 16 '17 12:10 stuclem

@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.

chengwang86 avatar Oct 16 '17 15:10 chengwang86

Looks like this slipped through the net.

stuclem avatar Aug 30 '18 13:08 stuclem

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

zjs avatar Feb 12 '19 23:02 zjs

Moving this into the KB bucket.

stuclem avatar Apr 08 '19 09:04 stuclem