graduate.sh fails to delete openstack folder

Bug #1507683 reported by Abhishek Kekane
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
oslo-incubator
Won't Fix
Medium
Davanum Srinivas (DIMS)

Bug Description

graduate.sh script fails to delete openstack folder as it contains _i18.py in openstack/common folder.

script does not completes and shows error 'rmdir: failed to remove ‘openstack’: Directory not empty'

I am running script as per mentioned in
https://wiki.openstack.org/wiki/Oslo/CreatingANewLibrary#Graduating_a_Library_from_the_Incubator

Steps to reproduce:

1. git clone git://git.openstack.org/openstack/oslo-incubator
2. git clone git://git.openstack.org/openstack/oslo-incubator oslo.foo
3. cd oslo.foo
4. run graduate.sh as, ../oslo-incubator/tools/graduate.sh i18n openstack/common/cliutils.py

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :
Changed in oslo-incubator:
status: New → In Progress
importance: Undecided → Medium
assignee: nobody → Davanum Srinivas (DIMS) (dims-v)
Revision history for this message
Abhishek Kekane (abhishek-kekane) wrote :

when I try to move files from apiclient then it fails.

run graduate.sh as, ../oslo-incubator/tools/graduate.sh i18n openstack/common/apiclient/base.py

For moving files from common folder it works perfectly,

run graduate.sh as, ../oslo-incubator/tools/graduate.sh i18n openstack/common/cliutils.py

Revision history for this message
Abhishek Kekane (abhishek-kekane) wrote :

../oslo-incubator/tools/graduate.sh apiclient openstack/common/apiclient/auth.py openstack/common/apiclient/base.py openstack/common/apiclient/client.py openstack/common/apiclient/exceptions.py openstack/common/apiclient/fake_client.py openstack/common/apiclient/utils.py tests/unit/apiclient/test_auth.py tests/unit/apiclient/test_base.py tests/unit/apiclient/test_client.py tests/unit/apiclient/test_exceptions.py tests/unit/apiclient/test_utils.py

Revision history for this message
Ankit Agrawal (ankitagrawal) wrote :

I tried to reproduce this issue in my local environment and the failure looks related to the new library name in which directories and files to be saved.

When I try to move files into library named "apiclient" then it fails.
run graduate.sh as, ../oslo-incubator/tools/graduate.sh apiclient openstack/common/apiclient/auth.py openstack/common/_i18n.py

But when I try to move files into library named as "foo" or some other name then it woks fine.
run graduate.sh as, ../oslo-incubator/tools/graduate.sh foo openstack/common/apiclient/auth.py openstack/common/_i18n.py
or
 ../oslo-incubator/tools/graduate.sh i18n openstack/common/apiclient/auth.py openstack/common/_i18n.py

Revision history for this message
Davanum Srinivas (DIMS) (dims-v) wrote :

All code in oslo-incubator will be deleted soon.

http://markmail.org/message/kgdnukenoni3hbmw

thanks,
dims

Changed in oslo-incubator:
status: In Progress → Won't Fix
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.