Bug 1420593
Summary: | [DOCS] There is no doc for the Openshift Service log level | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | OpenShift Container Platform | Reporter: | zhtang | ||||||||||
Component: | Documentation | Assignee: | Michael Burke <mburke> | ||||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Junqi Zhao <juzhao> | ||||||||||
Severity: | high | Docs Contact: | Vikram Goyal <vigoyal> | ||||||||||
Priority: | medium | ||||||||||||
Version: | 3.4.0 | CC: | aos-bugs, ccoleman, chunchen, jokerman, juzhao, mmccomas, skuznets, xiazhao, xtian, zhtang | ||||||||||
Target Milestone: | --- | ||||||||||||
Target Release: | --- | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2017-04-10 13:29:54 UTC | Type: | Bug | ||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||
Documentation: | --- | CRM: | |||||||||||
Verified Versions: | Category: | --- | |||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
Embargoed: | |||||||||||||
Attachments: |
|
Description
zhtang
2017-02-09 03:11:38 UTC
Zhenxing -- Is the setting in the /etc/sysconfig/atomic-openshift-node or /etc/sysconfig/atomic-openshift-master files different from the setting here? oc options The following options can be passed to any command: --loglevel=0: Set the level of log output (0-10) Full output: $ oc options The following options can be passed to any command: --api-version='': DEPRECATED: The API version to use when talking to the server --as='': Username to impersonate for the operation. --certificate-authority='': Path to a cert. file for the certificate authority. --client-certificate='': Path to a client certificate file for TLS. --client-key='': Path to a client key file for TLS. --cluster='': The name of the kubeconfig cluster to use --config='': Path to the config file to use for CLI requests. --context='': The name of the kubeconfig context to use --insecure-skip-tls-verify=false: If true, the server's certificate will not be checked for validity. This will make your HTTPS connections insecure. --log-flush-frequency=5s: Maximum number of seconds between log flushes --loglevel=0: Set the level of log output (0-10) --logspec='': Set per module logging with file|pattern=LEVEL,... --match-server-version=false: Require server version to match client version -n, --namespace='': If present, the namespace scope for this CLI request. --server='': The address and port of the Kubernetes API server --token='': Bearer token for authentication to the API server. --user='': The name of the kubeconfig user to use Hi Michael, Thank you for your explanation. I did not realize that. Regards, John Hi Michael, Before documenting all oc options, can you please let me know the official instruction of the log level first? As customer is currently looking for the information of log level. Thanks, John Hi Michael, I updated the previous comments before reading the email. So I did not see the discussion. According to Steve's reply, the log level in Openshift service is different with the one in oc options. If it is possible, can we document the log level in Openshift service first? Regards, John @Michael, We should confirm how many log levels should de listed in our documentation, if we just list 0,2,4,6,7,8, I think customers will be confused, they will ask why we don't have 1,3,5..and etc log levels. (In reply to Junqi Zhao from comment #22) > @Michael, > > We should confirm how many log levels should de listed in our documentation, > if we just list 0,2,4,6,7,8, I think customers will be confused, they will > ask why we don't have 1,3,5..and etc log levels. Hello -- According to an email from Clayton Coleman on February 10, for the loglevel setting in the /etc/sysconfig/atomic-openshift-master file, we are using logging based on the Kubernetes logging which has 5 levels: "I wrote the Kube conventions, so yes, we're using them :) 0 is errors and warnings only 2 is "normal info" 4 is debugging 6 is api level debugging (request / response) 8 is body level API debugging" I am not sure how many loglevels are used with the oc options loglevel option. The oc options loglevel is outside the scope of this bug. (In reply to Michael Burke from comment #24) > According to an email from Clayton Coleman on February 10, for the loglevel > setting in the /etc/sysconfig/atomic-openshift-master file, we are using > logging based on the Kubernetes logging which has 5 levels: > > "I wrote the Kube conventions, so yes, we're using them :) > > 0 is errors and warnings only > 2 is "normal info" > 4 is debugging > 6 is api level debugging (request / response) > 8 is body level API debugging" > > I am not sure how many loglevels are used with the oc options loglevel > option. The oc options loglevel is outside the scope of this bug. Thanks for your explanation, I think we should tell customers we are using logging based on the Kubernetes logging, so they will not confused why the log level is discontinuous, just my opinion (In reply to Junqi Zhao from comment #25) > (In reply to Michael Burke from comment #24) > > > According to an email from Clayton Coleman on February 10, for the loglevel > > setting in the /etc/sysconfig/atomic-openshift-master file, we are using > > logging based on the Kubernetes logging which has 5 levels: > > > > "I wrote the Kube conventions, so yes, we're using them :) > > > > 0 is errors and warnings only > > 2 is "normal info" > > 4 is debugging > > 6 is api level debugging (request / response) > > 8 is body level API debugging" > > > > I am not sure how many loglevels are used with the oc options loglevel > > option. The oc options loglevel is outside the scope of this bug. > > Thanks for your explanation, I think we should tell customers we are using > logging based on the Kubernetes logging, so they will not confused why the > log level is discontinuous, just my opinion I did some very basic testing of the loglevel setting and journalctl -r atomic-openshift-master.service output. See attachment loglevels.odt I cannot tell the difference in loglevel 0, 1, 2, and 3. Maybe you can determine if the output is different? loglevel 4 appears unique loglevel 5 appears unique loglevel 6 appears unique loglevel 7 appears unique loglevel 8 appears unique loglevel 9 appears to be the same as 8 loglevel 10 appears to be the same as 8 Can you help me determine what the different log levels output? Michael Created attachment 1261627 [details]
DO NOT USE
Comment on attachment 1261627 [details]
DO NOT USE
DO NOT USE. WRONG FILE
Created attachment 1261628 [details]
Journalctl output from loglevel testing
@Michael, I just list some difference in the attached file for level 0, 1, 2, 3. Maybe when we run apps or projects on OCP, then it's clear to identify the difference. I think we can do some researches and ask help from developers. Created attachment 1261871 [details]
difference between level 0,1,2,3
Comment on attachment 1261871 [details]
difference between level 0,1,2,3
do not use
Created attachment 1261873 [details]
difference between level 0,1,2,3, see this file
Steve -- Hello -- Can someone take a look at: http://file.rdu.redhat.com/~mburke/logfile/master_node_configuration.html#config-logging-levels Based on Steve's comments in Comment 37 Michael I think there is only one part needs to be changed, other parts are look good to me. *************************************************************************** To change the logging level: 2. Enter a value from the Log Level Options table below in the OPTIONS=--loglevel= field. *************************************************************************** There is not Log Level Options table under this step, so maybe you should change to: Enter a value from the Log Level Options table in the OPTIONS=--loglevel= field. and we should mention that the following table is Log Level Options table 0 is errors and warnings only 2 is "normal info" 4 is debugging 6 is api level debugging (request / response) 8 is body level API debugging (In reply to Junqi Zhao from comment #40) > I think there is only one part needs to be changed, other parts are look > good to me. > *************************************************************************** > To change the logging level: > 2. Enter a value from the Log Level Options table below in the > OPTIONS=--loglevel= field. > > *************************************************************************** > There is not Log Level Options table under this step, so maybe you should > change to: > Enter a value from the Log Level Options table in the OPTIONS=--loglevel= > field. > > and we should mention that the following table is Log Level Options table > > 0 is errors and warnings only > > 2 is "normal info" > > 4 is debugging > > 6 is api level debugging (request / response) > > 8 is body level API debugging Thank you for catching this error. Made the changes. http://file.rdu.redhat.com/~mburke/logfile/master_node_configuration.html#config-logging-levels The documentation for "Configuring Logging Levels" looks good to me. but I have a modest proposalfor http://file.rdu.redhat.com/~mburke/logfile/mburke-bug-1420593/install_config/install/advanced_install.html#configuring-cluster-variables When I checked the Purpose field of "debug_level" in "Table 2. Cluster Variables ", I could not see the full description, I thought it maybe related to my screen resolution, but when I scrolled down, I found there was one horizontal scroll bar, then if I want to see the full description of "debug_level", I have to scroll down to the horizontal scroll bar then move right and then scroll up to see the whole description, I think it is not user friendly. So, I think you should make the line shorter and avoid using the horizontal scroll bar Commits pushed to master at https://github.com/openshift/openshift-docs https://github.com/openshift/openshift-docs/commit/c6b0cf72f8e44e9dc0781b289868bdc244a2f6d8 Added new section for log level, per Bug 1420593 edits from peer review edits from peer review https://github.com/openshift/openshift-docs/commit/e698b256cd006f6a39ad219b0f4b6b0ae52d9f53 Merge pull request #4055 from mburke5678/mburke-bug-1420593 Bug 1420593 New section on log_level config setting |