[owl-users] Owl OpenVZ template - strange network configuration

From: <gremlin_at_private>
Date: Mon, 4 Jun 2012 13:04:05 +0400
I normally use my own package for init scripts, so... my apologies for
late discovery.

root_at_vzhost01:~ # vzctl create 1000 --ostemplate owl-current-20120508-x86_64 --ipadd 172.31.255.0 --hostname ovz-test.lan
Creating container private area (owl-current-20120508-x86_64)
Performing postcreate actions
Container private area was created

root_at_vzhost01:~ # vzctl start 1000
Starting container ...
Container is mounted
Adding IP address(es): 172.31.255.0
Setting CPU units: 1000
Configure meminfo: 65536
Set hostname: ovz-test.lan
Container start in progress...

root_at_vzhost01:~ # vzctl enter 1000                                              
entered into CT 1000

root_at_ovz-test:/ # ip address
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN 
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 brd 127.255.255.255 scope host lo
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: gre0: <NOARP> mtu 1476 qdisc noop state DOWN 
    link/gre 0.0.0.0 brd 0.0.0.0
3: ip6tnl0: <NOARP> mtu 1460 qdisc noop state DOWN 
    link/tunnel6 :: brd ::
4: venet0: <BROADCAST,POINTOPOINT,NOARP,UP,LOWER_UP> mtu 1500 qdisc noqueue state UNKNOWN 
    link/void 
    inet 127.0.0.1/24 scope host venet0
    ^^^^^^^^^^^^^^^^^
    inet 172.31.255.0/32 scope global venet0:0
                                            ^^

For me it seems to be an ugly bug... And even worse, it looks like
our init scripts still use /* several kilobytes of curses skipped */
`ifconfig` instead of `ip` for configuring network devices.


-- 
Alexey V. Vissarionov aka Gremlin from Kremlin
<gremlin  gremlin  ru>
GPG key ID: 0xEF3B1FA8, keyserver: hkp://subkeys.pgp.net
GPG key fingerprint: 8832 FE9F A791 F796 8AC9 6E4E 909D AC45 EF3B 1FA8

Received on Mon Jun 04 2012 - 02:04:05 PDT

This archive was generated by hypermail 2.2.0 : Mon Jun 04 2012 - 02:04:42 PDT