Bug 1364310
| Summary: | ipa otptoken-add bytes object has no attribute confirm | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Scott Poore <spoore> |
| Component: | ipa | Assignee: | IPA Maintainers <ipa-maint> |
| Status: | CLOSED ERRATA | QA Contact: | Kaleem <ksiddiqu> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 7.3 | CC: | dkupka, jpazdziora, pvoborni, rcritten |
| Target Milestone: | rc | Keywords: | Regression |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | ipa-4.4.0-6.el7 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-04 06:00:23 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
Upstream ticket: https://fedorahosted.org/freeipa/ticket/6174 Fixed upstream master: https://fedorahosted.org/freeipa/changeset/e9c1d21b9fec17ab13894885eb1238631ecc43e5 Verified.
Version ::
ipa-server-4.4.0-7.el7.x86_64
Results ::
First confirmed failure on runnning IPA server running ipa-server-4.4.0-5.el7.x86_64.
[root@rhel7-1 ~]# ipa otptoken-add --type=hotp --key --no-qrcode
ipa: ERROR: AttributeError: 'Bytes' object has no attribute 'confirm'
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1350, in run
sys.exit(api.Backend.cli.run(argv))
File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1108, in run
kw = self.process_keyword_arguments(cmd, kw)
File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1088, in process_keyword_arguments
self.prompt_interactively(cmd, kw)
File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1269, in prompt_interactively
param.label, param.confirm
AttributeError: 'Bytes' object has no attribute 'confirm'
ipa: ERROR: an internal error has occurred
Then updated IPA.
[root@rhel7-1 ~]# yum update ipa-server-dns
Loaded plugins: product-id, search-disabled-repos, subscription-manager
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Resolving Dependencies
...
Updated:
ipa-server-dns.noarch 0:4.4.0-7.el7
Dependency Updated:
ipa-admintools.noarch 0:4.4.0-7.el7 ipa-client.x86_64 0:4.4.0-7.el7
ipa-client-common.noarch 0:4.4.0-7.el7 ipa-common.noarch 0:4.4.0-7.el7
ipa-server.x86_64 0:4.4.0-7.el7 ipa-server-common.noarch 0:4.4.0-7.el7
python2-ipaclient.noarch 0:4.4.0-7.el7 python2-ipalib.noarch 0:4.4.0-7.el7
python2-ipaserver.noarch 0:4.4.0-7.el7
Complete!
Then check:
[root@rhel7-1 ~]# ipa otptoken-add --type=hotp --key --no-qrcode
Key:
ipa: ERROR: Could not get Key interactively
[root@rhel7-1 ~]# yes GEZDGNBVGY3TQOJQGEZDGNBVGY3TQOJQ | ipa otptoken-add --type=hotp --key --no-qrcode
------------------
Added OTP token ""
------------------
Unique ID: bdb10e66-3a31-4a60-a9ae-1e50542ab88a
Type: HOTP
Owner: ipauser
Manager: ipauser
Algorithm: sha1
Digits: 6
URI: otpauth://hotp/ipauser:bdb10e66-3a31-4a60-a9ae-1e50542ab88a?digits=6&secret=DBDEGGGQKUMY3U2A4JIBQRSDDDIFKGMN2NAOEUA%3D&counter=0&algorithm=SHA1&issuer=ipauser%40EXAMPLE.COM
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/RHBA-2016-2404.html |
Description of problem: [root@rhel7-1 ~]# ipa otptoken-add --type=hotp --key --no-qrcode ipa: ERROR: AttributeError: 'Bytes' object has no attribute 'confirm' Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1350, in run sys.exit(api.Backend.cli.run(argv)) File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1108, in run kw = self.process_keyword_arguments(cmd, kw) File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1088, in process_keyword_arguments self.prompt_interactively(cmd, kw) File "/usr/lib/python2.7/site-packages/ipalib/cli.py", line 1269, in prompt_interactively param.label, param.confirm AttributeError: 'Bytes' object has no attribute 'confirm' ipa: ERROR: an internal error has occurred Version-Release number of selected component (if applicable): ipa-server-4.4.0-4.el7.x86_64 How reproducible: always Steps to Reproduce: 1. ipa-server-install 2. ipa user-add testuser --password 3. kinit testuser 4. ipa otptoken-add --type=hotp --key --no-qrcode Actual results: failure above Expected results: no failure Additional info: