Bug 855338 - Restarting "libra" service fails to restart apps
Summary: Restarting "libra" service fails to restart apps
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: OKD
Classification: Red Hat
Component: Containers
Version: 2.x
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
: ---
Assignee: Ram Ranganathan
QA Contact: libra bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-09-07 12:54 UTC by jizhao
Modified: 2015-05-14 22:59 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-09-17 21:29:24 UTC
Target Upstream Version:
Embargoed:
ramr: needinfo+


Attachments (Terms of Use)

Description jizhao 2012-09-07 12:54:58 UTC
Description of problem:
Run "service libra restart" on the server. Get error message "runcon: invalid context: unconfined_u:unconfined_r:libra_t:s0:c0,c506: Invalid argument". The apps' pid don't change.

Version-Release number of selected component (if applicable):
devenv_2129

How reproducible:
Always

Steps to Reproduce:
1.SSH login the server
2.service libra restart
3.Check app's pid
  
Actual results:
It fails to restart apps.
<-----------------------output------------------------->
Stopping 44fe652a4abf40169570d9ad3e79f8e3...
    mongophoujw38_ctl.sh                                   runcon: invalid context: unconfined_u:unconfined_r:libra_t:s0:c0,c503: Invalid argument
[  OK  ]
Starting 44fe652a4abf40169570d9ad3e79f8e3...
    mongophoujw38_ctl.sh                                   runcon: invalid context: unconfined_u:unconfined_r:libra_t:s0:c0,c503: Invalid argument
[  OK  ]
<------------------------------------------------------>
The pid remains the same.

Expected results:
The app should be restarted successfully. The pid should change.

Additional info:

Comment 1 Ram Ranganathan 2012-09-07 18:39:36 UTC
@jizhao, it works for me -- did you stop and restart the node per chance?? 
You'd need to run rhc-restorecon I think in that case. 

Also, if you create a new app, does that work?? 

And could you please attach the uid value (from /etc/passwd) for  gear. 44fe652a4abf40169570d9ad3e79f8e3  and  a ls -altrZ on the mongodb-2.0 
directory in the gear.

Thanks.

Comment 2 jizhao 2012-09-10 09:41:46 UTC
I created a clean devenv_2140 instance and tried again. It worked.
It seems some automation scripts broke the SELinux lable. I'll fix them.


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