Hi Jordan, 

It gets overridden to ‘localhost’ probably because the ‘host’ global setting is 
set to ‘localhost’. If you’re using just one management it’s safe to change 
that to 192.168.253.2 and it’ll get updated. In order to overcome the SSL error 
you could probably need to restart management, but first give it a try without 
restarting it. 

Thanks,
Bobby. 


boris.stoya...@shapeblue.com 
www.shapeblue.com
Amadeus House, Floral Street, London  WC2E 9DPUK
@shapeblue
  
 

> On 10 Oct 2018, at 23:14, Jordan Michaels <mic...@viviotech.net> wrote:
> 
> Hi Folks,
> 
> I'm running a very simple cloudstack setup on a single machine (I'm 
> attempting to get more familiar with it) and for whatever reason, whenever I 
> restart cloudstack.agent, the agent.properties file gets rewritten with the 
> line:
> 
> host=localhost@static
> 
> This results in SSL communication errors in the log:
> 
> ----------------
> 2018-10-10 10:07:01,565 DEBUG [o.a.c.c.p.RootCACustomTrustManager] 
> (pool-252-thread-1:null) (logid:) A client/agent attempting connection from 
> address=127.0.0.1 has presented these certificate(s):
> Certificate [1] :
> Serial: 348e41b92390b91d
>  Not Before:Tue Oct 09 21:46:05 EDT 2018
>  Not After:Thu Oct 10 09:46:05 EDT 2019
>  Signature Algorithm:SHA256withRSA
>  Version:3
>  Subject DN:C=cloudstack, O=cloudstack, OU=cloudstack, CN=nix.viviotech.net
>  Issuer DN:CN=ca.cloudstack.apache.org
>  Alternative Names:[[7, fe80:0:0:0:fc00:2eff:fe00:12], [7, 
> fe80:0:0:0:fc00:fbff:fe00:3], [7, fe80:0:0:0:fc00:22ff:fe00:29], [7, 
> 192.168.122.1], [7, fe80:0:0:0:fc00:a9ff:fefe:79], [7, 
> fe80:0:0:0:e8b9:3fff:fe81:524d], [7, fe80:0:0:0:fc00:a9ff:fefe:2a8], [7, 
> fe80:0:0:0:225:90ff:fed2:15da], [7, 192.168.253.2], [7, 
> fe80:0:0:0:fc00:4bff:fe00:7], [2, 192.168.253.2]]
> Certificate [2] :
> Serial: d9fead25f9acaf6a
>  Not Before:Mon Oct 08 02:17:06 EDT 2018
>  Not After:Wed Sep 30 14:17:06 EDT 2048
>  Signature Algorithm:SHA256withRSA
>  Version:3
>  Subject DN:CN=ca.cloudstack.apache.org
>  Issuer DN:CN=ca.cloudstack.apache.org
>  Alternative Names:null
> 2018-10-10 10:07:01,566 ERROR [o.a.c.c.p.RootCACustomTrustManager] 
> (pool-252-thread-1:null) (logid:) Certificate ownership verification failed 
> for client: 127.0.0.1
> ----------------
> 
> If I change the agent.properties file to read:
> 
> host=192.168.253.2@static
> 
> ... which is the actual IP of the server, and I restart the agent, everything 
> works great. However the agent.properties file is overwritten with the 
> localhost@static value as soon as the agent starts up so the next time I 
> restart the agent I get the 127.0.0.1 SSL errors again. Playing with the 
> server and doing lots of restarts becomes pretty frustrating.
> 
> So, my question is: What process is rewriting the agent.properties file and 
> where does it get it's values from? If I knew that I could correct the issue 
> at its source.
> 
> Thanks in advance for any direction on this!
> 
> Kind regards,
> Jordan Michaels
> Vivio Technologies

Reply via email to