Subject: unable to remove an ip with naddress --remove
From: "Raoul Bhatia [IPAX]" <r.bhatia@ipax.at>
Date: Fri, 08 Aug 2008 11:37:14 +0200

hi there,

i today added a new vlan interface to my vserver host (eth0.137) and
added an ip address, say 1.2.3.84/29

> # ip a 
> 6: eth0.137@eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc noqueue 
>     link/ether 00:4f:4e:0e:45:c1 brd ff:ff:ff:ff:ff:ff
>     inet 1.2.3.84/29 brd 1.2.3.87 scope global eth0.137

i then added this address to my vserver with with naddress --add:

> # naddress --add --nid 13 --ip 1.2.3.84/29
> Adding 1.2.3.84

> # naddress --remove --nid 13 --ip 1.2.3.84/29
> Removing 1.2.3.84
> naddress: vc_net_remove(): Invalid argument

> # naddress --remove --ip 1.2.3.84/29
> Removing 1.2.3.84
> naddress: vc_net_remove(): No such process


my system:
> util-vserver                                  0.30.215-2~bpo40+1

> # vserver-info 
> Versions:
>                    Kernel: 2.6.22.15-grsec2.1.11-vs2.2.0.5
>                    VS-API: 0x00020200
>              util-vserver: 0.30.215; Jun  1 2008, 21:56:10
> 
> Features:
>                        CC: gcc, gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
>                       CXX: g++, g++ (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)
>                  CPPFLAGS: ''
>                    CFLAGS: '-Wall -g  -O2 -std=c99 -Wall -pedantic -W -funit-at-a-time'
>                  CXXFLAGS: '-g -O2 -ansi -Wall -pedantic -W -fmessage-length=0 -funit-at-a-time'
>                build/host: i486-pc-linux-gnu/i486-pc-linux-gnu
>              Use dietlibc: yes
>        Build C++ programs: yes
>        Build C99 programs: yes
>            Available APIs: v13,net,v21,v22,v23,netv2
>             ext2fs Source: e2fsprogs
>     syscall(2) invocation: alternative
>       vserver(2) syscall#: 273/glibc
>                crypto api: beecrypt
> 
> Paths:
>                    prefix: /usr
>         sysconf-Directory: /etc
>             cfg-Directory: /etc/vservers
>          initrd-Directory: $(sysconfdir)/init.d
>        pkgstate-Directory: /var/run/vservers
>           vserver-Rootdir: /var/lib/vservers
> 
> 
> Assumed 'SYSINFO' as no other option given; try '--help' for more information.

any idea? :)

cheers,
raoul
-- 
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc.          email.          r.bhatia@ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OEG         web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            office@ipax.at
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15
____________________________________________________________________