Re: [Rocks-Discuss] Possible bug in ROCKS 4.3 Kickstart XMLgeneration?

0 views
Skip to first unread message

Steden Klaus

unread,
Oct 3, 2007, 9:23:55 PM10/3/07
to m...@sdsc.edu, npaci-rocks...@sdsc.edu

Haha likely not. :-)

Thanks!

Klaus


----- Original Message -----
From: npaci-rocks-dis...@sdsc.edu <npaci-rocks-dis...@sdsc.edu>
To: Steden Klaus
Cc: npaci-rocks...@sdsc.edu <npaci-rocks...@sdsc.edu>
Sent: Wed Oct 03 17:58:27 2007
Subject: Re: [Rocks-Discuss] Possible bug in ROCKS 4.3 Kickstart XMLgeneration?

Try mode="append" instead of value="append". Did we document something wrong?

On 10/3/07, Steden Klaus <Klaus....@thomson.net> wrote:
>
> Hello everyone,
>
> I noticed something odd today when I added some <file> directives in the <post> section of my site-profile file ... specifically, I wanted to add some lines to /etc/modprobe.conf, and the file got overwritten instead of appended.
>
> Here's the relevant section of my XML:
>
> -- cut --
> <!-- Enable the NIC bonding driver (in LACP mode). -->
> <file name="/etc/modprobe.conf" value="append">
>
> # Module information for NIC bonding.
> alias bond0 bonding
> options bonding miimon=100 mode=802.3ad xmit_hash_policy=layer3+4
> </file>
>
> <!-- Enable the Lustre network config for use with the bonded NIC. -->
> <file name="/etc/modprobe.conf" value="append">
>
> # Module information for Lustre networking for use with bonded NICs.
> options lnet networks=tcp0(bond0)
> </file>
> -- cut --
>
> And yet here's what comes out from 'rocks list host profile' for the host in question:
>
> -- cut --
> [... RCS stuff snipped for brevity ... ]
> cat > /etc/modprobe.conf << 'EOF'
>
> # Module information for NIC bonding.
> alias bond0 bonding
> options bonding miimon=100 mode=802.3ad xmit_hash_policy=layer3+4
> EOF
>
> [... RCS stuff snipped for brevity ... ]
> cat > /etc/modprobe.conf << 'EOF'
>
> # Module information for Lustre networking for use with bonded NICs.
> options lnet networks=tcp0(bond0)
> EOF
> -- cut --
>
> The 'cat > /etc/modprobe.conf' line naturally blows away the existing config -- but I specified 'append' mode explicitly. What happened?
>
> cheers,
> Klaus
>
>


--
-mjk

Reply all
Reply to author
Forward
0 new messages