ExposuresProvider / cam-kp-api

Web service API for the NCATS Data Translator CAM-KP
MIT License
3 stars 2 forks source link

Move to ITRB #550

Open cbizon opened 2 years ago

cbizon commented 2 years ago

From Architecture call today: https://arax.ncats.io/?smartapi=1 shows that CAM-KP is not yet in ITRB Prod. Please deploy to prod ASAP.

Also, before long, we will also want staging and testing instances on ITRB.

gaurav commented 2 years ago

We do have (older versions of) CAM-KP-API on ITRB prod, staging and testing:

(All of these currently talk to the SPARQL endpoint hosted at RENCI; we're thinking about ways of moving the Blazegraph server to ITRB as well.)

I notice that these instances aren't listed at https://smart-api.info/ either -- if I submit them there, will that propagate back to https://arax.ncats.io or is there another list we should update there?

cbizon commented 2 years ago

Yes, if they are registered in smart-api registry then that will take care of everything.

gaurav commented 2 years ago

I've now added cam-kp-api.transltr.io and cam-kp-api.ci.transltr.io to SmartAPI, and confirmed that they now show up in https://arax.ncats.io/?smartapi=1. Unfortunately, because of a bug in CAM-KP-API, they all report themselves as production instances of cam-kp-api.renci.org, but you can see they are working correctly by looking at the raw metadata.

I'm currently working with Yaphet to deploy the latest CAM-KP-API -- which should fix this bug -- to ITRB Develop via https://github.com/helxplatform/translator-devops/pull/450. We tried this today but ran into an error that I hope I've now fixed. I'll keep iterating on this and report back on this issue once we've updated it correctly. Once that's done, we'll try to push this update to ITRB Test and ITRB Prod.

CAM-KP-API instances currently access the Blazegraph instance hosted on Sterling in RENCI to make SPARQL queries. @balhoff and I have been discussing how to move that to ITRB as well so that CAM-KP-API can be fully hosted on ITRB. Jim is currently working on moving Ontology-KP to ITRB, and seems to be making good progress; once he's done that, I'll use his code to set up a similar system for CAM-KP-API.

https://cam-kp-api.test.transltr.io/1.2.0/docs/index.html?docs=docs.yaml is still down, but I'm hoping that once we get PR https://github.com/helxplatform/translator-devops/pull/450 deployed correctly, we can redeploy it to all ITRB instances.

So, currently outstanding:

gaurav commented 2 years ago

CAM-KP-API 0.1.2 is now on ITRB-CI: https://smart-api.info/ui/80558f3abf621ffbd6d4cf7b96237180 I'm now working with Yaphet on getting that version to ITRB-test and ITRB-prod as well.

gaurav commented 2 years ago

CAM-KP-API v0.1.2 is now on ITRB-Prod too: https://smart-api.info/ui/4fb4446816d08d2b84e08462c051c8f8 I'm not sure why ITRB-test isn't working; debugging that now.

gaurav commented 2 years ago

CAM-KP-API v0.1.2 is now on ITRB-Test too: https://smart-api.info/registry?q=dbc3bd68479f4a2bbf641ec45c7c013c