Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
Description of problem:
Hypervisor host can't register to satellite WEB UI when using special character. but virt-who can send json information successfully.
Version-Release number of selected component (if applicable):
Satellite6.2.7-snap2.0
virt-who-0.17-10.el6sat.noarch
Hypervisor: libvirt
How reproducible:
Always
Steps to Reproduce:
1. Register virt-who to satellite6.2.7
2. Register Hypervisor guest to satellite6.2.7 on Organization:Default_Organization
3. change Hypervisor short hostname using special characters ,such as "hp-z220-06a!#$%^&*"
# hostname
hp-z220-06a!#$%^&*
# hostname -s
hp-z220-06a!#$%^&*
4. vim /etc/virt-who.d/libvirt.conf
[test-libvirt]
type=libvirt
server=10.66.144.4
username=root
password=XXXXX
owner=Default_Organization
env=Library
rhsm_username=admin
rhsm_password=XXXXX
hypervisor_id=hostname
rhsm_password=XXXXXXXXX
5. restart virt-who service
# service virt-who restart
Stopping virt-who: [ OK ]
Starting virt-who: [ OK ]
6. hypervisor host and guest json info sent successfully, and the json info should be print with hypervisor's hostname with special characters.
MainProcess(10816):MainThread @subscriptionmanager.py:hypervisorCheckIn:194 - Sending update in hosts-to-guests mapping for config "test-libvirt": 1 hypervisors and 2 guests found
2017-01-18 21:41:52,011 [virtwho.main DEBUG] MainProcess(10816):MainThread @subscriptionmanager.py:hypervisorCheckIn:195 - Host-to-guest mapping: {
"hp-z220-06a!#$%^&*": [
{
"guestId": "1f994abe-2df4-9cbd-9b60-d7a07a8d6f67",
"state": 5,
"attributes": {
"active": 0,
"virtWhoType": "libvirt"
}
},
{
"guestId": "65681fef-4d66-a804-9825-66a4a22b053d",
"state": 5,
"attributes": {
"active": 0,
"virtWhoType": "libvirt"
}
}
]
}
2017-01-18 21:41:55,968 [virtwho.main DEBUG] MainProcess(10816):MainThread @executor.py:send_report:101 - Report for config "test-libvirt" sent
2017-01-18 21:42:48,045 [virtwho.test-libvirt DEBUG] Libvirtd-1(10820):MainThread @libvirtd.py:_listDomains:245 - Libvirt domains found: 1f994abe-2df4-9cbd-9b60-d7a07a8d6f67, 65681fef-4d66-a804-9825-66a4a22b053d
7. check Default_Organization->Hosts->Content Hosts
Hypervisor host can not register to satellite in web ui.
Actual results:
Hypervisor host can not register to satellite in web ui.
Expected results:
Hypervisor host should be registered to satellite in web ui.
Additional info:
Based on discussion in triage involving PM, ENG, QE and CEE, this is not a bug, since hostnames within Satellite must be RFC compliant. If you have any concerns about this, please feel free to contact Rich Jerrido. Thank you.
Description of problem: Hypervisor host can't register to satellite WEB UI when using special character. but virt-who can send json information successfully. Version-Release number of selected component (if applicable): Satellite6.2.7-snap2.0 virt-who-0.17-10.el6sat.noarch Hypervisor: libvirt How reproducible: Always Steps to Reproduce: 1. Register virt-who to satellite6.2.7 2. Register Hypervisor guest to satellite6.2.7 on Organization:Default_Organization 3. change Hypervisor short hostname using special characters ,such as "hp-z220-06a!#$%^&*" # hostname hp-z220-06a!#$%^&* # hostname -s hp-z220-06a!#$%^&* 4. vim /etc/virt-who.d/libvirt.conf [test-libvirt] type=libvirt server=10.66.144.4 username=root password=XXXXX owner=Default_Organization env=Library rhsm_username=admin rhsm_password=XXXXX hypervisor_id=hostname rhsm_password=XXXXXXXXX 5. restart virt-who service # service virt-who restart Stopping virt-who: [ OK ] Starting virt-who: [ OK ] 6. hypervisor host and guest json info sent successfully, and the json info should be print with hypervisor's hostname with special characters. MainProcess(10816):MainThread @subscriptionmanager.py:hypervisorCheckIn:194 - Sending update in hosts-to-guests mapping for config "test-libvirt": 1 hypervisors and 2 guests found 2017-01-18 21:41:52,011 [virtwho.main DEBUG] MainProcess(10816):MainThread @subscriptionmanager.py:hypervisorCheckIn:195 - Host-to-guest mapping: { "hp-z220-06a!#$%^&*": [ { "guestId": "1f994abe-2df4-9cbd-9b60-d7a07a8d6f67", "state": 5, "attributes": { "active": 0, "virtWhoType": "libvirt" } }, { "guestId": "65681fef-4d66-a804-9825-66a4a22b053d", "state": 5, "attributes": { "active": 0, "virtWhoType": "libvirt" } } ] } 2017-01-18 21:41:55,968 [virtwho.main DEBUG] MainProcess(10816):MainThread @executor.py:send_report:101 - Report for config "test-libvirt" sent 2017-01-18 21:42:48,045 [virtwho.test-libvirt DEBUG] Libvirtd-1(10820):MainThread @libvirtd.py:_listDomains:245 - Libvirt domains found: 1f994abe-2df4-9cbd-9b60-d7a07a8d6f67, 65681fef-4d66-a804-9825-66a4a22b053d 7. check Default_Organization->Hosts->Content Hosts Hypervisor host can not register to satellite in web ui. Actual results: Hypervisor host can not register to satellite in web ui. Expected results: Hypervisor host should be registered to satellite in web ui. Additional info: