Bug 1294752 - Failed to install when using "-c" to specify a configuration as non-root user
Failed to install when using "-c" to specify a configuration as non-root user
Status: CLOSED WONTFIX
Product: OpenShift Container Platform
Classification: Red Hat
Component: Installer (Show other bugs)
3.1.0
Unspecified Unspecified
low Severity low
: ---
: ---
Assigned To: Scott Dodson
Xiaoli Tian
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-12-30 01:31 EST by Gan Huang
Modified: 2017-08-25 11:51 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-08-25 11:51:47 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Gan Huang 2015-12-30 01:31:12 EST
Description of problem:
Failed to install when using "-c" to specify a configuration as non-root user

Version-Release number of selected component (if applicable):
atomic-openshift-utils-3.0.20-1.git.0.3703f1b.el7aos.noarch

How reproducible:
Always

Steps to Reproduce:
1.Switch to a non-root user before installation
2.Write a configuration of installer.cfg.yml to install
3.Execute "atomic-openshift-installer -c installer.cfg.yml install"

Actual results:
Traceback (most recent call last):
  File "/usr/bin/atomic-openshift-installer", line 9, in <module>
    load_entry_point('ooinstall==3.0.0', 'console_scripts', 'oo-install')()
  File "/usr/lib/python2.7/site-packages/click/core.py", line 664, in __call__
    return self.main(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 644, in main
    rv = self.invoke(ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 988, in invoke
    Command.invoke(self, ctx)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 837, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/lib/python2.7/site-packages/click/core.py", line 464, in invoke
    return callback(*args, **kwargs)
  File "/usr/lib/python2.7/site-packages/ooinstall/cli_installer.py", line 648, in cli
    oo_cfg = OOConfig(ctx.obj['configuration'])
  File "/usr/lib/python2.7/site-packages/ooinstall/oo_config.py", line 118, in __init__
    self._set_defaults()
  File "/usr/lib/python2.7/site-packages/ooinstall/oo_config.py", line 178, in _set_defaults
    os.makedirs(self.settings['ansible_inventory_directory'])
  File "/usr/lib64/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/.ansible'

Expected results:
Install successfully. using "~" dir instead of "/" dir while making dir can avoid the issue.

Additional info:

Note You need to log in before you can comment on or make changes to this bug.