Re: [ClusterLabs] How to generate RPMs for Pacemaker release 2.x on Centos

2018-10-17 Thread Jan Pokorný
On 15/10/18 14:46 +, Lopez, Francisco Javier [Global IT] wrote:
> I could not do that way as this box does not have access to Internet.
> Will see how to deal with this.

As Ken mentioned, current upstream-devised RPM packaging practices are
wrapped around the assumption of working with git tree directly.

You can sort of workaround that, but since it may slightly vary whether
you are after a tagged release or arbitrary commit-based snapshot,
I will provide a tested solution just for the latter (and you may
be required to change some bits for the latter scenario):

$ mkdir pcmkbuild
$ cd pcmkbuild
$ curl -LO 
https://github.com/ClusterLabs/pacemaker/archive/Pacemaker-2.0.0/pacemaker-2.0.0.tar.gz
$ tar xf pacemaker-2.0.0.tar.gz
$ cd pacemaker-Pacemaker-2.0.0
$ ./autogen.sh && ./configure
$ cp ../pacemaker-2.0.0.tar.gz .
$ make srpm _TAG=Pacemaker-2.0.0 'TAG=${_TAG}' 'SHORTTAG=${_TAG}'
$ mock --rebuild pacemaker-2.0.0-*.src.rpm

Note that I am explicitly avoiding the build process carried out as
the current user, since there may be, e.g., a bug in the spec file
accidentally eating your files...  Mock is a way to isolate such
build as much as possible in Fedora/CentOS/EL packaging ecosystem.
If you are OK with said risks, just replace "srpm" with "rpm", which
will produce the final packages right away (i.e. that would be
a final command to run).

So building pacemaker RPMs the upstream way outside of the git tree
is doable, but rather clumsy.  On the other hand, I don't think
there's much demand to make it smoother.  Correct me if I am wrong.

-- 
Nazdar,
Jan (Poki)


pgpIt4fgU79Q6.pgp
Description: PGP signature
___
Users mailing list: Users@clusterlabs.org
https://lists.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] How to generate RPMs for Pacemaker release 2.x on Centos

2018-10-15 Thread Ken Gaillot
On Mon, 2018-10-15 at 14:39 +0200, Klaus Wenninger wrote:
> On 10/15/2018 01:52 PM, Lopez, Francisco Javier [Global IT] wrote:
> > Hello guys !
> > 
> > We are planning to use Pacemaker as a base HA Software in our
> > Company.
> > 
> > Our requirements will be:
> > 
> > - Centos-7
> > - PostgreSql-10
> > 
> > We did several tests with Pacemaker release 1.1.8 and fixed the
> > problems found with
> > the RA. We finally created new RPMs from source (4.x).
> > 
> > Now we want to test Pacemaker release 2.x but, as we will have to
> > create some clusters,
> > we want to create new RPMs for this release instead of doing manual
> > installation on
> > each new box. As per what I see the RPMs for our Centos have not
> > been created yet.
> > 
> > We could run 'autogen' + 'configure' but I do not find the way to
> > generate the RPMs.
> > Anyone could share with me the correct paths to do this please ?
>  
> The spec-file found in the pacemaker-github-repo should work straight
> forward
> using mock to build against the repos of your Centos-Version.
> Just check that you are on current corosync, libqb, knet, ...
> Pacemaker 2 seems to build well against the packages coming with
> Centos 7.5.
> Maybe others can comment on how advisable it is running that combo
> though.
> 
> Klaus

Also, there is a convenient target for building RPMs from the spec
file, you can just run "make rpm" (after autogen.sh + configure).

> 
> > Perhaps there are some steps written somewhere and I did not find
> > them out ...
> > 
> > Appreciate your help.
> > 
> > Regards
> > Javier
> > Francisco Javier    Lopez     IT System E
> > ngineer  |  Global IT     O: +34 619 728 249
> >  |  M: +34 619 728 249   | 
> > franciscojavier.lo...@solera.com |  Solera.com  
> >   Audatex Datos, S.A.    |  Avda. de Bruselas, 36, Sali
> > da 16, A‑1 (Diversia)   ,   Alcobendas  ,   
> > Madrid  ,   28108   ,   Spain   
> >  
> > 
> > "This e-mail, any associated files and the information contained in
> > them are confidential and is intended for the addressee(s) only. If
> > you have received this message in error please notify the
> > originator and delete the email immediately. The unauthorised use,
> > disclosure, copying or alteration of this message is strictly
> > forbidden. E-mails to and from the company are monitored for
> > operational reasons and in accordance with lawful business
> > practices. Any opinions expressed are those of the individual and
> > do not necessarily represent the views of the company. The company
> > does not conclude contracts by email and all negotiations are
> > subject to contract. We make every effort to maintain our network
> > free from computer viruses but accept no responsibility for any
> > viruses which might be transferred by this e-mail."
> > 
> > 
> > ___
> > Users mailing list: Users@clusterlabs.org
> > https://lists.clusterlabs.org/mailman/listinfo/users
> > 
> > Project Home: http://www.clusterlabs.org
> > Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratc
> > h.pdf
> > Bugs: http://bugs.clusterlabs.org
>  
> ___
> Users mailing list: Users@clusterlabs.org
> https://lists.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
-- 
Ken Gaillot 
___
Users mailing list: Users@clusterlabs.org
https://lists.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] How to generate RPMs for Pacemaker release 2.x on Centos

