nova-common package tries to update /etc/nova/nova.conf
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
Setting up nova-common (2011.2~
Configuration file `/etc/nova/
==> Modified (by you or by a script) since installation.
==> Package distributor has shipped an updated version.
What would you like to do about it ? Your options are:
Y or I : install the package maintainer's version
N or O : keep your currently-installed version
D : show the differences between the versions
Z : background this process to examine the situation
The default action is to keep your current version.
*** nova.conf (Y/I/N/O/D/Z) [default=N] ?
Since this is a configuration file, this should likely not occur. It makes it difficult to handle via puppet and other automated means.
Changed in nova: | |
status: | New → Invalid |
On 04/11/2011 05:45 PM, Ryan Lane wrote: nova.conf'
> Configuration file `/etc/nova/
> ==> Modified (by you or by a script) since installation.
> ==> Package distributor has shipped an updated version.
> What would you like to do about it ? Your options are:
> Y or I : install the package maintainer's version
> N or O : keep your currently-installed version
> D : show the differences between the versions
> Z : background this process to examine the situation
> The default action is to keep your current version.
> *** nova.conf (Y/I/N/O/D/Z) [default=N] ?
>
> Since this is a configuration file, this should likely not occur. It
> makes it difficult to handle via puppet and other automated means.
Since this is a configuration file, the package *did not* overwrite your
existing configuration and asked for your attention to look at the
differences, etc.
Although I am not sure what the changes were in the default
configuration files, sometimes it is necessary to update config files to
include new and different environment variables, or new and different
accepted options, etc. While your old configuration file might work
fine with a newer version of the software, sometimes this is not the
case and the system administrator *needs* to review those changes and
take appropriate action.
If you are automating deployments, then you did see this in your staging
environment, right?
For a quickie (I've done this many times after seeing trivial config
prompts like this), echo "N\n" to your run to answer the question.
For how to never get prompted (at your own risk), take a look at the
nice article Raphael Hertzog wrote on the topic - it should give you
good understanding of what is happening and a couple ideas for making
the system do what you want:
http:// raphaelhertzog. com/2010/ 09/21/debian- conffile- configuration- file-managed- by-dpkg/
dpkg did the right thing in your example - it did not hose your
configuration. My suggestion is that this bug be closed - it's the
system administrator's job to understand this dpkg behavior and act
accordingly.
--
Kind regards,
Michael