Bug 34961 - ceph-deploy ругается: UnsupportedPlatform: Platform is not supported
Summary: ceph-deploy ругается: UnsupportedPlatform: Platform is not supported
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: ceph-deploy (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: mrdrew@altlinux.org
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks: 34266
  Show dependency tree
 
Reported: 2018-05-29 12:40 MSK by Константин
Modified: 2018-06-01 13:38 MSK (History)
4 users (show)

See Also:


Attachments
Лог (7.59 KB, text/x-log)
2018-05-29 12:40 MSK, Константин
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Константин 2018-05-29 12:40:41 MSK
Created attachment 7563 [details]
Лог

Сервер Р8 обновлен до Сизифа.
При попытке использовать ceph-deploy ругается:
[ceph_deploy][ERROR ] UnsupportedPlatform: Platform is not supported: "ALT Server" altlinux 8.2

Изминение /etc/altlinux-release (описанное в баге #34266) не помогает.

[root@node1 ceph]# cat /etc/os-release 
NAME="ALT Server"
VERSION="8.2 (december)"
ID=altlinux
VERSION_ID=8.2
PRETTY_NAME="ALT 8.2 Server (december)"
ANSI_COLOR="1;33"
CPE_NAME="cpe:/o:alt linux:school server:8.2"
HOME_URL="http://altlinux.ru/"
BUG_REPORT_URL="https://bugs.altlinux.org/"

Вывод исправления баги #34421
[root@node1 ceph]# python -c 'import platform; print platform.linux_distribution()'
('"ALT Server"', '8.2', 'altlinux')
[root@node1 ceph]# python3 -c 'import platform; print (platform.linux_distribution())'
('"ALT Server"', '8.2', 'altlinux')

На регулярке тоже самое UnsupportedPlatform: Platform is not supported: "Sisyphus" altlinux 20170925.
[root@node1 ceph]# python -c 'import platform; print platform.linux_distribution()'
('"Sisyphus"', '20170925', 'altlinux')
[root@node1 ceph]# python3 -c 'import platform; print (platform.linux_distribution())'
('"Sisyphus"', '20170925', 'altlinux')
Comment 1 Lenar Shakirov 2018-05-29 14:20:33 MSK
Покажите, пожалуйста:
cat /etc/altlinux-release
Comment 2 Lenar Shakirov 2018-05-29 14:22:50 MSK
Меня у вас смущают двойные кавычки внутри одинарных:
('"ALT Server"', '8.2', 'altlinux')

У меня так:
# python -c 'import platform; print platform.linux_distribution()'
('ALT Linux ', '8.0', 'server')

# cat /etc/altlinux-release
ALT Linux 8.0 Server (server)
Comment 3 Константин 2018-05-29 14:31:50 MSK
[root@node1 ceph]# cat /etc/altlinux-release
ALT 8.2 Server (server)

Менял для деплоя, изначально выглядел так: ALT 8.2 Server

Двойные кавычки и на свежеустановленной регулярке выскакивают.
Comment 4 Andrey 2018-06-01 09:38:55 MSK
сейчас проблема решена?
Comment 5 Константин 2018-06-01 11:26:19 MSK
Проверил на своих виртуалках. Отрабатывает отлично.
Как и должно быть, правка /etc/altlinux-release не влияет.
Comment 6 Lenar Shakirov 2018-06-01 11:43:43 MSK
О, спасибо!

* Fri May 30 2018 Andrey Bychkov <mrdrew@altlinux.org> 2.7.14-alt3.1
- added cleaning os-release parameters (patch25)

http://git.altlinux.org/gears/p/python.git?p=python.git;a=commitdiff;h=d4eedc80ef4ec9470f75ee4e9a779c4888c7d071