RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1888323 - Rebase to v9 upstream release
Summary: Rebase to v9 upstream release
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 8
Classification: Red Hat
Component: tlog
Version: 8.4
Hardware: All
OS: All
medium
medium
Target Milestone: rc
: 8.4
Assignee: jstephen
QA Contact: Scott Poore
URL:
Whiteboard: sync-to-jira tested
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-10-14 14:52 UTC by jstephen
Modified: 2021-05-18 15:24 UTC (History)
3 users (show)

Fixed In Version: v9-2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-05-18 15:24:35 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2021:1766 0 None None None 2021-05-18 15:24:39 UTC

Description jstephen 2020-10-14 14:52:08 UTC
Rebase to v9 upstream release to https://github.com/Scribery/tlog/releases/tag/v9

This will allow us to ensure tests and recent changes work as expected downstream, prior to release deadlines.

Comment 1 jstephen 2020-10-14 14:57:22 UTC
Changelog:

    Add libutempter support
    Require journal match filter
    Add file reader match functionality
    Restore cursor visibility and color attributes on tlog-play exit
    Add "time" real clock timestamp message field
    Various upstream CI improvements

Comment 6 Scott Poore 2020-11-06 22:24:43 UTC
Verified

Version ::

tlog-9-2.el8.x86_64

Results ::

######################## Test case: #################################

:: [ 17:11:47 ] :: [  BEGIN   ] :: Running './tlitest-run --junit-xml=/var/tmp/tmp.NcB4kYR5fC/junit.xml '
=============================================================================================== test session starts ===============================================================================================
platform linux -- Python 3.6.8, pytest-3.4.2, py-1.5.3, pluggy-0.6.0 -- /usr/libexec/platform-python
cachedir: ../../.pytest_cache
rootdir: /var/tmp/tmp.NcB4kYR5fC/tlog, inifile:
collected 50 items                                                                                                                                                                                                

