<div dir="ltr"><div>Hi,</div><div><br></div><div>I'm using the following unmodified image:</div><div><a href="http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img">http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-amd64-disk1.img</a> </div>
<div><br></div><div>I set static ip address for the VM instance via Heat template and user-data:</div><div><br></div><div> "Resources" : {</div><div> </div><div>  "DemoInstance" : {</div><div>   "Type" : "OS::Nova::Server",</div>
<div>   "Properties" : {</div><div>     "key_name" : { "Ref" : "KeyName" },</div><div>     "flavor": { "Ref" : "Flavor" },</div><div>     "image": { "Ref": "ImageName"},</div>
<div>     "networks": [</div><div>        { "uuid": { "Ref" : "PrivateNetworkId" } },</div><div>        { "uuid": { "Ref" : "PublicNetworkId" }, "fixed_ip": { "Ref" : "StaticIp" } } ],</div>
<div>     "user_data" : {</div><div>        "Fn::Base64": {</div><div>           "Fn::Join": [</div><div>              "",</div><div>              [</div><div>                 "#!/bin/bash \n",</div>
<div>                 "export ETH1_CFG=/etc/network/interfaces.d/eth1.cfg\n",</div><div>                 "rm $ETH1_CFG\n", </div><div>                 "touch $ETH1_CFG\n",</div><div>                 "echo auto eth1 >> $ETH1_CFG\n",</div>
<div>                 "echo iface eth1 inet static >> $ETH1_CFG\n", </div><div>                 "echo address ", { "Ref": "StaticIp" }, " >> $ETH1_CFG\n",</div>
<div>                 "echo netmask 255.255.255.0 >> $ETH1_CFG\n",</div><div>                 "ifdown eth1\n",</div><div>                 "ifup eth1\n"  </div><div>              ]</div>
<div>           ]</div><div>        }</div><div><br></div><div>The static ip is given from public network range (192.168.100.xxx).</div><div>As such everything is working fine, the VM starts and after a while I can ping it and log in to it with ssh.</div>
<div><br></div><div>But it can take quite a long time before ping and ssh starts to work. Normally 4-7 minutes. </div><div>Any ideas what could be a reason why it takes so long...? What to check?</div><div><br></div><div>
Many thanks,</div><div>-Juha</div><div><br></div></div>