Bug 1029722 - Use reap action as default for running deleted instances from nova-dist.conf
Summary: Use reap action as default for running deleted instances from nova-dist.conf
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-nova
Version: 4.0
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: 4.0
Assignee: Xavier Queralt
QA Contact: Pavel Sedlák
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-11-13 01:53 UTC by Stephen Gordon
Modified: 2019-09-09 14:39 UTC (History)
7 users (show)

Fixed In Version: openstack-nova-2013.2-5.el6ost
Doc Type: Enhancement
Doc Text:
The Compute service periodically checks for instances that have been deleted in the database but remain running on a compute node. The action to take when such instances are identified is determined by the value of the "running_deleted_instance_action" configuration key in the OpenStack Compute (/etc/nova/nova.conf) file. The default value of the "running_deleted_instance_action" configuration key has been changed to "reap". In previous releases the default value of this configuration key was "log". As a result of this change when running instances are discovered that have previously been deleted from the database they are now stopped and removed.
Clone Of:
Environment:
Last Closed: 2013-12-20 00:35:19 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
OpenStack gerrit 50188 0 None None None Never
Red Hat Product Errata RHEA-2013:1859 0 normal SHIPPED_LIVE Red Hat Enterprise Linux OpenStack Platform Enhancement Advisory 2013-12-21 00:01:48 UTC

Description Stephen Gordon 2013-11-13 01:53:20 UTC
Description of problem:

Request backport from upstream master:

"""
Update default for running_deleted_instance_action

Update the default value of running_deleted_instance_action to 'reap'
from 'log'. Consensus seems to be that this is what most people expect.

DocImpact

http://lists.openstack.org/pipermail/openstack-dev/2013-October/016153.html
"""

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

4.0

Additional info:

Updated default matches customer expectations.

Comment 1 Russell Bryant 2013-11-13 13:50:17 UTC
We changed this to be the default upstream for the Icehouse release.  It's not the kind of thing I would want to change within a release.  Since RHOS 4 has not been released yet, I would be OK with changing the default to 'reap'.

Comment 4 Xavier Queralt 2013-11-29 06:41:06 UTC
The key running_deleted_instance_action is set to "reap" by default in nova-dist.conf:

[root@rhos1 ~]# rpm -qa openstack-nova-common
openstack-nova-common-2013.2-5.el6ost.noarch

[root@rhos1 ~]# grep running_deleted_instance_action /usr/share/nova/nova-dist.conf 
running_deleted_instance_action=reap

Comment 5 Pavel Sedlák 2013-12-04 17:24:07 UTC
Verified, in new version option is there in nova-dist.conf:

# rpm -qa openstack-nova-common
> openstack-nova-common-2013.2-5.el6ost.noarch

# grep deleted_inst /etc/nova/*
> /etc/nova/nova.conf:#running_deleted_instance_action=log
> /etc/nova/nova.conf:#running_deleted_instance_poll_interval=1800
> /etc/nova/nova.conf:#running_deleted_instance_timeout=0

# grep deleted_inst /usr/share/nova/nova-dist.conf 
> running_deleted_instance_action=reap


in older version there was no entry like that at all:

# rpm -qa openstack-nova-common
> openstack-nova-common-2013.2-0.24.rc1.el6ost.noarch

# grep deleted_inst /etc/nova/*
> /etc/nova/nova.conf:#running_deleted_instance_action=log
> /etc/nova/nova.conf:#running_deleted_instance_poll_interval=1800
> /etc/nova/nova.conf:#running_deleted_instance_timeout=0

# grep deleted_inst /usr/share/nova/nova-dist.conf
>  

# cat /usr/share/nova/nova-dist.conf 
> [DEFAULT]
> log_dir = /var/log/nova
> state_path = /var/lib/nova
> lock_path = /var/lib/nova/tmp
> dhcpbridge = /usr/bin/nova-dhcpbridge
> dhcpbridge_flagfile = /usr/share/nova/nova-dist.conf
> dhcpbridge_flagfile = /etc/nova/nova.conf
> force_dhcp_release = True
> injected_network_template = /usr/share/nova/interfaces.template
> libvirt_nonblocking = True
> libvirt_inject_partition = -1
> network_manager = nova.network.manager.FlatDHCPManager
> compute_driver = libvirt.LibvirtDriver
> firewall_driver = nova.virt.libvirt.firewall.IptablesFirewallDriver
> rpc_backend = nova.openstack.common.rpc.impl_qpid
> rootwrap_config = /etc/nova/rootwrap.conf
> 
> [database]
> connection = mysql://nova:nova@localhost/nova
> max_retries = -1
>
> [keystone_authtoken]
> admin_tenant_name = %SERVICE_TENANT_NAME%
> admin_user = %SERVICE_USER%
> admin_password = %SERVICE_PASSWORD%
> auth_host = 127.0.0.1
> auth_port = 35357
> auth_protocol = http
> signing_dir = /tmp/keystone-signing-nova
> # Workaround for https://bugs.launchpad.net/nova/+bug/1154809
> auth_version = v2.0

Comment 7 errata-xmlrpc 2013-12-20 00:35:19 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.

http://rhn.redhat.com/errata/RHEA-2013-1859.html


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