Building Docker Container (Vertica 8.1.1-0) on CentOS7.3
I am attempting to install Vertica 8.1.1-0 within a Docker container (CentOS 7.3) and ran into this issue when running the install_vertica script.
[root@8b3046f93205 log]# /opt/vertica/sbin/install_vertica --hosts 8b3046f93205 Vertica Analytic Database 8.1.1-0 Installation Tool
Validating options...
Mapping hostnames in --hosts (-s) to addresses... 8b3046f93205 => 172.17.0.2 Error: [Errno 2] No such file or directory Traceback (most recent call last): File "/opt/vertica/oss/python/lib/python2.7/site-packages/vertica/install/__init__.py", line 1348, in run_install _installMain(options) File "/opt/vertica/oss/python/lib/python2.7/site-packages/vertica/install/__init__.py", line 1038, in _installMain remove_host_list) = _get_install_hosts(options, cfgr) File "/opt/vertica/oss/python/lib/python2.7/site-packages/vertica/install/__init__.py", line 415, in _get_install_hosts local_host = _gih_this_host_will_be_in_cluster_or_exit(add_hosts + keep_hosts, remove_hosts) File "/opt/vertica/oss/python/lib/python2.7/site-packages/vertica/install/__init__.py", line 349, in _gih_this_host_will_be_in_cluster_or_exit if DBfunctions.IsLocalHost(x): File "/opt/vertica/oss/python/lib/python2.7/site-packages/vertica/tools/DBfunctions.py", line 100, in IsLocalHost return vertica.system.ifconfig.is_local_host(host) File "/opt/vertica/oss/python/lib/python2.7/site-packages/vertica/system/ifconfig.py", line 235, in is_local_host v4_local_addrs = [ v['address'] for v in get_ipv4_interfaces() ] File "/opt/vertica/oss/python/lib/python2.7/site-packages/vertica/system/ifconfig.py", line 53, in get_ipv4_interfaces output = _run_ip_cmd(get_ipv4_interfaces_cmd()) File "/opt/vertica/oss/python/lib/python2.7/site-packages/vertica/system/ifconfig.py", line 262, in _run_ip_cmd return subprocess.check_output(argv, env=env) File "/opt/vertica/oss/python/lib/python2.7/subprocess.py", line 566, in check_output process = Popen(stdout=PIPE, *popenargs, **kwargs) File "/opt/vertica/oss/python/lib/python2.7/subprocess.py", line 710, in __init__ errread, errwrite) File "/opt/vertica/oss/python/lib/python2.7/subprocess.py", line 1335, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory Installation FAILED with errors. Installation stopped before any changes were made. [root@8b3046f93205 log]#
This container has Python 2.7.5 (default, Nov 6 2016, 00:28:07). Could this be an issue?
Please advise.
Regards,
Vikram
0
Comments
Your container is probably missing /sbin/ip
We use this command to discover the network interfaces of the host.
Yes, had a minimal CentOS container. Installed the various Support tools as per the documentation here: https://my.vertica.com/docs/7.2.x/HTML/index.htm#Authoring/InstallationGuide/BeforeYouInstall/supporttools.htm
However, facing this issue with permissions to the /home/dbadmin folder.