New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multicluster configuration context management #4875
Multicluster configuration context management #4875
Conversation
f4f2674
to
cbc36e8
Compare
Rebased on latest master |
4d34ea5
to
c744212
Compare
Rebased on latest master |
086b118
to
5e758b3
Compare
Resolved conflicts and rebased on latest master |
76be091
to
962e83f
Compare
Rebased on latest master |
962e83f
to
119f145
Compare
rebased on latest master |
afec293
to
0f9cbea
Compare
ocs_ci/framework/main.py
Outdated
f"--cluster{i+1}", | ||
required=True, | ||
action="store_true", | ||
help=f"cluster{i}-conf", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This help text looks incorrect. Shouldn't this describe that this is the start of the cluster{i} specific CLI arguments?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed the help text.
ocs_ci/framework/main.py
Outdated
for i in range(nclusters): | ||
framework.config.switch_ctx(i) | ||
process_ocsci_conf(common_argv + multicluster_conf[i][1:]) | ||
for j in range(len(multicluster_conf[i][1:])): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you think of more descriptive variables than i
and j
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
ocs_ci/framework/main.py
Outdated
arguments.extend( | ||
[ | ||
"-p", | ||
"ocs_ci.framework.pytest_customization.ocscilib", | ||
"-p", | ||
"ocs_ci.framework.pytest_customization.marks", | ||
"-p", | ||
"ocs_ci.framework.pytest_customization.reports", | ||
"--logger-logsdir", | ||
pytest_logs_dir, | ||
"--rp-launch", | ||
launch_name, | ||
] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we really want to do this per cluster? These seem like common arguments to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now we are iterating over all cluster, I haven't thought about launch_name or any other parameters pertaining to report portal and how this needs to be handled. I guess current report portal parameters should be generated as is for reporting because we only refer to first cluster's report portal config. Am I missing something here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved report related lines as common lines.
docs/usage.md
Outdated
If you would like to run multicluster environment tests and deployments, use `multicluster` subcommand for run-ci | ||
```bash | ||
run-ci multicluster 2/ | ||
tests/ -m tier1 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add also common --ocsci-conf and note that if it's defined the front of --cluster1 that it's loaded to both configs contexts
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Signed-off-by: Shylesh Kumar Mohan <shmohan@redhat.com>
Signed-off-by: Shylesh Kumar Mohan <shmohan@redhat.com>
Signed-off-by: Shylesh Kumar Mohan <shmohan@redhat.com>
Signed-off-by: Shylesh Kumar Mohan <shmohan@redhat.com>
Signed-off-by: Shylesh Kumar Mohan <shmohan@redhat.com>
Signed-off-by: Shylesh Kumar Mohan <shmohan@redhat.com>
Signed-off-by: Shylesh Kumar Mohan <shmohan@redhat.com>
Signed-off-by: Shylesh Kumar Mohan <shmohan@redhat.com>
Signed-off-by: Shylesh Kumar Mohan <shmohan@redhat.com>
Signed-off-by: Shylesh Kumar Mohan <shmohan@redhat.com>
0f9cbea
to
b164743
Compare
Rebased on latest master |
2. Seperate common code for report generation Signed-off-by: Shylesh Kumar Mohan <shmohan@redhat.com>
5f09759
to
8c4d153
Compare
Signed-off-by: Shylesh Kumar Mohan <shmohan@redhat.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
No description provided.