While sending RHEV or VMware ESX hypervisor details to the satellite v 6.2, virt-who fails with the error "Validation failed: Name is invalid, Name is invalid" if the hypervisor profile name contain "_" underscore in it.
Issue
- While sending
RHEV hypervisor
details to the satellite v 6.2,virt-who
fails with the error below:
2016-08-02 14:03:05,393 [ERROR] @subscriptionmanager.py:171 - Communication with server failed:
Traceback (most recent call last):
File "/usr/share/virt-who/manager/subscriptionmanager/subscriptionmanager.py", line 167, in hypervisorCheckIn
result = self.connection.hypervisorCheckIn(config.owner, config.env, serialized_mapping)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 903, in hypervisorCheckIn
res = self.conn.request_post(url, host_guest_mapping)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 647, in request_post
return self._request("POST", method, params)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 564, in _request
self.validateResponse(result, request_type, handler)
File "/usr/lib64/python2.7/site-packages/rhsm/connection.py", line 611, in validateResponse
raise RestlibException(response['status'], error_msg, response.get('headers'))
RestlibException: Task 20f60fc4-a405-45fb-9278-88334c0ad9e2: ActiveRecord::RecordInvalid: Validation failed: Name is invalid, Name is invalid
2016-08-02 14:03:05,394 [ERROR] @virtwho.py:177 - Unable to send data: Communication with subscription manager failed with code 500: Task 20f60fc4-a405-45fb-9278-88334c0ad9e2: ActiveRecord::RecordInvalid: Validation failed: Name is invalid, Name is invalid
Environment
- Red Hat Satellite v 6.2
- Virt-who-0.14-9.el7.noarch
- Red Hat Virtualization Enterprise / ESX hypervisor
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.