../../lib/tlitest/test_env_config.py::TestTlogRecSession::test_conf_file_var PASSED                                                                                                                         [  2%]
../../lib/tlitest/test_env_config.py::TestTlogRecSession::test_conf_text_var PASSED                                                                                                                         [  4%]
../../lib/tlitest/test_env_config.py::TestTlogRecSession::test_conf_shell_var PASSED                                                                                                                        [  6%]
../../lib/tlitest/test_env_config.py::TestTlogRec::test_conf_file_var PASSED                                                                                                                                [  8%]
../../lib/tlitest/test_env_config.py::TestTlogRec::test_conf_text_var PASSED                                                                                                                                [ 10%]
../../lib/tlitest/test_env_config.py::TestTlogRec::test_conf_shell_var PASSED                                                                                                                               [ 12%]
../../lib/tlitest/test_tlog_play.py::TestTlogPlay::test_play_from_file PASSED                                                                                                                               [ 14%]
../../lib/tlitest/test_tlog_play.py::TestTlogPlay::test_play_from_journal PASSED                                                                                                                            [ 16%]
../../lib/tlitest/test_tlog_play.py::TestTlogPlay::test_play_output_file PASSED                                                                                                                             [ 18%]
../../lib/tlitest/test_tlog_play.py::TestTlogPlay::test_play_at_speed_x2 PASSED                                                                                                                             [ 20%]
../../lib/tlitest/test_tlog_play.py::TestTlogPlay::test_play_at_goto_points PASSED                                                                                                                          [ 22%]
../../lib/tlitest/test_tlog_play.py::TestTlogPlay::test_play_follow_running_session PASSED                                                                                                                  [ 24%]
../../lib/tlitest/test_tlog_play.py::TestTlogPlayControl::test_play_key_ctl_goto_end PASSED                                                                                                                 [ 26%]
../../lib/tlitest/test_tlog_play.py::TestTlogPlayControl::test_play_key_ctl_next_packet PASSED                                                                                                              [ 28%]
../../lib/tlitest/test_tlog_play.py::TestTlogPlayControl::test_play_key_ctl_double_speed PASSED                                                                                                             [ 30%]
../../lib/tlitest/test_tlog_play.py::TestTlogPlayControl::test_play_key_ctl_quit PASSED                                                                                                                     [ 32%]
../../lib/tlitest/test_tlog_play.py::TestTlogPlayControl::test_play_key_ctl_halve_speed PASSED                                                                                                              [ 34%]
../../lib/tlitest/test_tlog_play.py::TestTlogPlayControl::test_play_from_file_match PASSED                                                                                                                  [ 36%]
../../lib/tlitest/test_tlog_play_remote.py::TestTlogPlayRemote::test_play_remote_good_session PASSED                                                                                                        [ 38%]
../../lib/tlitest/test_tlog_play_remote.py::TestTlogPlayRemote::test_play_remote_bad_timing PASSED                                                                                                          [ 40%]
../../lib/tlitest/test_tlog_play_remote.py::TestTlogPlayRemote::test_play_remote_missing_entry PASSED                                                                                                       [ 42%]
../../lib/tlitest/test_tlog_rec.py::TestTlogRec::test_record_command_to_file PASSED                                                                                                                         [ 44%]
../../lib/tlitest/test_tlog_rec.py::TestTlogRec::test_record_command_to_journal PASSED                                                                                                                      [ 46%]
../../lib/tlitest/test_tlog_rec.py::TestTlogRec::test_record_command_to_syslog PASSED                                                                                                                       [ 48%]
../../lib/tlitest/test_tlog_rec.py::TestTlogRec::test_record_interactive_session PASSED                                                                                                                     [ 50%]
../../lib/tlitest/test_tlog_rec.py::TestTlogRec::test_record_binary_output PASSED                                                                                                                           [ 52%]
../../lib/tlitest/test_tlog_rec.py::TestTlogRec::test_record_diff_char_sets PASSED                                                                                                                          [ 54%]
../../lib/tlitest/test_tlog_rec.py::TestTlogRec::test_record_fast_input PASSED                                                                                                                              [ 56%]
../../lib/tlitest/test_tlog_rec.py::TestTlogRec::test_record_as_unprivileged_user PASSED                                                                                                                    [ 58%]
../../lib/tlitest/test_tlog_rec.py::TestTlogRec::test_record_as_admin_user PASSED                                                                                                                           [ 60%]
../../lib/tlitest/test_tlog_rec.py::TestTlogRec::test_record_from_different_hostnames PASSED                                                                                                                [ 62%]
../../lib/tlitest/test_tlog_rec_perf_opts.py::TestTlogRecPerformanceOptions::test_record_fast_input_with_latency PASSED                                                                                     [ 64%]
../../lib/tlitest/test_tlog_rec_perf_opts.py::TestTlogRecPerformanceOptions::test_record_fast_input_with_payload PASSED                                                                                     [ 66%]
../../lib/tlitest/test_tlog_rec_perf_opts.py::TestTlogRecPerformanceOptions::test_record_fast_input_with_limit_rate PASSED                                                                                  [ 68%]
../../lib/tlitest/test_tlog_rec_perf_opts.py::TestTlogRecPerformanceOptions::test_record_fast_input_with_limit_burst PASSED                                                                                 [ 70%]
../../lib/tlitest/test_tlog_rec_perf_opts.py::TestTlogRecPerformanceOptions::test_record_fast_input_with_limit_action_drop PASSED                                                                           [ 72%]
../../lib/tlitest/test_tlog_rec_perf_opts.py::TestTlogRecPerformanceOptions::test_record_fast_input_with_limit_action_delay PASSED                                                                          [ 74%]
../../lib/tlitest/test_tlog_rec_perf_opts.py::TestTlogRecPerformanceOptions::test_record_fast_input_with_limit_action_pass PASSED                                                                           [ 76%]
../../lib/tlitest/test_tlog_rec_session.py::TestTlogRecSession::test_session_record_to_file PASSED                                                                                                          [ 78%]
../../lib/tlitest/test_tlog_rec_session.py::TestTlogRecSession::test_session_record_to_journal PASSED                                                                                                       [ 80%]
../../lib/tlitest/test_tlog_rec_session.py::TestTlogRecSession::test_session_record_to_syslog PASSED                                                                                                        [ 82%]
../../lib/tlitest/test_tlog_rec_session.py::TestTlogRecSession::test_session_record_fast_input_with_latency PASSED                                                                                          [ 84%]
../../lib/tlitest/test_tlog_rec_session.py::TestTlogRecSession::test_session_record_fast_input_with_payload PASSED                                                                                          [ 86%]
../../lib/tlitest/test_tlog_rec_session.py::TestTlogRecSession::test_session_record_fast_input_with_limit_rate PASSED                                                                                       [ 88%]
../../lib/tlitest/test_tlog_rec_session.py::TestTlogRecSession::test_session_record_fast_input_with_limit_burst PASSED                                                                                      [ 90%]
../../lib/tlitest/test_tlog_rec_session.py::TestTlogRecSession::test_session_record_fast_input_with_limit_action_drop PASSED                                                                                [ 92%]
../../lib/tlitest/test_tlog_rec_session.py::TestTlogRecSession::test_session_record_fast_input_with_limit_action_delay PASSED                                                                               [ 94%]
../../lib/tlitest/test_tlog_rec_session.py::TestTlogRecSession::test_session_record_fast_input_with_limit_action_pass PASSED                                                                                [ 96%]
../../lib/tlitest/test_tlog_rec_session.py::TestTlogRecSession::test_session_record_with_different_shell PASSED                                                                                             [ 98%]
../../lib/tlitest/test_tlog_rec_session.py::TestTlogRecSession::test_session_record_pipe_io_stdin PASSED                                                                                                    [100%]

