Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 845001 Details for
Bug 1046087
The error message that indicates manual DB stamping is needed is not clear enough
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Extended error messages for neutron-db-check
0001-add-extended-error-messages-to-neutron-db-check.patch (text/plain), 3.09 KB, created by
Lars Kellogg-Stedman
on 2014-01-03 16:00:56 UTC
(
hide
)
Description:
Extended error messages for neutron-db-check
Filename:
MIME Type:
Creator:
Lars Kellogg-Stedman
Created:
2014-01-03 16:00:56 UTC
Size:
3.09 KB
patch
obsolete
>From e8e5062814b5186d37cd61b1d0b6fdd14a55f5d2 Mon Sep 17 00:00:00 2001 >From: Lars Kellogg-Stedman <lars@redhat.com> >Date: Fri, 3 Jan 2014 10:58:24 -0500 >Subject: [PATCH] add extended error messages to neutron-db-check > >this resolves https://bugzilla.redhat.com/show_bug.cgi?id=1046087 >--- > neutron-db-check | 66 +++++++++++++++++++++++++++++++++++++++++--------------- > 1 file changed, 49 insertions(+), 17 deletions(-) > >diff --git a/neutron-db-check b/neutron-db-check >index 19b8707..fe4e7ab 100755 >--- a/neutron-db-check >+++ b/neutron-db-check >@@ -15,27 +15,59 @@ RETCODE=0 > [ "$NEUTRON_EXPECTED_DB_VERSION" ] || exit 0 > > neutron_db_version=$( >- neutron-db-manage \ >- --config-file /etc/neutron/neutron.conf \ >- --config-file /etc/neutron/plugin.ini current 2>/dev/null | >- awk '{print $NF}') >+ neutron-db-manage \ >+ --config-file /etc/neutron/neutron.conf \ >+ --config-file /etc/neutron/plugin.ini current 2>/dev/null | >+ awk '{print $NF}') > > if [ "x$neutron_db_version" = "x" ]; then >- logger -s -p daemon.error -t neutron-db-check \ >- "ERROR: unable to find version information for the neutron database."\ >- "Check your logs for additional information." >- RETCODE=1 >+ logger -s -p daemon.error -t neutron-db-check \ >+ "ERROR: unable to find version information for the neutron database."\ >+ "Check your logs for additional information." >+ >+ RETCODE=1 > elif [ "x$neutron_db_version" = "xNone" ]; then >- logger -s -p daemon.error -t neutron-db-check \ >- "ERROR: neutron database does not have version information."\ >- "You must run the \"neutron-db-manage stamp\" command before"\ >- "starting neutron services." >- RETCODE=1 >+ logger -s -p daemon.error -t neutron-db-check \ >+ "ERROR: neutron database does not have version information."\ >+ "You must run the \"neutron-db-manage stamp\" command before"\ >+ "starting neutron services." >+ >+ cat <<-EOF >&2 >+ >+ If you are upgrading from a Grizzly installation, the command would >+ look like this: >+ >+ neutron-db-manage \\ >+ --config-file /usr/share/neutron/neutron-dist.conf \\ >+ --config-file /etc/neutron/neutron.conf \\ >+ --config-file /etc/neutron/plugin.ini stamp grizzly >+ >+ You will then need to upgrade the database by running: >+ >+ openstack-db --service neutron --update >+ >+ If you have an existing Havana installation, you would run: >+ >+ neutron-db-manage \\ >+ --config-file /usr/share/neutron/neutron-dist.conf \\ >+ --config-file /etc/neutron/neutron.conf \\ >+ --config-file /etc/neutron/plugin.ini stamp havana >+ EOF >+ >+ RETCODE=1 > elif [ "x$neutron_db_version" != "x$NEUTRON_EXPECTED_DB_VERSION" ]; then >- logger -s -p daemon.error -t neutron-db-check \ >- "ERROR: you must upgrade the neutron database before starting"\ >- "neutron services." >- RETCODE=1 >+ logger -s -p daemon.error -t neutron-db-check \ >+ "ERROR: you must upgrade the neutron database before starting"\ >+ "neutron services." >+ >+ cat <<-EOF >&2 >+ >+ You can upgrade the neutron database by running: >+ >+ openstack-db --service neutron --update >+ EOF >+ >+ RETCODE=1 > fi > > exit $RETCODE >-- >1.8.3.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1046087
: 845001