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 出现FAILED 无法部署 #264

Closed
ghost opened this issue Feb 23, 2021 · 0 comments
Closed

使用命令 ansible 出现FAILED 无法部署 #264

ghost opened this issue Feb 23, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Feb 23, 2021

Describe the bug (描述bug)
使用命令 ansible-playbook -i server.ini deploy_curve.yml 进行部署的时候,提示

TASK [generate_config : generate configuration file directly] *************************************************************************************************
fatal: [localhost]: FAILED! => {"changed": false, "checksum": "27c7b68395f392cdc4d364ba6afa06b577c925ff", "msg": "Destination /etc/curve not writable"}

。。。。。。。。。。。
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "sudo cp /etc/curve/etcd.conf.yml /etc/curve/etcd.conf.yml.bak", "delta": "0:00:00.064517", "end": "2021-02-21 09:41:20.241484", "msg": "non-zero return code", "rc": 1, "start": "2021-02-21 09:41:20.176967", "stderr": "cp: cannot stat '/etc/curve/etcd.conf.yml': No such file or directory", "stderr_lines": ["cp: cannot stat '/etc/curve/etcd.conf.yml': No such file or directory"], "stdout": "", "stdout_lines": []}

然后失败无法部署。

To Reproduce (复现方法)

  1. 删除 etc/curve 可复现这种情况。 ansiable 与 rm 操作都在root用户下进行

  2. 根据提示把 etc/curve 目录拥有者改成curve后没有这个报错。

    chown -R curve:curve /etc/curve

Expected behavior (期望行为)

修复此bug

Versions (各种版本)

编译和部署均使用 docker opencurve/curveintegration:centos8 镜像

版本为 commit 1c81911 (HEAD -> master, origin/master, origin/HEAD)

Additional context/screenshots (更多上下文/截图)
image

@ghost ghost added the bug Something isn't working label Feb 23, 2021
@aspirer aspirer closed this as completed Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant