[FOLIO-3152] snapshot build fails with an LDP-related error Created: 10/May/21  Updated: 11/May/21  Resolved: 11/May/21

Status: Closed
Project: FOLIO
Components: None
Affects versions: None
Fix versions: None

Type: Story Priority: P2
Reporter: Zak Burke Assignee: Wayne Schneider
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified

Sprint: DevOps Sprint 114
Development Team: FOLIO DevOps

 Description   

Description: The folio-snapshot, snapshot-load, and testing builds are all failing with an LDP-related error:

TASK [Create directory ldp data dir] *******************************************
changed: [10.36.1.247]

TASK [template ldpconf.json] ***************************************************
changed: [10.36.1.247]

TASK [ldp : test if init has already been run] *********************************
ok: [10.36.1.247]

TASK [run ldp init] ************************************************************
FATAL: command execution failed
hudson.AbortException: Ansible playbook execution failed
	at org.jenkinsci.plugins.ansible.AnsiblePlaybookBuilder.perform(AnsiblePlaybookBuilder.java:262)
	at org.jenkinsci.plugins.ansible.workflow.AnsiblePlaybookStep$AnsiblePlaybookExecution.run(AnsiblePlaybookStep.java:430)
	at org.jenkinsci.plugins.ansible.workflow.AnsiblePlaybookStep$AnsiblePlaybookExecution.run(AnsiblePlaybookStep.java:351)
	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1$1.call(AbstractSynchronousNonBlockingStepExecution.java:47)
	at hudson.security.ACL.impersonate2(ACL.java:449)
	at hudson.security.ACL.impersonate(ACL.java:461)
	at org.jenkinsci.plugins.workflow.steps.AbstractSynchronousNonBlockingStepExecution$1.run(AbstractSynchronousNonBlockingStepExecution.java:44)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
[Pipeline] }


 Comments   
Comment by Nassib Nassar [ 10/May/21 ]

Changes were made in LDP over the weekend that were incompatible with the deployment script used for FOLIO.  The relevant commits have been reverted for now.

To avoid this problem in general, the deployment script will probably have to be changed to pull from a release branch or specific commit.

Comment by Jakub Skoczen [ 10/May/21 ]

David Crossley Nassib Nassar should this ticker be closed? Is the problem resolved?

Comment by Wayne Schneider [ 10/May/21 ]

If I understand correctly, the updates to LDP have been reverted, so the build is fine for now. I will coordinate with Nassib Nassar to make the required updates.

Comment by Wayne Schneider [ 10/May/21 ]

Bumped down the priority, as the reference builds are back in production for now.

Comment by Wayne Schneider [ 10/May/21 ]

Changes in this commit: https://github.com/library-data-platform/ldp/commit/06851a0a7a47fd02c3af05f35fc9b2b6d11da022#diff-5de1a9b26e2b8eb548fcfb1e095ae1e3eaba06d0e573346dc193a08d80ee2c86

It looks like the major change is that the code is now using libpq instead of ODBC for database connectivity, so configuration is different, and unixODBC/odbc-postgresql are no longer needed.

Probably best to update the role to allow for backwards compatibility with released versions.

Comment by Wayne Schneider [ 10/May/21 ]

Changes have been made in the ldp role to support both libpq (default) and ODBC configuration and tested with folio-snapshot-test. Holding issue open to verify with overnight reference builds.

Comment by Wayne Schneider [ 10/May/21 ]

BTW this update required some changes to the ldp Dockerfile, done in this PR.

Comment by Wayne Schneider [ 11/May/21 ]

Overnight reference builds successful, closing the issue.

Comment by Nassib Nassar [ 11/May/21 ]

FOLIO's reference build will use specific LDP release versions instead of the development branch: https://folio-org.atlassian.net/browse/FOLIO-3156

Generated at Thu Feb 08 23:26:00 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100246-sha1:7a5c50119eb0633d306e14180817ddef5e80c75d.