Openshift : [Build 4.0.1.0-32] contrail-kube-manager failed to come up due to log permission issue
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Juniper Openstack | ||||||
R4.0 |
Fix Committed
|
High
|
Aniket Gawade | |||
R4.1 |
Fix Committed
|
High
|
Aniket Gawade | |||
Trunk |
Won't Fix
|
High
|
Aniket Gawade |
Bug Description
While upgrading Openshift cluster from build 31 to 32 in Redhat base os, contrail kube-manager failed to come up for pemission issue with contrail-
What Has been tried
-------
The cluster was up with Build 31 and Openshift Origin Build. We have deleted all the contail-container and build 31 docker images. Also deleted /etc/contrailctl. Reprovisioned the cluster using contrail-ansible with Build 32.
Workaround
-----------
Change the permission of the log file inside contrail-
Traceback
----------
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 systemd[1]: contrail-
root@5b7s18(
-- Logs begin at Mon 2017-09-25 11:57:50 PDT, end at Mon 2017-09-25 12:31:10 PDT. --
Sep 25 11:58:02 5b7s18 systemd[1]: Started Contrail kube-manager.
Sep 25 11:58:02 5b7s18 systemd[1]: Starting Contrail kube-manager...
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 contrail-
Sep 25 11:58:06 5b7s18 systemd[1]: contrail-
Sep 25 11:58:06 5b7s18 kill[1109]: Usage:
Sep 25 11:58:06 5b7s18 kill[1109]: kill [options] <pid|name> [...]
Sep 25 11:58:06 5b7s18 kill[1109]: Options:
Sep 25 11:58:06 5b7s18 kill[1109]: -a, --all do not restrict the name-to-pid conversion to processes
Sep 25 11:58:06 5b7s18 kill[1109]: with the same uid as the present process
Sep 25 11:58:06 5b7s18 kill[1109]: -s, --signal <sig> send specified signal
Sep 25 11:58:06 5b7s18 kill[1109]: -q, --queue <sig> use sigqueue(2) rather than kill(2)
Sep 25 11:58:06 5b7s18 kill[1109]: -p, --pid print pids without signaling them
Sep 25 11:58:06 5b7s18 kill[1109]: -l, --list [=<signal>] list signal names, or convert one to a name
Sep 25 11:58:06 5b7s18 kill[1109]: -L, --table list signal names and numbers
Sep 25 11:58:06 5b7s18 kill[1109]: -h, --help display this help and exit
Sep 25 11:58:06 5b7s18 kill[1109]: -V, --version output version information and exit
Sep 25 11:58:06 5b7s18 kill[1109]: For more details see kill(1).
Sep 25 11:58:06 5b7s18 systemd[1]: contrail-
Sep 25 11:58:06 5b7s18 systemd[1]: Unit contrail-
Sep 25 11:58:06 5b7s18 systemd[1]: contrail-
Sep 25 11:58:06 5b7s18 systemd[1]: contrail-
Sep 25 11:58:06 5b7s18 systemd[1]: Started Contrail kube-manager.
Sep 25 11:58:06 5b7s18 systemd[1]: Starting Contrail kube-manager...
Changed in juniperopenstack: | |
milestone: | none → r4.0.1.0 |
assignee: | nobody → Sachchidanand Vaidya (vaidyasd) |
importance: | Undecided → High |
information type: | Proprietary → Public |
Changed in juniperopenstack: | |
assignee: | Sachchidanand Vaidya (vaidyasd) → Aniket Gawade (aniketgawade) |
tags: | added: releasenote |
Changed in juniperopenstack: | |
status: | In Progress → Won't Fix |
no longer affects: | juniperopenstack |
This is file owner issue. We mount /var/log/ contrail/ kubemanager/ from kube-manager. log file with
host into container as /var/log/contrail/
Kube-manager container creates contrail-
Contrail as the User.
But user ³Contrail² is local to the containers. So when we delete and
create the container again, user ³Contrail²
Will have a different userID. This is causing issue with access permission
to create log file inside container.
On 9/25/17, 1:02 PM, "<email address hidden> on behalf of chhandak"
<<email address hidden> on behalf of <email address hidden>> wrote:
>Public bug reported: kube-manager. log ------- ------- - kube-manager docker kube-manager[ 1102]: Traceback (most kube-manager[ 1102]: File bin/contrail- kube-manager" , line 9, in <module> kube-manager[ 1102]: point(' kube-manager= =0.1dev' , 'console_scripts', kube-manager' )() kube-manager[ 1102]: File lib/python2. 7/site- packages/ kube_manager/ kube_manager. py", line kube-manager[ 1102]: km_logger = KubeManagerLogg er(args, http_server_ port=-1) kube-manager[ 1102]: File lib/python2. 7/site- packages/ kube_manager/ common/ logger. py", line kube-manager[ 1102]: init(http_ server_ port) kube-manager[ 1102]: File lib/python2. 7/site- packages/ kube_manager/ common/ logger. py", line kube-manager[ 1102]: facility= self._args. syslog_ facility) kube-manager[ 1102]: File lib/python2. 7/site- packages/ pysandesh/ sandesh_ base.py" , line 295, kube-manager[ 1102]: flow_log= enable_ flow_log) kube-manager[ 1102]: File lib/python2. 7/site- packages/ pysandesh/ sandesh_ logger. py", line 95, kube-manager[ 1102]: logging_ file(file, maxBytes, backupCount) kube-manager[ 1102]: File lib/python2. 7/site- packages/ pysandesh/ sandesh_ logger. py", line 171, kube-manager[ 1102]: backupCount) ) kube-manager[ 1102]: File lib64/python2. 7/logging/ handlers. py", line 117, in __init__ kube-manager[ 1102]:
>
>While upgrading Openshift cluster from build 31 to 32 in Redhat base os,
>contrail kube-manager failed to come up for pemission issue with
>contrail-
>
>What Has been tried
>------
>The cluster was up with Build 31 and Openshift Origin Build. We have
>deleted all the contail-container and build 31 docker images. Also
>deleted /etc/contrailctl. Reprovisioned the cluster using
>contrail-ansible with Build 32.
>
>Workaround
>-----------
>Change the permission of the log file inside contrail-
>and restarted the service
>
>
>Traceback
>----------
>Sep 25 11:58:06 5b7s18 contrail-
>recent call last):
>Sep 25 11:58:06 5b7s18 contrail-
>"/usr/
>Sep 25 11:58:06 5b7s18 contrail-
>load_entry_
>'contrail-
>Sep 25 11:58:06 5b7s18 contrail-
>"/usr/
>158, in main
>Sep 25 11:58:06 5b7s18 contrail-
>logger.
>Sep 25 11:58:06 5b7s18 contrail-
>"/usr/
>48, in __init__
>Sep 25 11:58:06 5b7s18 contrail-
>self.sandesh_
>Sep 25 11:58:06 5b7s18 contrail-
>"/usr/
>196, in sandesh_init
>Sep 25 11:58:06 5b7s18 contrail-
>syslog_
>Sep 25 11:58:06 5b7s18 contrail-
>"/usr/
>in set_logging_params
>Sep 25 11:58:06 5b7s18 contrail-
>enable_
>Sep 25 11:58:06 5b7s18 contrail-
>"/usr/
>in set_logging_params
>Sep 25 11:58:06 5b7s18 contrail-
>self.set_
>Sep 25 11:58:06 5b7s18 contrail-
>"/usr/
>in set_logging_file
>Sep 25 11:58:06 5b7s18 contrail-
>backupCount=
>Sep 25 11:58:06 5b7s18 contrail-
>"/usr/
>Sep 25 11:58:06 5b7s18 contrail-
>BaseRota...