SM Upload-Image after delete image fails

Bug #1549967 reported by Nitish Krishna Kaveri
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Juniper Openstack
Status tracked in Trunk
R2.21.x
Fix Committed
Low
Nitish Krishna Kaveri
R2.22.x
Fix Committed
Low
Nitish Krishna Kaveri
R3.0
Fix Committed
Low
Nitish Krishna Kaveri
Trunk
Fix Committed
Low
Nitish Krishna Kaveri

Bug Description

Using Cliff client or old client, if an image is uploaded, deleted and then re-uploaded, the image upload fails the second time.

root@a6s11:~/nitishk# server-manager upload_image new_upload_test 3.0-2717_kilo contrail-ubuntu-package /root/nitishk/contrail-install-packages_3.0.0.0-2717~ubuntu-14-04kilo_all.deb
{
    "return_code": 0,
    "return_data": null,
    "return_msg": "Image Uploaded"
}
root@a6s11:~/nitishk# server-manager delete image --image_id new_upload_test
{
    "return_code": 0,
    "return_data": null,
    "return_msg": "Image Deleted"
}
root@a6s11:~/nitishk# server-manager upload_image new_upload_test 3.0-2717_kilo contrail-ubuntu-package /root/nitishk/contrail-install-packages_3.0.0.0-2717~ubuntu-14-04kilo_all.deb
{
    "return_code": 9,
    "return_data": "IOError(2, 'No such file or directory')",
    "return_msg": ""
}

Checked with 2717 3.0.0.0 Server Manager and same version contrail image.

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] master

Review in progress for https://review.opencontrail.org/18452
Submitter: Nitish Krishna Kaveri (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/18452
Committed: http://github.org/Juniper/contrail-server-manager/commit/99205aba6b27fcae588b077b8e174ab01689bfad
Submitter: Zuul
Branch: master

commit 99205aba6b27fcae588b077b8e174ab01689bfad
Author: nitishkrishna <email address hidden>
Date: Tue Mar 15 13:53:24 2016 -0700

Closes-Bug: #1549967 - Add image after deleting same image fails

Issue:
python distutils keeps a cache of previously created file paths
Hence distutils.dir_util.copy_tree failed when called for second time on same file path

Fix:
Clear the cache of paths created before using copy_tree

Change-Id: Ia264c8a91cd087501000deeadf661fb1b0bce71c

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R3.0

Review in progress for https://review.opencontrail.org/19079
Submitter: Nitish Krishna Kaveri (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/19079
Committed: http://github.org/Juniper/contrail-server-manager/commit/c7bde95fde715686696900a97c1aef0d925bb886
Submitter: Zuul
Branch: R3.0

commit c7bde95fde715686696900a97c1aef0d925bb886
Author: nitishkrishna <email address hidden>
Date: Tue Mar 15 13:53:24 2016 -0700

Closes-Bug: #1549967 - Add image after deleting same image fails

Issue:
python distutils keeps a cache of previously created file paths
Hence distutils.dir_util.copy_tree failed when called for second time on same file path

Fix:
Clear the cache of paths created before using copy_tree

Change-Id: Ia264c8a91cd087501000deeadf661fb1b0bce71c

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.21.x

Review in progress for https://review.opencontrail.org/19270
Submitter: Nitish Krishna Kaveri (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : [Review update] R2.22.x

Review in progress for https://review.opencontrail.org/19271
Submitter: Nitish Krishna Kaveri (<email address hidden>)

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote : A change has been merged

Reviewed: https://review.opencontrail.org/19270
Committed: http://github.org/Juniper/contrail-server-manager/commit/0ca81d6d571d250ff120e0c853771bdf47ae39e3
Submitter: Zuul
Branch: R2.21.x

commit 0ca81d6d571d250ff120e0c853771bdf47ae39e3
Author: nitishkrishna <email address hidden>
Date: Tue Mar 15 13:53:24 2016 -0700

Closes-Bug: #1549967 - Add image after deleting same image fails

Issue:
python distutils keeps a cache of previously created file paths
Hence distutils.dir_util.copy_tree failed when called for second time on same file path

Fix:
Clear the cache of paths created before using copy_tree

Change-Id: Ia264c8a91cd087501000deeadf661fb1b0bce71c

Revision history for this message
OpenContrail Admin (ci-admin-f) wrote :

Reviewed: https://review.opencontrail.org/19271
Committed: http://github.org/Juniper/contrail-server-manager/commit/f7be92974c77af418f20326a23601a6e247e4d0b
Submitter: Zuul
Branch: R2.22.x

commit f7be92974c77af418f20326a23601a6e247e4d0b
Author: nitishkrishna <email address hidden>
Date: Tue Mar 15 13:53:24 2016 -0700

Closes-Bug: #1549967 - Add image after deleting same image fails

Issue:
python distutils keeps a cache of previously created file paths
Hence distutils.dir_util.copy_tree failed when called for second time on same file path

Fix:
Clear the cache of paths created before using copy_tree

Change-Id: Ia264c8a91cd087501000deeadf661fb1b0bce71c

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.