RVIRUS0817 / ansible_vuls

0 stars 0 forks source link

not scan #1

Open RVIRUS0817 opened 6 years ago

RVIRUS0817 commented 6 years ago

Construction of vuls-server is fine, but vuls-scanning is not possible

 > ansible-playbook -i hosts main.yml

PLAY [scanning and reporting using vuls] ************************************************************************************************

TASK [Gathering Facts] ******************************************************************************************************************
ok: [ubuntu-vuls]

TASK [copying configuraiton file and ssh keys] ******************************************************************************************
changed: [ubuntu-vuls] => (item={u'src': u'config.toml', u'dst': u'/root/config.toml'})
ok: [ubuntu-vuls] => (item={u'src': u'ubuntu-vuls', u'dst': u'/root/.ssh/ubuntu-vuls'})

TASK [running config test] **************************************************************************************************************
changed: [ubuntu-vuls]

TASK [running vuls scanner] *************************************************************************************************************
fatal: [ubuntu-vuls]: FAILED! => {"changed": false, "msg": "Error starting container 55e916d68e0dd24bee33079dccb5c73bebe3603b5c99d7b5a19ba08939ed7fdb: 500 Server Error: Internal Server Error (\"error while creating mount source path '/etc/localtime': mkdir /etc/localtime: file exists\")"}
        to retry, use: --limit @/ansible_vuls/vuls-scanning/main.retry

PLAY RECAP ******************************************************************************************************************************
ubuntu-vuls                : ok=3    changed=2    unreachable=0    failed=1
RVIRUS0817 commented 6 years ago

PLAY [scanning and reporting using vuls] ************************************************************************************************

TASK [Gathering Facts] ******************************************************************************************************************
ok: [ubuntu-vuls]

TASK [copying configuraiton file and ssh keys] ******************************************************************************************
ok: [ubuntu-vuls] => (item={u'src': u'config.toml', u'dst': u'/root/config.toml'})
ok: [ubuntu-vuls] => (item={u'src': u'ubuntu-vuls', u'dst': u'/root/.ssh/ubuntu-vuls'})

TASK [running config test] **************************************************************************************************************
changed: [ubuntu-vuls]

TASK [running vuls scanner] *************************************************************************************************************
fatal: [ubuntu-vuls]: FAILED! => {"changed": false, "msg": "Error starting container d4fc936fc1d6ca00d3118cc0e5083c96ae90e2fe80d1452b9f83e34522924422: 400 Client Error: Bad Request (\"OCI runtime create failed: container_linux.go:348: starting container process caused \"process_linux.go:402: container init caused \\\"rootfs_linux.go:58: mounting \\\\\\\"/etc/localtime\\\\\\\" to rootfs \\\\\\\"/var/lib/docker/vfs/dir/a2019a94088076ed879a7f3e940c76cdf420f36a1fadd84dd2439f60cf07f899\\\\\\\" at \\\\\\\"/var/lib/docker/vfs/dir/a2019a94088076ed879a7f3e940c76cdf420f36a1fadd84dd2439f60cf07f899/etc/localtime\\\\\\\" caused \\\\\\\"not a directory\\\\\\\"\\\"\": unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type\")"}
        to retry, use: --limit @/ansible_vuls/vuls-scanning/main.retry

PLAY RECAP ******************************************************************************************************************************
ubuntu-vuls                : ok=3    changed=1    unreachable=0    failed=1

↑ rm -rf /etc/localtime