tacker-db-manage purge_deleted command error

Bug #1647278 reported by Ukesh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
tacker
Fix Released
Medium
Ukesh

Bug Description

purge command fails for 'all' parameter

tacker-db-manage --config-file /etc/tacker/tacker.conf purge_deleted all

traceback:

Traceback (most recent call last):
  File "/usr/local/bin/tacker-db-manage", line 10, in <module>
    sys.exit(main())
  File "/opt/stack/tacker/tacker/db/migration/cli.py", line 179, in main
    CONF.command.func(config, CONF.command.name)
  File "/opt/stack/tacker/tacker/db/migration/cli.py", line 113, in purge_deleted
    CONF.command.granularity)
  File "/opt/stack/tacker/tacker/db/migration/purge_tables.py", line 116, in purge_deleted
    return _purge_resource_tables(t, meta, engine, time_line, assoc_map)
  File "/opt/stack/tacker/tacker/db/migration/purge_tables.py", line 53, in _purge_resource_tables
    table_load.c.deleted_at <= time_line)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/_collections.py", line 212, in __getattr__
    raise AttributeError(key)
AttributeError: deleted_at

Ukesh (ukeshkumar)
Changed in tacker:
assignee: nobody → Ukesh (ukeshkumar)
Ukesh (ukeshkumar)
Changed in tacker:
importance: Undecided → Medium
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to tacker (master)

Fix proposed to branch: master
Review: https://review.openstack.org/408584

Changed in tacker:
status: New → In Progress
Revision history for this message
Sridhar Ramaswamy (srics-r) wrote :

Thanks for the reporting and fixing the problem, Ukesh !

Changed in tacker:
milestone: none → ocata-3
Revision history for this message
Sridhar Ramaswamy (srics-r) wrote :

Traceback due to the issue:

$ tacker-db-manage --config-file /etc/tacker/tacker.conf purge_deleted all
Traceback (most recent call last):
  File "/usr/local/bin/tacker-db-manage", line 10, in <module>
    sys.exit(main())
  File "/opt/stack/tacker/tacker/db/migration/cli.py", line 179, in main
    CONF.command.func(config, CONF.command.name)
  File "/opt/stack/tacker/tacker/db/migration/cli.py", line 113, in purge_deleted
    CONF.command.granularity)
  File "/opt/stack/tacker/tacker/db/migration/purge_tables.py", line 113, in purge_deleted
    _purge_resource_tables(t, meta, engine, time_line, assoc_map)
  File "/opt/stack/tacker/tacker/db/migration/purge_tables.py", line 53, in _purge_resource_tables
    table_load.c.deleted_at <= time_line)
  File "/usr/local/lib/python2.7/dist-packages/sqlalchemy/util/_collections.py", line 212, in __getattr__
    raise AttributeError(key)
AttributeError: deleted_at

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

Reviewed: https://review.openstack.org/408584
Committed: https://git.openstack.org/cgit/openstack/tacker/commit/?id=dfcacd9ca5c76c90d441b746ca5e50cb8cf93af4
Submitter: Jenkins
Branch: master

commit dfcacd9ca5c76c90d441b746ca5e50cb8cf93af4
Author: Ukesh Kumar Vasudevan <email address hidden>
Date: Thu Dec 8 17:50:57 2016 +0530

    tacker-db-manage purge_deleted command error

    purge command fails for 'all' parameter
    tacker-db-manage --config-file /etc/tacker/tacker.conf purge_deleted all

    Why trace: current code tries to delete from many tables which are not expected
    Solution: only delete the expected tables(events, vnf, vnfd, vims)

    Change-Id: Ic86ab8ca1d2619d55b5244fec488060c87ede0c3
    closes-bug: #1647278

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

This issue was fixed in the openstack/tacker 0.6.0 release.

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.