euca-bundle-instance fails due to invalid cmd path

Bug #681638 reported by Bob Iwamoto
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Eucalyptus
Fix Committed
Undecided
Dmitrii Zagorodnov

Bug Description

The tool "euca-bundle-instance" for a Windows instance failed due to invalid cmd path.
This tool tried to run commands (euca-check-bucket, euca-bundle-upload and euca-delete-bundle) under "/usr/local/bin/". But actual commands are in "/usr/bin". Creating link temporarily fixes the issue.

The tool "euca-bundle-instance" should refer to the correct path (/usr/bin).

Environment: EE 2.0.1 on CentOS 5.5

Log (nc.log):
[Thu Nov 25 15:05:42 2010][007875][EUCAINFO ] bundling_thread: started bundling instance i-3B2607AC
[Thu Nov 25 15:05:42 2010][007875][EUCADEBUG ] bundling_thread: running cmd '/usr/local/bin/euca-check-bucket -b bobsnapshot1 --euca-auth'
[Thu Nov 25 15:05:42 2010][029150][EUCADEBUG ] bundling_thread: running cmd '/usr/local/bin/euca-bundle-upload -i /usr/local/eucalyptus//bob/i-3B2607AC/windows.snapshot -d /usr/local/eucalyptus//eucalyptus/work/i-3B2607AC -b bobsnapshot1 -c eyJleHBpcmF0aW9uIjogIjIwMTAtMTEtMjZUMDY6MDU6MjciLCJjb25kaXRpb25zIjogW3siYnVja2V0IjogImJvYnNuYXBzaG90MSIgfSx7ImFjbCI6ICJlYzItYnVuZGxlLXJlYWQiIH0sWyJzdGFydHMtd2l0aCIsICIka2V5IiwgIndpbmRvd3Muc25hcHNob3QiXV19 --policysignature 9hCGwCYR4ctGU0M9/eNzAUevqUE= --euca-auth'
[Thu Nov 25 15:05:42 2010][007875][EUCAINFO ] cleanup_bundling_task: instance i-3B2607AC bundling task result=failed
[Thu Nov 25 15:05:42 2010][007875][EUCADEBUG ] state change for instance i-3B2607AC: Bundling-Shutoff -> Shutoff (Extant)
[Thu Nov 25 15:05:42 2010][007875][EUCADEBUG ] cleanup_bundling_task: running cmd '/usr/local/bin/euca-delete-bundle -b bobsnapshot1 -p windows.snapshot --euca-auth '
[Thu Nov 25 15:05:42 2010][007875][EUCAWARN ] cleanup_bundling_task: bucket cleanup cmd '/usr/local/bin/euca-delete-bundle -b bobsnapshot1 -p windows.snapshot --euca-auth ' failed with rc '127'
[Thu Nov 25 15:05:42 2010][007875][EUCAINFO ] vrun(): [rm -rf /usr/local/eucalyptus//eucalyptus/work/i-3B2607AC]
[Thu Nov 25 15:05:42 2010][007875][EUCAINFO ] bundling_thread: failed while bundling instance i-3B2607AC (rc=255)
[Thu Nov 25 15:05:42 2010][007875][EUCAERROR ] libvirt: Domain not found: xenUnifiedDomainLookupByName (code=42)
[Thu Nov 25 15:05:42 2010][007875][EUCAINFO ] cleaning up state for instance i-3B2607AC
[Thu Nov 25 15:05:42 2010][007875][EUCAINFO ] vrun(): [rm -rf /usr/local/eucalyptus//bob/i-3B2607AC/]

Thank you,
Bob

Changed in eucalyptus:
assignee: nobody → Dmitrii Zagorodnov (dmitrii)
affects: eucalyptus → euca2ools
Revision history for this message
Garrett Holmstrom (gholms) wrote :

The issue here seems to be the NC's hardcoding the paths to the euca2ools commands it needs. The devel branch makes these paths configurable, so the next mainline release should eliminate this problem. Sorry for the wait.

affects: euca2ools → eucalyptus
Changed in eucalyptus:
status: New → Fix Committed
Revision history for this message
Andy Grimm (agrimm) wrote :

This issue is now being tracked upstream at http://eucalyptus.atlassian.net/browse/EUCA-2745

Please watch that issue for further updates.

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.