maas-devel team mailing list archive
-
maas-devel team
-
Mailing list archive
-
Message #01802
Re: Are nodes aware of MAAS?
Hi Jeff,
On Wed, Jul 09, 2014 at 05:46:55PM -0400, Jeffrey Lane wrote:
> Sorry for the email, but I think most/all of the MAAS devs are EOD by now.
>
> I was just wondering if there is any way nodes are aware or can be
> made aware of the MAAS server?
>
> What I'm trying to is figure out a way that a node can know that it
> was deployed from MAAS, and what version of MAAS was used. Is there
> some sort of API that the node can talk to MAAS to get version info
> from?
>
> Would it be possible to somehow inject this data into the node via the
> curtin_userdata file (or d-i preseed)) at deployment time?
Depends on what exactly you want, but if all you're after is a hard
coded version, you can add something like:
# untested
late_commands:
set_maas_in_guest: curtin in-target -- sh -c "/bin/echo 1.5.blahblahblah > /etc/installed-with-maas"
in the maas region controller's /etc/maas/preseeds/curtin_userdata.
\t
> The reason is that for certification, we record the version of MAAS
> used to deploy the SUT. This is captured mostly for support purposes,
> so that if Server A is certified and a customer reports an issue down
> the road like "MAAS doesn't see my ServerA", we can look at the
> certificate and say "Well, it was working as of version
> 1.5.blahblahblah, so something has regressed since then".
>
> Thoughts?
>
> Jeff
>
> --
> "Entropy isn't what it used to be."
>
> Jeff Lane - Server Certification Team Lead, Tools Developer, Warrior
> Poet, Lover of Pie
> Phone: 919-442-8649
> Ubuntu Ham: W4KDH Freenode IRC: bladernr or bladernr_
> gpg: 1024D/3A14B2DD 8C88 B076 0DD7 B404 1417 C466 4ABD 3635 3A14 B2DD
>
> --
> Mailing list: https://launchpad.net/~maas-devel
> Post to : maas-devel@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~maas-devel
> More help : https://help.launchpad.net/ListHelp
Follow ups
References