Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1759938

Summary: unittest: TypeError: unicode argument expected, got 'str'
Product: [oVirt] imgbased Reporter: Sandro Bonazzola <sbonazzo>
Component: GeneralAssignee: Yuval Turgeman <yturgema>
Status: CLOSED CURRENTRELEASE QA Contact: Sandro Bonazzola <sbonazzo>
Severity: high Docs Contact:
Priority: high    
Version: ---CC: bugs, cshao, lsvaty, mavital, nlevy, peyu, qiyuan, sbonazzo, weiwang, yaniwang, yturgema
Target Milestone: ovirt-4.4.0Keywords: BuildBlocker, CodeChange
Target Release: 1.2.6Flags: sbonazzo: ovirt-4.4?
cshao: testing_ack+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: imgbased-1.2.6 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-05-20 20:00:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Node RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1696701    

Description Sandro Bonazzola 2019-10-09 13:02:32 UTC
While building imgbased:  https://jenkins.ovirt.org/job/imgbased_standard-check-patch/471//artifact/check-patch.el7.x86_64/mock_logs/script/stdout_stderr.log triggered by https://gerrit.ovirt.org/103999

======================================================================
ERROR: test_base_add (testSanity.BaseVerbTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/jenkins/workspace/imgbased_standard-check-patch/imgbased/tests/testSanity.py", line 142, in test_base_add
    print(self.cli("layout", "--bases").stdout)
  File "/home/jenkins/workspace/imgbased_standard-check-patch/imgbased/tests/testSanity.py", line 57, in cli
    CliApplication(args)
  File "/home/jenkins/workspace/imgbased_standard-check-patch/imgbased/src/imgbased/__init__.py", line 82, in CliApplication
    app.hooks.emit("post-arg-parse", args)
  File "/home/jenkins/workspace/imgbased_standard-check-patch/imgbased/src/imgbased/hooks.py", line 120, in emit
    cb(self.context, *args)
  File "/home/jenkins/workspace/imgbased_standard-check-patch/imgbased/src/imgbased/plugins/core.py", line 178, in post_argparse
    print("\n".join(str(b) for b in layout.list_bases()))
TypeError: unicode argument expected, got 'str'

Comment 1 Sandro Bonazzola 2020-05-20 20:00:10 UTC
This bugzilla is included in oVirt 4.4.0 release, published on May 20th 2020.

Since the problem described in this bug report should be
resolved in oVirt 4.4.0 release, it has been closed with a resolution of CURRENT RELEASE.

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