Ling,

Yeah, that makes much more sense. Plus it will have the flexibility of 
what everyone wants.

maybe a <profile>.envlist, in the normal template folders; or have a 
table that can have this list. It could work either way.

regards,
Arif

On 22/05/12 18:26, Ling Gao wrote:
> Hi Arif,
> Thanks for the feedback.
> I am thinking that we need to design a plug-able way to let user specify
> what to bring back to the node during the node deployment and updatenode
> process. There are customers requesting other attributes. Adding a
> attribute is one more hit to the DB for EACH node. For large cluster,
> this can contribute to performance problems if this is not other
> customers want. I am thinking that Postage.pm should read from a file at
> the end of the process and export what specified from this file, the
> file may look like this:
> #table name attribute name env name
> nodelist groups GROUPS
> noderes routenames (if it is not specified, it will be the same as the
> attribute name.)
>
> This will provide a convenient way for user to get what they need and
> we'll keep Postage.pm to only export the ones needed by xCAT
> postscripts. Ideas?
>
> BTW, for nodelist table, since there is no regular expression or groups
> involved, one should use
> getAttribsinstead of getNodeAttribsto make it faster.
>
> Ling
>
> Ling Gao
> Poughkeepsie Unix Development Lab
> IBM Systems and Technology Group
> Internal: T/L 293-5692
> External: [email protected], 845-433-5692
>
> "I never worry about the future. It comes soon enough." --- Albert Einstein
>
>
>
> From: Arif Ali <[email protected]>
> To: "Mailing list, xCAT" <[email protected]>
> Date: 05/22/2012 10:45 AM
> Subject: [xcat-user] nodegroup support with postscripts
> ------------------------------------------------------------------------
>
>
>
> Hi all,
>
> I have been looking for this feature for a long time. Not sure why
> it's not included. The following patch allows to add a new variable to
> be able to use in postscripts called GROUPS, and in essence, grabs the
> groups that the node is in as defined in the nodelist table.
> Previously I was SSH'ing back to MN to get these values. If in other
> peoples experiences if there's a better way of doing this, then I
> would like to hear your ideas.
>
> Index: Postage.pm
> ===================================================================
> --- Postage.pm (revision 12725)
> +++ Postage.pm (working copy)
> @@ -359,6 +359,15 @@
> push @scriptd, "export MACADDRESS\n";
> }
>
> + my $nodelisttab = xCAT::Table->new("nodelist");
> + my $tmp = $nodelisttab->getNodeAttribs($node, ['groups']);
> + if (defined($tmp) && ($tmp))
> + {
> + my $groups = $tmp->{groups};
> + push @scriptd, "GROUPS='" . $groups . "'\n";
> + push @scriptd, "export GROUPS\n";
> + }
> +
> #get vlan related items
> my $vlan;
> my $swtab = xCAT::Table->new("switch", -create => 0);
> --
> Arif Ali
>
> catch me on freenode IRC, username: arif-ali
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> xCAT-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xcat-user
>
>
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>
>
>
> _______________________________________________
> xCAT-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xcat-user


-- 
regards,

*Arif*

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
xCAT-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xcat-user

Reply via email to