mgr/cephadm: fix env_var passing to cephadm#34944
mgr/cephadm: fix env_var passing to cephadm#34944sebastian-philipp merged 5 commits intoceph:masterfrom
Conversation
|
needs rebase |
0fefb73 to
3204209
Compare
mgfritch
left a comment
There was a problem hiding this comment.
couple minor nits, but overall looks good 👍
| if env_vars: | ||
| for env_var_pair in env_vars: | ||
| final_args.extend(['--env', env_var_pair]) |
There was a problem hiding this comment.
| if env_vars: | |
| for env_var_pair in env_vars: | |
| final_args.extend(['--env', env_var_pair]) | |
| if env_vars: | |
| for k,v in env_vars.items(): | |
| final_args.extend(['--env', f'{k}={v}']) |
Maybe it would be better to use a dict type instead of list?
There was a problem hiding this comment.
I deliberately chose [K=V] as this is the format that will be passed along to bin/cephadm. While I do agree that a dict type is the correct type for this case, but in this case I'd favor practicability.
3204209 to
ce8ccff
Compare
Signed-off-by: Joshua Schmid <jschmid@suse.de>
Signed-off-by: Joshua Schmid <jschmid@suse.de>
Signed-off-by: Joshua Schmid <jschmid@suse.de>
Signed-off-by: Joshua Schmid <jschmid@suse.de>
Signed-off-by: Joshua Schmid <jschmid@suse.de>
aaf463e to
8f27583
Compare
| # env_vars = [f"CEPH_VOLUME_OSDSPEC_AFFINITY={drive_group.service_id}"] | ||
| # disable this until https://github.com/ceph/ceph/pull/34835 is merged |
There was a problem hiding this comment.
Instead of reverting this, can we make this somehow optional?
There was a problem hiding this comment.
I thought about this as well, but I'm not sure how. The workability depends on the ceph-osd version (no specific version can be determined though)
|
the make check error looks pretty much unrelated: |
|
jenkins test make check |
Signed-off-by: Joshua Schmid jschmid@suse.de
This needs to be merged together with: #34835
Fixes: https://tracker.ceph.com/issues/45394
Revert commit 8f27583 when #34835 is merged
bin/cephadm shell's --env flag to the global parserShow available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard backendjenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox