/
esx-eon_logging.xml
142 lines (142 loc) · 4.16 KB
/
esx-eon_logging.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?xml version="1.0"?>
<?xml-stylesheet href="urn:x-suse:xslt:profiling:docbook51-profile.xsl"
type="text/xml"
title="Profiling step"?>
<!DOCTYPE section [
<!ENTITY % entities SYSTEM "entity-decl.ent"> %entities;
]>
<section xmlns="http://docbook.org/ns/docbook" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="sec-esx-debug">
<title>Configuring Debug Logging</title>
<!-- Commented in DITA original: -->
<!-- <abstract><shortdesc outputclass="hdphidden">Steps for changing the
logging level to DEBUG to allow for better
troubleshooting.</shortdesc>This topic describes how to enable the EON
service for centralized logging, and changing the EON log level to
DEBUG.</abstract> -->
<section>
<title>To Modify the OVSVAPP VM Log Level</title>
<para>
To change the OVSVAPP log level to DEBUG, do the following:
</para>
<orderedlist>
<listitem>
<para>
Log in to the &clm;.
</para>
</listitem>
<listitem>
<para>
Edit the file below:
</para>
<screen>~/openstack/ardana/ansible/roles/neutron-common/templates/ovsvapp-agent-logging.conf.j2</screen>
</listitem>
<listitem>
<para>
Set the logging level value of the <literal>logger_root</literal> section
to <literal>DEBUG</literal>, like this:
</para>
<screen>[logger_root]
qualname: root
handlers: watchedfile, logstash
level: DEBUG</screen>
</listitem>
<listitem>
<para>
Commit your configuration to the Git repository
(<xref linkend="using-git"/>), as follows:
</para>
<screen>cd ~/openstack/ardana/ansible
git add -A
git commit -m "My config or other commit message"</screen>
</listitem>
<listitem>
<para>
Run the configuration processor:
</para>
<screen>cd ~/openstack/ardana/ansible
ansible-playbook -i hosts/localhost config-processor-run.yml</screen>
</listitem>
<listitem>
<para>
Update your deployment directory:
</para>
<screen>cd ~/openstack/ardana/ansible
ansible-playbook -i hosts/localhost ready-deployment.yml</screen>
</listitem>
<listitem>
<para>
Deploy your changes:
</para>
<screen>cd ~/scratch/ansible/next/hos/ansible
ansible-playbook -i hosts/verb_hosts neutron-reconfigure.yml</screen>
</listitem>
</orderedlist>
</section>
<section>
<title>To Enable OVSVAPP Service for Centralized Logging</title>
<para>
To enable OVSVAPP Service for centralized logging:
</para>
<orderedlist>
<listitem>
<para>
Log in to the &clm;.
</para>
</listitem>
<listitem>
<para>
Edit the file below:
</para>
<screen>~/openstack/my_cloud/config/logging/vars/neutron-ovsvapp-clr.yml</screen>
</listitem>
<listitem>
<para>
Set the value of <literal>centralized_logging</literal> to
<emphasis role="bold">true</emphasis> as shown in the following sample:
</para>
<screen>logr_services:
neutron-ovsvapp:
logging_options:
- centralized_logging:
enabled: <emphasis role="bold">true</emphasis>
format: json
...</screen>
</listitem>
<listitem>
<para>
Commit your configuration to the Git repository
(<xref linkend="using-git"/>), as follows:
</para>
<screen>cd ~/openstack/ardana/ansible
git add -A
git commit -m "My config or other commit message"</screen>
</listitem>
<listitem>
<para>
Run the configuration processor:
</para>
<screen>cd ~/openstack/ardana/ansible
ansible-playbook -i hosts/localhost config-processor-run.yml</screen>
</listitem>
<listitem>
<para>
Update your deployment directory:
</para>
<screen>cd ~/openstack/ardana/ansible
ansible-playbook -i hosts/localhost ready-deployment.yml</screen>
</listitem>
<listitem>
<para>
Deploy your changes, specifying the hostname for your OVSAPP host:
</para>
<screen>cd ~/scratch/ansible/next/ardana/ansible
ansible-playbook -i hosts/verb_hosts neutron-reconfigure.yml --limit <hostname></screen>
<para>
The hostname of the node can be found in the list generated from the
output of the following command:
</para>
<screen>grep hostname ~/openstack/my_cloud/info/server_info.yml</screen>
</listitem>
</orderedlist>
</section>
</section>