Bug 5360 - Workspace destroy log shows dhcp/ebtables backout problem
: Workspace destroy log shows dhcp/ebtables backout problem
Status: RESOLVED FIXED
: Nimbus
Workspace service
: TP1.2.3
: PC Linux
: P3 normal
: ---
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2007-06-07 16:56 by
Modified: 2007-06-08 11:31 (History)


Attachments


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2007-06-07 16:56:16
When destroying a workspace the workspace control logs shows that
workspace/bin/dhcp-config.sh command is failing to backout the dhcp/ebtables
setup for the workspace. However, just prior to these log entries the commands
appear to be successful. My suspicion is that the dhcp-config.sh is being
executed twice in error and failing the second time.

There appears to be no consequences to these error messages.

The specific command called was:

/usr/local/globus-4/bin/workspace -e [SOME EPR] --destroy


The relevant section of the log is:

2007-06-07 14:17:43,686 - DEBUG - workspace (502) - Starting to execute
2007-06-07 14:17:43,686 - DEBUG - workspace.xen_v2 (3540) - getting object from
filesystem: /opt/workspace/persistence/workspace-3
2007-06-07 14:17:43,693 - DEBUG - workspace.xen_v2 (924) - create options name:
workspace-3
2007-06-07 14:17:43,693 - DEBUG - workspace.xen_v2 (925) - create options
image: file:///opt/workspace/images/rootfs
2007-06-07 14:17:43,693 - DEBUG - workspace.xen_v2 (927) - create options net:
1 nics
2007-06-07 14:17:44,306 - DEBUG - workspace.xen_v2 (1056) - destroyed
successfully: /usr/local/bin/sudo /usr/sbin/xm destroy workspace-3
2007-06-07 14:17:44,786 - DEBUG - workspace.xen_v2 (967) - altered
DHCP/ebtables successfully: /usr/local/bin/sudo
/opt/workspace/bin/dhcp-config.sh rem workspace-3-1 192.168.17.100
2007-06-07 14:17:44,786 - DEBUG - workspace.xen_v2 (970) - removing persisted
object for this VM: /opt/workspace/persistence/workspace-3
2007-06-07 14:17:44,786 - DEBUG - workspace.xen_v2 (980) - removing tracked
MACs/IPs:
2007-06-07 14:17:44,787 - DEBUG - workspace.xen_v2 (3459) -    found 1 nics
2007-06-07 14:17:44,788 - DEBUG - workspace.xen_v2 (3592) - successfully loaded
MAC tracking from /opt/workspace/persistence/MACTRACK
2007-06-07 14:17:44,788 - DEBUG - workspace.xen_v2 (3468) -    found MAC
'AA:01:15:7F:7B:F4' with association 'public'
2007-06-07 14:17:44,788 - DEBUG - workspace.xen_v2 (3474) -    removed MAC from
tracking
2007-06-07 14:17:44,789 - DEBUG - workspace.xen_v2 (3578) - wrote MAC tracking
object to '/opt/workspace/persistence/MACTRACK'
2007-06-07 14:17:44,789 - DEBUG - workspace.xen_v2 (3500) - backing out with
cmd '/usr/local/bin/sudo /opt/workspace/bin/dhcp-config.sh rem workspace-3-1
192.168.17.100'
2007-06-07 14:17:45,476 - ERROR - workspace.xen_v2 (3508) - problem with
dhcp/ebtables backout command: '/usr/local/bin/sudo
/opt/workspace/bin/dhcp-config.sh rem workspace-3-1 192.168.17.100' ::: return
code: 256 ::: output:
DHCP_CONF_ALTER_CMD: python /opt/workspace/bin/dhcp-conf-alter.py
EBTABLES_CONFIG_CMD: bash /opt/workspace/bin/ebtables-config.sh
  subcommand: rem
     vifname: workspace-3-1
      ipaddr: 192.168.17.100
CMD: bash /opt/workspace/bin/ebtables-config.sh rem workspace-3-1
  subcommand: rem
     vifname: workspace-3-1
Illegal target name 'workspace-3-1'.
ERROR: Failed to remove workspace-3-1 FORWARD rule
ERROR: ebtables remove failed
CMD: /etc/init.d/dhcpd stop
Shutting down dhcpd: [  OK  ]
CMD: python /opt/workspace/bin/dhcp-conf-alter.py -r -i 192.168.17.100 -p
/etc/dhcpd.conf
INFO: entry with IP address already not present
dhcp policy remove succeeded
CMD: /etc/init.d/dhcpd start
Starting dhcpd: [  OK  ]
2007-06-07 14:17:45,477 - DEBUG - workspace.xen_v2 (1009) - no tmp dir
'/opt/workspace/tmp/workspace-3'
2007-06-07 14:17:45,477 - DEBUG - workspace.xen_v2 (1022) - no secure img dir:
/opt/workspace/secureimages/workspace-3
------- Comment #1 From 2007-06-08 11:31:51 -------
David, many thanks for pointing out this oversight.  Fix committed to CVS HEAD,
it will be included in the next release.