Change "Server Hostname Format" on a running server?

34 views
Skip to first unread message

Ben West

unread,
Nov 14, 2016, 1:51:07 PM11/14/16
to scalr-discuss
It looks like changes to "Server Hostname Format" are not applied to a running Server in AWS, even if I put that machine through suspend/resume cycle.  Changing the hostname locally on the machine is possible via hostnamectl, but it looks like scalarizr is still coming in and reverting it at some point afterwards:

scalarizr_debug.log:2016-11-11 19:14:07,306-06:00 - DEBUG - common.utils.subprocess2 - Executing subprocess: ('hostname ip-XX-XX-XX-XX',)

Is it possible to make changes to Server Hostname Format "stick" on a live Server?

This particular is happening on a CentOS v7.2.1511 machine with this agent:

scalarizr-ec2-4.10.2-1.x86_64
scalarizr-4.10.2-1.el5.x86_64

Marc O'Brien

unread,
Nov 15, 2016, 1:49:59 PM11/15/16
to scalr-discuss
Hi Ben,

This is expected.  Only a handful of changes are applied to running instances, while most setting changes will require a respin of the instance for the settings to apply.  Can you terminate the instance, let Scalr spin up a replacement, and verify that your hostname format is correctly applied on the replacement instance?

Many thanks,
Wm. Marc O'Brien
Scalr Technical Support

Ben West

unread,
Nov 16, 2016, 4:22:25 PM11/16/16
to scalr-...@googlegroups.com
Thank you for the response.  Destroying the and rebuilding the instance does propagate the updated hostname as expected.

Since it appeared to me that the local copy of scalarizr was somewhere retaining the outdated hostname (i.e. and overruling attempts to update it via hostnamectl), could you confirm it is not possible to update whatever record scalarizr is using?  That is, that making changes to Server Hostname Format at whatever scope requires destroying and rebuilding all effected machines?

--
You received this message because you are subscribed to a topic in the Google Groups "scalr-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/scalr-discuss/cH4hwHTRqXk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to scalr-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages