[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bootstrap-vz GCE status






2014-03-25 19:32 GMT+01:00 Tomasz Rybak <tomasz.rybak@post.pl>:
Dnia 2014-03-25, wto o godzinie 09:39 +0100, olivier sallou pisze:
>
>
>
> 2014-03-24 22:39 GMT+01:00 Jimmy Kaplowitz <jkaplowitz@google.com>:
>         While I'm not sure, the GCE web console probably does the same
>         as gcutil resetinstance, which is equivalent to pressing the
>         hardware reset button on a physical machine.
>
>
>         The serial info contains the console log, assuming the
>         settings to do that got preserved in the switch from
>         build-debian-cloud to bootstrap-vz.
>
> I made a new test today with boot a "sudo reboot" and a graphical
> reboot and both worked.... So maybe issue was an isolated issue.

I haven't tested reboots, so cannot comment on it.
>
>
> Remains hostname not being set, I think it is because /etc/hostname
> has not been removed from generated image. Google startup scripts
> would have run the set-hostname script if not present. I will test
> with this.

I've added linking of /usr/share/google/set-hostname to dhcp exit hooks
in providers.gce.tasks.host.SetHostname, but have not removed
/etc/hostname from image.
In my experience it worked - i.e. after start I got correct
hostname. Maybe it needs fixing though.

I think this script is called at some time of image generation (a kinda stop of dhcp service), however I do not see when it could be called.. Indeed, even if I active the task RemoveHostname (called before your SetHostname), I still have in my instance the name of the server where I generated the image.
This means that file /etc/hostname is still present on the generated image (as set-hostname does not overwrite it).

The service should not be called before first boot.

Olivier 

> By the way, serial console log access is ok.
>

There is still small problem with GRUB settings - I had to comment
out one line in providers.gce.tasks.boot.ConfigureGrub as it was not
accepted by grub scripts.

--
Tomasz Rybak <tomasz.rybak@post.pl> GPG/PGP key ID: 2AD5 9860
Fingerprint A481 824E 7DD3 9C0E C40A  488E C654 FB33 2AD5 9860
http://member.acm.org/~tomaszrybak




--
gpg key id: 4096R/326D8438  (keyring.debian.org)
Key fingerprint = 5FB4 6F83 D3B9 5204 6335  D26D 78DC 68DB 326D 8438

Reply to: