Red Hat Bugzilla – Bug 1139413
RFE: nova service-delete doesn't exist in 2.17.0
Last modified: 2015-04-16 10:37:25 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.
Fix backported.
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 | - | +-----------+------------------------------+----------+---------+-------+----------------------------+-----------------+
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