Re: [ClusterLabs] Error "xml does not conform to the schema" upon "pcs cluster standby" command

2016-06-10 Thread Nikhil Utane
This solved the problem. Thanks. :)

On Mon, Jun 6, 2016 at 9:49 AM, Nikhil Utane 
wrote:

> Yes, everything is (almost) latest version. Will give this a try. Thanks
> Jan.
>
> On Fri, Jun 3, 2016 at 9:04 PM, Jan Pokorný  wrote:
>
>> Hello Nikhil,
>>
>> On 03/06/16 16:33 +0530, Nikhil Utane wrote:
>> > The node is up alright.
>> >
>> > [root@airv_cu pcs]# pcs cluster status
>> > Cluster Status:
>> >  Stack: corosync
>> >  Current DC: airv_cu (version 1.1.14-5a6cdd1) - partition WITHOUT quorum
>> >  Last updated: Fri Jun  3 11:01:32 2016 Last change: Fri Jun  3
>> > 09:57:52 2016 by hacluster via crmd on airv_cu
>> >  2 nodes and 0 resources configured
>> >
>> > Upon entering command "pcs cluster standby airv_cu" getting below error.
>> > Error: cannot load cluster status, xml does not conform to the schema.
>> >
>> > What could be wrong?
>>
>> if you have a decently recent versions of both pacemaker and pcs (ca 3
>> months old or newer) it's entirely possible that this commit will
>> resolve it for you on the pacemaker side:
>>
>>
>> https://github.com/ClusterLabs/pacemaker/pull/1040/commits/87a82a165ccacaf1a0c48b5e1fad684a8dd2d8c9
>>
>> I'm just about to provide update to the expected test results and then
>> it (the whole pull request) is expected to land soon after that.
>>
>> --
>> Jan (Poki)
>>
>> ___
>> Users mailing list: Users@clusterlabs.org
>> http://clusterlabs.org/mailman/listinfo/users
>>
>> Project Home: http://www.clusterlabs.org
>> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
>> Bugs: http://bugs.clusterlabs.org
>>
>>
>
___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] Error "xml does not conform to the schema" upon "pcs cluster standby" command

2016-06-05 Thread Nikhil Utane
Yes, everything is (almost) latest version. Will give this a try. Thanks
Jan.

On Fri, Jun 3, 2016 at 9:04 PM, Jan Pokorný  wrote:

> Hello Nikhil,
>
> On 03/06/16 16:33 +0530, Nikhil Utane wrote:
> > The node is up alright.
> >
> > [root@airv_cu pcs]# pcs cluster status
> > Cluster Status:
> >  Stack: corosync
> >  Current DC: airv_cu (version 1.1.14-5a6cdd1) - partition WITHOUT quorum
> >  Last updated: Fri Jun  3 11:01:32 2016 Last change: Fri Jun  3
> > 09:57:52 2016 by hacluster via crmd on airv_cu
> >  2 nodes and 0 resources configured
> >
> > Upon entering command "pcs cluster standby airv_cu" getting below error.
> > Error: cannot load cluster status, xml does not conform to the schema.
> >
> > What could be wrong?
>
> if you have a decently recent versions of both pacemaker and pcs (ca 3
> months old or newer) it's entirely possible that this commit will
> resolve it for you on the pacemaker side:
>
>
> https://github.com/ClusterLabs/pacemaker/pull/1040/commits/87a82a165ccacaf1a0c48b5e1fad684a8dd2d8c9
>
> I'm just about to provide update to the expected test results and then
> it (the whole pull request) is expected to land soon after that.
>
> --
> Jan (Poki)
>
> ___
> Users mailing list: Users@clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>
>
___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] Error "xml does not conform to the schema" upon "pcs cluster standby" command

2016-06-03 Thread Jan Pokorný
Hello Nikhil,

On 03/06/16 16:33 +0530, Nikhil Utane wrote:
> The node is up alright.
> 
> [root@airv_cu pcs]# pcs cluster status
> Cluster Status:
>  Stack: corosync
>  Current DC: airv_cu (version 1.1.14-5a6cdd1) - partition WITHOUT quorum
>  Last updated: Fri Jun  3 11:01:32 2016 Last change: Fri Jun  3
> 09:57:52 2016 by hacluster via crmd on airv_cu
>  2 nodes and 0 resources configured
> 
> Upon entering command "pcs cluster standby airv_cu" getting below error.
> Error: cannot load cluster status, xml does not conform to the schema.
> 
> What could be wrong?

