Bug 45609 - Не правильное поведение в плане сбора фактов на ОС Альт Сервер
Summary: Не правильное поведение в плане сбора фактов на ОС Альт Сервер
Status: CLOSED WORKSFORME
Alias: None
Product: Branch p10
Classification: Unclassified
Component: ansible (show other bugs)
Version: не указана
Hardware: x86_64 Linux
: P5 normal
Assignee: qa-team@altlinux.org
QA Contact: qa-p10@altlinux.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-21 15:42 MSK by Anton Shevtsov
Modified: 2023-03-22 09:17 MSK (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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/"