INSTR can not supported for postgresql

Bug #1840898 reported by Abhishek Kekane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Fix Released
High
Abhishek Kekane

Bug Description

Recently added migration script doesn't support INSTR function. INSTR function does support sqlite3 and mysql.

[1] https://review.opendev.org/#/c/665606/5

Changed in glance:
assignee: nobody → Abhishek Kekane (abhishek-kekane)
importance: Undecided → High
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to glance (master)

Fix proposed to branch: master
Review: https://review.opendev.org/677694

Changed in glance:
status: New → In Progress
Revision history for this message
Goutham Pacha Ravi (gouthamr) wrote :

We run a postgresql job against OpenStack/manila, and this bug shows up there: https://zuul.opendev.org/t/openstack/builds?job_name=manila-tempest-dsvm-postgres-zfsonlinux

Excerpt from devstacklog on that job: http://paste.openstack.org/show/760938/

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to glance (master)

Reviewed: https://review.opendev.org/677694
Committed: https://git.openstack.org/cgit/openstack/glance/commit/?id=6e525647f608839890a8a00a8e03a540a1891471
Submitter: Zuul
Branch: master

commit 6e525647f608839890a8a00a8e03a540a1891471
Author: Abhishek Kekane <email address hidden>
Date: Wed Aug 21 10:38:14 2019 +0000

    Fix INSTR not supported for postgresql

    Migration script 'train_migrate01_backend_to_store.py' doesn't support
    INSTR function for postgresql database. INSTR function does support
    sqlite3 and mysql.

    Used 'POSITION' function instead of 'INSTR' function if database is
    postgresql.
    Closes-Bug: #1840898

    Change-Id: I62c592f0885927b873ed35a1efe4a0f8407e7dee

Changed in glance:
status: In Progress → Fix Released
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/glance 19.0.0.0b1

This issue was fixed in the openstack/glance 19.0.0.0b1 development milestone.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.