--001a114d71a801bb44054e0bc360
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
Ok,
thank you for pointing me into the right direction.
The working solution is the following entry in /etc/network/interfaces:
[...]
allow-ovs br0
iface br0 inet manual
allow-ovs [ccwdev0-encif]
iface [ccwdev0-encif]
pre-up znetconf -a [ccwdev0] -o layer2=1 -o bridge_role=primary
[...]
This way both interfaces come up as soon as I am starting open vswitch ('systemctl start openvswitch-switch').
I did not manage to set bridge_role in the post-up, since it is already
online at that point of time.
I had also no success with changes in /etc/sysconfig/scripts/ hardware/hwup-ccw-group.
Do you know if 'chzdev' will be in future s390-tools in stretch?
2017-04-25 15:10 GMT+02:00 Viktor Mihajlovski <
[email protected]>:
On 25.04.2017 13:44, Benjamin Jakob Zimmermann wrote:
Hello,
I am using debian stretch and I am trying to have openvswitch to work
right
after rebooting the machine.
So far, I manually configure the card with znetconf and then start openvswitch and then manually bring up the interfaces.
To visualize my approach, I list the commands (bridge and port had
already
been added to ovs beforehand):
# znetconf -a [ccwdev0] -o layer2=1 -o bridge_role=primary
# systemctl start openvswitch-switch
# ip l s [ccwdev0] up
# ip l s br0 up
Everything works out fine, I can now live migrate vm's via virsh.
What options do I have to add to /etc/sysconfig/hardware/config-ccw-0.0.[ccwdev0] to set the bridge_role when the interface is brought up?
Best,
Benjamin.
Hi,
I fear there's no out-of-the box support for the bridge_role property in sysconfig-hardware. As a temporary circumvention you could apply the following change in /etc/sysconfig/scripts/hardware/hwup-ccw-group:
1. locate the line containing
write_setting "portno" "$QETH_PORTNO'
2. insert the following line
write_setting "bridge_role" "$QETH_BRIDGE_ROLE'
Then you can add
QETH_BRIDGE_ROLE=primary
to the config file.
Needless to say that this will not survive a package update. You might
be better served by setting the property in a post-up command for the interface.
I am not really sure whether it makes sense to add more properties to
the sysconfig handling because in the long run persistent CCW device configurations should be done using chzdev, see https://www.ibm.com/developerworks/linux/linux390/s390-tools-1.33.0.html# newtools
On the other hand, this will probably not happen for stretch :-(.
--
Mit freundlichen Grüßen/Kind Regards
Viktor Mihajlovski
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martina Köderitz
Geschäftsführung: Dirk Wittkopp
Sitz der Gesellschaft: Böblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294
--001a114d71a801bb44054e0bc360
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable
<div dir="ltr"><div><div><div>Ok,<br></div>thank you for pointing me into the right direction.<br><br></div>The working solution is the following entry in /etc/network/interfaces:<br>[...]<br></div><div>allow-ovs br0<br></div><div>iface br0 inet manual<
<br></div><div>allow-ovs [ccwdev0-encif]<br></div><div>iface [ccwdev0-encif]<br></div><div> pre-up znetconf -a [ccwdev0] -o layer2=1 -o bridge_role=primary<br>[...]<br><br></div><div>This way both interfaces come up as soon as I am
starting open vswitch ('systemctl start openvswitch-switch').<br><br></div><div>I did not manage to set bridge_role in the post-up, since it is already online at that point of time.<br></div><div>I had also no success with changes in /etc/
sysconfig/scripts/<wbr>hardware/hwup-ccw-group.<br><br></div><div>Do you know if 'chzdev' will be in future s390-tools in stretch?<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-04-25 15:10 GMT+02:00 Viktor Mihajlovski <
span dir="ltr"><<a href="mailto:
[email protected]" target="_blank">
[email protected]</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div
class="h5">On <a href="tel:25.04.2017%2013" value="+12504201713">25.04.2017 13</a>:44, Benjamin Jakob Zimmermann wrote:<br>
> Hello,<br>
> I am using debian stretch and I am trying to have openvswitch to work right<br>
> after rebooting the machine.<br>
><br>
> So far, I manually configure the card with znetconf and then start<br> > openvswitch and then manually bring up the interfaces.<br>
><br>
> To visualize my approach, I list the commands (bridge and port had already<br>
> been added to ovs beforehand):<br>
> # znetconf -a [ccwdev0] -o layer2=1 -o bridge_role=primary<br>
> # systemctl start openvswitch-switch<br>
> # ip l s [ccwdev0] up<br>
> # ip l s br0 up<br>
><br>
> Everything works out fine, I can now live migrate vm's via virsh.<br> ><br>
> What options do I have to add to<br>
> /etc/sysconfig/hardware/<wbr>config-ccw-0.0.[ccwdev0] to set the bridge_role<br>
> when the interface is brought up?<br>
><br>
> Best,<br>
> Benjamin.<br>
><br>
</div></div>Hi,<br>
I fear there's no out-of-the box support for the bridge_role property in<br>
sysconfig-hardware. As a temporary circumvention you could apply the<br> following change in /etc/sysconfig/scripts/<wbr>hardware/hwup-ccw-group:<br>
1. locate the line containing<br>
write_setting "portno" "$QETH_PORTNO'<br>
2. insert the following line<br>
write_setting "bridge_role" "$QETH_BRIDGE_ROLE'<br>
Then you can add<br>
QETH_BRIDGE_ROLE=primary<br>
to the config file.<br>
Needless to say that this will not survive a package update. You might<br>
be better served by setting the property in a post-up command for the<br> interface.<br>
I am not really sure whether it makes sense to add more properties to<br>
the sysconfig handling because in the long run persistent CCW device<br> configurations should be done using chzdev, see<br>
<a href="
https://www.ibm.com/developerworks/linux/linux390/s390-tools-1.33.0.html#newtools" rel="noreferrer" target="_blank">
https://www.ibm.com/<wbr>developerworks/linux/linux390/<wbr>s390-tools-1.33.0.html#<wbr>newtools</a><br>
On the other hand, this will probably not happen for stretch :-(.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Mit freundlichen Grüßen/Kind Regards<br>
Viktor Mihajlovski<br>
IBM Deutschland Research & Development GmbH<br>
Vorsitzender des Aufsichtsrats: Martina Köderitz<br>
Geschäftsführung: Dirk Wittkopp<br>
Sitz der Gesellschaft: Böblingen<br>
Registergericht: Amtsgericht Stuttgart, HRB 243294<br>
</font></span></blockquote></div><br></div>
--001a114d71a801bb44054e0bc360--
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)