Bug 33137 - Отсутствует зависимость от perl-Net-SSH2
Summary: Отсутствует зависимость от perl-Net-SSH2
Status: CLOSED FIXED
Alias: None
Product: Branch p8
Classification: Distributions
Component: rex (show other bugs)
Version: не указана
Hardware: x86_64 Linux
: P3 minor
Assignee: Grigory Ustinov
QA Contact: qa-p8@altlinux.org
URL:
Keywords: backport
Depends on:
Blocks:
 
Reported: 2017-02-17 18:35 MSK by Fedor A. Fetisov
Modified: 2018-08-30 20:28 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 Fedor A. Fetisov 2017-02-17 18:35:32 MSK
Для работы с серверами в процессе выполнения задач утилите требуется модуль Net::SSH2. В составе зависимостей его нет.

В итоге запуск rex без предварительной ручной установки пакета perl-Net-SSH2
заканчивается с ошибкой:

$ rex -H test sample_task
[2017-02-17 18:29:33] INFO - Running task sample_task on test
[2017-02-17 18:29:33] ERROR - 1 out of 1 task(s) failed:
[2017-02-17 18:29:33] ERROR - 	sample_task failed on test
[2017-02-17 18:29:33] ERROR - 		Error loading connection interface SSH.
[2017-02-17 18:29:33] ERROR - 		Can't locate Net/SSH2.pm in @INC (you may need to install the Net::SSH2 module) (@INC contains: Rexfile CODE(0xbb8418) /usr/local/lib64/perl/5.22 /usr/local/share/perl/5.22 /usr/lib64/perl5 /usr/share/perl5 /usr/lib64/perl5 /usr/share/perl5 /etc/perl5 /usr/lib/perl5/vendor_perl . /tmp/rex/lib /tmp/rex/lib/perl/lib/perl5 CODE(0xbb85e0) /home/faf/.rex/recipes ./lib ./lib/perl/lib/perl5) at (eval 374) line 1, <> line 965.
[2017-02-17 18:29:33] ERROR - 		 at /usr/share/perl5/Rex/Require.pm line 39, <> line 965.
[2017-02-17 18:29:33] ERROR - 			UNIVERSAL::require("Net::SSH2") called at /usr/share/perl5/Rex/Interface/Connection/SSH.pm line 16
[2017-02-17 18:29:33] ERROR - 			Rex::Interface::Connection::SSH::BEGIN() called at /usr/share/perl5/Rex/Interface/Connection/SSH.pm line 17
[2017-02-17 18:29:33] ERROR - 			eval {...} called at /usr/share/perl5/Rex/Interface/Connection/SSH.pm line 17
[2017-02-17 18:29:33] ERROR - 			require Rex/Interface/Connection/SSH.pm called at (eval 373) line 1
[2017-02-17 18:29:33] ERROR - 			Rex::Interface::Connection::BEGIN() called at /usr/share/perl5/Rex/Interface/Connection/SSH.pm line 17
[2017-02-17 18:29:33] ERROR - 			eval {...} called at /usr/share/perl5/Rex/Interface/Connection/SSH.pm line 17
[2017-02-17 18:29:33] ERROR - 			eval 'use Rex::Interface::Connection::SSH;' called at /usr/share/perl5/Rex/Interface/Connection.pm line 22
[2017-02-17 18:29:33] ERROR - 			Rex::Interface::Connection::create("Rex::Interface::Connection", "SSH") called at /usr/share/perl5/Rex/Task.pm line 127
[2017-02-17 18:29:33] ERROR - 			Rex::Task::connection(Rex::Task=HASH(0x1a41d58)) called at /usr/share/perl5/Rex/Task.pm line 667
[2017-02-17 18:29:33] ERROR - 			Rex::Task::connect(Rex::Task=HASH(0x1a41d58), Rex::Group::Entry::Server=HASH(0x170c110)) called at /usr/share/perl5/Rex/Task.pm line 827
[2017-02-17 18:29:33] ERROR - 			eval {...} called at /usr/share/perl5/Rex/Task.pm line 827
[2017-02-17 18:29:33] ERROR - 			Rex::Task::run(Rex::Task=HASH(0x1a41d58), Rex::Group::Entry::Server=HASH(0x170c110), "in_transaction", 0, "params", undef, "args", undef) called at /usr/share/perl5/Rex/TaskList/Base.pm line 342
[2017-02-17 18:29:33] ERROR - 			eval {...} called at /usr/share/perl5/Rex/TaskList/Base.pm line 336
[2017-02-17 18:29:33] ERROR - 			Rex::TaskList::Base::__ANON__(Rex::Fork::Task=HASH(0x1839fc8)) called at /usr/share/perl5/Rex/Fork/Task.pm line 34
[2017-02-17 18:29:33] ERROR - 			Rex::Fork::Task::start(Rex::Fork::Task=HASH(0x1839fc8)) called at /usr/share/perl5/Rex/Fork/Manager.pm line 36
[2017-02-17 18:29:33] ERROR - 			Rex::Fork::Manager::add(Rex::Fork::Manager=HASH(0x1749bc8), CODE(0x6257d0)) called at /usr/share/perl5/Rex/TaskList/Base.pm line 318
[2017-02-17 18:29:33] ERROR - 			Rex::TaskList::Base::run(Rex::TaskList::Base=HASH(0x1604b88), Rex::Task=HASH(0x1e91038)) called at /usr/share/perl5/Rex/TaskList.pm line 62
[2017-02-17 18:29:33] ERROR - 			Rex::TaskList::run("Rex::TaskList", Rex::Task=HASH(0x1e91038)) called at /usr/share/perl5/Rex/RunList.pm line 69
[2017-02-17 18:29:33] ERROR - 			Rex::RunList::run_tasks(Rex::RunList=HASH(0xc64210)) called at /usr/share/perl5/Rex/CLI.pm line 379
[2017-02-17 18:29:33] ERROR - 			eval {...} called at /usr/share/perl5/Rex/CLI.pm line 379
[2017-02-17 18:29:33] ERROR - 			Rex::CLI::__run__(Rex::CLI=HASH(0x606110)) called at /usr/bin/rex line 17
[2017-02-17 18:29:33] ERROR - 		BEGIN failed--compilation aborted at /usr/share/perl5/Rex/Interface/Connection/SSH.pm line 17, <> line 965.
[2017-02-17 18:29:33] ERROR - 		Compilation failed in require at (eval 373) line 1, <> line 965.
[2017-02-17 18:29:33] ERROR - 		BEGIN failed--compilation aborted at (eval 373) line 1, <> line 965.
Comment 1 Grigory Ustinov 2018-02-28 18:09:40 MSK
В сизифе есть, думаю нужен бэкпорт.
Comment 2 Repository Robot 2018-08-30 20:28:22 MSK
rex-1.6.0-alt0.M80P.1 -> p8:

