Don't hint explicitly while deleting a config still referenced

Bug #1509915 reported by Yingzhe Zeng
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Heat
Fix Released
Medium
Di XiaoLi

Bug Description

Create a deployment by "deployment-create" subcommand.
Then try to delete the config which referenced by the created deployment, using "config-delete" subcommand.

Will get this error message:
ERROR: Remote error: DBError (pymysql.err.IntegrityError) (1048, u"Column 'config_id' cannot be null") [SQL: u'UPDATE software_deployment SET config_id=%s WHERE software_deployment.id = %s'] [parameters: (None, u'98a3229b-3a34-494d-bdcb-6bb7c0ecb648')]
[u'

This error message doesn't reveal the reason explicitly, cause this's an internal error.
User can't quite understand why deleting failed from it.

Changed in heat:
assignee: nobody → Yingzhe Zeng (zengyingzhe)
Revision history for this message
Di XiaoLi (dixiaoli) wrote :

Yingzhe, are you working on this ? Do you mind if I submit a patch for this ?

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

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

Changed in heat:
assignee: Yingzhe Zeng (zengyingzhe) → Di XiaoLi (dixiaobj)
status: New → In Progress
Revision history for this message
Yingzhe Zeng (zengyingzhe) wrote :

Not at all.
XiaoLi, thanks for your help.

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

Reviewed: https://review.openstack.org/294386
Committed: https://git.openstack.org/cgit/openstack/heat/commit/?id=e767eb48b1f546106dd37ddba81efc0cdd2deb0e
Submitter: Jenkins
Branch: master

commit e767eb48b1f546106dd37ddba81efc0cdd2deb0e
Author: xiaolihope <email address hidden>
Date: Fri Mar 18 12:31:42 2016 +0800

    Raise explicit exception when deleting config which has been referenced

    This change aims to raise an explicit exception when trying to delete
    a software config which has been referenced by deployment.

    Change-Id: Ifa9492f003910b07fce4891fc88a566d6340f5a3
    Closes-Bug: #1509915

Changed in heat:
status: In Progress → Fix Released
Changed in heat:
milestone: none → newton-1
importance: Undecided → Medium
Revision history for this message
Doug Hellmann (doug-hellmann) wrote : Fix included in openstack/heat 7.0.0.0b1

This issue was fixed in the openstack/heat 7.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.