Bug 1139413

Summary: RFE: nova service-delete doesn't exist in 2.17.0
Product: Red Hat OpenStack Reporter: Dan Yocum <dyocum>
Component: python-novaclientAssignee: Jakub Ruzicka <jruzicka>
Status: CLOSED ERRATA QA Contact: Prasanth Anbalagan <panbalag>
Severity: low Docs Contact:
Priority: medium    
Version: 5.0 (RHEL 6)CC: dnavale, jruzicka, ndipanov, ohochman, panbalag, sferdjao, sgordon, yeylon
Target Milestone: z4Keywords: FutureFeature, ZStream
Target Release: 5.0 (RHEL 7)   
Hardware: All   
OS: All   
Whiteboard:
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 14:37:25 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1206644    

Description Dan Yocum 2014-09-08 21:12:31 UTC
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 15:34:03 UTC
Fix backported.

Comment 8 Prasanth Anbalagan 2015-04-02 14:19:17 UTC
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 14:37:25 UTC
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