Project

General

Profile

Bug #16248

unable to process virt-who data, fails with error: "Validation failed: Name is invalid, Name is invalid"

Added by Justin Sherrill almost 3 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Normal
Category:
Client/Agent
Target version:
Difficulty:
easy
Triaged:
Yes
Bugzilla link:
Team Backlog:
Fixed in Releases:
Found in Releases:

Description

Data seems to indicate either underscores or periods at the end

2016-07-06 06:27:48 [katello/cp_proxy] [E] ForemanTasks::TaskError: Task b939db82-76e4-4c06-b711-6d506a59032c: ActiveRecord::RecordInvalid: Validation
failed: Name is invalid, Name is invalid | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.7.14.6/lib/foreman_tasks.rb:40:in `block in sync_task' | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.7.14.6/lib/foreman_tasks.rb:39:in `tap' | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.7.14.6/lib/foreman_tasks.rb:39:in `sync_task' | /opt/theforeman/tfm/root/usr/share/gems/gems/foreman-tasks-0.7.14.6/lib/foreman_tasks/triggers.rb:22:in `sync_task' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.54/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:116:in `block in hype
rvisors_update' | /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:72:in `as' | /opt/theforeman/tfm/root/usr/share/gems/gems/katello-3.0.0.54/app/controllers/katello/api/rhsm/candlepin_proxies_controller.rb:115:in `hypervisors_u
pdate'

Associated revisions

Revision fdecd6dc (diff)
Added by Justin Sherrill almost 3 years ago

Fixes #16248 - sanitize improper virt-who hostnames (#6266)

History

#1 Updated by Justin Sherrill almost 3 years ago

  • Bugzilla link set to 1353110

#2 Updated by The Foreman Bot almost 3 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello/pull/6266 added

#3 Updated by Justin Sherrill almost 3 years ago

  • Legacy Backlogs Release (now unused) changed from 143 to 184

#4 Updated by Justin Sherrill almost 3 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF