RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1417251 - "systemctl is-active" command reporting incorrect status when OVS related service is stopped
Summary: "systemctl is-active" command reporting incorrect status when OVS related ser...
Keywords:
Status: CLOSED DUPLICATE of bug 1073481
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: openvswitch
Version: 7.3
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Open vSwitch development team
QA Contact: ovs-qe
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-01-27 16:52 UTC by Rick Alongi
Modified: 2017-01-27 17:34 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-01-27 17:34:34 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Rick Alongi 2017-01-27 16:52:09 UTC
Description of problem:
systemctl is-active <service> reports as "unknown" rather than "inactive" when ovs related systemd services have been stopped.

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

Kernel: 3.10.0-514.el7.x86_64
openvswitch: openvswitch-2.6.1-3.git20161206.el7fdb.x86_64 and openvswitch-2.5.0-22.git20160727.el7fdp.bz1403958.fbl.2.x86_64

How reproducible:
100%


Steps to Reproduce:
1. systemctl restart openvswitch.service
2. systemctl stop openvswitch.service
3. systemctl is-active openvswitch.service --> reports as "unknown" instead of "inactive"
4. systemctl is-active ovs-vswitchd.service --> reports as "unknown" instead of "inactive"
5. systemctl is-active ovsdb-server.service --> reports as "unknown" instead of "inactive"

Repeat steps 1 and 2 (substituting ovs-vswitchd-service and ovsdb-server.service in Step 2) and results for Steps 3-5 are the same in each case.

NOTE: The CORRECT STATUS IS REPORTED via systemctl status <service>.  It is just the systemctl is-active <service> command that is yielding the wrong value.


Actual results:
systemctl is-active <service> command yields status of "unknown" for stopped ovs services.

Expected results:
systemctl is-active <service> command yields status of "inactive" for stopped ovs services.

Additional info:

Comment 1 Aaron Conole 2017-01-27 17:02:00 UTC
Is this a duplicate of bz 1073481?  I don't know that we have control over is-active - it's purely a systemd construct.

Comment 2 Rick Alongi 2017-01-27 17:34:14 UTC
Hi Aaron,

It does look like a duplicate of BZ 1073481 so it should be closed accordingly.

Thanks,
Rick

Comment 3 Rick Alongi 2017-01-27 17:34:34 UTC

*** This bug has been marked as a duplicate of bug 1073481 ***


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