Renaming ESX Content Hosts (from uuid) results in 404

My setup is Katello 2.2.2 on RHEL7 and I'm running virt-who-0.12-5.el6 on
an EL7 guest (only virt-who that seemed to work). This version of virt-who
runs every hour and takes about 5 seconds to refresh 60 ESX hosts across 3
vCenters.

The names for the ESX hosts are not very friendly as UUIDs so I'm using
Hosts -> Content Hosts in Foreman to rename them to friendly names. When I
update the display_name and Save, I see an error "An error occurred saving
the Content Host: Task <taskid>: RestClient::ResourceNotFound: 404 Resource
Not Found" however, the name updates in the Content Hosts view.

The task is paused : error and I don't like leaving those hanging out there
(seems to cause problems in the future) so I do Unlock the task.

I've included the backtrace in case it is useful.

  • Should I be updating the display_name for ESX hosts ?
  • Is updating the Name in Hosts -> Content Hosts the right way to do this ?
  • If yes/yes, I assume the 404 shouldn't be happening - what additional
    information do I need to provide if a bug report is in order?

Action:

Actions::Pulp::Consumer::Update

BackTrace:

/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in return!&#39; /opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.1/lib/runcible/base.rb:92:inblock in get_response'
/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:228:in call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:228:inprocess_result'
/opt/rh/ruby193/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclient_ext/request.rb:50:in block in transmit&#39; /opt/rh/ruby193/root/usr/share/ruby/net/http.rb:746:instart'
/opt/rh/ruby193/root/usr/share/gems/gems/rbovirt-0.0.35/lib/restclient_ext/request.rb:44:in transmit&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:64:inexecute'
/opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in execute&#39; /opt/rh/ruby193/root/usr/share/gems/gems/rest-client-1.6.7/lib/restclient/resource.rb:76:input'
/opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.1/lib/runcible/base.rb:91:in get_response&#39; /opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.1/lib/runcible/base.rb:82:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/runcible-1.3.1/lib/runcible/resources/consumer.rb:60:in update&#39; /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/pulp/consumer/update.rb:27:inrun'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:481:in block (3 levels) in execute_run&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware/stack.rb:26:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware/stack.rb:26:in pass&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware.rb:16:inpass'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/remote_action.rb:28:in block in run&#39; /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/remote_action.rb:58:inblock (2 levels) in as_remote_user'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/katello/util/thread_session.rb:84:in pulp_config&#39; /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/remote_action.rb:44:inas_pulp_user'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/remote_action.rb:57:in block in as_remote_user&#39; /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/katello/util/thread_session.rb:91:incp_config'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/remote_action.rb:39:in as_cp_user&#39; /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/remote_action.rb:56:inas_remote_user'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/remote_action.rb:28:in run&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware/stack.rb:22:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware/stack.rb:26:in pass&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware.rb:16:inpass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action/progress.rb:30:in with_progress_calculation&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action/progress.rb:16:inrun'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware/stack.rb:22:in call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware/stack.rb:26:inpass'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware.rb:16:in pass&#39; /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/keep_locale.rb:23:inblock in run'
/opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/keep_locale.rb:34:in with_locale&#39; /opt/rh/ruby193/root/usr/share/gems/gems/katello-2.2.2/app/lib/actions/middleware/keep_locale.rb:23:inrun'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware/stack.rb:22:in call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/middleware/world.rb:30:inexecute'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:480:in block (2 levels) in execute_run&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:479:incatch'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:479:in block in execute_run&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:396:incall'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:396:in block in with_error_handling&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:396:incatch'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:396:in with_error_handling&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:474:inexecute_run'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/action.rb:256:in execute&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:9:inblock (2 levels) in execute'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/execution_plan/steps/abstract.rb:155:in call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/execution_plan/steps/abstract.rb:155:inwith_meta_calculation'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:8:in block in execute&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:22:inopen_action'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/execution_plan/steps/abstract_flow_step.rb:7:in execute&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/executors/parallel/worker.rb:20:inblock in on_message'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:859:in block in assigns&#39; /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:858:intap'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:858:in assigns&#39; /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:138:inmatch_value'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:116:in block in match&#39; /opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:115:ineach'
/opt/rh/ruby193/root/usr/share/gems/gems/algebrick-0.4.0/lib/algebrick.rb:115:in match&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/executors/parallel/worker.rb:17:inon_message'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/micro_actor.rb:82:in on_envelope&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/micro_actor.rb:72:inreceive'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/micro_actor.rb:99:in block (2 levels) in run&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/micro_actor.rb:99:inloop'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/micro_actor.rb:99:in block in run&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/micro_actor.rb:99:incatch'
/opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/micro_actor.rb:99:in run&#39; /opt/rh/ruby193/root/usr/share/gems/gems/dynflow-0.7.8/lib/dynflow/micro_actor.rb:13:inblock in initialize'
/opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:in call&#39; /opt/rh/ruby193/root/usr/share/gems/gems/logging-1.8.1/lib/logging/diagnostic_context.rb:323:inblock in create_with_logging_context'

To add - even though the ESX host "Name" is now friendly, it is not
searchable by the friendly name. I can still use the old UUID to search
and get results, but not the friendly name.

I'd file an issue with all this information in it so we can take a look.

Eric

··· On Jul 14, 2015 12:28 PM, "Eric du Toit" wrote:

To add - even though the ESX host “Name” is now friendly, it is not
searchable by the friendly name. I can still use the old UUID to search
and get results, but not the friendly name.


You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.