Bug 426942 - Big time to start or stop cyphesis service
Summary: Big time to start or stop cyphesis service
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: cyphesis
Version: 9
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Wart
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-12-28 17:31 UTC by Alexey Torkhov
Modified: 2008-07-26 06:06 UTC (History)
0 users

Fixed In Version: 0.5.15-8.fc9
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-06-14 04:20:21 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Alexey Torkhov 2007-12-28 17:31:52 UTC
Description of problem:
Time to start or stop cyphesis service is too big. I think it's because of
semanage which is running on every start. Is it possible to do start/stop
without it? I don't see any other service which do semanage ports. 

Version-Release number of selected component (if applicable):
cyphesis-0.5.15-3.fc8

Comment 1 Wart 2007-12-28 17:37:15 UTC
The only way to get rid of the semanage calls in the init script is to move the
cyphesis selinux policy to the main selinux policy package.  I'll file a request
with the selinux policy maintainer to add it.

Comment 2 Alexey Torkhov 2007-12-28 17:57:59 UTC
Ah, I see. But that way it'll be hard to update policy.

I thought that policies that are modified with semanage are preserved between
restarts. Could it be runned only at install and uninstall time?

Comment 3 Wart 2007-12-28 19:05:19 UTC
(In reply to comment #2)
> Ah, I see. But that way it'll be hard to update policy.

Right.

> I thought that policies that are modified with semanage are preserved between
> restarts.

Yes, they are.

> Could it be runned only at install and uninstall time?

The problem is the corner case where someone installs cyphesis-selinux with
selinux disabled, then enables selinux.  With selinux disabled, the calls to
semanage at install time will fail and the ports won't get defined.  Once the
user turns selinux back on, the ports will not be defined and cyphesis will fail
to start because the ports will be blocked.

I see two choices here:

* Live with the longer startup time
* Move the selinux policy to the main selinux policy package, and live with the
fact that updates may take a little longer

Comment 4 Alexey Torkhov 2007-12-28 19:26:21 UTC
Well, cyphesis selinux policy isn't changing often. I think, if it solve long
startup time problem, it can be moved to main selinux policy package.

Comment 5 Wart 2008-04-07 05:12:48 UTC
The cyphesis port definitions that cause the slow startup time have moved to the
main selinux-policy package for F-9. I'll close this bug as soon as I verify
that the policy works.

Comment 6 Alexey Torkhov 2008-04-07 14:02:26 UTC
I've reported bug#441272 about selinux error in current version.

Comment 7 Wart 2008-06-06 17:40:22 UTC
Updating version to F9, as the selinux policy is not merged into the main
selinux-policy package in F8.

Comment 8 Fedora Update System 2008-06-06 17:41:34 UTC
cyphesis-0.5.15-7.fc9 has been submitted as an update for Fedora 9

Comment 9 Alexey Torkhov 2008-06-06 18:16:30 UTC
I checked new package - cyphesis-0.5.15-init.patch should be removed as it is
not needed any more.

Comment 10 Wart 2008-06-06 20:53:02 UTC
My bad.  I forgot to merge the patch from rawhide.  Expect a new build soon...

Comment 11 Wart 2008-06-07 02:37:35 UTC
New build with the updated init script: 
http://koji.fedoraproject.org/koji/buildinfo?buildID=51975

Comment 12 Fedora Update System 2008-06-10 03:12:30 UTC
cyphesis-0.5.15-8.fc9 has been pushed to the Fedora 9 testing repository.  If problems still persist, please make note of it in this bug report.
 If you want to test the update, you can install it with 
 su -c 'yum --enablerepo=updates-testing update cyphesis'.  You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F9/FEDORA-2008-5107

Comment 13 Fedora Update System 2008-06-14 04:20:12 UTC
cyphesis-0.5.15-8.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 Fedora Update System 2008-07-26 06:06:22 UTC
cyphesis-0.5.15-8.fc9 has been pushed to the Fedora 9 stable repository.  If problems still persist, please make note of it in this bug report.


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