Bug 50759 - AttributeError: 'float' object has no attribute 'split' при работе cockpit-bridge
Summary: AttributeError: 'float' object has no attribute 'split' при работе cockpit-br...
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: cockpit-bridge (show other bugs)
Version: unstable
Hardware: x86_64 Linux
: P5 normal
Assignee: Andrey Limachko
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-26 16:10 MSK by Nikolai Zurabishvili
Modified: 2024-07-04 15:10 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolai Zurabishvili 2024-06-26 16:10:45 MSK
cockpit-bridge-311.1-alt1
python3-3.12.2-alt1.x86_64

Стенды (обновлены до сизифа):

KWorkstation 10.3 x86-64
Workstation 10.2 x86-64
Education 10.2 KDE x86-64
Education 10.2 x86-64
Server 10.2 office x86-64

Шаги:
1. 
# cockpit-bridge --version 
# cockpit-bridge --help
# cockpit-bridge --packages

Фактический результат: 
Traceback (most recent call last):
  File "/usr/bin/cockpit-bridge", line 5, in <module>
    from cockpit.bridge import main
  File "/usr/lib64/python3/site-packages/cockpit/bridge.py", line 37, in <module>
    from .channels import CHANNEL_TYPES
  File "/usr/lib64/python3/site-packages/cockpit/channels/__init__.py", line 22, in <module>
    from .packages import PackagesChannel
  File "/usr/lib64/python3/site-packages/cockpit/channels/packages.py", line 24, in <module>
    from ..packages import Packages
  File "/usr/lib64/python3/site-packages/cockpit/packages.py", line 202, in <module>
    class Manifest(dict, JsonObject):
  File "/usr/lib64/python3/site-packages/cockpit/packages.py", line 204, in Manifest
    COCKPIT_VERSION = __version__ and sortify_version(__version__)
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib64/python3/site-packages/cockpit/packages.py", line 121, in sortify_version
    return '.'.join(part.zfill(8) for part in version.split('.'))
                                              ^^^^^^^^^^^^^
AttributeError: 'float' object has no attribute 'split'

Ожидаемый результат: Корректная вывод без ошибок 

Доп: Если попытаться развернуть FreeIPA сервер вместе с fleet-commander-admin то по адресу  https://<ipa-server>:9090 не получается войти доменным пользователем, при вводе корректного пароля выдает - "Неверное имя пользователя или пароль" в логах при этом аналогичная ошибка:

cockpit-ws[2623]: Traceback (most recent call last):
cockpit-ws[2623]:   File "/bin/cockpit-bridge", line 5, in <module>
cockpit-ws[2623]:     from cockpit.bridge import main
cockpit-ws[2623]:   File "/usr/lib64/python3/site-packages/cockpit/bridge.py", line 37, in <module>
cockpit-ws[2623]:     from .channels import CHANNEL_TYPES
cockpit-ws[2623]:   File "/usr/lib64/python3/site-packages/cockpit/channels/__init__.py", line 22, in <module>
cockpit-ws[2623]:     from .packages import PackagesChannel
cockpit-ws[2623]:   File "/usr/lib64/python3/site-packages/cockpit/channels/packages.py", line 24, in <module>
cockpit-ws[2623]:     from ..packages import Packages
cockpit-ws[2623]:   File "/usr/lib64/python3/site-packages/cockpit/packages.py", line 202, in <module>
cockpit-ws[2623]:     class Manifest(dict, JsonObject):
cockpit-ws[2623]:   File "/usr/lib64/python3/site-packages/cockpit/packages.py", line 204, in Manifest
cockpit-ws[2623]:     COCKPIT_VERSION = __version__ and sortify_version(__version__)
cockpit-ws[2623]:                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cockpit-ws[2623]:   File "/usr/lib64/python3/site-packages/cockpit/packages.py", line 121, in sortify_version
cockpit-ws[2623]:     return '.'.join(part.zfill(8) for part in version.split('.'))
cockpit-ws[2623]:                                               ^^^^^^^^^^^^^
cockpit-ws[2623]: AttributeError: 'float' object has no attribute 'split'
Comment 1 Repository Robot 2024-07-04 15:10:16 MSK
cockpit-311.1-alt2 -> sisyphus:

 Thu Jul 04 2024 Daniil-Viktor Ratkin <krf10@altlinux> 311.1-alt2
 - fix cockpit-bridge (closes: 50759)