By: John Bryson user 26 Mar 2015 at 3:07 p.m. CDT

3 Responses
John Bryson gravatar
We have installed the centos rpm on our Redhat RHEL6 platform. Most things seem fine. However restart of the application, changes the hostname GLUU.[root@pariksha ~]# hostname pariksha.gatech.edu <<<< Correct and expected host name GLUU.[root@pariksha ~]# logout pariksha.gatech.edu: service gluu-server stop Shutting down Gluu Server... Stopping opendj... OK Stopping Tomcat... Failed Stopping Apache... Failed pariksha.gatech.edu: service gluu-server start Starting Gluu server, please wait... pariksha.gatech.edu: hostname ce.gluu.info We have seen that ce.gluu.info name in this file, under the chroot: pariksha.gatech.edu: cd /home/gluu-server/etc pariksha.gatech.edu: grep -ri ce.gluu.info . ./sysconfig/network:HOSTNAME=ce.gluu.info Once the hostname is changed, we would have to get a system admin to get us back into the system, since our login processes are depending on the hostname being the original string.

By Mohib Zico Account Admin 26 Mar 2015 at 3:48 p.m. CDT

Mohib Zico gravatar
You can change the hostname permanently in this way: * Apply desired hostname in "network" ( /etc/sysconfig/network ) * Log into chroot container as root. * Again - Apply desired hostname in "network" ( /etc/sysconfig/network ) * Check if your hostname is included in /etc/hosts file; if not add it with proper IP address. * Apply command: hostname <new_hostname> (without < > ) * Apply command: service network restart Feel free to let us know how it is going there.

By Bert Bee-Lindgren user 26 Mar 2015 at 8:43 p.m. CDT

Bert Bee-Lindgren gravatar
Thank you for the information. I think it will work to prevent breakage. From a slightly philosophical and a slightly forward-looking viewpoint... It's suboptimal for an application to reconfigure the global host information when it is run (hostname, ip address, etc), even if that application is partially pretending to be a virtual machine. Perhaps docker does the right thing in these cases and it will matter less. However, if these host-config changes cannot be prevented or cannot be made to refer to the global OS configuration (eg, have the start scripts update the chroot /etc/sysconfig files from the host's current information), then I suggest a document or FAQ about what is stored in that chroot area that needs to be updated when a host needs to be readdressed or renamed.

By Mohib Zico Account Admin 31 Mar 2015 at 8:51 a.m. CDT

Mohib Zico gravatar
John / Bert, I am closing this ticket for now. Please feel free to open a new one if you have any other issue or question. Kind regards, Zico