Re: Accessing the metadata API?

2017-02-01 Thread Lee Trager
MAAS has an internal library to help with accessing the metadata service, provisioningserver/refresh/maas_api_helper.py. As this library is used during commissioning its only dependencies are python3-yaml python3-oauthlib. We store credentials on deployed nodes in

Re: Backup/restore of region controllers

2017-02-01 Thread Lee Trager
Hi Junaid, You are correct that /var/lib/maas should also be backed up as well. However, you can omit /var/lib/maas/boot-resources. This directory contains the boot-images, on restore MAAS will automatically reimport them. Lee On Wed, Feb 1, 2017 at 11:23 AM, Junaid Ali

Re: Regarding alarm and metrics in MAAS

2017-08-09 Thread Lee Trager
Anything you can do in the UI you can also do in the using the API/CLI. To download the current installation log you can use the command maas node-script-result download current-installation Similarly you can do the same for commissioning or testing results maas node-script-result download

Re: How does MAAS pick which volume to boot from?

2017-12-06 Thread Lee Trager
What happens if you remove the argument(the append line) completely? On a test host it automatically selects the right drive. Lee On Tue, Dec 5, 2017 at 11:56 PM, Dmitrii Shcherbakov < dmitrii.shcherba...@canonical.com> wrote: > For non-UEFI systems it appears to be that MAAS 2.3.0 only