Capsule deployment - cannot synchronize repo to capsule

Hi all,

I just installed a new katello (v2.3) / foreman (V1.9) platform on two
RHEL6 virtual machines (katello => rebinvnuxapp02 + capsule =>
rebinvnuxapp03). Installation went smoothly (no error).
My issue is that repository synchronization do not function anymore as soon
as I configure the smart proxy to be used for Lifecycle environment
(Library).

Message on task:

Could not find Content Host with exact name 'rebinvnuxapp03.emea.cegedim.grp', verify the Capsule is registered with that name.
I checked content host and name for this server is 'rebinvnuxapp03' so not the expected FQDN…
The host object (in all host view) and the smart proxy are named as the FQDN.

I tried to modify the name of the content host object (to put FQDN) but that's not better.

Is my synchronization issue due to mismatch between Content host name (shortname) and smart proxy name (FQDN) ?
If yes, May I edit the content host name ? or recreate this object with the correct name ?

Best regards
Yannig Rousseau

OK, I managed to bypass this error.
It seems to not be an issue with the content host name but a bug in the
application (??).

I found this bug description :
https://bugzilla.redhat.com/show_bug.cgi?id=1228165
and applied the solution :
Stephen Benjamin 2015-07-27 09:44:03 EDT

A workaround for anyone encountering this until GA:

echo 'User.current = User.anonymous_admin; SmartProxy.all.each { |proxy| proxy.content_host.blank? ? proxy.update_attribute(:content_host, Katello::System.find_by_name(proxy.name)) : nil }' | foreman-rake console

Afterward the synchroniztion runs OK.
Maybe it's corrected with katello 2.4, I didn't check it…

Best regards

··· On Thursday, November 12, 2015 at 4:41:46 PM UTC+1, yannig rousseau wrote: > > Hi all, > > I just installed a new katello (v2.3) / foreman (V1.9) platform on two > RHEL6 virtual machines (katello => rebinvnuxapp02 + capsule => > rebinvnuxapp03). Installation went smoothly (no error). > My issue is that repository synchronization do not function anymore as > soon as I configure the smart proxy to be used for Lifecycle environment > (Library). > > Message on task: > > Could not find Content Host with exact name 'rebinvnuxapp03.emea.cegedim.grp', verify the Capsule is registered with that name. > I checked content host and name for this server is 'rebinvnuxapp03' so not the expected FQDN... > The host object (in all host view) and the smart proxy are named as the FQDN. > > I tried to modify the name of the content host object (to put FQDN) but that's not better. > > Is my synchronization issue due to mismatch between Content host name (shortname) and smart proxy name (FQDN) ? > If yes, May I edit the content host name ? or recreate this object with the correct name ? > > Best regards > Yannig Rousseau > >