forked from opensciencegrid/topology
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add "Pelican cache" and "Pelican origin" services
Most cache/origin endpoints work the same for the Pelican cache/origin service types as they do for the XRootD cache/origin services The exception is the namespaces JSON which explicitly excludes Pelican caches/origins. (SOFTWARE-5867)
- Loading branch information
1 parent
2df0bdf
commit e5b9d9d
Showing
7 changed files
with
79 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
from webapp.common import readfile, to_xml_bytes, to_json_bytes, Filters, support_cors, simplify_attr_list, is_null, \ | ||
escape, cache_control_private, PreJSON, is_true, GRIDTYPE_1, GRIDTYPE_2, NamespacesFilters | ||
from webapp.flask_common import create_accepted_response | ||
from webapp.exceptions import DataError, ResourceNotRegistered, ResourceMissingService | ||
from webapp.exceptions import DataError, ResourceNotRegistered, ResourceMissingServices | ||
from webapp.forms import GenerateDowntimeForm, GenerateResourceGroupDowntimeForm, GenerateProjectForm | ||
from webapp.models import GlobalData | ||
from webapp.oasis_managers import get_oasis_manager_endpoint_info | ||
|
@@ -603,7 +603,7 @@ def _get_cache_authfile(public_only): | |
fqdn=cache_fqdn, | ||
legacy=app.config["STASHCACHE_LEGACY_AUTH"], | ||
suppress_errors=False) | ||
except (ResourceNotRegistered, ResourceMissingService) as e: | ||
except (ResourceNotRegistered, ResourceMissingServices) as e: | ||
return Response("# {}\n" | ||
"# Please check your query or contact [email protected]\n" | ||
.format(str(e)), | ||
|
@@ -627,7 +627,7 @@ def _get_origin_authfile(public_only): | |
try: | ||
auth = stashcache.generate_origin_authfile(global_data=global_data, fqdn=request.args['fqdn'], | ||
suppress_errors=False, public_origin=public_only) | ||
except (ResourceNotRegistered, ResourceMissingService) as e: | ||
except (ResourceNotRegistered, ResourceMissingServices) as e: | ||
return Response("# {}\n" | ||
"# Please check your query or contact [email protected]\n" | ||
.format(str(e)), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters