Red Hat Satellite engineering is moving the tracking of its product development work on Satellite 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 "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. 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 "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-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 1500732 - Tilde ~ symbol in --capsule-fqdn param value in capsule-certs-generate tool causes error. Regression.
Summary: Tilde ~ symbol in --capsule-fqdn param value in capsule-certs-generate tool c...
Keywords:
Status: CLOSED DUPLICATE of bug 1466688
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Foreman Proxy
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: Unspecified
Assignee: satellite6-bugs
QA Contact: Katello QA List
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-10-11 11:48 UTC by Lukáš Hellebrandt
Modified: 2017-10-11 11:59 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-10-11 11:59:24 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Lukáš Hellebrandt 2017-10-11 11:48:18 UTC
Description of problem:
The Sat6.2 Installation Guide [1] in section "4.6.1. Configuring Capsule Server with a Default Server Certificate", part 1, advises to run:

# capsule-certs-generate \
--capsule-fqdn "mycapsule.example.com" \
--certs-tar "~/mycapsule.example.com-certs.tar"

In 6.3, you have to use --foreman-proxy-fqd instead of --capsule-fqdn (bug 1500671) which is unrelated to this bug. So let's fix it:

# capsule-certs-generate \
--foreman-proxy-fqdn "<FQDN>" \
--certs-tar "~/whatever-certs.tar"

However, using the tilde ~ symbol causes the following error:

"""
Parameter certs-tar invalid: ~/whatever-certs.tar is not one of regexes matching /^(([a-zA-Z]:[\\\/Error during configuration, exiting
"""

However, in 6.2 (tested with foreman-installer-katello-3.0.0.65-1), the tilde is expanded properly and the tool continues correctly -> this is regression.

Nope: the error message being displayed incorrectly is bug 1500676.

How reproducible:
Deterministic

Steps to Reproduce:
1. # capsule-certs-generate \
--foreman-proxy-fqdn "<FQDN>" \
--certs-tar "~/whatever-certs.tar"

Actual results:
Error

Expected results:
Correctly expanded path used and the tool run continues

Additional info:
[1] https://access.redhat.com/documentation/en-us/red_hat_satellite/6.2/html/installation_guide/installing_capsule_server

Comment 1 Nikhil Kathole 2017-10-11 11:53:19 UTC
Looks like similar issue:

https://bugzilla.redhat.com/show_bug.cgi?id=1466688

Comment 2 Lukáš Hellebrandt 2017-10-11 11:59:24 UTC
^ That's correct. Even the "tilde case" is mentioned in the comments, thus, I am closing this BZ as a duplicate.

*** This bug has been marked as a duplicate of bug 1466688 ***


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