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 790295 - RFE: Prompt for the missing options if not provided in command line during record add.
Summary: RFE: Prompt for the missing options if not provided in command line during re...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: ipa
Version: 6.3
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Rob Crittenden
QA Contact: IDM QE LIST
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-14 06:45 UTC by Gowrishankar Rajaiyan
Modified: 2012-06-20 13:18 UTC (History)
5 users (show)

Fixed In Version: ipa-2.2.0-3.el6
Doc Type: Enhancement
Doc Text:
No documentation needed.
Clone Of:
Environment:
Last Closed: 2012-06-20 13:18:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0819 0 normal SHIPPED_LIVE ipa bug fix and enhancement update 2012-06-19 20:34:17 UTC

Description Gowrishankar Rajaiyan 2012-02-14 06:45:58 UTC
Description of problem:

This was raised by atolani as part of IPA DNS Test day.

When options are provided to dnsrecord-add and if any of the required option is missing, then the expected behaviour is to prompt for it interactively instead of displaying an error message. Similar to how we prompt for the zone name and record name if not provided in the command line.

for example: 
[root@zetaprime ~]# ipa dnsrecord-add --sshfp-algorithm=1 --sshfp-fp-type=1
Zone name: lab.eng.pnq.redhat.com
Record name: test44
ipa: ERROR: invalid 'sshfprecord': 'sshfp_fingerprint' is a required part of DNS record
[root@zetaprime ~]# 

Here the user expected a interactive prompt asking for "sshfp_fingerprint"

Version-Release number of selected component (if applicable):
ipa-server-2.2.0-101.20120127T0607zgit6863b8f.el6.x86_64

How reproducible:


Steps to Reproduce:
1. See description
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 2 Martin Kosek 2012-02-14 14:46:52 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2386

Comment 3 Rob Crittenden 2012-03-02 20:21:55 UTC
fixed upstream:

master: 1d09cdf6342cfd715c366e881ced1d1f22d1503a

ipa-2-2: 104e9762375ac1d27fa0a853563b4de176d2fa8e

LOC is another record type that is interesting to test.

Also handles ^C and ^D.

Comment 5 Gowrishankar Rajaiyan 2012-04-16 08:14:32 UTC
[root@primenova ~]# ipa dnsrecord-add testrelm.com --sshfp-algorithm=2
Record name: sshfp
SSHFP Fingerprint Type: 2
SSHFP Fingerprint: 8F3AFB98121C1DFF087E004A862D30B8935946D8,
  Record name: sshfp
  SSHFP record: 2 2 8F3AFB98121C1DFF087E004A862D30B8935946D8,
[root@primenova ~]# 

This works as expected, however, while providing both --sshfp-algorithm and --sshfp-fp-type it asks for sshfp fingerprint multiple times.

[root@primenova ~]# ipa dnsrecord-add --sshfp-algorithm=1 --sshfp-fp-type=1
Zone name: testrelm.com
Record name: sshfp2
SSHFP Fingerprint: A69D7E3D53DB419FE43830956F08C0BC51431F89         <<<<<<
SSHFP Fingerprint: 8F3AFB98121C1DFF087E004A862D30B8935946D8         <<<<<<
  Record name: sshfp2
  SSHFP record: 1 1 8F3AFB98121C1DFF087E004A862D30B8935946D8


Tested in version: ipa-server-2.2.0-9.el6.x86_64

Comment 6 Martin Kosek 2012-04-16 08:57:29 UTC
Good catch, I will open a ticket to fix it and send a patch today.

Comment 7 Martin Kosek 2012-04-16 08:59:41 UTC
Upstream ticket:
https://fedorahosted.org/freeipa/ticket/2641

Comment 8 Rob Crittenden 2012-04-16 15:46:28 UTC
Fixed interactive prompting upstream.

master: 568de5027b9c7057e6f71cca4a45ced9ca7a7db6

ipa-2-2: 73b23bf21d0604cdc7c0b4a37011e01a17684faf

Comment 11 Martin Kosek 2012-04-24 11:38:12 UTC
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
No documentation needed.

Comment 12 Gowrishankar Rajaiyan 2012-05-14 19:52:20 UTC
[root@primenova ~]# ipa dnsrecord-add --sshfp-algorithm=1 --sshfp-fp-type=1
Zone name: lab.eng.pnq.redhat.com
Record name: test44
SSHFP Fingerprint: AF77D568A15C703DF5CEE89BFB76F0146DEA7586
  Record name: test44
  SSHFP record: 1 1 AF77D568A15C703DF5CEE89BFB76F0146DEA7586
[root@primenova ~]# 


[root@primenova ~]# ipa dnsrecord-add  --sshfp-fp-type=1
Zone name: lab.eng.pnq.redhat.com
Record name: test45
SSHFP Algorithm: 1
SSHFP Fingerprint: AF77D568A15C703DF5CEE89BFB76F0146DEA786
  Record name: test45
  SSHFP record: 1 1 AF77D568A15C703DF5CEE89BFB76F0146DEA786
[root@primenova ~]# 


[root@primenova ~]# ipa dnsrecord-add --sshfp-algorithm=1 --sshfp-fp-type=1
Zone name: lab.eng.pnq.redhat.com
Record name: test46
SSHFP Fingerprint: AF77D568A15C703DF5CEE89BFB76F0146DEA7869
  Record name: test46
  SSHFP record: 1 1 AF77D568A15C703DF5CEE89BFB76F0146DEA7869
[root@primenova ~]#

Comment 13 Gowrishankar Rajaiyan 2012-05-15 10:21:12 UTC
[root@primenova ~]# ipa dnsrecord-add lab.eng.pnq.redhat.com --loc-lat-deg=49 --loc-lat-min=11 --loc-lat-sec=42.4 --loc-lat-dir=N --loc-lon-deg=16 
Record name: test51
LOC Direction Longitude: E
LOC Altitude: 123
  Record name: test51
  LOC record: 49 11 42.400 N 16 E 123.00
[root@primenova ~]#


Verified: ipa-server-2.2.0-13.el6.x86_64

Comment 16 errata-xmlrpc 2012-06-20 13:18:36 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.

http://rhn.redhat.com/errata/RHBA-2012-0819.html


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