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                   =>
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
  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.



  • Options

    Your container is probably missing /sbin/ip
    We use this command to discover the network interfaces of the host.

  • Options

    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.

    [root@63a0bb36afab ~]# userdel dbadmin
    [root@63a0bb36afab ~]# groupdel verticadba
    [root@63a0bb36afab ~]# rm -rf /home/dbadmin
    [root@63a0bb36afab ~]# /opt/vertica/sbin/install_vertica --hosts 63a0bb36afab --rpm ~/vertica-8.1.1-0.x86_64.RHEL6.rpm
    Vertica Analytic Database 8.1.1-0 Installation Tool

    Validating options...

    Mapping hostnames in --hosts (-s) to addresses...
            63a0bb36afab                   =>

    Starting installation tasks.
    Getting system information for cluster (this may take a while)...

    Default shell on nodes: /bin/bash

    Validating software versions (rpm or deb)...

    Beginning new cluster creation...

    successfully backed up admintools.conf on

    Creating or validating DB Admin user/group...

    Password for new dbadmin user (empty = disabled)
    Failed on hosts (1):
        Provided DB Admin account details: user = dbadmin, group = verticadba, home = /home/dbadmin
        Creating group... Adding group
        Validating group... Okay
        Creating user... Adding user, Setting credentials
        Validating user...
        Fail : User cannot access its own home directory
        Hint : Check ownership and permissions of parents of /home/dbadmin
        Creating mailbox file: File exists
    Unable to create or verify DB Admin user/group on some hosts.
    See above for details.
    Installation FAILED with errors.
    AdminTools and your existing Vertica databases may be unavailable.
    Investigate the above warnings/errors and re-run installation.
    [root@63a0bb36afab ~]#
    [root@63a0bb36afab ~]# su dbadmin
    su: cannot open session: Permission denied
    [root@63a0bb36afab ~]#

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file