Project

General

Profile

Actions

Task #5353

closed

Task #5358: Portlet resources

Database + endpoint needed

Added by Denis Pyriochos over 8 years ago. Updated over 8 years ago.

Status:
Closed
Priority:
Urgent
Category:
Other
Target version:
-
Start date:
Oct 03, 2016
Due date:
% Done:

100%

Estimated time:
Infrastructure:
Pre-Production, Production

Description

  1. We need a postgress database. The database will not host large volume of data, a starting point of 10G should be sufficient. Just numbers and text, no images or blobs.

  2. We need a Database endpoint named SimulFishGrowth that points to this database.

  3. We also need the credentials and privileges in order to handle tables and views and insert/update/delete data.


Related issues

Related to D4Science Infrastructure - Task #5384: Endpoint access - SimulFishGrowthClosedMassimiliano AssanteOct 04, 2016

Actions
Related to D4Science Infrastructure - Task #5386: Endpoint access - SimulFishGrowthClosedMassimiliano AssanteOct 04, 2016

Actions
Related to D4Science Infrastructure - Task #5385: Endpoint access - SimulFishGrowthClosedMassimiliano AssanteOct 04, 2016

Actions
Related to D4Science Infrastructure - Incident #5687: SimulFishGrowthData cannot contact postgres userClosed_InfraScience Systems EngineerNov 08, 2016

Actions
Actions #1

Updated by Denis Pyriochos over 8 years ago

  • Parent task set to #5358
Actions #2

Updated by Andrea Dell'Amico over 8 years ago

We already have a dedicated postgresql with a database that has the same name: https://support.d4science.org/issues/3893
Is it a different instance? Has the name to be the same?

Actions #3

Updated by Denis Pyriochos over 8 years ago

The previous database is for development, this is for preproduction. We may need one more for production.

The database name is not important. You can name it as you please as we are querying the endpoint and get connection info from there.

The connection point should have the same name, SimulFishGrowth.

Actions #4

Updated by Denis Pyriochos over 8 years ago

  • Related to Task #5384: Endpoint access - SimulFishGrowth added
Actions #5

Updated by Denis Pyriochos over 8 years ago

  • Related to Task #5386: Endpoint access - SimulFishGrowth added
Actions #6

Updated by Denis Pyriochos over 8 years ago

  • Related to Task #5385: Endpoint access - SimulFishGrowth added
Actions #7

Updated by Massimiliano Assante over 8 years ago

Denis, before proceeding I would like to ask if your query to the IS for the endpoint (SimulFishGrowth DB) uses the current VRE scope (as it should)

Actions #8

Updated by Massimiliano Assante over 8 years ago

  • Assignee changed from _InfraScience Systems Engineer to Roberto Cirillo
Actions #9

Updated by Denis Pyriochos over 8 years ago

As far as I know and based on your suggestions, we are setting the current scope and then query the IS for SimulFishGrowth.

I am a bit alarmed with your question, though. How else could we access the endpoint? Is there a pitfall you see?

Actions #10

Updated by Massimiliano Assante over 8 years ago

Denis Pyriochos wrote:

As far as I know and based on your suggestions, we are setting the current scope and then query the IS for SimulFishGrowth.

I am a bit alarmed with your question, though. How else could we access the endpoint? Is there a pitfall you see?

I wanted make sure you were not hardcoding the scope, sorry.

Actions #11

Updated by Denis Pyriochos over 8 years ago

Better safe than sorry, eh? ;)

Actions #12

Updated by Tommaso Piccioli over 8 years ago

  • Status changed from New to In Progress
  • % Done changed from 0 to 50

New empty DB created ( SimulFishGrowth_pre ) , is available at the server db-sfg-pre.d4science.org with the same login (user: sfguser) of the dev database.

Actions #13

Updated by Denis Pyriochos over 8 years ago

Is there a way to give the password as I should run the setup scripts?

