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

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

    <bug>
          <bug_id>45609</bug_id>
          
          <creation_ts>2023-03-21 15:42:17 +0300</creation_ts>
          <short_desc>Не правильное поведение в плане сбора фактов на ОС Альт Сервер</short_desc>
          <delta_ts>2023-03-22 09:17:01 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Branch p10</product>
          <component>ansible</component>
          <version>не указана</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>WORKSFORME</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>0</everconfirmed>
          <reporter name="Anton Shevtsov">shevtsov.anton</reporter>
          <assigned_to name="qa-team@altlinux.org">qa-team</assigned_to>
          <cc>amakeenk</cc>
    
    <cc>shevtsov.anton</cc>
          
          <qa_contact name="qa-p10@altlinux.org">qa-p10</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>223147</commentid>
    <comment_count>0</comment_count>
    <who name="Anton Shevtsov">shevtsov.anton</who>
    <bug_when>2023-03-21 15:42:17 +0300</bug_when>
    <thetext>Если запускать на Рабочей Станции, то все хорошо, блок  &quot;ansible_lsb&quot; заполнен ожидаемыми параметрами

# ansible -m setup localhost |sed &apos;s/localhost | SUCCESS =&gt;//&apos; | jq &apos;.ansible_facts.ansible_lsb&apos;


&quot;ansible_facts&quot;: {
....
     &quot;ansible_lsb&quot;: {
            &quot;codename&quot;: &quot;Autolycus&quot;,
            &quot;description&quot;: &quot;ALT Workstation 10.1 (Autolycus)&quot;,
            &quot;id&quot;: &quot;ALT&quot;,
            &quot;major_release&quot;: &quot;10&quot;,
            &quot;release&quot;: &quot;10.1&quot;
     }
....
}


Тоже самое и на Рабочей Станции К

ansible -m setup localhost |sed &apos;s/localhost | SUCCESS =&gt;//&apos; | jq &apos;.ansible_facts.ansible_lsb&apos;

{
  &quot;codename&quot;: &quot;SorbaroniaMitschurinii&quot;,
  &quot;description&quot;: &quot;ALT Workstation K 10.1  (Sorbaronia Mitschurinii)&quot;,
  &quot;id&quot;: &quot;ALT&quot;,
  &quot;major_release&quot;: &quot;10&quot;,
  &quot;release&quot;: &quot;10.1&quot;
}


Но на Альт Сервер - пустота
...
 &quot;ansible_lsb&quot;: {},
...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223162</commentid>
    <comment_count>1</comment_count>
    <who name="Anton Shevtsov">shevtsov.anton</who>
    <bug_when>2023-03-21 17:28:54 +0300</bug_when>
    <thetext>На 8СП (Сервер, Рабочая Станция), АСВ - проблем тоже нет. Проблема только на обычном сервере</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>223183</commentid>
    <comment_count>2</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2023-03-22 09:17:01 +0300</bug_when>
    <thetext>Не удаётся воспроизвести:

# rpm -q ansible-core &amp;&amp; ansible -m setup localhost |sed &apos;s/localhost | SUCCESS =&gt;//&apos; | jq &apos;.ansible_facts.ansible_lsb&apos;
ansible-core-2.14.3-alt3.noarch
{
  &quot;codename&quot;: &quot;Mendelevium&quot;,
  &quot;description&quot;: &quot;ALT Server 10.1 (Mendelevium)&quot;,
  &quot;id&quot;: &quot;ALT&quot;,
  &quot;major_release&quot;: &quot;10&quot;,
  &quot;release&quot;: &quot;10.1&quot;
}

# rpm -q ansible &amp;&amp; ansible -m setup localhost |sed &apos;s/localhost | SUCCESS =&gt;//&apos; | jq &apos;.ansible_facts.ansible_lsb&apos;
ansible-2.9.27-alt3.noarch
{
  &quot;codename&quot;: &quot;Mendelevium&quot;,
  &quot;description&quot;: &quot;ALT Server 10.1 (Mendelevium)&quot;,
  &quot;id&quot;: &quot;ALT&quot;,
  &quot;major_release&quot;: &quot;10&quot;,
  &quot;release&quot;: &quot;10.1&quot;
}

# cat /etc/os-release 
NAME=&quot;ALT Server&quot;
VERSION=&quot;10.1&quot;
ID=altlinux
VERSION_ID=10.1
PRETTY_NAME=&quot;ALT Server 10.1 (Mendelevium)&quot;
ANSI_COLOR=&quot;1;33&quot;
CPE_NAME=&quot;cpe:/o:alt:server:10.1&quot;
BUILD_ID=&quot;ALT Server 10.1&quot;
HOME_URL=&quot;https://basealt.ru/&quot;
BUG_REPORT_URL=&quot;https://bugs.altlinux.org/&quot;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>