<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<style>
font{
line-height: 1.6;
}
ul,ol{
padding-left: 20px;
list-style-position: inside;
}
</style>
<div style="font-family:"微软雅黑"; line-height:1.6;">
<div>
<div>
<div class="yui3-editable_text-text" id="yui_3_10_3_1_1521509856426_175">
<p>when I test the 'MongoDB Backup With LVM Snapshot'<br>
from <a rel="nofollow" href="https://docs.openstack.org/freezer/queens/user/freezer-agent.html#mongodb-backup-with-lvm-snapshot">
https:/<wbr>/docs.openstack<wbr>.org/freezer/<wbr>queens/<wbr>user/freezer-<wbr>agent.html#<wbr>mongodb-<wbr>backup-<wbr>with-lvm-<wbr>snapshot</a></p>
<p>i got the error "CRITICAL freezer.main [-] Critical Error: 'me'"</p>
<p><br>
</p>
<p>log detail:<br>
2018-03-19 14:50:05.597 1085 INFO freezer.mode.mongo [-] MongoDB backup is being executed...<br>
2018-03-19 14:50:05.598 1085 INFO freezer.mode.mongo [-] Checking is the localhost is Master/Primary...<br>
2018-03-19 14:50:05.625 1085 ERROR freezer.main [-] 'me': KeyError: 'me'<br>
2018-03-19 14:50:05.625 1085 ERROR freezer.main Traceback (most recent call last):<br>
2018-03-19 14:50:05.625 1085 ERROR freezer.main File "/opt/stack/<wbr>freezer/<wbr>freezer/<wbr>main.py"<wbr>, line 247, in main<br>
2018-03-19 14:50:05.625 1085 ERROR freezer.main freezer_<wbr>main(backup_<wbr>args)<br>
2018-03-19 14:50:05.625 1085 ERROR freezer.main File "/opt/stack/<wbr>freezer/<wbr>freezer/<wbr>main.py"<wbr>, line 136, in freezer_main<br>
2018-03-19 14:50:05.625 1085 ERROR freezer.main return run_job(<wbr>backup_<wbr>args, storage)<br>
2018-03-19 14:50:05.625 1085 ERROR freezer.main File "/opt/stack/<wbr>freezer/<wbr>freezer/<wbr>main.py"<wbr>, line 149, in run_job<br>
2018-03-19 14:50:05.625 1085 ERROR freezer.main response = freezer_<wbr>job.execute(<wbr>)<br>
2018-03-19 14:50:05.625 1085 ERROR freezer.main File "/opt/stack/<wbr>freezer/<wbr>freezer/<wbr>job.py"<wbr>, line 153, in execute<br>
2018-03-19 14:50:05.625 1085 ERROR freezer.main app_mode = importutils.<wbr>import_<wbr>object(<wbr>mod_name, self.conf)<br>
2018-03-19 14:50:05.625 1085 ERROR freezer.main File "/usr/lib/<wbr>python2.<wbr>7/site-<wbr>packages/<wbr>oslo_utils/<wbr>importutils.<wbr>py", line 44, in import_object<br>
2018-03-19 14:50:05.625 1085 ERROR freezer.main return import_<wbr>class(import_<wbr>str)(*args, **kwargs)<br>
2018-03-19 14:50:05.625 1085 ERROR freezer.main File "/opt/stack/<wbr>freezer/<wbr>freezer/<wbr>mode/mongo.<wbr>py", line 55, in __init__<br>
2018-03-19 14:50:05.625 1085 ERROR freezer.main if master_dict['me'] != master_<wbr>dict['primary'<wbr>]:<br>
<span style="background-color: rgb(255, 67, 18);">2018-03-19 14:50:05.625 1085 ERROR freezer.main KeyError: 'me'</span><br>
2018-03-19 14:50:05.625 1085 ERROR freezer.main<br>
2018-03-19 14:50:05.627 1085 CRITICAL freezer.main [-] End freezer agent process unsuccessfully<br>
2018-03-19 14:50:05.627 1085 CRITICAL freezer.main [-] Critical Error: 'me'</p>
<p><br>
</p>
<p>I print the value of 'master_dict'</p>
<p><br>
<font color="#ff4312">{'ismaster': True, 'maxBsonObjectS<wbr>ize': 16777216, 'maxMessageSize<wbr>Bytes': 48000000, 'maxWriteBatchS<wbr>ize': 1000, 'localTime': datetime.<wbr>datetime(<wbr>2018, 3, 19, 7, 16, 48, 497000), 'maxWireVersion': 2, 'minWireVersion':
0, 'ok': 1.0}</font></p>
<p><br>
</p>
<p>It don't have the 'me' key</p>
</div>
</div>
<div><span><br>
</span></div>
<div><span><br>
</span></div>
<div id="ntes-pcmail-signature" style="font-family:'微软雅黑'"><style type="text/css">
a#ntes-pcmail-signature-default:hover {
text-decoration: underline;
color: #199cff;
cursor: pointer;
}
a#ntes-pcmail-signature-default:active {
text-decoration: underline;
color: #246fce;
cursor: pointer;
}
</style></div>
</div>
<!--😀--></div>
</body>
</html>