Mon Aug 13 2018 Grigory Ustinov <grenka@altlinux> 1.6.0-alt0.M80P.1
- Backport new version to p8 branch (Closes: #33134, #33137).

Sat Dec 09 2017 Nikolay A. Fetisov <naf@altlinux> 1.6.0-alt1
- New version

Sun Sep 10 2017 Nikolay A. Fetisov <naf@altlinux> 1.5.99-alt2
- Fix BuildRequires

Sun Aug 13 2017 Nikolay A. Fetisov <naf@altlinux> 1.5.99-alt1
- New version

Mon Mar 20 2017 Nikolay A. Fetisov <naf@altlinux> 1.5.0-alt1
- New version

Tue Jul 19 2016 Nikolay A. Fetisov <naf@altlinux.ru> 1.4.1-alt3
- Fix backquotes escaping

Sat Jul 16 2016 Nikolay A. Fetisov <naf@altlinux.ru> 1.4.1-alt2
- Adding missing Requires

Sat Jul 16 2016 Nikolay A. Fetisov <naf@altlinux.ru> 1.4.1-alt1
- New version

Tue Jun 28 2016 Nikolay A. Fetisov <naf@altlinux.ru> 1.4.0-alt3
- Updating to the development version 1.4.0_01
- Compatibility fixes for Net::SSH2

Fri Jun 03 2016 Nikolay A. Fetisov <naf@altlinux.ru> 1.4.0-alt2
- Compatibility fixes for Net::SSH2 >= 0.59