all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#46737: Services breakage from the PostgreSQL socket-directory configuration change
@ 2021-02-24  0:44 Christopher Baines
  2021-02-25 13:39 ` Mathieu Othacehe
  0 siblings, 1 reply; 5+ messages in thread
From: Christopher Baines @ 2021-02-24  0:44 UTC (permalink / raw)
  To: 46737

[-- Attachment #1: Type: text/plain, Size: 929 bytes --]

Hey,

When reconfiguring recently, I ran in to issues with the Guix Data
Service and probably the Patchwork service too.

Looking at the change, I think it's clear there's a problem, because
some system tests were changed, and I'm guessing they were changed so
that they passed [1].

1: https://git.savannah.gnu.org/cgit/guix.git/commit/?id=6c0679215f4ffa534c1eb2e8c8a6e043a0c993fe

Passing tests are good, but working around real issues in tests is not,
because that means that the situation outside of the tests can break and
if it does, the test result is misleading.

Patchwork, the Guix Data Service and maybe other things currently depend
on the default behaviour of PostgreSQL to find the socket. Given that
the service now uses a different (non-default) value, they don't
work.

One workaround, the one employed in the tests is to revert to the old
behaviour for the PostgreSQL service by setting socket-directory to #f.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#46737: Services breakage from the PostgreSQL socket-directory configuration change
  2021-02-24  0:44 bug#46737: Services breakage from the PostgreSQL socket-directory configuration change Christopher Baines
@ 2021-02-25 13:39 ` Mathieu Othacehe
  2021-02-25 18:35   ` Christopher Baines
  0 siblings, 1 reply; 5+ messages in thread
From: Mathieu Othacehe @ 2021-02-25 13:39 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 46737


Hello Chris,

> One workaround, the one employed in the tests is to revert to the old
> behaviour for the PostgreSQL service by setting socket-directory to #f.

You're right, sorry about the breakage. As you noticed we are in an
in-between situation where the patch updating Postgresql package to use
"/var/run/postgresql" by default is only on core-updates, but the
service is already using it as a default on master.

This means that "createdb", "dropdb" and other Postgresql user tools
need to have an explicit "-h /var/run/postgresql" argument for now.

Until the package patch gets merged in the master branch, we could set
the "socket-directory" field of <postgresql-config-file> record to #f to
restore an acceptable default behaviour.

WDYT?

Sorry again for breaking things,

Mathieu




^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#46737: Services breakage from the PostgreSQL socket-directory configuration change
  2021-02-25 13:39 ` Mathieu Othacehe
@ 2021-02-25 18:35   ` Christopher Baines
  2021-04-12 20:47     ` Christopher Baines
  0 siblings, 1 reply; 5+ messages in thread
From: Christopher Baines @ 2021-02-25 18:35 UTC (permalink / raw)
  To: Mathieu Othacehe; +Cc: 46737