if you have a decently recent versions of both pacemaker and pcs (ca 3
months old or newer) it's entirely possible that this commit will
resolve it for you on the pacemaker side:

https://github.com/ClusterLabs/pacemaker/pull/1040/commits/87a82a165ccacaf1a0c48b5e1fad684a8dd2d8c9

I'm just about to provide update to the expected test results and then
it (the whole pull request) is expected to land soon after that.

-- 
Jan (Poki)


pgpMOIycmzA3c.pgp
Description: PGP signature
___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] Error "xml does not conform to the schema" upon "pcs cluster standby" command

2016-06-03 Thread Klaus Wenninger
On 06/03/2016 01:39 PM, Nikhil Utane wrote:
> Thanks for your response Klaus.
> Any command to add the cluster name?
> All examples use 'pcs cluster setup' command. But if my cluster is
> already running, how do I update it?
> I tried with crm_attribute:
> crm_attribute -t crm_config -n cluster-name -v mycluster
>
> It has updated in cib but pcs status still doesn't show the cluster name.

Somewhere in the back of my mind something is telling me it wanted to
have the name in corosync.conf
as well.

totem {
...
cluster_name: mycluster
...
}

>
> 
>   
>  name="have-watchdog" value="true"/>
>  name="dc-version" value="1.1.14-5a6cdd1"/>
>  name="cluster-infrastructure" value="corosync"/>
>  name="cluster-name" value="mycluster"/>
>   
>
> [root@airv_cu root]# pcs status
> Cluster name:
>
> -Regards
> Nikhil
>
>
> On Fri, Jun 3, 2016 at 4:46 PM, Klaus Wenninger  > wrote:
>
> On 06/03/2016 01:03 PM, Nikhil Utane wrote:
> > Hi,
> >
> > The node is up alright.
> >
> > [root@airv_cu pcs]# pcs cluster status
> > Cluster Status:
> >  Stack: corosync
> >  Current DC: airv_cu (version 1.1.14-5a6cdd1) - partition
> WITHOUT quorum
> >  Last updated: Fri Jun  3 11:01:32 2016 Last change: Fri Jun
> >  3 09:57:52 2016 by hacluster via crmd on airv_cu
> >  2 nodes and 0 resources configured
> >
> > Upon entering command "pcs cluster standby airv_cu" getting
> below error.
> > Error: cannot load cluster status, xml does not conform to the
> schema.
> >
> > What could be wrong?
> >
> > [root@airv_cu pcs]# pcs cluster cib
> >  epoch="4"
> > num_updates="5" admin_epoch="0" cib-last-written="Fri Jun  3
> 09:57:52
> > 2016" update-origin="airv_cu" update-client="crmd"
> > update-user="hacluster" have-quorum="0" dc-uuid="1">
> >   
> > 
> >   
> >  > name="have-watchdog" value="true"/>
> >  > name="dc-version" value="1.1.14-5a6cdd1"/>
> >  > name="cluster-infrastructure" value="corosync"/>
> Your cluster doesn't have a name. iirc pcs (at least I've seen
> that in a
> version I was working with) doesn't like that.
>
> Something like:
>  name="cluster-name" value="mycluster"/>
>
> >   
> > 
> > 
> >   
> >   
> > 
> > 
> > 
> >   
> >   
> >  > crm-debug-origin="do_state_transition" join="member"
> expected="member">
> >   
> > 
> >   
> >   
> > 
> >   
> > 
> >   
> > 
> >   
> > 
> >
> > -Thanks
> > Nikhil
> >
> >
> >
> > ___
> > Users mailing list: Users@clusterlabs.org
> 
> > http://clusterlabs.org/mailman/listinfo/users
> >
> > Project Home: http://www.clusterlabs.org
> > Getting started:
> http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > Bugs: http://bugs.clusterlabs.org
>
>
> ___
> Users mailing list: Users@clusterlabs.org
> 
> http://clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started:
> http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>
>

___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] Error "xml does not conform to the schema" upon "pcs cluster standby" command

2016-06-03 Thread Nikhil Utane
Thanks for your response Klaus.
Any command to add the cluster name?
All examples use 'pcs cluster setup' command. But if my cluster is already
running, how do I update it?
I tried with crm_attribute:
crm_attribute -t crm_config -n cluster-name -v mycluster

