virtualbox scripts require ifconfig

Bug #1265902 reported by Andrew Woodward
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
Medium
Miroslav Anashkin

Bug Description

As to a conversation with a IRC user, we found that VBoxManage uses ifconfig to set the IP address on the vboxnet0 interface. A check needs to be added to ensure ifconfig is present.

Tags: virtualbox
Revision history for this message
Ryan Moe (rmoe) wrote :

We need to check specifically for /sbin/ifconfig. One of the vbox tools has a hard-coded path to /sbin/ifconfig

ryan@debian:~$ strings /usr/lib/virtualbox/VBoxNetAdpCtl | grep -i ifconfig
/sbin/ifconfig
ryan@debian:~$

Changed in fuel:
assignee: nobody → Miroslav Anashkin (manashkin)
Changed in fuel:
status: Triaged → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-main (master)

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

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

Reviewed: https://review.openstack.org/74084
Committed: https://git.openstack.org/cgit/stackforge/fuel-main/commit/?id=1388ab3d1b2b280a85fd1f836e105b6dde9f5ed3
Submitter: Jenkins
Branch: master

commit 1388ab3d1b2b280a85fd1f836e105b6dde9f5ed3
Author: Miroslav Anashkin <email address hidden>
Date: Mon Feb 17 20:28:10 2014 +0400

    Virtualbox scripts require ifconfig

    Added check for /sbin/ifconfig existence under Linux/MacOS
    Added check for ipconfig under Windows/Cygwin

    Change-Id: I81ec63d5141ece93fd0119d63f1c2ee430a4b1c8
    Closes-Bug: #1265902

Changed in fuel:
status: In Progress → Fix Committed
Revision history for this message
Anastasia Palkina (apalkina) wrote :

Verified.

anastasia@anastasia-X9SRE-X9SRE-3F-X9SRi-X9SRi-3F:~$ sudo mv /sbin/ifconfig /sbin/ifconfig1
anastasia@anastasia-X9SRE-X9SRE-3F-X9SRi-X9SRi-3F:~$ cd Product/fuel-main/virtualbox/
anastasia@anastasia-X9SRE-X9SRE-3F-X9SRi-X9SRi-3F:~/Product/fuel-main/virtualbox$ ./launch.sh
Checking for 'expect'... OK
If you run this script under Cygwin, you may have to add path to VirtualBox directory to your PATH.
Usually it is enough to run "export PATH=$PATH:"/cygdrive/c/Program Files/Oracle/VirtualBox"
Checking for "VBoxManage"... OK
Checking for VirtualBox Extension Pack... OK
Checking for Mirantis OpenStack ISO image... OK
Checking if SSH client installed...
OK
Checking if ipconfig or ifconfig installed...
No ifconfig available at /sbin/ifconfig path! This path is hard-coded into VBoxNetAdpCtl utility.Please install ifconfig or create symlink to proper interface configuration utility.anastasia@anastasia-X9SR

Changed in fuel:
status: Fix Committed → Fix Released
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.