<div dir="ltr"><div class="gmail_default" style="font-family:monospace,monospace"><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Aug 14, 2015 at 12:31 PM, Jerry Zhao <span dir="ltr"><<a href="mailto:xyzjerry@gmail.com" target="_blank">xyzjerry@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF" text="#000000">
    I wonder whether the previous hostname was associated with the
    instance name or not. If yes, then your cloud-init worked, just that
    metadata was not updated by changing the instance name. If no, you
    need cloud-init built in the image and it will poll the metadata
    after reboot.<div><div class="h5"><br>
    <br>
    <br>
    <div>On 08/14/2015 10:45 AM, mad Engineer
      wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">so is editing cloudinit manually the only way to
        change hostname?.I wonder how would it get the instance name as
        hostname during build state.</div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Aug 14, 2015 at 11:06 PM, David
          Medberry <span dir="ltr"><<a href="mailto:medberry@gmail.com" target="_blank">medberry@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <p dir="ltr">This is a VM specific issue. You may be able to
              do so with cloud init but primarily you will need to go
              into the instance if you do this after the instance is
              booted.</p>
            <p dir="ltr">How to do so within the instance is OS
              specific.</p>
            <div class="gmail_quote">
              <div>
                <div>On Aug 14, 2015 11:05 AM, "mad Engineer"
                  <<a href="mailto:themadengin33r@gmail.com" target="_blank">themadengin33r@gmail.com</a>>
                  wrote:<br type="attribution">
                </div>
              </div>
              <blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
                <div>
                  <div>
                    <div dir="ltr">is there any way to change hostname
                      by changing instance name.
                      <div>I tried changing instance name and then did a
                        hard reboot but hostname is still the same.If
                        this is not the right approach for changing
                        hostname can some one tell me what should be
                        done to change hostname of instances without
                        logging to instance.</div>
                      <div><br>
                      </div>
                      <div>tried on Juno-Neutron and
                        icehouse-nova-network none worked</div>
                      <div><br>
                      </div>
                      <div>Thanks for any help</div>
                    </div>
                    <br>
                  </div>
                </div>
                _______________________________________________<br>
                Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
                Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a><br>
                Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
                <br>
              </blockquote>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a>
Post to     : <a href="mailto:openstack@lists.openstack.org" target="_blank">openstack@lists.openstack.org</a>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a>
</pre>
    </blockquote>
    <br>
  </div></div></div>

<br>_______________________________________________<br>
Mailing list: <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
Post to     : <a href="mailto:openstack@lists.openstack.org">openstack@lists.openstack.org</a><br>
Unsubscribe : <a href="http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack" rel="noreferrer" target="_blank">http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack</a><br>
<br></blockquote></div><div class="gmail_default" style="font-family:monospace,monospace">​You could build a new one with the name you wanted... or you could snapshot the one you have, and create from snapshot again with the name you wanted.  I've never tried to change something like that, always found it easier to just spawn a new instance, or ignore the name to begin with.​</div><br></div></div>