<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; color: rgb(0, 0, 0); font-size: 14px; font-family: Calibri, sans-serif;">
<div>
<div>
<div>Hello Fabrice,</div>
<div><br>
</div>
<div>  You should also set the rsyslog affinity to 0 for the infra_hosts.  I’m not sure if the affinity is necessary for the log hosts, but I don’t think it will hurt.  I recommend trying a few different ways and verify the corresponding openstack_inventory.json
 file to ensure it meets your requirements.</div>
<div>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt;"><b><span style="font-family: Cambria, serif; color: rgb(0, 112, 192);"><br>
</span></b></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt;"><b><span style="font-family: Cambria, serif; color: rgb(0, 112, 192);"><br>
</span></b></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt;"><b><span style="font-family: Cambria, serif; color: rgb(0, 112, 192);">Michael Gugino</span></b><span style="font-family: Cambria, serif; color: rgb(0, 112, 192);"><br>
Cloud Powered<br>
(540) 846-0304 Mobile</span></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt;"><b><span style="font-size: 4pt; font-family: 'Albertus Xb'; color: rgb(0, 153, 255);"> </span></b></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt;"><b><span style="font-size: 13.5pt; font-family: 'Albertus Xb'; color: rgb(0, 153, 255);">Walmart </span></b><span style="font-size: 13.5pt; font-family: 'Arial Unicode MS', sans-serif; color: rgb(255, 204, 0);">✻</span><span style="color: rgb(31, 73, 125);"><br>
</span><b><span style="font-size: 10pt; font-family: Arial, sans-serif; color: rgb(26, 117, 207);">Saving people money so they can live better.<o:p></o:p></span></b></p>
<p class="MsoNormal" style="margin: 0in 0in 0.0001pt; font-size: 11pt;"><o:p> </o:p></p>
</div>
</div>
</div>
<div><br>
</div>
<span id="OLK_SRC_BODY_SECTION">
<div style="font-family:Calibri; font-size:11pt; text-align:left; color:black; BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0in; PADDING-LEFT: 0in; PADDING-RIGHT: 0in; BORDER-TOP: #b5c4df 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt">
<span style="font-weight:bold">From: </span>fabrice grelaud <<a href="mailto:fabrice.grelaud@u-bordeaux.fr">fabrice.grelaud@u-bordeaux.fr</a>><br>
<span style="font-weight:bold">Reply-To: </span>"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
<span style="font-weight:bold">Date: </span>Wednesday, July 6, 2016 at 12:15 PM<br>
<span style="font-weight:bold">To: </span>"OpenStack Development Mailing List (not for usage questions)" <<a href="mailto:openstack-dev@lists.openstack.org">openstack-dev@lists.openstack.org</a>><br>
<span style="font-weight:bold">Subject: </span>Re: [openstack-dev] [openstack-ansible] existing centralized syslog server<br>
</div>
<div><br>
</div>
<div>
<div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">
Hi Michael,
<div class=""><br class="">
</div>
<div class="">
<div>
<blockquote type="cite" class="">
<div class="">Le 6 juil. 2016 à 17:07, Michael Gugino <<a href="mailto:Michael.Gugino@walmart.com" class="">Michael.Gugino@walmart.com</a>> a écrit :</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Hello Fabrice,<br class="">
<br class="">
 I think the easiest way would be to set the affinity for each<br class="">
controller/infrastructure host using 'rsyslog_container: 0' as seen in the<br class="">
following section of the install guide:<br class="">
<a href="http://docs.openstack.org/developer/openstack-ansible/install-guide-revised" class="">http://docs.openstack.org/developer/openstack-ansible/install-guide-revised</a><br class="">
-draft/configure-initial.html#affinity<br class="">
<br class="">
</div>
</div>
</blockquote>
ok, i look at this.</div>
<div><br class="">
</div>
<div>Actually (first deploy with a dedicated log server) , i have:</div>
<div>./scripts/inventory-manage.py -G</div>
<div>rsyslog_container<span class="Apple-tab-span" style="white-space:pre"> </span>
|<span class="Apple-tab-span" style="white-space:pre"> </span>log1_rsyslog_container-81441bbb</div>
<div><br class="">
</div>
<div>So, from what you write, not to create a log_container on the log server, i can modify my openstack_user_config.yml to be:</div>
<div><br class="">
</div>
<div>log_hosts:</div>
<div>  log1:</div>
<div>    affinity:</div>
<div>      rsyslog_container: 0</div>
<div>    ip: 172.29.236.240</div>
<div><br class="">
</div>
<div>Is that right ?</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">
<div class=""> Next, you should add your actual logging hosts to your<br class="">
openstack_user_config as seen here:<br class="">
<a href="https://github.com/openstack/openstack-ansible/blob/master/etc/openstack_de" class="">https://github.com/openstack/openstack-ansible/blob/master/etc/openstack_de</a><br class="">
ploy/openstack_user_config.yml.aio#L122-L124<br class="">
<br class="">
 Be sure to comment out the rsyslog-install.yml line of<br class="">
