Skip to content

Commit

Permalink
ncm-ceph: Cleanup lint from test templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jrha committed Nov 28, 2024
1 parent 429578b commit ad4945a
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
8 changes: 4 additions & 4 deletions ncm-ceph/src/test/resources/basic_cluster.pan
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
object template basic_cluster;


variable OSDS = dict(
variable CEPH_OSDS = dict(
'ceph001', dict(
'fqdn', 'ceph001.cubone.os',
'osds', dict(
Expand All @@ -21,7 +21,7 @@ variable OSDS = dict(
)
);

variable MDSS = dict(
variable CEPH_MDSS = dict(
'ceph002', dict(
'fqdn', 'ceph002.cubone.os',
'up', true
Expand Down Expand Up @@ -49,8 +49,8 @@ prefix '/software/components/ceph/clusters';

'ceph' = dict(
'config', CONFIG,
'osdhosts', OSDS,
'mdss', MDSS,
'osdhosts', CEPH_OSDS,
'mdss', CEPH_MDSS,
'monitors', dict(
'ceph001', MONITOR1,
'ceph002', MONITOR2,
Expand Down
14 changes: 7 additions & 7 deletions ncm-ceph/src/test/resources/basic_crushmap.pan
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ variable CEPH_OSD_DISKS = list('sdc', 'sdd', 'sde', 'sdf', 'sdg', 'sdh', 'sdi',
variable CEPH_JOURNAL_DISKS = list('sda4', 'sdb');
variable CEPH_DEFAULT_OSD_WEIGHT = 1.0;

variable MDSS = dict(
variable CEPH_MDSS = dict(
'ceph001.cubone.os', dict(
'fqdn', 'ceph001.cubone.os',
),
Expand Down Expand Up @@ -59,7 +59,7 @@ variable BASE_STEPS = list(
),
);

prefix "/software/components/ceph/clusters/ceph/crushmap/";
prefix "/software/components/ceph/clusters/ceph/crushmap";

'types' = list('osd', 'host', 'root');

Expand Down Expand Up @@ -103,11 +103,11 @@ prefix "/software/components/ceph/clusters/ceph/crushmap/";
prefix '/software/components/ceph/clusters/ceph';
'config' = CONFIG;
'osdhosts' = {
t=dict();
foreach(idx;host;CEPH_HOSTS) {
t = dict();
foreach(idx; host; CEPH_HOSTS) {
d = dict();
foreach(odx;disk;CEPH_OSD_DISKS) {
jdx= odx % length(CEPH_JOURNAL_DISKS); ## RR over journal disks
foreach(odx; disk; CEPH_OSD_DISKS) {
jdx = odx % length(CEPH_JOURNAL_DISKS); ## RR over journal disks
d[disk] = dict(
'journal_path', format('/var/lib/ceph/log/%s/osd-%s/journal', CEPH_JOURNAL_DISKS[jdx], disk),
'crush_weight', CEPH_DEFAULT_OSD_WEIGHT
Expand All @@ -121,7 +121,7 @@ prefix '/software/components/ceph/clusters/ceph';
t;
};

'mdss' = MDSS;
'mdss' = CEPH_MDSS;
'monitors' = dict(
'ceph001', MONITOR1,
'ceph002', MONITOR2,
Expand Down
14 changes: 7 additions & 7 deletions ncm-ceph/src/test/resources/basic_crushmap_tt.pan
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ variable CEPH_OSD_DISKS = list('sdc', 'sdd', 'sde', 'sdf', 'sdg', 'sdh', 'sdi',
variable CEPH_JOURNAL_DISKS = list('sda4', 'sdb');
variable CEPH_DEFAULT_OSD_WEIGHT = 1.0;

variable MDSS = dict (
variable CEPH_MDSS = dict (
'ceph001.cubone.os', dict(
'fqdn', 'ceph001.cubone.os',
),
Expand Down Expand Up @@ -57,7 +57,7 @@ variable BASE_STEPS = list(
);


prefix "/software/components/ceph/clusters/ceph/crushmap/";
prefix "/software/components/ceph/clusters/ceph/crushmap";

'types' = list('osd', 'host', 'root');

Expand Down Expand Up @@ -94,11 +94,11 @@ prefix "/software/components/ceph/clusters/ceph/crushmap/";
prefix '/software/components/ceph/clusters/ceph';
'config' = CONFIG;
'osdhosts' = {
t=dict();
foreach(idx;host;CEPH_HOSTS) {
t = dict();
foreach(idx; host; CEPH_HOSTS) {
d = dict();
foreach(odx;disk;CEPH_OSD_DISKS) {
jdx= odx % length(CEPH_JOURNAL_DISKS); ## RR over journal disks
foreach(odx; disk; CEPH_OSD_DISKS) {
jdx = odx % length(CEPH_JOURNAL_DISKS); ## RR over journal disks
d[disk] = dict(
'journal_path', format('/var/lib/ceph/log/%s/osd-%s/journal', CEPH_JOURNAL_DISKS[jdx], disk),
'crush_weight', CEPH_DEFAULT_OSD_WEIGHT
Expand All @@ -112,7 +112,7 @@ prefix '/software/components/ceph/clusters/ceph';
t;
};

'mdss' = MDSS;
'mdss' = CEPH_MDSS;
'monitors' = dict (
'ceph001', MONITOR1,
'ceph002', MONITOR2,
Expand Down
16 changes: 8 additions & 8 deletions ncm-ceph/src/test/resources/labeled_crushmap.pan
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ variable CEPH_OSD_DISKS = list('sdc', 'sdd', 'sde', 'sdf', 'sdg', 'sdh', 'sdi',
variable CEPH_JOURNAL_DISKS = list('sda4', 'sdb');
variable CEPH_DEFAULT_OSD_WEIGHT = 1.0;

variable MDSS = dict (
variable CEPH_MDSS = dict (
'ceph001.cubone.os', dict(
'fqdn', 'ceph001.cubone.os',
),
Expand Down Expand Up @@ -60,7 +60,7 @@ variable BASE_STEPS = list(
),
);

prefix "/software/components/ceph/clusters/ceph/crushmap/";
prefix "/software/components/ceph/clusters/ceph/crushmap";

'types' = list('osd', 'host', 'root');

Expand Down Expand Up @@ -104,13 +104,13 @@ prefix "/software/components/ceph/clusters/ceph/crushmap/";
prefix '/software/components/ceph/clusters/ceph';
'config' = CONFIG;
'osdhosts' = {
t=dict();
foreach(idx;host;CEPH_HOSTS) {
t = dict();
foreach(idx; host; CEPH_HOSTS) {
d = dict();
foreach(odx;disk;CEPH_OSD_DISKS) {
jdx= odx % length(CEPH_JOURNAL_DISKS); ## RR over journal disks
foreach(odx; disk; CEPH_OSD_DISKS) {
jdx = odx % length(CEPH_JOURNAL_DISKS); ## RR over journal disks
if (host == 'ceph003') {
jdx=0; # Empty bucket tst-1 on ceph003
jdx = 0; # Empty bucket tst-1 on ceph003
};
d[disk] = dict(
'journal_path', format('/var/lib/ceph/log/%s/osd-%s/journal', CEPH_JOURNAL_DISKS[jdx], disk),
Expand All @@ -126,7 +126,7 @@ prefix '/software/components/ceph/clusters/ceph';
t;
};

'mdss' = MDSS;
'mdss' = CEPH_MDSS;
'monitors' = dict (
'ceph001', MONITOR1,
'ceph002', MONITOR2,
Expand Down

0 comments on commit ad4945a

Please sign in to comment.