Re: [Bug 1553757] Re: dbconfig-common: writing config to /etc/dbconfig-common/maas-region-controller.conf stat: cannot stat '/etc/dbconfig-common/maas-region-controller.conf': No such file or director

2016-03-10 Thread Paul Gevers
Hi Andres, On 10-03-16 02:47, Andres Rodriguez wrote: > So this confirms that because of the postrm bug, we would see the install > issues. Good that we nailed it down. > however, I wonder if dbconfig-common should do > something to not to write a new config ? As dbconfig-common leaves this to

Re: [Bug 1553757] Re: dbconfig-common: writing config to /etc/dbconfig-common/maas-region-controller.conf stat: cannot stat '/etc/dbconfig-common/maas-region-controller.conf': No such file or director

2016-03-09 Thread Andres Rodriguez
Hi Paul, So this is what I did: 1. Modified the postrm to not check for /etc/dbconfig-common/maas-region-controller.conf 2. purged maas 3. re-installed maas and the result was: dbconfig-common: writing config to /etc/dbconfig-common/maas-region-controller.conf Creating config file

Re: [Bug 1553757] Re: dbconfig-common: writing config to /etc/dbconfig-common/maas-region-controller.conf stat: cannot stat '/etc/dbconfig-common/maas-region-controller.conf': No such file or director

2016-03-08 Thread Paul Gevers
Hi Andres, On 08-03-16 04:41, Andres Rodriguez wrote: > Sorry for the delay and thanks for looking into it. Good catch on the > postrm. At least I know that's my fault. That being said, I wonder if > unregistering the file actually explains why it doesn't get re-created. Hmm, I was a bit to

Re: [Bug 1553757] Re: dbconfig-common: writing config to /etc/dbconfig-common/maas-region-controller.conf stat: cannot stat '/etc/dbconfig-common/maas-region-controller.conf': No such file or director

2016-03-08 Thread Paul Gevers
Hi Andres, On 08-03-16 04:38, Andres Rodriguez wrote: > So the reason we did this is because we wanted MAAS to be installed and we > didn't want any question to be asked, so we decided to do the preseeding. I recommend that you try to use dbc_prio_high=medium instead of your current code. By

Re: [Bug 1553757] Re: dbconfig-common: writing config to /etc/dbconfig-common/maas-region-controller.conf stat: cannot stat '/etc/dbconfig-common/maas-region-controller.conf': No such file or director

2016-03-07 Thread Andres Rodriguez
Hi Paul Sorry for the delay and thanks for looking into it. Good catch on the postrm. At least I know that's my fault. That being said, I wonder if unregistering the file actually explains why it doesn't get re-created. The funny thing here is that this is the first time it actually does

Re: [Bug 1553757] Re: dbconfig-common: writing config to /etc/dbconfig-common/maas-region-controller.conf stat: cannot stat '/etc/dbconfig-common/maas-region-controller.conf': No such file or director

2016-03-07 Thread Andres Rodriguez
So the reason we did this is because we wanted MAAS to be installed and we didn't want any question to be asked, so we decided to do the preseeding. The registration piece is something that I found in another package, but allowed MAAS to register the preseed options, otherwise this would have

Re: [Bug 1553757] Re: dbconfig-common: writing config to /etc/dbconfig-common/maas-region-controller.conf stat: cannot stat '/etc/dbconfig-common/maas-region-controller.conf': No such file or director

2016-03-07 Thread Paul Gevers
Andres, This (in maas-region-controller.postrm) prevents dbconfig-common from unregistring the file with ucf (so the fact that you see the ucf prompt after purging and installing is at least caused by maas itself): if [ -f /etc/dbconfig-common/maas.conf ]; then if [ -f

Re: [Bug 1553757] Re: dbconfig-common: writing config to /etc/dbconfig-common/maas-region-controller.conf stat: cannot stat '/etc/dbconfig-common/maas-region-controller.conf': No such file or director

2016-03-07 Thread Paul Gevers
Hi Andres, Maybe unrelated and I may not understand your intentions, but I see the following in your maas-region-controller.config: set_question() { if ! db_fget "$1" seen; then db_register dbconfig-common/dbconfig-install "$1" db_subst "$1" ID "$1" db_fget "$1" seen