Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

What is missing commit 9d06520645f28d96ef905a709f8ff0c27842b58b in nova-docker master branch ?

Consider commit 9d06520645f28d96ef905a709f8ff0c27842b58b in nova-docker master branch https://git.openstack.org/cgit/stackforge/nova-docker/
It does :-

- utils.execute('ip', 'netns', 'exec', container_id, 'ifconfig',
- if_remote_name, ip, run_as_root=True)
+ utils.execute('ip', 'netns', 'exec', container_id, 'ip', 'addr',
+ 'add', ip, 'dev', if_remote_name, run_as_root=True)

The last statement should be followed by a kind of :-

utils.execute('ip', 'netns', 'exec', container_id, 'ip', 'link',
  'set', if_remote_name,'up',run_as_root=True)

otherwise containers interface is still down versus call with ifconfig

It's a bit wild question is provoked by following sample

# Attach Container-ID $1 to the weave network at CIDR address $2
. . . . .

 if ! ip netns exec $NETNS ip link set $GUEST_IFNAME name $CONTAINER_IFNAME ||
        ! ip netns exec $NETNS ip addr add $2 dev $CONTAINER_IFNAME ||
        ! ip netns exec $NETNS ip link set $CONTAINER_IFNAME up
 then

What is missing commit 9d06520645f28d96ef905a709f8ff0c27842b58b in nova-docker master branch ?

Consider commit 9d06520645f28d96ef905a709f8ff0c27842b58b in nova-docker master branch https://git.openstack.org/cgit/stackforge/nova-docker/
It does :-

- utils.execute('ip', 'netns', 'exec', container_id, 'ifconfig',
- if_remote_name, ip, run_as_root=True)
+ utils.execute('ip', 'netns', 'exec', container_id, 'ip', 'addr',
+ 'add', ip, 'dev', if_remote_name, run_as_root=True)

The last statement should be followed by a kind of :-

utils.execute('ip', 'netns', 'exec', container_id, 'ip', 'link',
  'set', if_remote_name,'up',run_as_root=True)

otherwise containers interface is still down versus call with ifconfig

It's a bit wild question is provoked by following sample

# Attach Container-ID $1 to the weave network at CIDR address $2
. . . . .

 if ! ip netns exec $NETNS ip link set $GUEST_IFNAME name $CONTAINER_IFNAME ||
        ! ip netns exec $NETNS ip addr add $2 dev $CONTAINER_IFNAME ||
        ! ip netns exec $NETNS ip link set $CONTAINER_IFNAME up
 then