Bug 38857

Summary: Changing default network: Script is buggy
Product: UCS manual Reporter: Janis Meybohm <meybohm>
Component: Virtualisation / UVMMAssignee: Philipp Hahn <hahn>
Status: CLOSED FIXED QA Contact: Erik Damrose <damrose>
Severity: normal    
Priority: P5 CC: hahn
Version: unspecified   
Target Milestone: UCS 4.0-2-errata   
Hardware: Other   
OS: Linux   
What kind of report is it?: --- What type of bug is this?: ---
Who will be affected by this bug?: --- How will those affected feel about the bug?: ---
User Pain: Enterprise Customer affected?:
School Customer affected?: ISV affected?:
Waiting Support: Flags outvoted (downgraded) after PO Review:
Ticket number: Bug group (optional):
Max CVSS v3 score:

Description Janis Meybohm univentionstaff 2015-07-08 11:32:44 CEST
http://docs.univention.de/manual-4.0.html#uvmm::profile::network

Englisch version of the script:

udm uvmm/profile list --filter interface=br0 |
  sed -ne 's/^DN: //p' |
  xargs -r -d '\n' -n 1 udm uvmm/profile modify \
    --set interface=br0 --dn


Obviously wrong as it would not find any profile and would not change the profile.

The german version is broken too:
<http://docs.univention.de/handbuch-4.0.html#uvmm::profile::network>

udm uvmm/profile list --filter interface=br0 |
  sed -ne 's/^DN: //p' |
  xargs -r -d '\n' -n 1 udm uvmm/profile modify \
    --set interface=eth0 --dn


The best (and working) version can be found in the 3.2 extended doc (and that's available in english only):
<http://docs.univention.de/computers-3.2.html#uvmm>

udm uvmm/profile list --filter interface=eth0 |
  sed -ne 's/^DN: //p' |
  xargs -r -n 1 -d '\n' udm uvmm/profile modify \
    --set interface=br0 --dn
Comment 1 Philipp Hahn univentionstaff 2015-07-08 12:29:12 CEST
(In reply to Janis Meybohm from comment #0)
> <http://docs.univention.de/manual-4.0.html#uvmm::profile::network>
> udm uvmm/profile list --filter interface=br0 |

br0 → eth0

>   sed -ne 's/^DN: //p' |
>   xargs -r -d '\n' -n 1 udm uvmm/profile modify \
>     --set interface=br0 --dn


> <http://docs.univention.de/handbuch-4.0.html#uvmm::profile::network>
> udm uvmm/profile list --filter interface=br0 |

br0 → eth0

>   sed -ne 's/^DN: //p' |
>   xargs -r -d '\n' -n 1 udm uvmm/profile modify \
>     --set interface=eth0 --dn

eth0 → br0

The text was updated as well.

r61867 | Bug #38857 manual: Fix uvmm/profile scripts

<http://jenkins.knut.univention.de:8080/job/UCS-4.0/job/UCS-4.0-2/job/Handbook%20UCS/lastSuccessfulBuild/artifact/webroot/handbuch-4.0.html#uvmm::profile::network>

<http://jenkins.knut.univention.de:8080/job/UCS-4.0/job/UCS-4.0-2/job/Handbook%20UCS/lastSuccessfulBuild/artifact/webroot/manual-4.0.html#uvmm::profile::network>
Comment 2 Philipp Hahn univentionstaff 2015-07-08 15:36:23 CEST
Bug #38857 manual: Fix uvmm/profile scripts
 Use "$OLD"/"$ALT" and "$NEW"/"$NEU" instead of concrete interface names
Comment 3 Erik Damrose univentionstaff 2015-07-08 15:38:31 CEST
> The best (and working) version can be found in the 3.2 extended doc

That is because the UCS 3.2 bridge default name is actually eth0. This has been changed in UCS 4, the bridge is named br0, see [1].

As discussed with Philipp, we will update the docs to show that br0 is the default, and update the example with generic device names.

[1] http://docs.univention.de/release-notes-4.0-0-en.html#relnotes:post
Comment 4 Erik Damrose univentionstaff 2015-07-08 15:39:25 CEST
OK: r61896, updating r61867
Verified
Comment 5 Philipp Hahn univentionstaff 2015-07-09 16:30:50 CEST
Bug #38405,Bug #38857,Bug #38865 doc: Publish