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 overrides /etc/hosts #92

Open
tochi-y opened this issue Jul 23, 2019 · 0 comments
Open

Ansible overrides /etc/hosts #92

tochi-y opened this issue Jul 23, 2019 · 0 comments
Labels

Comments

@tochi-y
Copy link
Member

tochi-y commented Jul 23, 2019

Before executing ansible

# hostname
example.com
# cat /etc/hosts
...
127.0.0.1   localhost localhost.localdomain test-ap
127.0.0.1 unitadmin.example.com
127.0.0.1 example.com

After executing ansible

# hostname
test-ap
# cat /etc/hosts
...
127.0.0.1   localhost localhost.localdomain test-ap
127.0.0.1 unitadmin.example.com

Then, UNIT ADMIN Cell creation failed.

OS:CentOS 7.6
Memory : 8GB
TASK [Execute /tmp/personium-init-svcmgr.sh] *********************************************************************
fatal: [192.168.56.102]: FAILED! => {"changed": true, "cmd": "/bin/sh /tmp/personium-init-svcmgr.sh > /tmp/personium-init-svcmgr.log", "delta": "0:00:00.815381", "end": "2019-07-21 13:37:12.603507", "failed_when_result": true, "msg": "non-zero return code", "rc": 2, "start": "2019-07-21 13:37:11.788126", "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

PLAY RECAP *******************************************************************************************************
192.168.56.102             : ok=268  changed=43   unreachable=0    failed=1    skipped=2    rescued=0    ignored=0

2019年  7月 21日 日曜日 13:37:12 JST

# cat /tmp/personium-init-svcmgr.log
######  Create UNIT ADMIN Cell  ######
HTTP/1.1 404
Date: Sun, 21 Jul 2019 04:37:12 GMT
Content-Type: application/json
Content-Length: 74
Connection: keep-alive
X-Personium-Version: 1.7.15
Server: Personium

{"code":"PR404-DV-0003","message":{"lang":"en","value":"Cell not found."}}
status:404
-- Cell check
HTTP/1.1 404
Date: Sun, 21 Jul 2019 04:37:12 GMT
Content-Type: application/json
Content-Length: 74
Connection: keep-alive
X-Personium-Version: 1.7.15
Server: Personium

{"code":"PR404-DV-0003","message":{"lang":"en","value":"Cell not found."}}
status:404
UNIT ADMIN Cell createdfaild.

See:
https://github.com/personium/ansible/blob/2fb4ca4ad446c3fb2b98adbcccfc2bf7bf6ef1f3/1-server_unit/tasks/common/init_hostname.yml

@tochi-y tochi-y added the bug label Jul 23, 2019
@tochi-y tochi-y changed the title ansible overrides /etc/hosts Ansible overrides /etc/hosts Jul 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant