Bug 45609

Summary: Не правильное поведение в плане сбора фактов на ОС Альт Сервер
Product: Branch p10 Reporter: Anton Shevtsov <shevtsov.anton>
Component: ansibleAssignee: qa-team <qa-team>
Status: CLOSED WORKSFORME QA Contact: qa-p10 <qa-p10>
Severity: normal    
Priority: P5 CC: amakeenk, shevtsov.anton
Version: не указана   
Hardware: x86_64   
OS: Linux   

Description Anton Shevtsov 2023-03-21 15:42:17 MSK
Если запускать на Рабочей Станции, то все хорошо, блок  "ansible_lsb" заполнен ожидаемыми параметрами

# ansible -m setup localhost |sed 's/localhost | SUCCESS =>//' | jq '.ansible_facts.ansible_lsb'


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


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

ansible -m setup localhost |sed 's/localhost | SUCCESS =>//' | jq '.ansible_facts.ansible_lsb'

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


Но на Альт Сервер - пустота
...
 "ansible_lsb": {},
...
Comment 1 Anton Shevtsov 2023-03-21 17:28:54 MSK
На 8СП (Сервер, Рабочая Станция), АСВ - проблем тоже нет. Проблема только на обычном сервере
Comment 2 Alexander Makeenkov 2023-03-22 09:17:01 MSK
Не удаётся воспроизвести:

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

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

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