It has updated in cib but pcs status still doesn't show the cluster name.


  




  

[root@airv_cu root]# pcs status
Cluster name:

-Regards
Nikhil


On Fri, Jun 3, 2016 at 4:46 PM, Klaus Wenninger  wrote:

> On 06/03/2016 01:03 PM, Nikhil Utane wrote:
> > Hi,
> >
> > The node is up alright.
> >
> > [root@airv_cu pcs]# pcs cluster status
> > Cluster Status:
> >  Stack: corosync
> >  Current DC: airv_cu (version 1.1.14-5a6cdd1) - partition WITHOUT quorum
> >  Last updated: Fri Jun  3 11:01:32 2016 Last change: Fri Jun
> >  3 09:57:52 2016 by hacluster via crmd on airv_cu
> >  2 nodes and 0 resources configured
> >
> > Upon entering command "pcs cluster standby airv_cu" getting below error.
> > Error: cannot load cluster status, xml does not conform to the schema.
> >
> > What could be wrong?
> >
> > [root@airv_cu pcs]# pcs cluster cib
> >  > num_updates="5" admin_epoch="0" cib-last-written="Fri Jun  3 09:57:52
> > 2016" update-origin="airv_cu" update-client="crmd"
> > update-user="hacluster" have-quorum="0" dc-uuid="1">
> >   
> > 
> >   
> >  > name="have-watchdog" value="true"/>
> >  > name="dc-version" value="1.1.14-5a6cdd1"/>
> >  > name="cluster-infrastructure" value="corosync"/>
> Your cluster doesn't have a name. iirc pcs (at least I've seen that in a
> version I was working with) doesn't like that.
>
> Something like:
>  name="cluster-name" value="mycluster"/>
>
> >   
> > 
> > 
> >   
> >   
> > 
> > 
> > 
> >   
> >   
> >  > crm-debug-origin="do_state_transition" join="member" expected="member">
> >   
> > 
> >   
> >   
> > 
> >   
> > 
> >   
> > 
> >   
> > 
> >
> > -Thanks
> > Nikhil
> >
> >
> >
> > ___
> > Users mailing list: Users@clusterlabs.org
> > http://clusterlabs.org/mailman/listinfo/users
> >
> > Project Home: http://www.clusterlabs.org
> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> > Bugs: http://bugs.clusterlabs.org
>
>
> ___
> Users mailing list: Users@clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org
>
___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org


Re: [ClusterLabs] Error "xml does not conform to the schema" upon "pcs cluster standby" command

2016-06-03 Thread Klaus Wenninger
On 06/03/2016 01:03 PM, Nikhil Utane wrote:
> Hi,
>
> The node is up alright.
>
> [root@airv_cu pcs]# pcs cluster status
> Cluster Status:
>  Stack: corosync
>  Current DC: airv_cu (version 1.1.14-5a6cdd1) - partition WITHOUT quorum
>  Last updated: Fri Jun  3 11:01:32 2016 Last change: Fri Jun
>  3 09:57:52 2016 by hacluster via crmd on airv_cu
>  2 nodes and 0 resources configured
>
> Upon entering command "pcs cluster standby airv_cu" getting below error.
> Error: cannot load cluster status, xml does not conform to the schema.
>
> What could be wrong?
>
> [root@airv_cu pcs]# pcs cluster cib
>  num_updates="5" admin_epoch="0" cib-last-written="Fri Jun  3 09:57:52
> 2016" update-origin="airv_cu" update-client="crmd"
> update-user="hacluster" have-quorum="0" dc-uuid="1">
>   
> 
>   
>  name="have-watchdog" value="true"/>
>  name="dc-version" value="1.1.14-5a6cdd1"/>
>  name="cluster-infrastructure" value="corosync"/>
Your cluster doesn't have a name. iirc pcs (at least I've seen that in a
version I was working with) doesn't like that.

Something like:


>   
> 
> 
>   
>   
> 
> 
> 
>   
>   
>  crm-debug-origin="do_state_transition" join="member" expected="member">
>   
> 
>   
>   
> 
>   
> 
>   
> 
>   
> 
>
> -Thanks
> Nikhil
>
>
>
> ___
> Users mailing list: Users@clusterlabs.org
> http://clusterlabs.org/mailman/listinfo/users
>
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org


___
Users mailing list: Users@clusterlabs.org
http://clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org