setup-infrastructure.yml, and be sure that you make any necessary<br class="">
modifications to the openstack-ansible-rsyslog_client role.  Modifications<br class="">
may not be necessary, depending on your needs, and you may be able to<br class="">
specify certain variables in user_variables.yml to achieve the desired<br class="">
results.<br class="">
<br class="">
</div>
</div>
</blockquote>
In openstack-ansible-rsyslog_client, the template 99-rsyslog.conf.j2 use :</div>
<div><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16.8px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);" class="">*.* @{{ hostvars[server]['ansible_ssh_host'] }}:{{
 rsyslog_client_udp_port }};RFC3164fmt</span></div>
<div><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16.8px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);" class=""><br class="">
</span></div>
<div><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16.8px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);" class="">I will test to ensure the IP is that from log1.</span></div>
<div><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16.8px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);" class="">If yes, no more modification is needed.</span></div>
<div><span style="color: rgb(51, 51, 51); font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; line-height: 16.8px; white-space: pre; widows: 1; background-color: rgb(255, 255, 255);" class=""><br class="">
</span></div>
<div style="widows: 1;">Thanks again.</div>
<div style="widows: 1;">Regards</div>
<div><br class="">
<blockquote type="cite" class="">
<div class="">
<div class=""> As always, make sure you test these modifications in a non-production<br class="">
environment to ensure you achieve the desired results.<br class="">
<br class="">
<br class="">
Michael Gugino<br class="">
Cloud Powered<br class="">
(540) 846-0304 Mobile<br class="">
<br class="">
Walmart ✻<br class="">
Saving people money so they can live better.<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
On 7/6/16, 10:24 AM, "fabrice grelaud" <<a href="mailto:fabrice.grelaud@u-bordeaux.fr" class="">fabrice.grelaud@u-bordeaux.fr</a>><br class="">
wrote:<br class="">
<br class="">
<blockquote type="cite" class="">Hi,<br class="">
<br class="">
I would like to know what is the best approach to customize our<br class="">
openstack-ansible deployment if we want to use our existing solution of<br class="">
ELK and centralized rsyslog server.<br class="">
<br class="">
We deploy openstack-ansible (mitaka 13.1.2 release) on our infrastructure<br class="">
with for convenient and no risk a vm for syslog server role. That is ok.<br class="">
But now if i want to use our centralized syslog server ?<br class="">
<br class="">
What i need is to set ip address of our existing server to the rsyslog<br class="">
client (containers + metal) and of course configure our rsyslog.conf to<br class="">
manage openstack template.<br class="">
So:<br class="">
- no need to create on the log server a lxc container (setup-hosts.yml:<br class="">
lxc-hosts-setup, lxc-containers-create)<br class="">
- no need to install syslog server (setup-infrastructure.yml:<br class="">
rsyslog-install.yml)<br class="">
<br class="">
How can i modify my openstack-ansible environment (/etc/openstack_deploy,<br class="">
env.d, conf.d, openstack_user_config.yml, user_variables.yml, playbook ?)<br class="">
the most transparent manner and that permits minor release update simply ?<br class="">
<br class="">
Thanks.<br class="">
<br class="">
Fabrice Grelaud<br class="">
Université de Bordeaux<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
__________________________________________________________________________<br class="">
OpenStack Development Mailing List (not for usage questions)<br class="">
Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org" class="">
OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br class="">
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class="">
</blockquote>
<br class="">
<br class="">
This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately. *** Walmart Confidential ***<br class="">
__________________________________________________________________________<br class="">
OpenStack Development Mailing List (not for usage questions)<br class="">
Unsubscribe: <a href="mailto:OpenStack-dev-request@lists.openstack.org" class="">
OpenStack-dev-request@lists.openstack.org</a>?subject:unsubscribe<br class="">
<a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev" class="">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev</a><br class="">
</div>
</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</span>

<DIV>
This email and any files transmitted with it are confidential and intended solely for the individual or entity to whom they are addressed. If you have received this email in error destroy it immediately. *** Walmart Confidential ***<BR>
</DIV></body>
</html>