fedcloudclient 1.4.1__tar.gz → 1.4.3__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/ChangeLog +1 -1
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/PKG-INFO +1 -1
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/config/sites.yaml +2 -5
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/docs/cheat.rst +7 -1
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/docs/quickstart.rst +11 -1
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/docs/usage.rst +11 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient/decorators.py +9 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient/schema.json +28 -8
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient/sites.py +16 -8
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient.egg-info/PKG-INFO +1 -1
- fedcloudclient-1.4.3/fedcloudclient.egg-info/pbr.json +1 -0
- fedcloudclient-1.4.1/fedcloudclient.egg-info/pbr.json +0 -1
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/.github/linters/.flake8 +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/.github/linters/.jscpd.json +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/.github/linters/.mypy.ini +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/.github/linters/mlc_config.json +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/.github/workflows/check-links.yml +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/.github/workflows/lint.yml +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/.github/workflows/publish_image.yml +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/.github/workflows/python-package.yml +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/.github/workflows/python-publish.yml +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/.github/workflows/sphinx-pages.yml +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/.travis.yml +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/AUTHORS +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/CHANGELOG +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/COPYRIGHT +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/Dockerfile +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/LICENSE +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/README.md +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/docs/FAQ.rst +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/docs/conf.py +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/docs/development.rst +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/docs/fedcloudclient-logo-non-transparent-small.png +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/docs/fedcloudclient.rst +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/docs/index.rst +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/docs/install.rst +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/docs/intro.rst +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/docs/modules.rst +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/docs/scripts.rst +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/examples/command_history.txt +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/examples/demo.py +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/examples/fedcloud_bash_completion.sh +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/examples/list-all-my-own-vms.sh +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/examples/list-my-own-vms.sh +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient/__init__.py +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient/checkin.py +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient/cli.py +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient/ec3.py +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient/endpoint.py +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient/openstack.py +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient/secret.py +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient/select.py +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient/shell.py +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient.egg-info/SOURCES.txt +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient.egg-info/dependency_links.txt +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient.egg-info/entry_points.txt +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient.egg-info/not-zip-safe +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient.egg-info/requires.txt +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/fedcloudclient.egg-info/top_level.txt +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/requirements.txt +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/setup.cfg +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/setup.py +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/test-requirements.txt +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/tests/00_empty_test.py +0 -0
- {fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/tox.ini +0 -0
|
@@ -1,30 +1,27 @@
|
|
|
1
1
|
# List of sites in https://github.com/EGI-Federation/fedcloud-catchall-operations/tree/main/sites
|
|
2
2
|
# As GitHub API has limited access rates, the list of sites is stored here for simple access
|
|
3
3
|
|
|
4
|
-
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/100IT.yaml"
|
|
5
4
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/BIFI.yaml"
|
|
5
|
+
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/CENI.yaml"
|
|
6
6
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/CESGA.yaml"
|
|
7
7
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/CESGA-CLOUD.yaml"
|
|
8
8
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/CESNET-MCC.yaml"
|
|
9
9
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/CETA-GRID.yaml"
|
|
10
10
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/CLOUDIFIN.yaml"
|
|
11
|
+
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/CSTCLOUD-EGI.yaml"
|
|
11
12
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/CYFRONET-CLOUD.yaml"
|
|
12
13
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/DESY-CC.yaml"
|
|
13
14
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/GRNET-OPENSTACK.yaml"
|
|
14
|
-
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/GSI-LCG2.yaml"
|
|
15
15
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/IFCA-LCG2.yaml"
|
|
16
16
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/IISAS-FedCloud-cloud.yaml"
|
|
17
17
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/ILIFU-UCT.yaml"
|
|
18
18
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/IN2P3-IRES.yaml"
|
|
19
19
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/INFN-CLOUD-BARI.yaml"
|
|
20
20
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/INFN-CLOUD-CNAF.yaml"
|
|
21
|
-
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/INFN-PADOVA-STACK.yaml"
|
|
22
21
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/NCG-INGRID-PT.yaml"
|
|
23
22
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/SCAI.yaml"
|
|
24
23
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/TR-FC1-ULAKBIM.yaml"
|
|
25
24
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/UA-BITP.yaml"
|
|
26
|
-
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/UNIV-LILLE.yaml"
|
|
27
|
-
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/UPV-GRyCAP.yaml"
|
|
28
25
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/WALTON-CLOUD.yaml"
|
|
29
26
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/fedcloud.srce.hr.yaml"
|
|
30
27
|
- "https://raw.githubusercontent.com/EGI-Federation/fedcloud-catchall-operations/main/sites/EODC.yaml"
|
|
@@ -77,12 +77,18 @@ Basic usages
|
|
|
77
77
|
|
|
78
78
|
$ fedcloud token list-vos
|
|
79
79
|
|
|
80
|
-
* List sites in EGI Federated Cloud:
|
|
80
|
+
* List sites in the EGI Federated Cloud:
|
|
81
81
|
|
|
82
82
|
::
|
|
83
83
|
|
|
84
84
|
$ fedcloud site list
|
|
85
85
|
|
|
86
|
+
* List all sites supporting a Virtual Organization in the EGI Federated Cloud:
|
|
87
|
+
|
|
88
|
+
::
|
|
89
|
+
|
|
90
|
+
$ fedcloud site list --vo vo.access.egi.eu
|
|
91
|
+
|
|
86
92
|
* Execute an OpenStack command:
|
|
87
93
|
|
|
88
94
|
::
|
|
@@ -43,7 +43,7 @@ Basic usages
|
|
|
43
43
|
training.egi.eu
|
|
44
44
|
...
|
|
45
45
|
|
|
46
|
-
* List sites in EGI Federated Cloud
|
|
46
|
+
* List sites in the EGI Federated Cloud
|
|
47
47
|
|
|
48
48
|
::
|
|
49
49
|
|
|
@@ -53,6 +53,16 @@ Basic usages
|
|
|
53
53
|
CESGA
|
|
54
54
|
...
|
|
55
55
|
|
|
56
|
+
* List sites supporting a Virtual Organization in the EGI Federated Cloud
|
|
57
|
+
|
|
58
|
+
::
|
|
59
|
+
|
|
60
|
+
$ fedcloud site list --vo vo.access.egi.eu
|
|
61
|
+
BIFI
|
|
62
|
+
CENI
|
|
63
|
+
CESGA-CLOUD
|
|
64
|
+
...
|
|
65
|
+
|
|
56
66
|
* Execute an OpenStack command, e.g. list images in eosc-synergy.eu VO on IISAS-FedCloud site
|
|
57
67
|
(or other combination of site and VO you have access):
|
|
58
68
|
|
|
@@ -278,6 +278,17 @@ VOs and so on.
|
|
|
278
278
|
...
|
|
279
279
|
|
|
280
280
|
|
|
281
|
+
* **"fedcloud site list --vo <VO-name>"** : List all sites supporting a Virtual Organization
|
|
282
|
+
|
|
283
|
+
::
|
|
284
|
+
|
|
285
|
+
$ fedcloud site vo-list --vo vo.access.egi.eu
|
|
286
|
+
BIFI
|
|
287
|
+
CENI
|
|
288
|
+
CESGA-CLOUD
|
|
289
|
+
...
|
|
290
|
+
|
|
291
|
+
|
|
281
292
|
* **"fedcloud site show --site <SITE>"** : Show configuration of the corresponding site.
|
|
282
293
|
|
|
283
294
|
::
|
|
@@ -100,6 +100,15 @@ vo_params = click.option(
|
|
|
100
100
|
metavar="vo-name",
|
|
101
101
|
)
|
|
102
102
|
|
|
103
|
+
# Optional decorator for --vo
|
|
104
|
+
vo_params_optional = click.option(
|
|
105
|
+
"--vo",
|
|
106
|
+
help="Name of the VO",
|
|
107
|
+
required=False,
|
|
108
|
+
envvar="EGI_VO",
|
|
109
|
+
metavar="vo-name",
|
|
110
|
+
)
|
|
111
|
+
|
|
103
112
|
|
|
104
113
|
def site_vo_params(func):
|
|
105
114
|
"""
|
|
@@ -5,6 +5,25 @@
|
|
|
5
5
|
"title": "site specs",
|
|
6
6
|
"description": "site configuration schema",
|
|
7
7
|
"definitions": {
|
|
8
|
+
"imagesdata": {
|
|
9
|
+
"type": "object",
|
|
10
|
+
"properties": {
|
|
11
|
+
"sync": {
|
|
12
|
+
"type": "boolean",
|
|
13
|
+
"description": "Do image synchronisation",
|
|
14
|
+
"default": false
|
|
15
|
+
},
|
|
16
|
+
"formats": {
|
|
17
|
+
"type": "array",
|
|
18
|
+
"title": "formats",
|
|
19
|
+
"description": "Supported VM image formats at the site.",
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "string"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"additionalProperties": false
|
|
26
|
+
},
|
|
8
27
|
"vodata": {
|
|
9
28
|
"type": "object",
|
|
10
29
|
"properties": {
|
|
@@ -22,17 +41,11 @@
|
|
|
22
41
|
}
|
|
23
42
|
}
|
|
24
43
|
},
|
|
25
|
-
"required": [
|
|
26
|
-
"auth",
|
|
27
|
-
"name"
|
|
28
|
-
],
|
|
44
|
+
"required": ["auth", "name"],
|
|
29
45
|
"additionalProperties": true
|
|
30
46
|
}
|
|
31
47
|
},
|
|
32
|
-
"required": [
|
|
33
|
-
"gocdb",
|
|
34
|
-
"endpoint"
|
|
35
|
-
],
|
|
48
|
+
"required": ["gocdb", "endpoint"],
|
|
36
49
|
"properties": {
|
|
37
50
|
"gocdb": {
|
|
38
51
|
"$id": "#/properties/gocdb",
|
|
@@ -70,6 +83,13 @@
|
|
|
70
83
|
"items": {
|
|
71
84
|
"$ref": "#/definitions/vodata"
|
|
72
85
|
}
|
|
86
|
+
},
|
|
87
|
+
"images": {
|
|
88
|
+
"$id": "#/properties/images",
|
|
89
|
+
"title": "Image Configuration",
|
|
90
|
+
"description": "Image configuration",
|
|
91
|
+
"type": "object",
|
|
92
|
+
"$ref": "#/definitions/imagesdata"
|
|
73
93
|
}
|
|
74
94
|
},
|
|
75
95
|
"additionalProperties": false
|
|
@@ -28,6 +28,7 @@ from fedcloudclient.decorators import (
|
|
|
28
28
|
all_site_params,
|
|
29
29
|
oidc_params,
|
|
30
30
|
site_vo_params,
|
|
31
|
+
vo_params_optional,
|
|
31
32
|
)
|
|
32
33
|
from fedcloudclient.shell import print_set_env_command
|
|
33
34
|
|
|
@@ -182,16 +183,22 @@ def delete_site_config(config_dir):
|
|
|
182
183
|
shutil.rmtree(config_dir, ignore_errors=True)
|
|
183
184
|
|
|
184
185
|
|
|
185
|
-
def list_sites():
|
|
186
|
+
def list_sites(vo=None):
|
|
186
187
|
"""
|
|
187
|
-
List
|
|
188
|
+
List all sites IDs in site configurations
|
|
189
|
+
Optionally list all sites supporting a Virtual Organization
|
|
188
190
|
|
|
189
191
|
:return: list of site IDs
|
|
190
192
|
"""
|
|
191
193
|
read_site_config()
|
|
192
194
|
result = []
|
|
193
195
|
for site_info in __site_config_data:
|
|
194
|
-
|
|
196
|
+
if vo is None:
|
|
197
|
+
result.append(site_info["gocdb"])
|
|
198
|
+
else:
|
|
199
|
+
for vos in site_info["vos"]:
|
|
200
|
+
if vo == vos["name"]:
|
|
201
|
+
result.append(site_info["gocdb"])
|
|
195
202
|
return result
|
|
196
203
|
|
|
197
204
|
|
|
@@ -317,13 +324,14 @@ def save_config():
|
|
|
317
324
|
|
|
318
325
|
|
|
319
326
|
@site.command("list")
|
|
320
|
-
|
|
327
|
+
@vo_params_optional
|
|
328
|
+
def list_(vo=None):
|
|
321
329
|
"""
|
|
322
|
-
List all sites
|
|
330
|
+
List all sites. If "--vo <name>" is provided, list only sites
|
|
331
|
+
supporting a Virtual Organization.
|
|
323
332
|
"""
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
print(site_info["gocdb"])
|
|
333
|
+
for site in list_sites(vo):
|
|
334
|
+
print(site)
|
|
327
335
|
|
|
328
336
|
|
|
329
337
|
@site.command()
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"git_version": "97c78db", "is_release": false}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"git_version": "e6c9ec2", "is_release": false}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{fedcloudclient-1.4.1 → fedcloudclient-1.4.3}/docs/fedcloudclient-logo-non-transparent-small.png
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|