Skip to content
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

mgr/cephadm: add timeout when removing iscsi gateway.conf #41181

Merged
merged 3 commits into from May 11, 2021

Conversation

adk3798
Copy link
Contributor

@adk3798 adk3798 commented May 5, 2021

We already catch TimeoutExpired exceptions here but we don't
actually specify a timeout

Also, added mocking the subprocess.run call in tests that remove iscsi daemons and a few lines that are being automatically changed by autopep8 whenever I run mgr tox locally.

Signed-off-by: Adam King adking@redhat.com

Follow-up on #40313

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

Some of the file in mgr/cephadm are getting changed
every time I want to run the mgr tox tests to check
changes and it's inconvenient to have to check the
files out every time

Signed-off-by: Adam King <adking@redhat.com>
We already catch TimeoutExpired exceptions here but we don't
actually specify a timeout

Signed-off-by: Adam King <adking@redhat.com>
tests that remove iscsi daemons use subprocess.run to make
a call to rados to clear out the gateway.conf. We don't want
the tests to actually make that call.

Signed-off-by: Adam King <adking@redhat.com>
@adk3798 adk3798 requested a review from jmolmo May 5, 2021 18:06
@adk3798 adk3798 requested a review from a team as a code owner May 5, 2021 18:06
Copy link
Member

@jmolmo jmolmo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OMG!!! after all the changes I forget the timeout!!!! Thank you Adam!!!!

@sebastian-philipp sebastian-philipp added the wip-swagner-testing My Teuthology tests label May 6, 2021
@sebastian-philipp
Copy link
Contributor

@sebastian-philipp sebastian-philipp merged commit 754bae0 into ceph:master May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants