BUG #15768: Removed rpms and now require /etc/redhat-release

Started by PG Bug reporting formabout 7 years ago6 messagesbugs
Jump to latest
#1PG Bug reporting form
noreply@postgresql.org

The following bug has been logged on the website:

Bug reference: 15768
Logged by: Matt Harter
Email address: matt.harter@genesys.com
PostgreSQL version: 10.6
Operating system: Amazon Linux
Description:

Amazon linux does not have /etc/redhat-release and our pipelines are broken
because the repositories we were using to add to yum are no longer there
without requiring /etc/redhat-release. We are a CI/CD system so manually
adding this is not an option.

#2Bruce Momjian
bruce@momjian.us
In reply to: PG Bug reporting form (#1)
Re: BUG #15768: Removed rpms and now require /etc/redhat-release

On Wed, Apr 17, 2019 at 12:20:45PM +0000, PG Bug reporting form wrote:

The following bug has been logged on the website:

Bug reference: 15768
Logged by: Matt Harter
Email address: matt.harter@genesys.com
PostgreSQL version: 10.6
Operating system: Amazon Linux
Description:

Amazon linux does not have /etc/redhat-release and our pipelines are broken
because the repositories we were using to add to yum are no longer there
without requiring /etc/redhat-release. We are a CI/CD system so manually
adding this is not an option.

Uh, can you show us what you are running and the error? I think this is
a packaging issue, but am unsure.

--
Bruce Momjian <bruce@momjian.us> http://momjian.us
EnterpriseDB http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +
#3Devrim GÜNDÜZ
devrim@gunduz.org
In reply to: PG Bug reporting form (#1)
Re: BUG #15768: Removed rpms and now require /etc/redhat-release

Hi,

On Wed, 2019-04-17 at 12:20 +0000, PG Bug reporting form wrote:

Amazon linux does not have /etc/redhat-release and our pipelines are broken
because the repositories we were using to add to yum are no longer there
without requiring /etc/redhat-release. We are a CI/CD system so manually
adding this is not an option.

Amazon Linux support was removed years ago actually. I just made sure that our
repo file reflects that.

Regards,
--
Devrim Gündüz
Open Source Solution Architect, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

#4Matt Harter
Matt.Harter@genesys.com
In reply to: Devrim GÜNDÜZ (#3)
Re: BUG #15768: Removed rpms and now require /etc/redhat-release

Well whether or not it is officially supported, it still works on amazon linux, and since their default repositories are behind on postgres (which of course is really an amazon limitation) we have to manually add the repository. Since the recent change that added a required dependency (which is clearly NOT required for amazon linux), our previously working deploy pipelines are now blocked/broken. We have temporarily mitigated the issue by using rpm and explicitly ignoring the repositories dependencies, but that seems like a band-aid fix for the real problem which is that dependency shouldn’t be there. Why does a repository need to enforce the os it is on? If a consumer wants to do something “wrong” or against the documented way to do things, their issues are their problem.

On 4/18/19, 4:07 AM, "Devrim Gündüz" <devrim@gunduz.org> wrote:

Hi,

On Wed, 2019-04-17 at 12:20 +0000, PG Bug reporting form wrote:

Amazon linux does not have /etc/redhat-release and our pipelines are broken
because the repositories we were using to add to yum are no longer there
without requiring /etc/redhat-release. We are a CI/CD system so manually
adding this is not an option.

Amazon Linux support was removed years ago actually. I just made sure that our
repo file reflects that.

Regards,
--
Devrim Gündüz
Open Source Solution Architect, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR

#5Alvaro Herrera
alvherre@2ndquadrant.com
In reply to: Matt Harter (#4)
Re: BUG #15768: Removed rpms and now require /etc/redhat-release

On 2019-Apr-18, Matt Harter wrote:

Well whether or not it is officially supported, it still works on amazon linux, and since their default repositories are behind on postgres (which of course is really an amazon limitation) we have to manually add the repository. Since the recent change that added a required dependency (which is clearly NOT required for amazon linux), our previously working deploy pipelines are now blocked/broken. We have temporarily mitigated the issue by using rpm and explicitly ignoring the repositories dependencies, but that seems like a band-aid fix for the real problem which is that dependency shouldn’t be there. Why does a repository need to enforce the os it is on? If a consumer wants to do something “wrong” or against the documented way to do things, their issues are their problem.

I agree, and adding such a dep sounds like a strange change to make.
What was the rationale for that?

--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

#6Devrim GÜNDÜZ
devrim@gunduz.org
In reply to: Matt Harter (#4)
Re: BUG #15768: Removed rpms and now require /etc/redhat-release

Hi,

On Thu, 2019-04-18 at 11:18 +0000, Matt Harter wrote:

Why does a repository need to enforce the os it is on?

I have no intention to support a distro that I never ever test. That means, I
enforce what I test.

No intention to support Amazon Linux, actually, due to bad experiences in the
past. Like I am almost about to drop SLES support for the same reason.

Regards,
--
Devrim Gündüz
Open Source Solution Architect, Red Hat Certified Engineer
Twitter: @DevrimGunduz , @DevrimGunduzTR