[-- Attachment #1: Type: text/plain, Size: 1038 bytes --]


Mathieu Othacehe <othacehe@gnu.org> writes:

>> One workaround, the one employed in the tests is to revert to the old
>> behaviour for the PostgreSQL service by setting socket-directory to #f.
>
> You're right, sorry about the breakage. As you noticed we are in an
> in-between situation where the patch updating Postgresql package to use
> "/var/run/postgresql" by default is only on core-updates, but the
> service is already using it as a default on master.
>
> This means that "createdb", "dropdb" and other Postgresql user tools
> need to have an explicit "-h /var/run/postgresql" argument for now.
>
> Until the package patch gets merged in the master branch, we could set
> the "socket-directory" field of <postgresql-config-file> record to #f to
> restore an acceptable default behaviour.
>
> WDYT?

I think that would be good. It's unfortunate that the package change is
stuck on core-updates for now, but configuring the service on master to
keep the old behaviour until core-updates is merged sounds sensible.

Thanks,

Chris

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#46737: Services breakage from the PostgreSQL socket-directory configuration change
  2021-02-25 18:35   ` Christopher Baines
@ 2021-04-12 20:47     ` Christopher Baines
  2021-04-12 23:15       ` Leo Famulari
  0 siblings, 1 reply; 5+ messages in thread
From: Christopher Baines @ 2021-04-12 20:47 UTC (permalink / raw)
  To: 46737

[-- Attachment #1: Type: text/plain, Size: 1287 bytes --]


Christopher Baines <mail@cbaines.net> writes:

> Mathieu Othacehe <othacehe@gnu.org> writes:
>
>>> One workaround, the one employed in the tests is to revert to the old
>>> behaviour for the PostgreSQL service by setting socket-directory to #f.
>>
>> You're right, sorry about the breakage. As you noticed we are in an
>> in-between situation where the patch updating Postgresql package to use
>> "/var/run/postgresql" by default is only on core-updates, but the
>> service is already using it as a default on master.
>>
>> This means that "createdb", "dropdb" and other Postgresql user tools
>> need to have an explicit "-h /var/run/postgresql" argument for now.
>>
>> Until the package patch gets merged in the master branch, we could set
>> the "socket-directory" field of <postgresql-config-file> record to #f to
>> restore an acceptable default behaviour.
>>
>> WDYT?
>
> I think that would be good. It's unfortunate that the package change is
> stuck on core-updates for now, but configuring the service on master to
> keep the old behaviour until core-updates is merged sounds sensible.

I don't know if the expectation was that I was going to fix this, but
since it seems there's a release coming up, I went ahead and prepared a
patch [1].

1: https://issues.guix.gnu.org/47736

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 987 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* bug#46737: Services breakage from the PostgreSQL socket-directory configuration change
  2021-04-12 20:47     ` Christopher Baines
@ 2021-04-12 23:15       ` Leo Famulari
  0 siblings, 0 replies; 5+ messages in thread
From: Leo Famulari @ 2021-04-12 23:15 UTC (permalink / raw)
  To: Christopher Baines; +Cc: 46737-done

[-- Attachment #1: Type: text/plain, Size: 1516 bytes --]

On Mon, Apr 12, 2021 at 09:47:45PM +0100, Christopher Baines wrote:
> 
> Christopher Baines <mail@cbaines.net> writes:
> 
> > Mathieu Othacehe <othacehe@gnu.org> writes:
> >
> >>> One workaround, the one employed in the tests is to revert to the old
> >>> behaviour for the PostgreSQL service by setting socket-directory to #f.
> >>
> >> You're right, sorry about the breakage. As you noticed we are in an
> >> in-between situation where the patch updating Postgresql package to use
> >> "/var/run/postgresql" by default is only on core-updates, but the
> >> service is already using it as a default on master.
> >>
> >> This means that "createdb", "dropdb" and other Postgresql user tools
> >> need to have an explicit "-h /var/run/postgresql" argument for now.
> >>
> >> Until the package patch gets merged in the master branch, we could set
> >> the "socket-directory" field of <postgresql-config-file> record to #f to
> >> restore an acceptable default behaviour.
> >>
> >> WDYT?
> >
> > I think that would be good. It's unfortunate that the package change is
> > stuck on core-updates for now, but configuring the service on master to
> > keep the old behaviour until core-updates is merged sounds sensible.
> 
> I don't know if the expectation was that I was going to fix this, but
> since it seems there's a release coming up, I went ahead and prepared a
> patch [1].
> 
> 1: https://issues.guix.gnu.org/47736

I pushed your patch as c311147bd16aa0e5746d9cbf31502f5fd61e470c

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-04-12 23:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-24  0:44 bug#46737: Services breakage from the PostgreSQL socket-directory configuration change Christopher Baines
2021-02-25 13:39 ` Mathieu Othacehe
2021-02-25 18:35   ` Christopher Baines
2021-04-12 20:47     ` Christopher Baines
2021-04-12 23:15       ` Leo Famulari

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.