Skip to contentSkip to conversation

delaying 4.4.2 and 4.3.4

DISCUSSION Applied Jan Beulich 5 participants 15 messages Nov 13, 2014 – Jan 13, 2015

lore
Share & tools
lore
#0 lore raw

All,

while the 3 month period since the previous stable releases would expire at the beginning of December, looking at the number of changes in the stable trees I don't think starting preparations right now would make much sense. Unless I hear severe objections to this plan, and unless 4.5 gets significantly delayed, I think we should look at RC1s for them once 4.5 is (almost) out the door. That'll also minimize collisions between testing needs 4.5 and the stable releases have.

Jan

#1 lore raw
Quoted 10 lines · Jan Beulich

All,

while the 3 month period since the previous stable releases would expire at the beginning of December, looking at the number of changes in the stable trees I don't think starting preparations right now would make much sense. Unless I hear severe objections to this plan, and unless 4.5 gets significantly delayed, I think we should look at RC1s for them once 4.5 is (almost) out the door. That'll also minimize collisions between testing needs 4.5 and the stable releases have.

By the way, what I should do to have commit f3f5f1927f0d3aef9e3d2ce554dbfa0de73487d5 (tools/hotplug: set mtu from bridge for tap interface) in at least Xen 4.3? I am asking about that more than five months. This patch fixes real bug.

Daniel

#2 lore raw

Backport request for "tools/hotplug: set mtu from bridge for tap interface"

Daniel Kiper writes ("Re: [Xen-devel] delaying 4.4.2 and 4.3.4"):

Quoted 3 lines

By the way, what I should do to have commit f3f5f1927f0d3aef9e3d2ce554dbfa0de73487d5 (tools/hotplug: set mtu from bridge for tap interface) in at least Xen 4.3? I am asking about that more than five months. This patch fixes real bug.

I don't seem to be able to find these mails from you but my mailbox is very big. The normal thing ought to be for you to post a backport request and CC the stable tools maintainer (ie me). I'm sorry if I dropped your message.

The patch looks reasonable to backport. I have put it on my list for backporting later. I'll wait a bit to see if anyone objects. (I have also CC'd the patch's original author and also Ian C because he acked it for unstable.)

Does it apply cleanly to 4.3 and 4.4? I haven't checked. Daniel, if you could check that, that would be helpful. If it doesn't then the normal process would be for the backport requestor (ie you) to post the revised patch against 4.3 and/or 4.4.

Thanks,
Ian.

#3 lore raw

Re: Backport request for "tools/hotplug: set mtu from bridge for tap interface"

Quoted 12 lines
Quoted 1 line
Quoted 1 line · Ian Jackson

Daniel Kiper writes ("Re: [Xen-devel] delaying 4.4.2 and 4.3.4"):

Quoted 1 line

By the way, what I should do to have commit

f3f5f1927f0d3aef9e3d2ce554dbfa0de73487d5

Quoted 2 lines

(tools/hotplug: set mtu from bridge for tap interface) in at least Xen 4.3? I am asking about that more than five months. This patch fixes real bug.

I don't seem to be able to find these mails from you but my mailbox is very big. The normal thing ought to be for you to post a backport request and CC the stable tools maintainer (ie me). I'm sorry if I dropped your message.

Quoted 4 lines

The patch looks reasonable to backport. I have put it on my list for backporting later. I'll wait a bit to see if anyone objects. (I have also CC'd the patch's original author and also Ian C because he acked it for unstable.)

It should backport without problem. I would also recommend this small change that adds quotes around $bridge and $dev to handle spaces in names. This should also go into unstable.

tools/hotplug/Linux/vif-bridge +2 -2
index 3d72ca4..8b67b0a 100644
@@ -77,7 +77,7 @@ fi
 case "$command" in
     online)
         setup_virtual_bridge_port "$dev"
-        set_mtu $bridge $dev
+        set_mtu "$bridge" "$dev"
         add_to_bridge "$bridge" "$dev"
         ;;
 
@@ -88,7 +88,7 @@ case "$command" in
 
     add)
         setup_virtual_bridge_port "$dev"
-        set_mtu $bridge $dev
+        set_mtu "$bridge" "$dev"
         add_to_bridge "$bridge" "$dev"
         ;;
 esac
#4 lore raw

Re: Backport request for "tools/hotplug: set mtu from bridge for tap interface"

In reply to Ian Jackson
Quoted 15 lines · Ian Jackson

Daniel Kiper writes ("Re: [Xen-devel] delaying 4.4.2 and 4.3.4"):

Quoted 3 lines

