{"action":"created","issue":{"url":"https://api.github.com/repos/goodrain/rainbond/issues/123","repository_url":"https://api.github.com/repos/goodrain/rainbond","labels_url":"https://api.github.com/repos/goodrain/rainbond/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/goodrain/rainbond/issues/123/comments","events_url":"https://api.github.com/repos/goodrain/rainbond/issues/123/events","html_url":"https://github.com/goodrain/rainbond/issues/123","id":363491065,"node_id":"MDU6SXNzdWUzNjM0OTEwNjU=","number":123,"title":"安装程序修改了/etc/resolv.conf 文件，导致dns解析异常，不能联网的问题","user":{"login":"allenonline","id":8249188,"node_id":"MDQ6VXNlcjgyNDkxODg=","avatar_url":"https://avatars0.githubusercontent.com/u/8249188?v=4","gravatar_id":"","url":"https://api.github.com/users/allenonline","html_url":"https://github.com/allenonline","followers_url":"https://api.github.com/users/allenonline/followers","following_url":"https://api.github.com/users/allenonline/following{/other_user}","gists_url":"https://api.github.com/users/allenonline/gists{/gist_id}","starred_url":"https://api.github.com/users/allenonline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allenonline/subscriptions","organizations_url":"https://api.github.com/users/allenonline/orgs","repos_url":"https://api.github.com/users/allenonline/repos","events_url":"https://api.github.com/users/allenonline/events{/privacy}","received_events_url":"https://api.github.com/users/allenonline/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-09-25T09:38:46Z","updated_at":"2018-09-26T01:03:08Z","closed_at":null,"author_association":"NONE","body":"If you want to report a bug, please provide the following information:\r\n\r\n- [3.7.1 ] Rainbond versions\r\n- [centos 7.3 ] Operating system and kernel\r\n- [kvm in smartos ] Provider(Aliyun,VirtualBox,...)\r\n- [ Online/Single node] Install details(Online/Offline,Single node/HA)\r\n- [ ] Steps to reproduce\r\n\r\n执行./setup.sh，前面正常，在执行到\r\n--- Start install common(step: 1/7) ... ---\r\n时报错，错误提示如下：\r\n---------\r\n          ID: common_packages\r\n    Function: pkg.installed\r\n      Result: False\r\n     Comment: Error occurred installing package(s). Additional info follows:\r\n              \r\n              errors:\r\n                  - Running scope as unit run-8120.scope.\r\n                    Loaded plugins: fastestmirror\r\n                    http://mirrors.ustc.edu.cn/salt/yum/redhat/7/x86_64/archive/2018.3.2/repodata/repomd.xml: [Errno 14] curl#6 - \"Could not resolve host: mirrors.ustc.edu.cn; Unknown error\"\r\n                    Trying other mirror.\r\n                    https://repo.saltstack.com/yum/redhat/7/x86_64/archive/2018.3.2/repodata/repomd.xml: [Errno 14] curl#6 - \"Could not resolve host: repo.saltstack.com; Unknown error\"\r\n                    Trying other mirror.\r\n————\r\n服务器不能访问相关地址，在错误的前面输出的执行语句是\r\nName: /etc/resolv.conf - Function: file.replace - Result: Changed Started: - 17:29:18.500187 Duration: 11.409 ms\r\n  Name: /etc/resolv.conf - Function: file.append - Result: Changed Started: - 17:29:18.511918 Duration: 2.489 ms\r\n  Name: /etc/resolv.conf - Function: file.append - Result: Clean Started: - 17:29:18.514656 Duration: 1.538 ms\r\n  Name: /etc/resolv.conf - Function: file.append - Result: Changed Started: - 17:29:18.516437 Duration: 2.197 ms\r\n  Name: /etc/resolv.conf - Function: file.replace - Result: Clean Started: - 17:29:18.518890 Duration: 10.508 ms\r\n  Name: /etc/resolv.conf - Function: file.replace - Result: Clean Started: - 17:29:18.529717 Duration: 10.938 ms\r\n  Name: yum remove -y container-selinux - Function: cmd.run - Result: Clean Started: - 17:29:18.540989 Duration: 37.86 ms\r\n\r\n可以看到，修改了/etc/resolv.conf 文件，导致服务器不能联网。不知为何要修改/etc/resolv.conf 文件？要怎么修复这个问题呢？\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/goodrain/rainbond/issues/comments/424550278","html_url":"https://github.com/goodrain/rainbond/issues/123#issuecomment-424550278","issue_url":"https://api.github.com/repos/goodrain/rainbond/issues/123","id":424550278,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDU1MDI3OA==","user":{"login":"allenonline","id":8249188,"node_id":"MDQ6VXNlcjgyNDkxODg=","avatar_url":"https://avatars0.githubusercontent.com/u/8249188?v=4","gravatar_id":"","url":"https://api.github.com/users/allenonline","html_url":"https://github.com/allenonline","followers_url":"https://api.github.com/users/allenonline/followers","following_url":"https://api.github.com/users/allenonline/following{/other_user}","gists_url":"https://api.github.com/users/allenonline/gists{/gist_id}","starred_url":"https://api.github.com/users/allenonline/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/allenonline/subscriptions","organizations_url":"https://api.github.com/users/allenonline/orgs","repos_url":"https://api.github.com/users/allenonline/repos","events_url":"https://api.github.com/users/allenonline/events{/privacy}","received_events_url":"https://api.github.com/users/allenonline/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T01:03:08Z","updated_at":"2018-09-26T01:03:08Z","author_association":"NONE","body":"但是现在执行setup.sh后，/etc/resolv.conf文件会把原来的dns全部注释掉，然后添加当前机器ip，如下\r\n#nameserver 10.16.1.20\r\n#nameserver 10.16.1.21\r\n#nameserver 114.114.114.114\r\n#nameserver 8.8.8.8\r\nnameserver 10.16.3.11\r\nnameserver 10.16.1.20\r\n这样导致无法解析外网域名，我尝试手动配置dns，然后注释掉setup.sh中的相关语句\r\n Write_Sls_File dns.current \"$dns_value\"\r\n却没有生效，原来的dns还是被注释掉了，不知为何？\r\n"}}
{"actor":{"display_login":"allenonline"}}