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 1167270 - Tracebacks with latest build for --zonemgr cli option
Summary: Tracebacks with latest build for --zonemgr cli option
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: ipa
Version: 7.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: IPA Maintainers
QA Contact: Namita Soman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-24 11:01 UTC by Kaleem
Modified: 2015-03-05 10:15 UTC (History)
4 users (show)

Fixed In Version: ipa-4.1.0-9.el7
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-03-05 10:15:47 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
snip from automation log (4.56 KB, text/plain)
2014-11-25 12:48 UTC, Kaleem
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:0442 0 normal SHIPPED_LIVE Moderate: ipa security, bug fix, and enhancement update 2015-03-05 14:50:39 UTC

Description Kaleem 2014-11-24 11:01:54 UTC
Description of problem:
Tracebacks are shown with latest build for --zonemgr cli option. Found in two test cases in automation execution.

Version-Release number of selected component (if applicable):
ipa-server-4.1.0-7.el7.x86_64

How reproducible:
Always

Steps to Reproduce:

::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: ipa-server-install-015: [Positive] Install with zonemgr bz888124
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 01:52:01 ] :: Uninstall for next test
:: [  BEGIN   ] :: Uninstalling ipa server for next test :: actually running 'ipa-server-install --uninstall -U '
Shutting down all IPA services
...
Unconfiguring ipa-otpd
:: [   PASS   ] :: Uninstalling ipa server for next test (Expected 0, got 0)
:: [  BEGIN   ] :: Making sure that /etc/sssd/sssd.conf does not exist. BZ 819982 :: actually running 'ls /etc/sssd/sssd.conf'
ls: cannot access /etc/sssd/sssd.conf: No such file or directory
:: [   PASS   ] :: Making sure that /etc/sssd/sssd.conf does not exist. BZ 819982 (Expected 2, got 2)
:: [ 01:52:27 ] :: EXECUTING: ipa-server-install --setup-dns --forwarder=10.16.36.29  -r TESTRELM.TEST -p xxxxxxxx -P xxxxxxxx -a xxxxxxxx --zonemgr=test_admin -U
:: [  BEGIN   ] :: Installing ipa server with zonemgr :: actually running 'ipa-server-install --setup-dns --forwarder=10.16.36.29  -r TESTRELM.TEST -p xxxxxxxx -P xxxxxxxx -a xxxxxxxx --zonemgr=test_admin -U'

MARK-LWD-LOOP -- 2014-11-24 01:52:29 --
Traceback (most recent call last):
  File "/usr/sbin/ipa-server-install", line 1343, in <module>
    safe_options, options = parse_options()
  File "/usr/sbin/ipa-server-install", line 288, in parse_options
    options, args = parser.parse_args()
  File "/usr/lib64/python2.7/optparse.py", line 1399, in parse_args
    stop = self._process_args(largs, rargs, values)
  File "/usr/lib64/python2.7/optparse.py", line 1439, in _process_args
    self._process_long_opt(rargs, values)
  File "/usr/lib64/python2.7/optparse.py", line 1514, in _process_long_opt
    option.process(opt, value, values, self)
  File "/usr/lib64/python2.7/optparse.py", line 788, in process
    self.action, self.dest, opt, value, values, parser)
  File "/usr/lib64/python2.7/optparse.py", line 808, in take_action
    self.callback(self, opt, value, parser, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/ipaserver/install/bindinstance.py", line 407, in zonemgr_callback
    value = value.decode(sys.stdin.encoding)
TypeError: decode() argument 1 must be string, not None
:: [   FAIL   ] :: Installing ipa server with zonemgr (Expected 0, got 1)


::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
:: [   LOG    ] :: ipa-server-install-016: [Negative] Install with invalid zonemgr
::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

:: [ 01:52:43 ] :: cmd=[ipa-server-install --setup-dns --forwarder=10.16.36.29  -r TESTRELM.TEST -p xxxxxxxx -P xxxxxxxx -a xxxxxxxx --zonemgr=Têko -U]
:: [ 01:52:43 ] :: expect [2], out=[/tmp/tmp.lEFA3LcILT/ipaserverinstall_invalidzonemgr.out]
:: [ 01:52:43 ] :: Verify expected error message for IPA Install with invalid zonemgr
:: [   FAIL   ] :: expect [2] actual [1] 
--------- expected msg ---------
[error: invalid zonemgr: mail account may only include letters, numbers, -, _ and a dot. There may not be consecutive -, _ and . characters. Its parts may not start or end with - or _]
========== execution output ===============
Traceback (most recent call last):
  File "/usr/sbin/ipa-server-install", line 1343, in <module>
    safe_options, options = parse_options()
  File "/usr/sbin/ipa-server-install", line 288, in parse_options
    options, args = parser.parse_args()
  File "/usr/lib64/python2.7/optparse.py", line 1399, in parse_args
    stop = self._process_args(largs, rargs, values)
  File "/usr/lib64/python2.7/optparse.py", line 1439, in _process_args
    self._process_long_opt(rargs, values)
  File "/usr/lib64/python2.7/optparse.py", line 1514, in _process_long_opt
    option.process(opt, value, values, self)
  File "/usr/lib64/python2.7/optparse.py", line 788, in process
    self.action, self.dest, opt, value, values, parser)
  File "/usr/lib64/python2.7/optparse.py", line 808, in take_action
    self.callback(self, opt, value, parser, *args, **kwargs)
  File "/usr/lib/python2.7/site-packages/ipaserver/install/bindinstance.py", line 407, in zonemgr_callback
    value = value.decode(sys.stdin.encoding)
TypeError: decode() argument 1 must be string, not None

Comment 2 Jan Cholasta 2014-11-24 11:18:42 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/4762

Comment 5 Kaleem 2014-11-25 12:48:17 UTC
Tracebacks are still with ipa-server-4.1.0-8.el7.x86_64.

Please find the attached snip from automation log.

Comment 6 Kaleem 2014-11-25 12:48:47 UTC
Created attachment 961209 [details]
snip from automation log

Comment 7 Jan Cholasta 2014-11-25 13:07:23 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/4766

Comment 9 Jenny Severance 2014-11-25 15:51:36 UTC
Even though this is a regression, it should not block beta - but do request that this be documented for beta known issues

Comment 13 Kaleem 2014-11-27 11:24:13 UTC
Verified.

No tracebacks now but test cases still failing which is related with other bugzillas, so closing this and updating other bugzillas.

IPA version:
------------
ipa-server-4.1.0-10.el7.x86_64

Comment 15 errata-xmlrpc 2015-03-05 10:15:47 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, 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://rhn.redhat.com/errata/RHSA-2015-0442.html


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