Actions #14

Updated by Denis Pyriochos over 8 years ago

Dear @tommaso.piccioli@isti.cnr.it could you please send me the password as I should run the init scripts for the database?

Actions #15

Updated by Tommaso Piccioli over 8 years ago

Denis, user and password are the same of the dev database, I'm sending the password to you via email.

Actions #16

Updated by Denis Pyriochos over 8 years ago

step 1 - ok :)

Actions #17

Updated by Denis Pyriochos over 8 years ago

  • Infrastructure Production added

We need the same for Production as well.

Actions #18

Updated by Andrea Dell'Amico over 8 years ago

  • Status changed from In Progress to Feedback
  • % Done changed from 50 to 100

I've just created the db named SimulFishGrowth_prod. You can access it with the same user and password of the other two databases.

Actions #19

Updated by Denis Pyriochos over 8 years ago

  • Status changed from Feedback to In Progress

we also need an database endpoint named SimulFishGrowth, pointing to this database and accessible from the scopes:

  • /d4science.research-infrastructures.eu/gCubeApps/EllinikaPsariaVRE
  • /d4science.research-infrastructures.eu/gCubeApps/AlieiaVRE
  • /d4science.research-infrastructures.eu/gCubeApps/ForkysVRE
Actions #20

Updated by Denis Pyriochos over 8 years ago

Also, I get the error

10:11:43 PM: Error: FATAL:  no pg_hba.conf entry for host "193.92.78.53", user "sfguser", database "SimulFishGrowth_prod", SSL on
FATAL:  no pg_hba.conf entry for host "193.92.78.53", user "sfguser", database "SimulFishGrowth_prod", SSL off

I guess you should whitelist our ip address. Thx.

Actions #21

Updated by Andrea Dell'Amico over 8 years ago

  • Status changed from In Progress to Feedback

Denis Pyriochos wrote:

Also, I get the error

10:11:43 PM: Error: FATAL:  no pg_hba.conf entry for host "193.92.78.53", user "sfguser", database "SimulFishGrowth_prod", SSL on
FATAL:  no pg_hba.conf entry for host "193.92.78.53", user "sfguser", database "SimulFishGrowth_prod", SSL off

I guess you should whitelist our ip address. Thx.

Yes, I forgot to reload the service.
Do you have a fixed IP (or a list of them, or a network) from where you access the db? right now the ACLs are very permissive.

Actions #22

Updated by Roberto Cirillo over 8 years ago

The service endpoint is in place

Actions #23

Updated by Denis Pyriochos over 8 years ago

  • Status changed from Feedback to Closed

@andrea.dellamico@isti.cnr.it this is the only static ip accessing the database.

Actions #24

Updated by Andrea Dell'Amico over 8 years ago

Denis Pyriochos wrote:

this is the only static ip accessing the database.

Is this valid for the dev and preprod instances too?

Actions #25

Updated by Denis Pyriochos over 8 years ago

Yes. I just checked and it has access to all three databases: SimulFishGrowth, SimulFishGrowth_pre, SimulFishGrowth_prod

Actions #26

Updated by Andrea Dell'Amico over 8 years ago

I've also seen accesses coming from 88.197.53.20. I added both the IPs to the postgresql ACLs.

Actions #27

Updated by Denis Pyriochos over 8 years ago

This one should be the actual java service, managed by @k.kakaletris@cite.gr

Actions #28

Updated by Kostas Kakaletris over 8 years ago

  • 88.197.53.20 is the ip of the VM that is hosting the pre-production gcube service
  • 88.197.53.37 is the ip of the VM that is hosting the production gcube servicc
Actions #29

Updated by Andrea Dell'Amico over 8 years ago

  • Related to Incident #5687: SimulFishGrowthData cannot contact postgres user added
Actions #30

Updated by Pasquale Pagano over 8 years ago

  • Target version deleted (gCube related support)
Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)