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 1578538 - Virt-who configuration script fails due to username having a special character "$" in it.
Summary: Virt-who configuration script fails due to username having a special characte...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Satellite
Classification: Red Hat
Component: Virt-who Configure Plugin
Version: 6.3.1
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: 6.4.0
Assignee: Marek Hulan
QA Contact: jcallaha
satellite-doc-list
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-05-15 20:04 UTC by Skip Wyatt
Modified: 2021-12-10 16:10 UTC (History)
5 users (show)

Fixed In Version: foreman_virt_who_configure-0.2.1
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-10-16 19:09:14 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Foreman Issue Tracker 23638 0 Normal Closed Virt-who configuration script fails due to username having a special character "$" in it. 2020-06-23 05:33:28 UTC

Description Skip Wyatt 2018-05-15 20:04:48 UTC
Description of problem:
When using the virt who-configuration tool, the configuration script will fail to parse the username field properly when the username is a Windows Domain user and starts with a '$' as follows:

domain\$atellite


Version-Release number of selected component (if applicable):

Satellite 6.3.1

How reproducible:

Repeatable

Steps to Reproduce:
1. Execute the virt-who configuration utility
2. Enter username domain\$atellite
3. Execute script output on the Satellite

Actual results:
User name is mangled and the password is encrypted incorrectly.

Expected results:
username is stored properly and password is retrievable via hash.

Additional info:
The user name may be manually input and configured and the password hashed via virt-who-password and this configuration will work.

Comment 2 Marek Hulan 2018-05-18 11:44:10 UTC
Created redmine issue http://projects.theforeman.org/issues/23638 from this bug

Comment 4 jcallaha 2018-06-26 18:34:33 UTC
Verified in Satellite 6.4 Snap 9

I followed the reporter's reproduction steps.

Resulting config is:
/etc/virt-who.d/virt-who-config-1.conf

### This configuration file is managed via the virt-who configure plugin
### manual edits will be deleted.
[virt-who-config-1]
type=esx
hypervisor_id=hostname
owner=Default_Organization
env=Library
server=test.server.com
username=domain\$atellite
encrypted_password=f931434859f3ea195b6ef6303d5a809b
rhsm_hostname=<my.sat.domain.com>
rhsm_username=virt_who_reporter_1
rhsm_encrypted_password=4def7ba2155a8f6eebde0c6650aaad5e7f9d5bf8762b6d66890620384a0d515a
rhsm_prefix=/rhsm

Comment 7 Bryan Kearney 2018-10-16 19:09:14 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://access.redhat.com/errata/RHSA-2018:2927


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