Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1139413 - RFE: nova service-delete doesn't exist in 2.17.0
RFE: nova service-delete doesn't exist in 2.17.0
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: python-novaclient (Show other bugs)
5.0 (RHEL 6)
All All
medium Severity low
: z4
: 5.0 (RHEL 7)
Assigned To: Jakub Ruzicka
Prasanth Anbalagan
: FutureFeature, ZStream
Depends On:
Blocks: 1206644
  Show dependency treegraph
 
Reported: 2014-09-08 17:12 EDT by Dan Yocum
Modified: 2015-04-16 10:37 EDT (History)
10 users (show)

See Also:
Fixed In Version: python-novaclient-2.17.0-4.el7ost
Doc Type: Enhancement
Doc Text:
With this enhancement, a new command 'service-delete' has been added to the nova client to allow disabling services through the nova CLI as opposed to manually editing the nova-services table.
Story Points: ---
Clone Of:
: 1206644 (view as bug list)
Environment:
Last Closed: 2015-04-16 10:37:25 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2015:0825 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Bug Fix and Enhancement Advisory 2015-04-16 14:28:14 EDT

  None (edit)
Description Dan Yocum 2014-09-08 17:12:31 EDT
Description of problem:

I have services that were accidentally enabled (then later disabled) on compute nodes and now I want to remove them using a CLI.  I'd like a way to delete a service w/o having to manually update the nova.services table.  

The current version, 2.17.0, does not have this ability - it was added in 2.17-60.  There are tags 2.18.0 and 2.18.1, so an upgrade to one of these would be nice.
Comment 5 Jakub Ruzicka 2015-03-27 11:34:03 EDT
Fix backported.
Comment 8 Prasanth Anbalagan 2015-04-02 10:19:17 EDT
Verified on the following version of python-novaclient,

VERSION
========

[root@lynx13 ~(keystone_admin)]# yum list installed | grep novaclient
python-novaclient.noarch         1:2.17.0-4.el7ost       @rhelosp-5.0-el7-puddle


CONSOLE LOGS
=============

[root@lynx13 ~(keystone_admin)]# nova service-list
+------------------+------------------------------+----------+---------+-------+----------------------------+-----------------+
| Binary           | Host                         | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+------------------+------------------------------+----------+---------+-------+----------------------------+-----------------+
| nova-consoleauth | lynx13.qa.lab.tlv.redhat.com | internal | enabled | up    | 2015-04-02T14:08:45.000000 | -               |
| nova-scheduler   | lynx13.qa.lab.tlv.redhat.com | internal | enabled | up    | 2015-04-02T14:08:47.000000 | -               |
| nova-conductor   | lynx13.qa.lab.tlv.redhat.com | internal | enabled | up    | 2015-04-02T14:08:44.000000 | -               |
| nova-compute     | lynx13.qa.lab.tlv.redhat.com | nova     | enabled | up    | 2015-04-02T14:08:48.000000 | -               |
| nova-cert        | lynx13.qa.lab.tlv.redhat.com | internal | enabled | up    | 2015-04-02T14:08:45.000000 | -               |
+------------------+------------------------------+----------+---------+-------+----------------------------+-----------------+
[root@lynx13 ~(keystone_admin)]# nova service-delete 1
[root@lynx13 ~(keystone_admin)]# nova service-list
+----------------+------------------------------+----------+---------+-------+----------------------------+-----------------+
| Binary         | Host                         | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----------------+------------------------------+----------+---------+-------+----------------------------+-----------------+
| nova-scheduler | lynx13.qa.lab.tlv.redhat.com | internal | enabled | up    | 2015-04-02T14:09:07.000000 | -               |
| nova-conductor | lynx13.qa.lab.tlv.redhat.com | internal | enabled | up    | 2015-04-02T14:09:04.000000 | -               |
| nova-compute   | lynx13.qa.lab.tlv.redhat.com | nova     | enabled | up    | 2015-04-02T14:08:58.000000 | -               |
| nova-cert      | lynx13.qa.lab.tlv.redhat.com | internal | enabled | up    | 2015-04-02T14:09:05.000000 | -               |
+----------------+------------------------------+----------+---------+-------+----------------------------+-----------------+
[root@lynx13 ~(keystone_admin)]# nova service-delete 2
[root@lynx13 ~(keystone_admin)]# nova service-list
+----------------+------------------------------+----------+---------+-------+----------------------------+-----------------+
| Binary         | Host                         | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+----------------+------------------------------+----------+---------+-------+----------------------------+-----------------+
| nova-conductor | lynx13.qa.lab.tlv.redhat.com | internal | enabled | up    | 2015-04-02T14:15:04.000000 | -               |
| nova-compute   | lynx13.qa.lab.tlv.redhat.com | nova     | enabled | up    | 2015-04-02T14:14:58.000000 | -               |
| nova-cert      | lynx13.qa.lab.tlv.redhat.com | internal | enabled | up    | 2015-04-02T14:15:05.000000 | -               |
+----------------+------------------------------+----------+---------+-------+----------------------------+-----------------+
[root@lynx13 ~(keystone_admin)]# nova service-delete 3
[root@lynx13 ~(keystone_admin)]# nova service-list
+--------------+------------------------------+----------+---------+-------+----------------------------+-----------------+
| Binary       | Host                         | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+--------------+------------------------------+----------+---------+-------+----------------------------+-----------------+
| nova-compute | lynx13.qa.lab.tlv.redhat.com | nova     | enabled | up    | 2015-04-02T14:15:08.000000 | -               |
| nova-cert    | lynx13.qa.lab.tlv.redhat.com | internal | enabled | up    | 2015-04-02T14:15:15.000000 | -               |
+--------------+------------------------------+----------+---------+-------+----------------------------+-----------------+
[root@lynx13 ~(keystone_admin)]# nova service-delete 4
[root@lynx13 ~(keystone_admin)]# 
[root@lynx13 ~(keystone_admin)]# nova service-list
+-----------+------------------------------+----------+---------+-------+----------------------------+-----------------+
| Binary    | Host                         | Zone     | Status  | State | Updated_at                 | Disabled Reason |
+-----------+------------------------------+----------+---------+-------+----------------------------+-----------------+
| nova-cert | lynx13.qa.lab.tlv.redhat.com | internal | enabled | up    | 2015-04-02T14:15:25.000000 | -               |
+-----------+------------------------------+----------+---------+-------+----------------------------+-----------------+
Comment 10 errata-xmlrpc 2015-04-16 10:37:25 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-0825.html

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