[one-users] Issue

Hutson Betts hut101 at tamu.edu
Wed Dec 14 13:54:16 PST 2011


I have been testing Host-managed VLANs, but I'm having an issue with
cleanup.

After creating a VNET and VM, I have the following:
oneadmin at opennebula-server:~$ onevm show 5
VIRTUAL MACHINE 5
INFORMATION                                                   
ID                  : 5                   
NAME                : vm-example          
USER                : oneadmin            
GROUP               : oneadmin            
STATE               : ACTIVE              
LCM_STATE           : RUNNING             
HOSTNAME            : 10.1.0.101          
START TIME          : 12/14 15:40:51      
END TIME            : -                   
DEPLOY ID           : one-5               

VIRTUAL MACHINE
MONITORING                                                      
NET_TX              : 0                   
NET_RX              : 390                 
USED MEMORY         : 524288              
USED CPU            : 66                  

VIRTUAL MACHINE
TEMPLATE                                                        
CPU=1
DISK=[
  CLONE=YES,
  DISK_ID=0,
  IMAGE="Machine A",
  IMAGE_ID=1,
  READONLY=NO,
  SAVE=NO,
  SOURCE=/var/lib/one/images/643c79fb423c71730ffb84b1a88f06d0,
  TARGET=hda,
  TYPE=DISK ]
MEMORY=512
NAME=vm-example
NIC=[
  BRIDGE=onebr2,
  IP=192.168.0.1,
  MAC=02:00:c0:a8:00:01,
  NETWORK="VLAN Test",
  NETWORK_ID=2,
  PHYDEV=eth2 ]
OS=[
  INITRD=/initrd.img,
  KERNEL=/vmlinuz,
  ROOT=sda ]
VMID=5
oneadmin at opennebula-server:~$ onevnet show 2
VIRTUAL NETWORK 2
INFORMATION                                                   
ID             : 2                   
USER           : oneadmin            
GROUP          : oneadmin            
PUBLIC         : No                  
USED LEASES    : 1                   

VIRTUAL NETWORK
TEMPLATE                                                        
BRIDGE=onebr2
NAME="VLAN Test"
NETWORK_ADDRESS=192.168.0.0
NETWORK_SIZE=C
PHYDEV=eth2
TYPE=RANGED

LEASES
INFORMATION                                                              
LEASE=[ IP=192.168.0.1, MAC=02:00:c0:a8:00:01, USED=1, VID=5 ]


On the host system, I have the following, created as a result of the
Host-managed VLAN script:

eth2.502  Link encap:Ethernet  HWaddr 00:1b:21:b8:cf:3d  
          inet6 addr: fe80::21b:21ff:feb8:cf3d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:390 (390.0 B)\

onebr2    Link encap:Ethernet  HWaddr 00:1b:21:b8:cf:3d  
          inet6 addr: fe80::9820:dff:fe31:9aab/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:390 (390.0 B)

vnet1     Link encap:Ethernet

Next, I proceed to delete the VM and VNET using the following:

oneadmin at opennebula-server:~$ onevm delete 5
oneadmin at opennebula-server:~$ onevnet delete 2


The "vnet0" tap was removed along with the VM, but the bridge and
VLAN-tagged virtual interface are still there. Am I missing a
configuration step to insure that those are removed when all remnants of
the VM and VNET are deleted?

-- 
Hutson Betts
Computer Science and Engineering
Texas A&M University



-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20111214/d3ab1eda/attachment-0002.pgp>


More information about the Users mailing list