By the way, what I should do to have commit f3f5f1927f0d3aef9e3d2ce554dbfa0de73487d5 (tools/hotplug: set mtu from bridge for tap interface) in at least Xen 4.3? I am asking about that more than five months. This patch fixes real bug.

I don't seem to be able to find these mails from you but my mailbox is very big. The normal thing ought to be for you to post a backport request and CC the stable tools maintainer (ie me). I'm sorry if I dropped your message.

The patch looks reasonable to backport. I have put it on my list for backporting later. I'll wait a bit to see if anyone objects. (I have also CC'd the patch's original author and also Ian C because he acked it for unstable.)

Quoted 4 lines

Does it apply cleanly to 4.3 and 4.4? I haven't checked. Daniel, if you could check that, that would be helpful. If it doesn't then the normal process would be for the backport requestor (ie you) to post the revised patch against 4.3 and/or 4.4.

4.4 and later have this patch. 4.3 and earlier ones do not have this patch. It could be cherry picked to 4.3 and 4.2 without any issues.

Daniel

#5 lore raw

Re: Backport request for "tools/hotplug: set mtu from bridge for tap interface"

Daniel Kiper writes ("Re: Backport request for "tools/hotplug: set mtu from bridge for tap interface""):

Quoted 8 lines · Ian Jackson
Quoted 4 lines

Does it apply cleanly to 4.3 and 4.4? I haven't checked. Daniel, if you could check that, that would be helpful. If it doesn't then the normal process would be for the backport requestor (ie you) to post the revised patch against 4.3 and/or 4.4.

4.4 and later have this patch. 4.3 and earlier ones do not have this patch. It could be cherry picked to 4.3 and 4.2 without any issues.

I tried cherry-picking this commit (f3f5f192) to 4.4 and it didn't apply.

If anyone cares to prepare a backport I will apply it.

Thanks,
Ian.

#6 lore raw

Re: Backport request for "tools/hotplug: set mtu from bridge for tap interface" - for Xen 4.3

With changeset 22885 support was added for setting the MTU in the vif-bridge script for when a vif interface was set to 'online'. The was not done for the 'add' operation. The 'add' operation was added to the script for when tap devices were specified (c/s 21944). With the setting of the MTU for the 'online' case was there a reason for omitting the 'add'?

This patch sets the MTU for both 'online' and 'add' in the vif-bridge script.

Backport for Xen version 4.3

tools/hotplug/Linux/vif-bridge +2 -5
index f489519..da8a0f8 100644
@@ -82,11 +82,7 @@ fi
 case "$command" in
     online)
         setup_virtual_bridge_port "$dev"
-        mtu="`ip link show $bridge | awk '/mtu/ { print $5 }'`"
-        if [ -n "$mtu" ] && [ "$mtu" -gt 0 ]
-        then
-                ip link set $dev mtu $mtu || :
-        fi
+        set_mtu "$bridge" "$dev"
         add_to_bridge "$bridge" "$dev"
         ;;
 
@@ -97,6 +93,7 @@ case "$command" in
 
     add)
         setup_virtual_bridge_port "$dev"
+        set_mtu "$bridge" "$dev"
         add_to_bridge "$bridge" "$dev"
         ;;
 esac
tools/hotplug/Linux/xen-network-common.sh +11 -0
index 8cff156..9a9526b 100644
@@ -132,3 +132,14 @@ add_to_bridge () {
     ip link set ${dev} up
 }
 
+# Usage: set_mtu bridge dev
+set_mtu () {
+    local bridge=$1
+    local dev=$2
+    mtu="`ip link show ${bridge}| awk '/mtu/ { print $5 }'`"
+    if [ -n "$mtu" ] && [ "$mtu" -gt 0 ]
+    then
+            ip link set ${dev} mtu $mtu || :
+    fi
+}
+
Applied
#7 lore raw

Re: Backport request for "tools/hotplug: set mtu from bridge for tap interface" - for Xen 4.3

Charles Arnold writes ("Re: Backport request for "tools/hotplug: set mtu from bridge for tap interface" - for Xen 4.3"):

Quoted 11 lines

With changeset 22885 support was added for setting the MTU in the vif-bridge script for when a vif interface was set to 'online'. The was not done for the 'add' operation. The 'add' operation was added to the script for when tap devices were specified (c/s 21944). With the setting of the MTU for the 'online' case was there a reason for omitting the 'add'?

This patch sets the MTU for both 'online' and 'add' in the vif-bridge script.

Backport for Xen version 4.3

Thanks, applied to 4.3.

Ian.

#8 lore raw

Re: Backport request for "tools/hotplug: set mtu from bridge for tap interface" - for Xen 4.3

Quoted 7 lines · Ian Jackson

Charles Arnold writes ("Re: Backport request for "tools/hotplug: set mtu from bridge for tap interface" - for Xen 4.3"):

