Open RVIRUS0817 opened 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
Construction of vuls-server is fine, but vuls-scanning is not possible