Comment 2 for bug 1553757

Revision history for this message
Andres Rodriguez (andreserl) wrote :

Hi Paul

Sorry for not being clear enough. The actual issue/concern I have is:

stat: cannot stat '/etc/dbconfig-common/maas-region-controller.conf': No such file or directory

So, I've only been able to reproduce in my system so far, but I have not being able to reproduce it in any cleanly installed system with the latest version of dbconfig-common in Xenial. (2.0.3). At first I thought this was just my system being broken, but I now have not only been the one coming across this issue. See https://bugs.launchpad.net/maas/+bug/1553648. That being said, I must say that I've been using Xenial since very early, and I just started seen this recently, probably the last couple weeks. Obviously, I've been upgrading pretty much daily, but it would match the latest sync from Debian.

Now, the way I'm reproducing this issue right now is an install. I have remove/purged all the packages, include dbconfig common packages and made sure that /etc/dbconfig-common doesn't exist :

roaksoax@unleashed:~/Desktop/project/packaging-1.10⟫ dpkg -l | grep dbconfig
1 roaksoax@unleashed:~/Desktop/project/packaging-1.10⟫ sudo apt-get install maas
Reading package lists... Done
[...]
The following additional packages will be installed:
  dbconfig-common dbconfig-pgsql isc-dhcp-server libecap2v5 maas-cli maas-common maas-dhcp maas-dns maas-proxy maas-rack-controller
[...]
Do you want to continue? [Y/n] y

The installation resumes, and It asks me the question to: http://pastebin.ubuntu.com/15319155/ .Right after answering the questions (no matter if I say install the package maintainer's version or keep the local version currently installed) , it is always the same result:

Setting up maas-region-controller (2.0.0~alpha1+bzr4736-0ubuntu1~xenial2) ...
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 directory
creating postgres user maas: success.
verifying creation of user: success.
[....]
roaksoax@unleashed:~/Desktop/project/packaging-1.10⟫ ls -l /etc/dbconfig-common/
total 4
-rw------- 1 root root 484 Mar 6 23:52 config

As you can see, the file doesn't get created. Now, what I'm really wondering if is there is only an issue in systems where dbconfig-common was first upgraded to the latest version (2.0.3), and not on a freshly installed system where dbconfig-common is latest, as I've not been able to reproduce this on a freshly installed system yet.

PS:
Now, to answer your last question, the question raised by UCF was never there because we preseed the following:

set_question maas-region-controller/dbconfig-install true

Or maybe, the preseeding doesn't really matter and we just have never gotten into a similar situation, hence it never really has been shown before.