blob: cbd06434496a415ed82902a92a42266b8c06ad57 [file] [log] [blame]
savex4448e132018-04-25 15:51:14 +02001"""Constants that is not to be changed and used in all other files
2"""
3
Alex3ebc5632019-04-18 16:47:18 -05004from __future__ import absolute_import, print_function
savex4448e132018-04-25 15:51:14 +02005
6import itertools
7
8_cnt = itertools.count()
9NODE_DOWN = next(_cnt)
10NODE_UP = next(_cnt)
11
Alex41485522019-04-12 17:26:18 -050012# version const order is important!
13# biggest get shown in report top row
14VERSION_NA = next(_cnt)
15VERSION_OK = next(_cnt)
16VERSION_UP = next(_cnt)
17VERSION_DOWN = next(_cnt)
18VERSION_ERR = next(_cnt)
19
20# action const order is important!
21# biggest get shown in report top row
22ACT_NA = next(_cnt)
23ACT_UPGRADE = next(_cnt)
24ACT_NEED_UP = next(_cnt)
25ACT_NEED_DOWN = next(_cnt)
26ACT_REPO = next(_cnt)
27
savex4448e132018-04-25 15:51:14 +020028del _cnt
29
Alex41485522019-04-12 17:26:18 -050030all_actions = {
31 ACT_UPGRADE: "upgrade possible",
32 ACT_NEED_UP: "needs upgrade",
33 ACT_NEED_DOWN: "needs downgrade",
34 ACT_REPO: "needs repo update",
35 ACT_NA: ""
36}
37
38all_statuses = {
39 VERSION_OK: "ok",
40 VERSION_UP: "upgraded",
41 VERSION_DOWN: "downgraded",
42 VERSION_ERR: "error",
43 VERSION_NA: "no status"
44}
45
Alexe0c5b9e2019-04-23 18:51:23 -050046uknown_code = "unk"
47
savex4448e132018-04-25 15:51:14 +020048all_roles_map = {
49 "apt": "repository",
50 "bmk": "validation",
51 "cfg": "master",
52 "cid": "cicd",
53 "cmn": "storage_monitor",
54 "cmp": "compute",
55 "ctl": "openstack_controller",
56 "dbs": "database",
57 "gtw": "openstack_gateway",
58 "kvm": "foundation",
59 "log": "stacklight_logger",
60 "mon": "monitoring",
61 "msg": "messaging",
62 "mtr": "stacklight_metering",
63 "osd": "storage_node",
64 "prx": "proxy",
Alexe0c5b9e2019-04-23 18:51:23 -050065 "rgw": "storage_rados",
66 "unk": "uknown"
savex4448e132018-04-25 15:51:14 +020067}
Alexd9fd85e2019-05-16 16:58:24 -050068
69ubuntu_releases = ["trusty", "xenial", "ubuntu"]
70all_arch = ["amd64"]
71repo_types = {
72 "main": "Officially supported software",
73 "restricted": "Supported software that is not "
74 "available under a completely free license",
75 "universe": "Community maintained software, "
76 "i.e. not officially supported software",
77 "multiverse": "Software that is not free",
78 "contrib": "Free software, but is dependent to non-free software",
79 "uknown": "No specific description available"
80}
81
82_repos_info_archive = "repo.info.tgz"
83_repos_versions_archive = "repo.versions.tgz"
84_pkg_desc_archive = "pkg.descriptions.tgz"
85
86_repos_index_filename = "repoindex.json"
Alex0ed4f762019-05-17 17:55:33 -050087_mainteiners_index_filename = "mainteiners.json"
88_mirantis_versions_filename = "mirantis_v.json"
89_other_versions_filename = "other_v.json"