Susan,
this is a good point. We currently do recommend running Katello on a
dedicated host, therefore there is no support in the katello-configure
to define different port(s). I am adding this to our backlog, should not
be difficult to implement.
I did some research and it looks like the configuration value in the
sysconfig file does not make any effect currently:
$ git grep KATELLO_PORT
katello-configure/modules/katello/templates/etc/sysconfig/katello.erb:#KATELLO_PORT=3000
src/deploy/common/katello.init:KATELLO_PORT=${KATELLO_PORT:-3000}
src/deploy/common/katello.sysconfig:#KATELLO_PORT=3000
Even if you set it, it will be ignored. I will remove this, perhaps it
is a leftover after our thin migration.
If you need to change ports, you can do this with the following trick:
1) Stop katello and check there are not thin processes running under
katello user. This is important, you cannot change ports while Katello
is running, otherwise our sysvinit script wont be able to stop it then.
2) Edit
/usr/share/katello/install/puppet/modules/katello/manifests/params.pp
and change this value:
$thin_start_port = "5000"
to the desired port. Please note katello spawns multiple worker
processes, depends on your setting in katello-configure. By default it
calculates CPU_COUNT + 1 if you have enough memory.
3) Run katello-configure. If you provide -b option you will see puppet
output on the stdout - it should reconfigure several files.
4) Reconfigure selinux - you will need to make sure ports are allowed
for our katello policy. If you are not sure and selinux is not a must
for you, turn it off.
5) Restart all services using katello-service restart command.
You are done.
If you have different conflicting ports, let me know. There are many,
which are not even listed on this page:
https://fedorahosted.org/katello/wiki/FirewallConfiguration
(used for internal katello communication)
LZ
On Mon, Oct 29, 2012 at 04:04:01AM +0000, Ng, Susan (MC Linux) wrote:
Hi,
I am trying to setup Katello on a system with other software and encountered port
conflicts causing Katello to fail startup. I am wondering if you can advise on how to
pick alternate ports for Katello and its related components so it can function with other
software on the same system . Is there a guide or best practice on how to select
alternate ports to avoid conflicts with existing software?
Thanks,
Susan
_______________________________________________
katello mailing list
katello(a)lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/katello
--
Later,
Lukas "lzap" Zapletal
#katello #systemengine