Bug 1349350
Summary: | Unknown column 'severity' in 'field list' on undercloud | ||
---|---|---|---|
Product: | Red Hat OpenStack | Reporter: | Yurii Prokulevych <yprokule> |
Component: | openstack-ceilometer | Assignee: | Pradeep Kilambi <pkilambi> |
Status: | CLOSED ERRATA | QA Contact: | Yurii Prokulevych <yprokule> |
Severity: | urgent | Docs Contact: | |
Priority: | urgent | ||
Version: | 9.0 (Mitaka) | CC: | apevec, fbaudin, jdanjou, jjoyce, jruzicka, jschluet, lhh, mburns, mlopes, pkilambi, sclewis, srevivo |
Target Milestone: | ga | Keywords: | Rebase, Triaged |
Target Release: | 9.0 (Mitaka) | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | openstack-ceilometer-6.1.3-2.el7ost | Doc Type: | Bug Fix |
Doc Text: |
Telemetry (ceilometer) dbsync creates an old alarming table, as a result of still running the `sqlalchemy-migrate` code. Consequently, Aodh dbsync sees no reference to Alembic, and has SQLAlchemy create the necessary tables. However, the tables are already present, so nothing is done, and the database is stamped to the latest version of Aodh Alembic.
You can avoid this issue by not creating alarm tables in ceilometer dbsync.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2016-08-11 12:27:43 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: |
Description
Yurii Prokulevych
2016-06-23 09:56:06 UTC
The problem is that on fresh install: - Ceilometer dbsync create the old alarming table because it runs the sqlalchemy-migrate code - Aodh dbsync see no reference to Alembic, so ask SQLAlchemy to create the tables; the tables are there, so it does nothing, and stamp the database to the latest version of Aodh Alembic https://review.openstack.org/333397 should avoid creating the alarming table in Ceilometer on fresh installs. The fix has been backported to Mitaka upstream and should be in Ceilometer 6.1.3 once https://review.openstack.org/#/c/344701/ is approved. Package rebase needed to Ceilometer 6.1.3 Upgrade fails because, based on my original scenario described earlier the following happens: "- Aodh dbsync see no reference to Alembic, so ask SQLAlchemy to create the tables; the tables are there, so it does nothing, and stamp the database to the latest version of Aodh Alembic" This has been fixed in master and backported to stable/mitaka in Aodh: https://git.openstack.org/cgit/openstack/aodh/commit/?h=stable/mitaka&id=4a53f93f60a1a7dc9981801ca2bcee5a168949e1 I've pushed a review at https://review.openstack.org/#/c/347433/ to release Aodh 2.0.3 with this fix. Fresh install of RHOS-9. Alarm is successfully created and transitions between states. Packages: --------- instack-0.0.8-3.el7ost.noarch instack-undercloud-4.0.0-10.el7ost.noarch openstack-aodh-common-2.0.3-2.el7ost.noarch openstack-aodh-notifier-2.0.3-2.el7ost.noarch openstack-aodh-evaluator-2.0.3-2.el7ost.noarch python-aodh-tests-2.0.3-2.el7ost.noarch openstack-aodh-listener-2.0.3-2.el7ost.noarch python-aodh-2.0.3-2.el7ost.noarch python-aodhclient-0.5.0-1.el7ost.noarch openstack-aodh-api-2.0.3-2.el7ost.noarch openstack-ceilometer-collector-6.1.3-2.el7ost.noarch openstack-ceilometer-central-6.1.3-2.el7ost.noarch python-ceilometerclient-2.3.0-1.el7ost.noarch python-ceilometer-tests-6.1.3-2.el7ost.noarch python-ceilometer-6.1.3-2.el7ost.noarch openstack-ceilometer-common-6.1.3-2.el7ost.noarch openstack-ceilometer-notification-6.1.3-2.el7ost.noarch openstack-ceilometer-polling-6.1.3-2.el7ost.noarch openstack-ceilometer-api-6.1.3-2.el7ost.noarch 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/RHEA-2016-1597.html |