[Maas-devel] New packaging branch to test

Andres Rodriguez andres.rodriguez at canonical.com
Thu Sep 27 21:43:58 UTC 2012


Hi Julian, 

So I have tested the package and so far seems working as expected. I
have yet to test a few things. 

Issues identified are:

1. dbconfig-common needs to handle the a database for the
maas-region-controller instead of maas. This has been uploaded to the
package in the PPA. 

https://launchpadlibrarian.net/117549060/maas_0.1%2Bbzr1085%
2Bdfsg-0ubuntu1%2Bppa0_0.1%2Bbzr1085%2Bdfsg-0ubuntu1%2Bppa1.diff.gz

The patch is here though. Please apply it.
http://paste.ubuntu.com/1231235/

2. maas-cluster-controller echo's a config file
"/etc/maas/maas_api.conf"
This means that when we remove the package this config file is left and
not removed. 2 ways to handle this.

2.1 Install the config file from the package itself (much preferred) so
that removes are handled automatically.
2.2. On maas-cluster-controller.postrm we need to remove the file on a
purge manually. (I prefer 2.1 because is less prone to errors. This
would mean however that the config file will need to be edited with, say
sed.)

3. Currently, the only file that is requiring manual intervention on
upgrade is maas_local_settings.py. If NO is selected, installation
fails. So we need to find a way to handle this automatically, to not
require user's interaction.

Hope this helps. I will continue testing, most likely tomorrow early
morning. 

Note that I have also added "-x" and random messages to the
postinst/postrm scripts to be able to debug this. I know it is annoying
but it really helps helping me debug.

Cheers.

On Thu, 2012-09-27 at 18:04 +1000, Julian Edwards wrote:
> Hey Andres, and anyone else feeling brave,
> 
> https://code.launchpad.net/~julian-edwards/maas/add-maas-cluster-packaging
> which I upload here:
> https://launchpad.net/~maas-maintainers/+archive/experimental/+packages
> 
> contains set of packages in the new world order as discussed in the other 
> thread.  Highlights are:
> 
>  * maas is now a virtual package, which pulls in:
>  * New: maas-region-controller
>  * New: maas-cluster-controller
> 
> maas-dhcp no longer asks questions about DHCP parameters, it just installs and 
> sets up the DHCP stuff because the cluster controller expects all this info to 
> be sent to it from the region now.
> 
> The cluster controller asks a debconf question about what the URL to the API 
> is. It currently starts up a process that registers with the region 
> controller, but there's no UI to accept it yet.  There's is an API though, so 
> will work with the CLI.
> 
> Problems:
> 
> * The upgrade is not completely tested yet.  Well, I saw it work but I expect 
> it'll have some logical errors.
> * The cluster controller needs to be able to work without asking questions on 
> upgrade from 12.04 to 12.10 (and a CD install).
> 
> Andres, I hope you'll be able to finish it off today as we discussed so that 
> Diogo can test with it tomorrow.
> 
> Cheers!






More information about the Maas-devel mailing list