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

ansible: improve daemon restart #315

Merged
merged 1 commit into from
Apr 16, 2021

Conversation

SeanHai
Copy link
Contributor

@SeanHai SeanHai commented Apr 15, 2021

What problem does this PR solve?

Issue Number: close #xxx

Problem Summary:

What is changed and how it works?

What's Changed:

How it Works:

Side effects(Breaking backward compatibility? Performance regression?):

Check List

  • Relevant documentation/comments is changed or added
  • I acknowledge that all my contributions will be made under the project's license

sudo: "sudo"
when: command_need_sudo

- name: restart nebd-server with daemon
Copy link
Contributor

Choose a reason for hiding this comment

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

Why not reuse the above restart module

Copy link
Contributor Author

@SeanHai SeanHai Apr 15, 2021

Choose a reason for hiding this comment

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

Why not reuse the above restart module

Cannot use service_port to check the nebd-server up or not after nebd-server restart. But the others can.
refix the restart_service.yml to support reuse.
done


- name: restart service without daemon
block:
- name: stop service without daemon
Copy link
Contributor

@cw123 cw123 Apr 15, 2021

Choose a reason for hiding this comment

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

Is here need wait until server is down?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Is here need wait until server is down?

done

@ilixiaocui ilixiaocui merged commit 69d27df into opencurve:master Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants