You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@whirr.apache.org by "Tom White (Created) (JIRA)" <ji...@apache.org> on 2012/02/18 00:41:59 UTC

[jira] [Created] (WHIRR-516) Create ZooKeeper service that uses Bigtop Puppet scripts

Create ZooKeeper service that uses Bigtop Puppet scripts
--------------------------------------------------------

                 Key: WHIRR-516
                 URL: https://issues.apache.org/jira/browse/WHIRR-516
             Project: Whirr
          Issue Type: Sub-task
          Components: service/zookeeper
            Reporter: Tom White




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-516) Create ZooKeeper service that uses Bigtop Puppet scripts

Posted by "Tom White (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13212346#comment-13212346 ] 

Tom White commented on WHIRR-516:
---------------------------------

The way CreateSitePpAndApplyRoles works is by building a site.pp file, and it's not clear if it can access environment variables. So I was thinking of a solution that writes per-instance site.pp files for ZK. But it would be nice if there was a simpler way...
                
> Create ZooKeeper service that uses Bigtop Puppet scripts
> --------------------------------------------------------
>
>                 Key: WHIRR-516
>                 URL: https://issues.apache.org/jira/browse/WHIRR-516
>             Project: Whirr
>          Issue Type: Sub-task
>          Components: service/zookeeper
>            Reporter: Tom White
>             Fix For: 0.9.0
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-516) Create ZooKeeper service that uses Bigtop Puppet scripts

Posted by "Tom White (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210676#comment-13210676 ] 

Tom White commented on WHIRR-516:
---------------------------------

In addition to 3, we need a way to generate ZK's {{myid}} in Whirr and push it out to the Puppet manifests. This could be achieved by having a per-instance statement:

{noformat}
public interface PerInstanceStatement extends Statement {
  String render(OsFamily family, Instance instance);
}
{noformat}

Then the StatementBuilder would pass the instance to the render method and allow the statement to use the instance object to work out its index-based ID.
                
> Create ZooKeeper service that uses Bigtop Puppet scripts
> --------------------------------------------------------
>
>                 Key: WHIRR-516
>                 URL: https://issues.apache.org/jira/browse/WHIRR-516
>             Project: Whirr
>          Issue Type: Sub-task
>          Components: service/zookeeper
>            Reporter: Tom White
>             Fix For: 0.9.0
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Commented] (WHIRR-516) Create ZooKeeper service that uses Bigtop Puppet scripts

Posted by "Tom White (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13210673#comment-13210673 ] 

Tom White commented on WHIRR-516:
---------------------------------

A few things are needed to get this working.

1. To use the Bigtop Puppet scripts in http://svn.apache.org/repos/asf/incubator/bigtop/trunk/bigtop-deploy/puppet/ we can clone them from git://github.com/apache/bigtop.git using the existing mechanism in Whirr. However, the directory structure isn't quite right, so we'd need to set --modulepath when calling puppet. A workaround is to create a local tarball and specify it using a file:// URL.

2. We need to add the Bigtop repo, either using yumrepo or something like https://github.com/plathrop/puppet-module-apt or https://github.com/lelutin/puppet-apt for apt.

3. We need to pass the servers in the ZK ensemble dynamically, so we need a way of hooking in some ZK-specific code to run in the ClusterActionHandler. Not sure the cleanest way to do this.
                
> Create ZooKeeper service that uses Bigtop Puppet scripts
> --------------------------------------------------------
>
>                 Key: WHIRR-516
>                 URL: https://issues.apache.org/jira/browse/WHIRR-516
>             Project: Whirr
>          Issue Type: Sub-task
>          Components: service/zookeeper
>            Reporter: Tom White
>             Fix For: 0.9.0
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-516) Create Whirr services that uses Bigtop Puppet scripts

Posted by "Tom White (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom White updated WHIRR-516:
----------------------------

    Attachment: WHIRR-516.patch

Moved patch from WHIRR-443. See https://issues.apache.org/jira/browse/WHIRR-443?focusedCommentId=13421133&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13421133
                
> Create Whirr services that uses Bigtop Puppet scripts
> -----------------------------------------------------
>
>                 Key: WHIRR-516
>                 URL: https://issues.apache.org/jira/browse/WHIRR-516
>             Project: Whirr
>          Issue Type: Sub-task
>          Components: new service
>            Reporter: Tom White
>             Fix For: 0.9.0
>
>         Attachments: WHIRR-516.patch, WHIRR-516.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (WHIRR-516) Create ZooKeeper service that uses Bigtop Puppet scripts

Posted by "Andrei Savu (Commented) (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WHIRR-516?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13211559#comment-13211559 ] 

Andrei Savu commented on WHIRR-516:
-----------------------------------

We can already have per-instance environment variables. Why not use that for myid? 
                
> Create ZooKeeper service that uses Bigtop Puppet scripts
> --------------------------------------------------------
>
>                 Key: WHIRR-516
>                 URL: https://issues.apache.org/jira/browse/WHIRR-516
>             Project: Whirr
>          Issue Type: Sub-task
>          Components: service/zookeeper
>            Reporter: Tom White
>             Fix For: 0.9.0
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-516) Create ZooKeeper service that uses Bigtop Puppet scripts

Posted by "Tom White (Updated) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom White updated WHIRR-516:
----------------------------

    Attachment: WHIRR-516.patch

Attaching the work I did on this. Not ready for commit.
                
> Create ZooKeeper service that uses Bigtop Puppet scripts
> --------------------------------------------------------
>
>                 Key: WHIRR-516
>                 URL: https://issues.apache.org/jira/browse/WHIRR-516
>             Project: Whirr
>          Issue Type: Sub-task
>          Components: service/zookeeper
>            Reporter: Tom White
>             Fix For: 0.9.0
>
>         Attachments: WHIRR-516.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (WHIRR-516) Create Whirr services that uses Bigtop Puppet scripts

Posted by "Tom White (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WHIRR-516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tom White updated WHIRR-516:
----------------------------

    Component/s:     (was: service/zookeeper)
                 new service
        Summary: Create Whirr services that uses Bigtop Puppet scripts  (was: Create ZooKeeper service that uses Bigtop Puppet scripts)
    
> Create Whirr services that uses Bigtop Puppet scripts
> -----------------------------------------------------
>
>                 Key: WHIRR-516
>                 URL: https://issues.apache.org/jira/browse/WHIRR-516
>             Project: Whirr
>          Issue Type: Sub-task
>          Components: new service
>            Reporter: Tom White
>             Fix For: 0.9.0
>
>         Attachments: WHIRR-516.patch
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira