{"action":"created","issue":{"url":"https://api.github.com/repos/future-architect/vuls/issues/275","repository_url":"https://api.github.com/repos/future-architect/vuls","labels_url":"https://api.github.com/repos/future-architect/vuls/issues/275/labels{/name}","comments_url":"https://api.github.com/repos/future-architect/vuls/issues/275/comments","events_url":"https://api.github.com/repos/future-architect/vuls/issues/275/events","html_url":"https://github.com/future-architect/vuls/issues/275","id":193055944,"number":275,"title":"vuls prepare failed to centos7","user":{"login":"shigechika","id":235452,"avatar_url":"https://avatars.githubusercontent.com/u/235452?v=3","gravatar_id":"","url":"https://api.github.com/users/shigechika","html_url":"https://github.com/shigechika","followers_url":"https://api.github.com/users/shigechika/followers","following_url":"https://api.github.com/users/shigechika/following{/other_user}","gists_url":"https://api.github.com/users/shigechika/gists{/gist_id}","starred_url":"https://api.github.com/users/shigechika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shigechika/subscriptions","organizations_url":"https://api.github.com/users/shigechika/orgs","repos_url":"https://api.github.com/users/shigechika/repos","events_url":"https://api.github.com/users/shigechika/events{/privacy}","received_events_url":"https://api.github.com/users/shigechika/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-12-02T08:00:15Z","updated_at":"2016-12-05T02:28:31Z","closed_at":null,"body":"# Environment\r\n\r\n## Vuls\r\n\r\nHash : ____\r\n\r\nTo check the commit hash of HEAD\r\n\r\n$ cd $GOPATH/src/github.com/future-architect/vuls \r\n$ git rev-parse --short HEAD \r\n8db147a\r\n\r\n## OS\r\n- Target Server: centos 7.2.1511\r\n- Vuls Server: CentOS  6.8\r\n\r\n## Go\r\n- Go version: go1.7.1 linux/amd64\r\n\r\n# Current Output\r\n\r\nPlease re-run the command using ```-debug``` and provide the output below.\r\n\r\n$ vuls prepare -debug hoge \r\nINFO[0000] Start Preparing (config: /home/vuls/config.toml) \r\nINFO[0000] Validating Config...                         \r\n[Dec  2 16:42:52]  INFO [localhost] Detecting OS... \r\n[Dec  2 16:42:52]  INFO [localhost] Detecting OS of servers... \r\n[Dec  2 16:42:52] DEBUG [localhost] SSHResult: servername: hoge, cmd: set -o pipefail; ls /etc/debian_version, exitstatus: 2, stdout: ls: /etc/debian_version にアクセスできません: そのようなファイルやディレクトリはありません\r\n, stderr: , err: %!s(<nil>)\r\n[Dec  2 16:42:52] DEBUG [localhost] Not Debian like Linux. SSHResult: servername: hoge, cmd: set -o pipefail; ls /etc/debian_version, exitstatus: 2, stdout: ls: /etc/debian_version にアクセスできません: そのようなファイルやディレクトリはありません\r\n, stderr: , err: %!s(<nil>)\r\n[Dec  2 16:42:53] DEBUG [localhost] SSHResult: servername: hoge, cmd: set -o pipefail; ls /etc/fedora-release, exitstatus: 2, stdout: ls: /etc/fedora-release にアクセスできません: そのようなファイルやディレクトリはありません\r\n, stderr: , err: %!s(<nil>)\r\n[Dec  2 16:42:53] DEBUG [localhost] SSHResult: servername: hoge, cmd: set -o pipefail; ls /etc/redhat-release, exitstatus: 0, stdout: /etc/redhat-release\r\n, stderr: , err: %!s(<nil>)\r\n[Dec  2 16:42:53] DEBUG [localhost] SSHResult: servername: hoge, cmd: set -o pipefail; cat /etc/redhat-release, exitstatus: 0, stdout: CentOS Linux release 7.2.1511 (Core) \r\n, stderr: , err: %!s(<nil>)\r\n[Dec  2 16:42:53] DEBUG [localhost] Redhat like Linux. Host: hoge.nihon-u.ac.jp:22\r\n[Dec  2 16:42:53]  INFO [localhost] (1/1) Detected: hoge: centos 7.2.1511\r\n[Dec  2 16:42:53]  INFO [localhost] Detecting OS of containers... \r\n[Dec  2 16:42:53]  INFO [localhost] Checking sudo configuration... \r\n[Dec  2 16:42:54] DEBUG [hoge] SSHResult: servername: hoge, cmd: set -o pipefail; sudo -S yum --version, exitstatus: 0, stdout: 3.4.3\r\nインストール: rpm-4.11.3-17.el7.x86_64 (日時: 2016-11-08 06:42)\r\n  構築      : CentOS BuildSystem <http://bugs.centos.org>  (日時: 2015-11-20 11:15)\r\n  コミット  : Florian Festi <ffesti@redhat.com> (日時: 2015-09-11)\r\n\r\nインストール: yum-3.4.3-132.el7.centos.0.1.noarch (日時: 2016-11-08 06:42)\r\n  構築      : CentOS BuildSystem <http://bugs.centos.org>  (日時: 2015-12-03 15:33)\r\n  コミット  : Johnny Hughes <johnny@centos.org> (日時: 2015-12-03)\r\n\r\nインストール: yum-plugin-fastestmirror-1.1.31-34.el7.noarch (日時: 2016-11-08 06:42)\r\n  構築      : CentOS BuildSystem <http://bugs.centos.org>  (日時: 2015-11-20 15:34)\r\n  コミット  : Valentina Mukhamedzhanova <vmukhame@redhat.com> (日時: 2015-10-12)\r\n, stderr: , err: %!s(<nil>)\r\n[Dec  2 16:42:54]  INFO [hoge] sudo ... OK\r\n[Dec  2 16:42:54] DEBUG [hoge] SSHResult: servername: hoge, cmd: set -o pipefail; rpm -q yum-plugin-changelog, exitstatus: 1, stdout: パッケージ yum-plugin-changelog はインストールされていません。\r\n, stderr: , err: %!s(<nil>)\r\n[Dec  2 16:42:54]  INFO [localhost] The following servers need dependencies installed\r\n[Dec  2 16:42:54]  INFO [localhost]   - yum-plugin-changelog on hoge\r\n[Dec  2 16:42:54]  INFO [localhost] Is this ok to install dependencies on the servers? [y/N]\r\nSTOP!\r\n\r\n# Addition Details\r\n\r\nhoge$ rpm -q yum\r\nyum-3.4.3-132.el7.centos.0.1.noarch\r\n\r\n## Expected Behavior\r\n\r\nuse yum with option -y\r\n\r\n## Actual Behavior\r\n\r\n## Steps to reproduce the behaviour\r\n"},"comment":{"url":"https://api.github.com/repos/future-architect/vuls/issues/comments/264754417","html_url":"https://github.com/future-architect/vuls/issues/275#issuecomment-264754417","issue_url":"https://api.github.com/repos/future-architect/vuls/issues/275","id":264754417,"user":{"login":"shigechika","id":235452,"avatar_url":"https://avatars.githubusercontent.com/u/235452?v=3","gravatar_id":"","url":"https://api.github.com/users/shigechika","html_url":"https://github.com/shigechika","followers_url":"https://api.github.com/users/shigechika/followers","following_url":"https://api.github.com/users/shigechika/following{/other_user}","gists_url":"https://api.github.com/users/shigechika/gists{/gist_id}","starred_url":"https://api.github.com/users/shigechika/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shigechika/subscriptions","organizations_url":"https://api.github.com/users/shigechika/orgs","repos_url":"https://api.github.com/users/shigechika/repos","events_url":"https://api.github.com/users/shigechika/events{/privacy}","received_events_url":"https://api.github.com/users/shigechika/received_events","type":"User","site_admin":false},"created_at":"2016-12-05T02:28:31Z","updated_at":"2016-12-05T02:28:31Z","body":"Thank you for rely. Resolved.\r\n\r\n[vuls@vuls ~]$ vuls prepare **-assume-yes** target1 target2\r\nINFO[0000] Start Preparing (config: /home/vuls/config.toml)\r\nINFO[0000] Validating Config...\r\n[Dec  5 11:21:29]  INFO [localhost] Detecting OS...\r\n[Dec  5 11:21:29]  INFO [localhost] Detecting OS of servers...\r\n[Dec  5 11:21:29]  INFO [localhost] (1/2) Detected: target1: centos 7.2.1511\r\n[Dec  5 11:21:30]  INFO [localhost] (2/2) Detected: target2: centos 7.2.1511\r\n[Dec  5 11:21:30]  INFO [localhost] Detecting OS of containers...\r\n[Dec  5 11:21:30]  INFO [localhost] Checking sudo configuration...\r\n[Dec  5 11:21:30]  INFO [target1] sudo ... OK\r\n[Dec  5 11:21:30]  INFO [target2] sudo ... OK\r\n[Dec  5 11:21:31]  INFO [localhost] The following servers need dependencies installed\r\n[Dec  5 11:21:31]  INFO [localhost]   - yum-plugin-changelog on target1\r\n[Dec  5 11:21:31]  INFO [localhost]   - yum-plugin-changelog on target2\r\n[Dec  5 11:21:36]  INFO [target2] Installed: yum-plugin-changelog\r\n[Dec  5 11:21:38]  INFO [target1] Installed: yum-plugin-changelog\r\n[Dec  5 11:21:38]  INFO [localhost] All dependencies were installed correctly\r\n"}}
{"actor":{"display_login":"shigechika"}}