On 4/12/06, linux-ha-cvs@lists.linux-ha.org
<linux-ha-cvs@lists.linux-ha.org> wrote:
> linux-ha CVS committal
>
> Author  : zhenh
> Host    :
> Project : linux-ha
> Module  : tools
>
> Dir     : linux-ha/tools
>
>
> Modified Files:
>         haresources2cib.py.in
>
>
> Log Message:
> add reminder to user about the lcoation and permission of cib.xml

As a suggestion, how about we automatically put it in the right place
and give it the correct permissions?

If there is already an existing CIB, just complain and exit.

In the same way, if no config file is specified... use
/etc/ha.d/haresources (just as we automatically use /etc/ha.d/ha.cf)

> ===================================================================
> RCS file: /home/cvs/linux-ha/linux-ha/tools/haresources2cib.py.in,v
> retrieving revision 1.8
> retrieving revision 1.9
> diff -u -3 -r1.8 -r1.9
> --- haresources2cib.py.in       17 Mar 2006 18:01:07 -0000      1.8
> +++ haresources2cib.py.in       12 Apr 2006 05:55:33 -0000      1.9
> @@ -396,7 +396,7 @@
>                         group_index += 1
>                         id_index += len(fields)
>                 else :
> -                       print "can not parse this line:"+line
> +                       sys.stderr.write("can not parse this line:"+line+"\n")
>         if enable_stonith :
>                 node_num = 0
>                 for nodes in node_list :
> @@ -406,3 +406,7 @@
>                         id_index += 1
>
>         print cib[0].toprettyxml()
> +       sys.stderr.write("Notice:\n")
> +       sys.stderr.write("Please move the cib.xml generated to 
> /var/lib/heartbeat/crm/.\n")
> +       sys.stderr.write("It must be owned and read/writeable by user @[EMAIL 
> PROTECTED]")
> +       sys.stderr.write("Or owned and read/writable by group @[EMAIL 
> PROTECTED]")
>
>
> _______________________________________________
> Linux-ha-cvs mailing list
> Linux-ha-cvs@lists.linux-ha.org
> http://lists.community.tummy.com/mailman/listinfo/linux-ha-cvs
>
_______________________________________________________
Linux-HA-Dev: Linux-HA-Dev@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to