<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>43337</bug_id>
          
          <creation_ts>2022-07-25 15:30:09 +0300</creation_ts>
          <short_desc>Суть проблемы в том, что в части исполняемых файлов указан интерпретатор python3</short_desc>
          <delta_ts>2022-07-28 16:39:53 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>mlnx-tools</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Константин Палачев">pku</reporter>
          <assigned_to name="Leontiy Volodin">lvol</assigned_to>
          <cc>lvol</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>213123</commentid>
    <comment_count>0</comment_count>
    <who name="Константин Палачев">pku</who>
    <bug_when>2022-07-25 15:30:09 +0300</bug_when>
    <thetext>Есть пакет mlnx-tools
Changelog: * Mon Nov 22 2021 Leontiy Volodin &lt;lvol@altlinux.org&gt; 5.1.3-alt2
- Added requires (ALT #41412).
- Fixed syntax errors in mlx_fs_dump (ALT #41411). * Tue Nov 09 2021 Leontiy Volodin &lt;lvol@altlinux.org&gt; 5.1.3-alt1
- Initial build for ALT Sisyphus (based on upstream spec).
- Built for ticket 2021110801000478 (redmine_65351).

Суть проблемы в том, что в части исполняемых файлов указан интерпретатор python3 и пути:
&quot;&quot;&quot;
if os.path.exists(&apos;/usr/share/pyshared&apos;):
sys.path.append(&apos;/usr/share/pyshared&apos;)
if os.path.exists(&apos;/usr/lib64/python3/dist-packages&apos;):
sys.path.append(&apos;/usr/lib64/python3/dist-packages&apos;)
if os.path.exists(&apos;/usr/lib/python3/site-packages&apos;):
sys.path.append(&apos;/usr/lib64/python3/site-packages&apos;)
&quot;&quot;&quot;

из-за чего появляется проблема использования mlnx_qos -i &lt;имя_интерфейса&gt; &lt;параметры&gt; :

/usr/bin/mlnx_qos:495: DeprecationWarning: fromstring() is deprecated. Use frombytes() instead.
prio2buffer, buffer_size = ctrl.get_ieee_dcb_buffer()
/usr/bin/mlnx_qos:584: DeprecationWarning: fromstring() is deprecated. Use frombytes() instead.
prio_tc, tsa, tc_bw = ctrl.get_ieee_ets()
/usr/bin/mlnx_qos:585: DeprecationWarning: fromstring() is deprecated. Use frombytes() instead.
pfc_en = ctrl.get_ieee_pfc_en()
/usr/bin/mlnx_qos:586: DeprecationWarning: fromstring() is deprecated. Use frombytes() instead.
pfc_delay = ctrl.get_ieee_pfc_delay()

Если использовать python2.7(изменить интерпретатор и пути в dcbnetlink.py,genetlink.py,netlink.py, а затем разместить их в /usr/lib64/python2.7/*) - все ок. Настройка корректно отрабатывает и Warning&apos;ов тоже нет.

У заказчика:
NAME=&quot;ALT SPServer&quot;
VERSION=&quot;8.4&quot;
ID=altlinux
VERSION_ID=8.4

5.10.121-std-def-alt0.c9f.2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>213233</commentid>
    <comment_count>1</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2022-07-28 16:39:53 +0300</bug_when>
    <thetext>python-module-termcolor-1.1.0-alt2.git20130510 -&gt; sisyphus:

 * Thu Jul 28 2022 Leontiy Volodin &lt;lvol@altlinux&gt; 1.1.0-alt2.git20130510
 - Returned to Sisyphus for mlnx-tools (ALT #41412, #43337).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>