<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p>Доброго времени суток!</p>
<br>
Поставил себе в минималке <a class="moz-txt-link-freetext"
href="http://ftp.altlinux.org/pub/distributions/ALTLinux/p8/images/server/">http://ftp.altlinux.org/pub/distributions/ALTLinux/p8/images/server/</a><br>
<br>
Вижу что ceph-deploy неожиданно не опознал alt linux.<br>
<br>
После разбора выяснил что внутри altlinux-release:<br>
1. Бывает не только "alt linux ...", но и "alt workstation K ..." и
"Regular" и "alt 8 ..." (мой случай с alt-8-server) - это исправил
со своей стороны так:
<a class="moz-txt-link-freetext"
href="http://git.altlinux.org/people/snejok/packages/ceph-deploy.git?p=ceph-deploy.git;a=commitdiff;h=a040ab6c8db73aa2c3510f8739215b9f518cc232">http://git.altlinux.org/people/snejok/packages/ceph-deploy.git?p=ceph-deploy.git;a=commitdiff;h=a040ab6c8db73aa2c3510f8739215b9f518cc232</a><br>
<br>
2. Бывает и без codename-в-скобочках, что уже больше похоже на багу,
ибо ceph-deploy дергает
<meta http-equiv="content-type" content="text/html; charset=utf-8">
функцию "linux_distribution"
<meta http-equiv="content-type" content="text/html; charset=utf-8">
, которая дергает _parse_release_file из внутренностей python:<br>
<br>
<a class="moz-txt-link-freetext"
href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l266">http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l266</a>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l266" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l266" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 266</a> def _parse_release_file(firstline):</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l267" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l267" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 267</a> </div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l268" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l268" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 268</a> # Default to empty 'version' and 'id' strings. Both defaults are used</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l269" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l269" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 269</a> # when 'firstline' is empty. 'id' defaults to empty when an id can not</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l270" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l270" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 270</a> # be deduced.</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l271" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l271" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 271</a> version = ''</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l272" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l272" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 272</a> id = ''</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l273" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l273" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 273</a> </div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l274" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l274" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 274</a> # Parse the first line</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l275" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l275" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 275</a> m = _lsb_release_version.match(firstline)</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l276" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l276" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 276</a> if m is not None:</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l277" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l277" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 277</a> # LSB format: "distro release x.x (codename)"</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l278" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l278" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 278</a> return tuple(m.groups())</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l279" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l279" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 279</a> </div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l280" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l280" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 280</a> # Pre-LSB format: "distro x.x (codename)"</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l281" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l281" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 281</a> m = _release_version.match(firstline)</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l282" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l282" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 282</a> if m is not None:</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l283" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l283" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 283</a> return tuple(m.groups())</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l284" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l284" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 284</a> </div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l285" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l285" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 285</a> # Unknown format... take the first two words</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l286" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l286" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 286</a> l = string.split(string.strip(firstline))</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l287" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l287" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 287</a> if l:</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l288" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l288" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 288</a> version = l[0]</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l289" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l289" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 289</a> if len(l) > 1:</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l290" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l290" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 290</a> id = l[1]</div>
<div class="pre" style="font-size: small; white-space: pre; color: rgb(0, 0, 0); font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; word-spacing: 0px; background-color: rgb(255, 255, 255);"><a id="l291" href="http://git.altlinux.org/gears/p/python.git?p=python.git;a=blob;f=Python/Lib/platform.py#l291" class="linenr" style="color: rgb(153, 153, 153); text-decoration: none;"> 291</a> return '', version, id
Может быть есть Policy на это дело?
--
WBR,
Lenar Shakirov
</div>
</body>
</html>