Skip to content

added warning message if hysds_io returns 404 not found#16

Merged
DustinKLo merged 1 commit intodevelopfrom
fix_404_client_error
Mar 8, 2021
Merged

added warning message if hysds_io returns 404 not found#16
DustinKLo merged 1 commit intodevelopfrom
fix_404_client_error

Conversation

@DustinKLo
Copy link
Copy Markdown
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
Copy Markdown
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