2018-10-15 Thread Klaus Wenninger
On 10/15/2018 01:52 PM, Lopez, Francisco Javier [Global IT] wrote:
> Hello guys !
>
> We are planning to use Pacemaker as a base HA Software in our Company.
>
> Our requirements will be:
>
> - Centos-7
> - PostgreSql-10
>
> We did several tests with Pacemaker release 1.1.8 and fixed the
> problems found with
> the RA. We finally created new RPMs from source (4.x).
>
> Now we want to test Pacemaker release 2.x but, as we will have to
> create some clusters,
> we want to create new RPMs for this release instead of doing manual
> installation on
> each new box. As per what I see the RPMs for our Centos have not been
> created yet.
>
> We could run 'autogen' + 'configure' but I do not find the way to
> generate the RPMs.
> Anyone could share with me the correct paths to do this please ?

The spec-file found in the pacemaker-github-repo should work straight
forward
using mock to build against the repos of your Centos-Version.
Just check that you are on current corosync, libqb, knet, ...
Pacemaker 2 seems to build well against the packages coming with Centos 7.5.
Maybe others can comment on how advisable it is running that combo though.

Klaus

> Perhaps there are some steps written somewhere and I did not find them
> out ...
>
> Appreciate your help.
>
> Regards
> Javier
> Francisco Javier​     Lopez
>
> IT System Engineer |  Global IT
>
> O: *+34 619 728 249*    | 
> M: *+34 619 728 249*    | 
>   *franciscojavier.lo...@solera.com*
>   |  Solera.com
>
> Audatex Datos, S.A.    | 
> Avda. de Bruselas, 36, Salida 16, A‑1 (Diversia)  ,   Alcobendas  
> , 
> Madrid,   28108   ,   Spain
>
>  
>
>
> 
>
> "This e-mail, any associated files and the information contained in
> them are confidential and is intended for the addressee(s) only. If
> you have received this message in error please notify the originator
> and delete the email immediately. The unauthorised use, disclosure,
> copying or alteration of this message is strictly forbidden. E-mails
> to and from the company are monitored for operational reasons and in
> accordance with lawful business practices. Any opinions expressed are
> those of the individual and do not necessarily represent the views of
> the company. The company does not conclude contracts by email and all
> negotiations are subject to contract. We make every effort to maintain
> our network free from computer viruses but accept no responsibility
> for any viruses which might be transferred by this e-mail."
>
>
> ___
> Users mailing list: Users@clusterlabs.org
> https://lists.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
https://lists.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


[ClusterLabs] How to generate RPMs for Pacemaker release 2.x on Centos

2018-10-15 Thread Lopez, Francisco Javier [Global IT]
Hello guys !

We are planning to use Pacemaker as a base HA Software in our Company.

Our requirements will be:

- Centos-7
- PostgreSql-10

We did several tests with Pacemaker release 1.1.8 and fixed the problems found 
with
the RA. We finally created new RPMs from source (4.x).

Now we want to test Pacemaker release 2.x but, as we will have to create some 
clusters,
we want to create new RPMs for this release instead of doing manual 
installation on
each new box. As per what I see the RPMs for our Centos have not been created 
yet.

We could run 'autogen' + 'configure' but I do not find the way to generate the 
RPMs.
Anyone could share with me the correct paths to do this please ?
Perhaps there are some steps written somewhere and I did not find them out ...

Appreciate your help.

Regards
Javier
Francisco Javier​   Lopez

IT System Engineer   |  Global IT

O: +34 619 728 249|  M: +34 619 728 
249|

franciscojavier.lo...@solera.com   
 |  Solera.com

Audatex Datos, S.A.  |  Avda. de Bruselas, 36, Salida 16, A‑1 
(Diversia),   Alcobendas  ,   Madrid  ,   28108   , 
  Spain


[cid:image413103.png@0EB14876.AE1A8FF9]






"This e-mail, any associated files and the information contained in them are 
confidential and is intended for the addressee(s) only. If you have received 
this message in error please notify the originator and delete the email 
immediately. The unauthorised use, disclosure, copying or alteration of this 
message is strictly forbidden. E-mails to and from the company are monitored 
for operational reasons and in accordance with lawful business practices. Any 
opinions expressed are those of the individual and do not necessarily represent 
the views of the company. The company does not conclude contracts by email and 
all negotiations are subject to contract. We make every effort to maintain our 
network free from computer viruses but accept no responsibility for any viruses 
which might be transferred by this e-mail."
___
Users mailing list: Users@clusterlabs.org
https://lists.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