Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added warning message if hysds_io returns 404 not found #16

Merged
merged 1 commit into from
Mar 8, 2021

Conversation

DustinKLo
Copy link
Contributor

in io-met.py when attempting to add users to the allowed_users field it will print a 404 client error if the hysds_io doesn't exist in ES

404 Client Error: NOT FOUND for url: http://100.##.###.###:8878/api/v0.1/hysds_io/type

this change will instead change it to a WARNING

@DustinKLo
Copy link
Contributor Author

testing a build with a brand new job that doesn't exist in my cluster

[CI] Build for: hysds-io-hello_world_notebook:main and file hello_world_notebook
Running IO-Met on: container-hysds_hello_world_notebook:main docker/hysds-io.json.hello_world_notebook main hysds-io-hello_world_notebook:main
WARNING: hysds_io not found: hysds-io-hello_world_notebook:main, cannot merge allowed_accounts

job found in ElasticSearch

$ curl "localhost:9200/hysds_ios-grq/_doc/hysds-io-hello_world_notebook:main?pretty&_source=false"
{
  "_index" : "hysds_ios-grq",
  "_type" : "_doc",
  "_id" : "hysds-io-hello_world_notebook:main",
  "_version" : 1,
  "_seq_no" : 23,
  "_primary_term" : 15,
  "found" : true
}

@DustinKLo DustinKLo merged commit c3006cc into develop Mar 8, 2021
@DustinKLo DustinKLo deleted the fix_404_client_error branch March 8, 2021 23:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants