xenapi: xentool - cache destroy script is broken

Bug #1481693 reported by Sulochan Acharya
12
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Compute (nova)
Fix Released
Medium
Sulochan Acharya

Bug Description

https://github.com/openstack/nova/blob/master/tools/xenserver/destroy_cached_images.py

is broken, as it has not been updated for a really long time. XenAPIDriver initialization has changed since, along with oslo_config so this script needs to be updated to include those.

Tags: xenserver
Changed in nova:
assignee: nobody → Sulochan Acharya (sulochan-acharya)
tags: added: xenserver
Changed in nova:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Bob Ball (bob-ball) wrote :

How does this relate to the "Remove these scripts" bug #1481705?
If the suggestion is that this script is broken therefore unusable therefore definitely not being used then let's remove it rather than fix it then remove it with 1481705

Revision history for this message
Bob Ball (bob-ball) wrote :

Should we really be removing this and adding support for the "has_imagecache" capability? (I don't know enough about that capability but my initial thought is yes?)

Revision history for this message
Sulochan Acharya (sulochan-acharya) wrote :

Bob, yeah i was just chatting with John about cache cleanup in xapi. Are we saying if we get cache cleanup working on cache manger we don't want this particular script or just nuke the whole tools scripts ? I am trying to see if we can get that going as well but want to get an idea of what we want for this script.

Revision history for this message
Bob Ball (bob-ball) wrote :

Other scripts are definitely performing other tasks, so I guess it would only affect this script?

Changed in nova:
status: Confirmed → In Progress
Revision history for this message
Sulochan Acharya (sulochan-acharya) wrote :
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to nova (master)

Reviewed: https://review.openstack.org/209526
Committed: https://git.openstack.org/cgit/openstack/nova/commit/?id=d731a04b604fb39ffeb4ba05d42664a15de8508c
Submitter: Jenkins
Branch: master

commit d731a04b604fb39ffeb4ba05d42664a15de8508c
Author: Sulochan Acharya <email address hidden>
Date: Wed Aug 5 14:07:54 2015 +0000

    xapi-tools: fixes cache cleaner script

    Fixes cache cleaner script by removing import of
    driver and using session directly to call vm_utils.

    There is no test included for this. Since this is out of nova
    tree, adding tests is tracked in 1481705

    Closes-Bug: #1481693

    Change-Id: I25ee22777baecaf64de63a39d19e8f8f514f70b3

Changed in nova:
status: In Progress → Fix Committed
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/nova 13.0.0.0b1

This issue was fixed in the openstack/nova 13.0.0.0b1 development milestone.

Changed in nova:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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