Quoted 6 lines

With changeset 22885 support was added for setting the MTU in the vif-bridge script for when a vif interface was set to 'online'. The was not done for the 'add' operation. The 'add' operation was added to the script for when tap devices were specified (c/s 21944). With the setting of the MTU for the 'online' case was there a reason for omitting the 'add'?

Quoted 7 lines
Quoted 5 lines

This patch sets the MTU for both 'online' and 'add' in the vif-bridge script.

Backport for Xen version 4.3

Thanks, applied to 4.3.

Thanks a lot guys!

Daniel

#9 lore raw

Re: Backport request for "tools/hotplug: set mtu from bridge for tap interface" - for Xen 4.4, 4.5, and unstable

In reply to Ian Jackson

Add quotes around $bridge and $dev to handle spaces in names. This should go into 4.4, 4.5 and unstable.

tools/hotplug/Linux/vif-bridge +2 -2
index 3d72ca4..8b67b0a 100644
@@ -77,7 +77,7 @@ fi
 case "$command" in
     online)
         setup_virtual_bridge_port "$dev"
-        set_mtu $bridge $dev
+        set_mtu "$bridge" "$dev"
         add_to_bridge "$bridge" "$dev"
         ;;
 
@@ -88,7 +88,7 @@ case "$command" in
 
     add)
         setup_virtual_bridge_port "$dev"
-        set_mtu $bridge $dev
+        set_mtu "$bridge" "$dev"
         add_to_bridge "$bridge" "$dev"
         ;;
 esac
#10 lore raw

Re: Backport request for "tools/hotplug: set mtu from bridge for tap interface" - for Xen 4.4, 4.5, and unstable

Charles Arnold writes ("Re: Backport request for "tools/hotplug: set mtu from bridge for tap interface" - for Xen 4.4, 4.5, and unstable"):

Quoted 2 lines

Add quotes around $bridge and $dev to handle spaces in names. This should go into 4.4, 4.5 and unstable.

Is this really necessary for backporting ?

Frankly I think if you put spaces in your network device names an awful lot of things are going to break.

Ian.

#11 lore raw

Re: Backport request for "tools/hotplug: set mtu from bridge for tap interface" - for Xen 4.4, 4.5, and unstable

Quoted 10 lines
Quoted 1 line
Quoted 1 line · Ian Jackson

Charles Arnold writes ("Re: Backport request for "tools/hotplug: set mtu from bridge for tap interface" - for Xen 4.4, 4.5, and unstable"):

Quoted 2 lines

Add quotes around $bridge and $dev to handle spaces in names. This should go into 4.4, 4.5 and unstable.

Is this really necessary for backporting ?

Frankly I think if you put spaces in your network device names an awful lot of things are going to break.

You are probably right. The change was also for consistency in how the variables are used elsewhere in the script.

- Charles

#12 lore raw

Re: Backport request for "tools/hotplug: set mtu from bridge for tap interface" - for Xen 4.4, 4.5, and unstable

In reply to Ian Jackson

Hello,

Quoted 8 lines · Ian Jackson

Charles Arnold writes ("Re: Backport request for "tools/hotplug: set mtu from bridge for tap interface" - for Xen 4.4, 4.5, and unstable"):

Quoted 2 lines

Add quotes around $bridge and $dev to handle spaces in names. This should go into 4.4, 4.5 and unstable.

Is this really necessary for backporting ?

Frankly I think if you put spaces in your network device names an awful lot of things are going to break.

Luckily for you at least Linux does not allow space characters in interface names: net/core/dev.c:936 dev_valid_name

On the other hand I find not caring about quoting somehow dangerous, as I already expeienced one desaster caused by missing quotes. Just my 2¢.

Philipp

#14 lore raw

Re: Backport request for "tools/hotplug: set mtu from bridge for tap interface"

In reply to Ian Jackson
Quoted 7 lines · Ian Jackson

Daniel Kiper writes ("Re: Backport request for "tools/hotplug: set mtu from bridge for tap interface""):

Quoted 6 lines · Ian Jackson
Quoted 4 lines

Does it apply cleanly to 4.3 and 4.4? I haven't checked. Daniel, if you could check that, that would be helpful. If it doesn't then the normal process would be for the backport requestor (ie you) to post the revised patch against 4.3 and/or 4.4.

Quoted 5 lines
Quoted 2 lines

4.4 and later have this patch. 4.3 and earlier ones do not have this patch. It could be cherry picked to 4.3 and 4.2 without any issues.

I tried cherry-picking this commit (f3f5f192) to 4.4 and it didn't apply.

As I wrote above "4.4 and later have this patch".

Daniel