<div dir="ltr">On Fri, Nov 8, 2013 at 9:57 AM, Andreas Hasenack <span dir="ltr"><<a href="mailto:andreas@canonical.com" target="_blank">andreas@canonical.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div dir="ltr"><div><div class="h5"><div class="gmail_quote">
<div dir="ltr"><div>This is the issue:</div><div><div>2013-11-07 13:47:02 UTC FATAL: no pg_hba.conf entry for host "10.0.5.100", user "landscape", database "landscape-standalone-main", SSL off</div>
<div>2013-11-07 13:47:02 UTC DETAIL: Client IP address resolved to "10-0-5-100.maaslocal", forward lookup not checked.</div></div><div><br></div></div></div></div></div></div></blockquote><div><br></div><div>To reproduce, deploy the following services with juju using the maas provider:</div>
<div>juju deploy postgresql</div><div>juju deploy postgresql-psql psql</div><div>juju add-relation postgresql:db psql:db</div><div><br></div><div>Now try it:</div><div>juju ssh psql/0</div><div><div>ubuntu@k8q9m:~$ psql-db-postgresql-0 -l</div>
<div>psql: FATAL: no pg_hba.conf entry for host "10.0.5.103", user "db_1_psql", database "postgres", SSL on</div><div>FATAL: no pg_hba.conf entry for host "10.0.5.103", user "db_1_psql", database "postgres", SSL off</div>
<div>ubuntu@k8q9m:~$ </div></div><div><br></div><div>The postgresql/0 server will log:</div><div><div>2013-11-08 12:54:14 UTC FATAL: no pg_hba.conf entry for host "10.0.5.103", user "db_1_psql", database "postgres", SSL on</div>
<div>2013-11-08 12:54:14 UTC DETAIL: Client IP address resolved to "10-0-5-103.maaslocal", forward lookup not checked.</div></div><div><br></div><div>Its pg_hba.conf will contain:</div><div><div># db:1 from psql/0</div>
<div>host psql db_1_psql k8q9m.maaslocal md5</div><div><br></div><div>host psql db_1_psql_schema k8q9m.maaslocal md5</div><div># replication:0 from postgresql/0</div><div>host postgres juju_replication kmkxr.maaslocal md5</div>
</div><div><br></div></div></div></div>