Fuel CLI can not be run by non-root user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
Medium
|
Dmitry Pyzhov |
Bug Description
api: '1.0'
astute_sha: b52910642d6de94
auth_required: true
build_id: 2014-08-12_10-52-56
build_number: '425'
feature_groups:
- mirantis
fuellib_sha: 54d834afccf1f8a
fuelmain_sha: 9d4463400b49241
nailgun_sha: c7e00e5a00499d9
ostf_sha: d2a894d228c1f3c
production: docker
release: '5.1'
Steps to reproduce:
* having fuel node installed
* add new non-root user and make login
* run "fuel" CLI with arbitrary option (let it be "fuel env")
Expected:
* output without errors
Actual:
$ fuel env
Traceback (most recent call last):
File "/usr/bin/fuel", line 9, in <module>
load_
File "/usr/lib/
return get_distributio
File "/usr/lib/
return ep.load()
File "/usr/lib/
entry = __import_
File "/usr/lib/
from fuelclient.
File "/usr/lib/
from fuelclient.
File "/usr/lib/
from fuelclient.
File "/usr/lib/
from fuelclient.client import APIClient
File "/usr/lib/
APIClient = Client()
File "/usr/lib/
with open(path_
IOError: [Errno 13] Permission denied: '/etc/fuel/
NOTE:
1) this is just a permission issue, the "chmod 644 /etc/fuel/
2) this problem is critical for auto-testing, when we deploy iso, then install and run some testing scripts (e.g. rally and tempest) - we also need to run fuel cli to obtain some data
Changed in fuel: | |
importance: | Undecided → Medium |
assignee: | nobody → Fuel Python Team (fuel-python) |
milestone: | none → 6.0 |
Changed in fuel: | |
status: | New → Confirmed |
tags: | added: release-notes |
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → Dmitry Pyzhov (dpyzhov) |
status: | Confirmed → In Progress |
Reviewed: https:/ /review. openstack. org/135039 /git.openstack. org/cgit/ stackforge/ fuel-web/ commit/ ?id=5c9e53737c1 b21e03ab9b272ff 9796694a4787ff
Committed: https:/
Submitter: Jenkins
Branch: master
commit 5c9e53737c1b21e 03ab9b272ff9796 694a4787ff
Author: Dmitry Pyzhov <email address hidden>
Date: Mon Nov 17 20:54:52 2014 +0300
Do not fail if client config file is not readable
Also make environment variables to have higher priority then config
file.
DocImpact da1307008005f60 64198e36be8
Change-Id: Ib4a395794bf08c
Closes-Bug: #1355876
Closes-Bug: #1393750