------------------------------------------------------------------------------ generated xml file: /var/tmp/tmp.NcB4kYR5fC/junit.xml ------------------------------------------------------------------------------
=========================================================================================== 50 passed in 682.97 seconds ===========================================================================================
:: [ 17:23:10 ] :: [   PASS   ] :: Command './tlitest-run --junit-xml=/var/tmp/tmp.NcB4kYR5fC/junit.xml ' (Expected 0, got 0)




######################## Test case: #################################

bz1788968-Ansible-in-pipeline-mode-fails-with-tlog-enabled

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 17:04:48 ] :: [  BEGIN   ] :: Running 'echo -e "print('hello world')
"                    | ssh -i ~/.ssh/id_bz1788968 -o StrictHostKeyChecking=no bz1788968@localhost python3'

ATTENTION! Your session is being recorded!

hello world
:: [ 17:04:48 ] :: [   PASS   ] :: Command 'echo -e "print('hello world')
"                    | ssh -i ~/.ssh/id_bz1788968 -o StrictHostKeyChecking=no bz1788968@localhost python3' (Expected 0, got 0)
:: [ 17:04:48 ] :: [   PASS   ] :: File '/var/tmp/rlRun_LOG.HAHg1DzS' should contain 'hello world' 
:: [ 17:04:48 ] :: [   PASS   ] :: File '/var/tmp/rlRun_LOG.HAHg1DzS' should contain 'ATTENTION! Your session is being recorded!' 
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 0s
::   Assertions: 3 good, 0 bad
::   RESULT: PASS (Test)


######################## Test case: #################################

bz1804920-BZ-tlog-prevents-logins-if-it-can-t-determine

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Test
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 17:04:30 ] :: [  BEGIN   ] :: Running 'expect ssh.exp bz1804920 localhost bz1804920'
spawn ssh -o StrictHostKeyChecking=no bz1804920@localhost
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
bz1804920@localhost's password: 
Activate the web console with: systemctl enable --now cockpit.socket

This system is not registered to Red Hat Insights. See https://cloud.redhat.com/
To register this system, run: insights-client --register

Host FQDN resolution failure
Falling back to empty hostname value

ATTENTION! Your session is being recorded!

[bz1804920@ci-vm-10-0-103-203 ~]$ exit
logout

Connection to localhost closed.
:: [ 17:04:30 ] :: [   PASS   ] :: Command 'expect ssh.exp bz1804920 localhost bz1804920' (Expected 0, got 0)
:: [ 17:04:30 ] :: [   PASS   ] :: File '/var/tmp/rlRun_LOG.i06vxiDL' should contain 'ATTENTION! Your session is being recorded!' 
:: [ 17:04:30 ] :: [   PASS   ] :: File '/var/tmp/rlRun_LOG.i06vxiDL' should not contain 'Failed retrieving host FQDN' 
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
::   Duration: 0s
::   Assertions: 3 good, 0 bad
::   RESULT: PASS (Test)

Comment 8 errata-xmlrpc 2021-05-18 15:24:35 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (tlog bug fix and enhancement update), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2021:1766


Note You need to log in before you can comment on or make changes to this bug.