<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
span.EmailStyle20
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style>
</head>
<body lang="EN-US" link="#0563C1" vlink="purple" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal">Hi Martin,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I’m open all Friday morning, if that works for you, starting at 8am CST/2pm UTC.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Regards,<o:p></o:p></p>
<p class="MsoNormal">Bob<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:12.0pt;color:black">From: </span></b><span style="font-size:12.0pt;color:black">"Chen, Haochuan Z" <haochuan.z.chen@intel.com><br>
<b>Date: </b>Tuesday, November 10, 2020 at 8:00 AM<br>
<b>To: </b>"Sun, Austin" <austin.sun@intel.com>, "Qi, Mingyuan" <mingyuan.qi@intel.com>, Robert Church <Robert.Church@windriver.com>, Ovidiu Poncea <Ovidiu.Poncea@windriver.com>, "Waines, Greg" <Greg.Waines@windriver.com>, "Voiculeasa, Dan" <Dan.Voiculeasa@windriver.com><br>
<b>Cc: </b>"Hu, Yong" <yong.hu@intel.com>, "'starlingx-discuss@lists.starlingx.io'" <starlingx-discuss@lists.starlingx.io><br>
<b>Subject: </b>RE: rook deployment for duplex<o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div style="border:solid #9C6500 1.0pt;padding:2.0pt 2.0pt 2.0pt 2.0pt">
<p class="MsoNormal" style="line-height:12.0pt;background:#FFEB9C"><span style="font-size:10.0pt;color:red">[Please note this e-mail is from an EXTERNAL e-mail address]</span><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Hi Ovidiu & Bob<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">This Thursday morning(Bob’s time), Thursday afternoon(Ovidiu), when you are ok to book a meeting.
<o:p></o:p></p>
<p class="MsoNormal">We could sync rook status. I will update duplex deployment update info.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<p class="MsoNormal">Martin, Chen<o:p></o:p></p>
<p class="MsoNormal">IOTG, Software Engineer<o:p></o:p></p>
<p class="MsoNormal">021-61164330<o:p></o:p></p>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Chen, Haochuan Z <br>
<b>Sent:</b> Friday, November 6, 2020 10:24 PM<br>
<b>To:</b> Sun, Austin <austin.sun@intel.com>; Qi, Mingyuan <mingyuan.qi@intel.com>; 'Church, Robert' <Robert.Church@windriver.com>; 'Poncea, Ovidiu' <Ovidiu.Poncea@windriver.com>; 'Waines, Greg' <Greg.Waines@windriver.com>; 'Voiculeasa, Dan' <Dan.Voiculeasa@windriver.com><br>
<b>Cc:</b> Hu, Yong <yong.hu@intel.com>; 'starlingx-discuss@lists.starlingx.io' <starlingx-discuss@lists.starlingx.io><br>
<b>Subject:</b> RE: rook deployment for duplex<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Hi Ovidiu, Bob and Greg<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I introduce my design for duplex to Dan. If you think necessary, I could book a meeting next Tuesday to explain again.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Thanks!<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<p class="MsoNormal">Martin, Chen<o:p></o:p></p>
<p class="MsoNormal">IOTG, Software Engineer<o:p></o:p></p>
<p class="MsoNormal">021-61164330<o:p></o:p></p>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b>From:</b> Chen, Haochuan Z <br>
<b>Sent:</b> Thursday, November 5, 2020 4:22 PM<br>
<b>To:</b> Sun, Austin <<a href="mailto:austin.sun@intel.com">austin.sun@intel.com</a>>; Qi, Mingyuan <<a href="mailto:mingyuan.qi@intel.com">mingyuan.qi@intel.com</a>>; Church, Robert <<a href="mailto:Robert.Church@windriver.com">Robert.Church@windriver.com</a>>;
Poncea, Ovidiu <<a href="mailto:Ovidiu.Poncea@windriver.com">Ovidiu.Poncea@windriver.com</a>>; Waines, Greg <<a href="mailto:Greg.Waines@windriver.com">Greg.Waines@windriver.com</a>>; Voiculeasa, Dan <<a href="mailto:Dan.Voiculeasa@windriver.com">Dan.Voiculeasa@windriver.com</a>><br>
<b>Cc:</b> Hu, Yong <<a href="mailto:yong.hu@intel.com">yong.hu@intel.com</a>>; <a href="mailto:starlingx-discuss@lists.starlingx.io">
starlingx-discuss@lists.starlingx.io</a><br>
<b>Subject:</b> rook deployment for duplex<o:p></o:p></p>
</div>
</div>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Hi Ovidiu<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">I confirm the issue you raise for duplex. So I change rook deployment for duplex as this.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">1, duplex will use host network, ceph mon ip is controller floating ip<o:p></o:p></p>
<p class="MsoNormal">2, there is only one monitor pod on active controller<o:p></o:p></p>
<p class="MsoNormal">3, same as native ceph cluster, there is a drbd filesystem, named drbd-cephmon, to sync mon data on both controllers, mount to folder /var/lib/ceph/mon-a/data
<o:p></o:p></p>
<p class="MsoNormal">4, there is a cronjob, periodic check these is host offline or lock. If host offline and mon pod deployed on that host, delete mon deployment and rook-ceph operator will make mon deployment again on the other controller<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:10.2pt"># because when rook-operator launch mon deployment, it nodeselector for this deployment will bind to this host. So must delete this mon deployment to make operator reschedule the mon deployment to the other controller<o:p></o:p></p>
<p class="MsoNormal" style="text-indent:10.2pt"># this is similar what sm do for native ceph<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">We could discuss tomorrow.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Task items for above design:<o:p></o:p></p>
<p class="MsoNormal">1, update sysinv to enable drbd ceph-mon for rook<o:p></o:p></p>
<p class="MsoNormal"> 1), add system storage-backend-add rook --confirmed<o:p></o:p></p>
<p class="MsoNormal"> 2), in cgtsclient add storage_rook.py<o:p></o:p></p>
<p class="MsoNormal"> 3), in sysinv-api, add storage_rook.py, will call sysinv-conductor update_rook_config<o:p></o:p></p>
<p class="MsoNormal"> 4), in sysinv-conductor update_rook_config, <o:p></o:p></p>
<p class="MsoNormal"> if cutils.is_aio_duplex_system(self.dbapi):<o:p></o:p></p>
<p class="MsoNormal"> # On 2 node systems we have a floating Ceph monitor.<o:p></o:p></p>
<p class="MsoNormal"> classes.append('platform::drbd::cephmon::runtime')<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">2, update rook-app override<o:p></o:p></p>
<p class="MsoNormal"> for duplex, use hostnetwork, mon: 1.<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">3, add a pre install job in rook-ceph helm chart<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> # controller-1 is active controller<o:p></o:p></p>
<p class="MsoNormal"> # 192.188.204.2 is floating ip<o:p></o:p></p>
<p class="MsoNormal"> # rook-operator will read this configmap and the only monitor pod, mon-a will deployed on active controller,<o:p></o:p></p>
<p class="MsoNormal"> export ROOK_EXTERNAL_CEPH_MON_DATA=a=192.188.204.2:6789<o:p></o:p></p>
<p class="MsoNormal"> export ROOK_EXTERNAL_MAX_MON_ID=0<o:p></o:p></p>
<p class="MsoNormal"> export ROOK_EXTERNAL_MAPPING='{"node":{"a":{"Name":"controller-1","Hostname":"controller-1","Address":"192.188.204.2"}}}'<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal"> kubectl -n kube-system create configmap rook-ceph-mon-endpoints \<o:p></o:p></p>
<p class="MsoNormal"> --from-literal=data="$ROOK_EXTERNAL_CEPH_MON_DATA" \<o:p></o:p></p>
<p class="MsoNormal"> --from-literal=mapping=”$ROOK_EXTERNAL_MAPPING” \<o:p></o:p></p>
<p class="MsoNormal"> --from-literal=maxMonId="$ROOK_EXTERNAL_MAX_MON_ID"<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">4, add a cron job in rook-ceph-provision helm chart<o:p></o:p></p>
<p class="MsoNormal"> If any host down, and mon-a pod deployed on that host(at this time, mon-a pod is terminating and pending)
<o:p></o:p></p>
<p class="MsoNormal"> a), delete mon-a pod and mon-a deployment.<o:p></o:p></p>
<p class="MsoNormal"> b), update confimap rook-ceph-mon-endpoints, field mapping.<o:p></o:p></p>
<p class="MsoNormal"> '{"node":{"a":{"Name":"controller-0","Hostname":"controller-0","Address":"192.188.204.2"}}}' # hostname change to active controller-0<o:p></o:p></p>
<p class="MsoNormal"> c), delete operator pod, wait operator pods will launch and recreate mon-a deployment<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">BR!<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
<p class="MsoNormal">Martin, Chen<o:p></o:p></p>
<p class="MsoNormal">IOTG, Software Engineer<o:p></o:p></p>
<p class="MsoNormal">021-61164330<o:p></o:p></p>
<p class="MsoNormal"> <o:p></o:p></p>
</div>
</div>
</body>
</html>