cephadm: Add tcmu-runner container when deploying ceph-iscsi#36235
cephadm: Add tcmu-runner container when deploying ceph-iscsi#36235sebastian-philipp merged 1 commit intoceph:masterfrom
Conversation
|
I managed to fix the problem on my dev env by manually creating a new tcmu container. This is my first attempt at a PR to do the same in cephadm. But still testing it. having some network issues to the office. So thought I'd get v 0.1 up now. |
src/cephadm/cephadm
Outdated
| # type: () -> CephContainer | ||
| tcmu_container = get_container(self.fsid, self.daemon_type, self.daemon_id) | ||
| tcmu_container.entrypoint = '/usr/bin/tcmu-runner' | ||
| tcmu_container.args.append("/usr/bin/tcmu-runner") |
There was a problem hiding this comment.
For some reason in my initial testing having tcmu-runner as the entry point didn't work, but if I added it as an arg it did. But that doesn't make sense, so I plan on testing this again.
d9f5f9c to
dd28dd1
Compare
|
jenkins test make check |
|
jenkins test dashboard backend |
dd28dd1 to
3a4d628
Compare
|
This PR now works in my env. If I loaded the orig container, I could attach the image, then if I ran the the second container everything worked. But running them both at the same time didn't. |
src/cephadm/cephadm
Outdated
| file_obj.write('! '+ ' '.join(container.rm_cmd(storage=True)) + '\n') | ||
|
|
||
| # container run command | ||
| file_obj.write(' '.join(container.run_cmd()) + '\n') |
There was a problem hiding this comment.
| file_obj.write(' '.join(container.run_cmd()) + '\n') | |
| file_obj.write(' '.join(container.run_cmd()) + ('&' if background else '') + '\n') |
?
3a4d628 to
c04f45e
Compare
tchaikov
left a comment
There was a problem hiding this comment.
cephadm:1940: error: Type signature has too few arguments
Found 1 error in 1 file (checked 1 source file)
ERROR: InvocationError for command /home/jenkins-build/build/workspace/ceph-pull-requests/src/cephadm/.tox/mypy/bin/mypy cephadm (exited with code 1)
___________________________________ summary ____________________________________
py3: commands succeeded
ERROR: mypy: commands failed
Currently when we deploy ceph-iscsi via cephadm it doesn't include a running tcmu-runner. Which means initiators will be able to login but you wont see the LUNS on the initiator. This patch deploys an additional tcmu-runner container along side the ceph-iscsi container that just runs the tcmu-runner service. Fixes: https://tracker.ceph.com/issues/46540 Signed-off-by: Matthew Oliver <moliver@suse.com>
c04f45e to
eb604d3
Compare
|
thanks @tchaikov forgot to update the mypi sig when I added |
|
@tchaikov ping? |
Currently when we deploy ceph-iscsi via cephadm it doesn't include a
running tcmu-runner. Which means initiators will be able to login but
you wont see the LUNS on the initiator.
This patch deploys an additional tcmu-runner container along side the
ceph-iscsi container that just runs the tcmu-runner service.
Fixes: https://tracker.ceph.com/issues/46540
Signed-off-by: Matthew Oliver moliver@suse.com
Checklist
Show 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