You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@metron.apache.org by dlyle65535 <gi...@git.apache.org> on 2016/05/17 19:30:34 UTC

[GitHub] incubator-metron pull request: Metron 145: Automate Creation of Va...

GitHub user dlyle65535 opened a pull request:

    https://github.com/apache/incubator-metron/pull/123

    Metron 145: Automate Creation of Vagrant Images

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dlyle65535/incubator-metron METRON-145

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-metron/pull/123.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #123
    
----
commit ce2b074497422956e49657ecf3340f57a4a0de06
Author: David Lyle <dl...@gmail.com>
Date:   2016-05-16T14:24:26Z

    METRON-145: Full image creation with working VBox Guest Additions

commit b41596a7e385de17ddd9b908df4dfa49190821a7
Author: David Lyle <dl...@gmail.com>
Date:   2016-05-12T15:41:56Z

    Works for both codelab and quick-dev images.

commit 7ae2988ca4fae72b860d6ab5aa5af71f696abc4f
Author: David Lyle <dl...@gmail.com>
Date:   2016-05-17T14:50:18Z

    Working images with Monit changes.

commit 5effa35f8884c4f3040f5063671619b836b5bbfb
Author: David Lyle <dl...@gmail.com>
Date:   2016-05-17T18:53:11Z

    Added basic readme.

commit 4a9dad28ebd09351d04edeaec527a55f6a9ee460
Author: David Lyle <dl...@gmail.com>
Date:   2016-05-17T19:21:10Z

    Completed README file.

commit e0abae106fea46a1d22ee2ceaaa3ae9f3d4c85a1
Author: David Lyle <dl...@gmail.com>
Date:   2016-05-17T19:27:34Z

    Cleanup diffs prior to PR.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: Metron 145: Automate Creation of Va...

Posted by dlyle65535 <gi...@git.apache.org>.
Github user dlyle65535 commented on a diff in the pull request:

    https://github.com/apache/incubator-metron/pull/123#discussion_r63811037
  
    --- Diff: metron-deployment/packer-build/ansible.cfg ---
    @@ -0,0 +1,27 @@
    +#
    +#  Licensed to the Apache Software Foundation (ASF) under one or more
    +#  contributor license agreements.  See the NOTICE file distributed with
    +#  this work for additional information regarding copyright ownership.
    +#  The ASF licenses this file to You under the Apache License, Version 2.0
    +#  (the "License"); you may not use this file except in compliance with
    +#  the License.  You may obtain a copy of the License at
    +#
    +#      http://www.apache.org/licenses/LICENSE-2.0
    +#
    +#  Unless required by applicable law or agreed to in writing, software
    +#  distributed under the License is distributed on an "AS IS" BASIS,
    +#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +#  See the License for the specific language governing permissions and
    +#  limitations under the License.
    +#
    +[defaults]
    +host_key_checking = false
    +library = ../extra_modules
    +roles_path = ../roles
    +pipelining = True
    +remote_user = vagrant
    +log_path = ./ansible.log
    +
    +# fix for "ssh throws 'unix domain socket too long' " problem
    +[ssh_connection]
    +control_path = %(directory)s/%%h-%%p-%%r
    --- End diff --
    
    Good call, I think so. 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: Metron 145: Automate Creation of Va...

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/incubator-metron/pull/123


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: Metron 145: Automate Creation of Va...

Posted by dlyle65535 <gi...@git.apache.org>.
Github user dlyle65535 commented on a diff in the pull request:

    https://github.com/apache/incubator-metron/pull/123#discussion_r63811063
  
    --- Diff: metron-deployment/packer-build/README.md ---
    @@ -0,0 +1,47 @@
    +Build Metron Images
    +=========================
    +
    +Based on the fantastic [Bento](https://github.com/chef/bento) project developed by Chef.
    +
    +Images Provided
    +---------------------
    +- hdp-centos-6.7: Centos 6.7 + HDP. Used in the quick-dev-platform Vagrant image
    +- metron-centos-6.7: Centos 6.7 + HDP + Metron. Used for the codelab-platform Vagrant image.
    +
    +Prerequisites
    +---------------------
    +- Packer 0.10.1 https://www.packer.io/
    +- Virtualbox 5.0.16 https://www.virtualbox.org/
    +
    +Build Both Images
    +---------------------- 
    +  Navigate to <your-project-directory>/metron-deployment/packer-build
    +  Execute bin/bento
    --- End diff --
    
    Any chance you don't have packer installed?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: Metron 145: Automate Creation of Va...

Posted by dlyle65535 <gi...@git.apache.org>.
Github user dlyle65535 commented on the pull request:

    https://github.com/apache/incubator-metron/pull/123#issuecomment-219845010
  
    Looks like I got got buy the NPE in integration testing. This passed in my repo, I'll close and re-open.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: Metron 145: Automate Creation of Va...

Posted by nickwallen <gi...@git.apache.org>.
Github user nickwallen commented on a diff in the pull request:

    https://github.com/apache/incubator-metron/pull/123#discussion_r63808080
  
    --- Diff: metron-deployment/packer-build/ansible.cfg ---
    @@ -0,0 +1,27 @@
    +#
    +#  Licensed to the Apache Software Foundation (ASF) under one or more
    +#  contributor license agreements.  See the NOTICE file distributed with
    +#  this work for additional information regarding copyright ownership.
    +#  The ASF licenses this file to You under the Apache License, Version 2.0
    +#  (the "License"); you may not use this file except in compliance with
    +#  the License.  You may obtain a copy of the License at
    +#
    +#      http://www.apache.org/licenses/LICENSE-2.0
    +#
    +#  Unless required by applicable law or agreed to in writing, software
    +#  distributed under the License is distributed on an "AS IS" BASIS,
    +#  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +#  See the License for the specific language governing permissions and
    +#  limitations under the License.
    +#
    +[defaults]
    +host_key_checking = false
    +library = ../extra_modules
    +roles_path = ../roles
    +pipelining = True
    +remote_user = vagrant
    +log_path = ./ansible.log
    +
    +# fix for "ssh throws 'unix domain socket too long' " problem
    +[ssh_connection]
    +control_path = %(directory)s/%%h-%%p-%%r
    --- End diff --
    
    Should we follow the lead of PR #122 here?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: Metron 145: Automate Creation of Va...

Posted by dlyle65535 <gi...@git.apache.org>.
Github user dlyle65535 commented on the pull request:

    https://github.com/apache/incubator-metron/pull/123#issuecomment-220196386
  
    I'm hopeful that the README has sufficient steps. Please let me know if I'm wrong about that and I'll correct it. Thanks!


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: Metron 145: Automate Creation of Va...

Posted by nickwallen <gi...@git.apache.org>.
Github user nickwallen commented on a diff in the pull request:

    https://github.com/apache/incubator-metron/pull/123#discussion_r63809397
  
    --- Diff: metron-deployment/packer-build/README.md ---
    @@ -0,0 +1,47 @@
    +Build Metron Images
    +=========================
    +
    +Based on the fantastic [Bento](https://github.com/chef/bento) project developed by Chef.
    +
    +Images Provided
    +---------------------
    +- hdp-centos-6.7: Centos 6.7 + HDP. Used in the quick-dev-platform Vagrant image
    +- metron-centos-6.7: Centos 6.7 + HDP + Metron. Used for the codelab-platform Vagrant image.
    +
    +Prerequisites
    +---------------------
    +- Packer 0.10.1 https://www.packer.io/
    +- Virtualbox 5.0.16 https://www.virtualbox.org/
    +
    +Build Both Images
    +---------------------- 
    +  Navigate to <your-project-directory>/metron-deployment/packer-build
    +  Execute bin/bento
    --- End diff --
    
    Seems like I need to pass an argument to `bin/bento`?  Maybe build?  Should update the README.
    
    ```
    nallen @ ~/tmp/incubator-metron-pr-123/metron-deployment/packer-build
    $ ./bin/bento
    Usage: bento [SUBCOMMAND [options]]
    
    build     :   build one or more templates
    help      :   prints this help message
    list      :   list all templates in project
    normalize :   normalize one or more templates
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: Metron 145: Automate Creation of Va...

Posted by nickwallen <gi...@git.apache.org>.
Github user nickwallen commented on the pull request:

    https://github.com/apache/incubator-metron/pull/123#issuecomment-220344193
  
    It seems to be working great so far though.  Last night,I had not installed Packer (doh) which was causing that issue.  I'm so used to relying on Ansible to just install everything for me. :)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: Metron 145: Automate Creation of Va...

Posted by dlyle65535 <gi...@git.apache.org>.
Github user dlyle65535 closed the pull request at:

    https://github.com/apache/incubator-metron/pull/123


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: Metron 145: Automate Creation of Va...

Posted by nickwallen <gi...@git.apache.org>.
Github user nickwallen commented on the pull request:

    https://github.com/apache/incubator-metron/pull/123#issuecomment-220343709
  
    I was a good 20-40 minutes through the process when it errored out because I had not packaged the Metron platform code.  Might be good to call this out in the README as a preliminary step.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: Metron 145: Automate Creation of Va...

Posted by nickwallen <gi...@git.apache.org>.
Github user nickwallen commented on the pull request:

    https://github.com/apache/incubator-metron/pull/123#issuecomment-220188070
  
    @dlyle65535 How can I test this?  Looking forward to seeing it in action.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: Metron 145: Automate Creation of Va...

Posted by cestella <gi...@git.apache.org>.
Github user cestella commented on the pull request:

    https://github.com/apache/incubator-metron/pull/123#issuecomment-220647462
  
    +1


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: Metron 145: Automate Creation of Va...

Posted by nickwallen <gi...@git.apache.org>.
Github user nickwallen commented on the pull request:

    https://github.com/apache/incubator-metron/pull/123#issuecomment-220353283
  
    \U0001f44d 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: Metron 145: Automate Creation of Va...

Posted by dlyle65535 <gi...@git.apache.org>.
GitHub user dlyle65535 reopened a pull request:

    https://github.com/apache/incubator-metron/pull/123

    Metron 145: Automate Creation of Vagrant Images

    

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/dlyle65535/incubator-metron METRON-145

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/incubator-metron/pull/123.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #123
    
----
commit ce2b074497422956e49657ecf3340f57a4a0de06
Author: David Lyle <dl...@gmail.com>
Date:   2016-05-16T14:24:26Z

    METRON-145: Full image creation with working VBox Guest Additions

commit b41596a7e385de17ddd9b908df4dfa49190821a7
Author: David Lyle <dl...@gmail.com>
Date:   2016-05-12T15:41:56Z

    Works for both codelab and quick-dev images.

commit 7ae2988ca4fae72b860d6ab5aa5af71f696abc4f
Author: David Lyle <dl...@gmail.com>
Date:   2016-05-17T14:50:18Z

    Working images with Monit changes.

commit 5effa35f8884c4f3040f5063671619b836b5bbfb
Author: David Lyle <dl...@gmail.com>
Date:   2016-05-17T18:53:11Z

    Added basic readme.

commit 4a9dad28ebd09351d04edeaec527a55f6a9ee460
Author: David Lyle <dl...@gmail.com>
Date:   2016-05-17T19:21:10Z

    Completed README file.

commit e0abae106fea46a1d22ee2ceaaa3ae9f3d4c85a1
Author: David Lyle <dl...@gmail.com>
Date:   2016-05-17T19:27:34Z

    Cleanup diffs prior to PR.

commit 81c7f61c06d11f2dc2e42cd42e85d5eab11fb679
Author: David Lyle <dl...@gmail.com>
Date:   2016-05-17T19:32:11Z

    Missed a linefeed at end of file.

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: Metron 145: Automate Creation of Va...

Posted by merrimanr <gi...@git.apache.org>.
Github user merrimanr commented on the pull request:

    https://github.com/apache/incubator-metron/pull/123#issuecomment-220647474
  
    +1


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] incubator-metron pull request: Metron 145: Automate Creation of Va...

Posted by nickwallen <gi...@git.apache.org>.
Github user nickwallen commented on a diff in the pull request:

    https://github.com/apache/incubator-metron/pull/123#discussion_r63809496
  
    --- Diff: metron-deployment/packer-build/README.md ---
    @@ -0,0 +1,47 @@
    +Build Metron Images
    +=========================
    +
    +Based on the fantastic [Bento](https://github.com/chef/bento) project developed by Chef.
    +
    +Images Provided
    +---------------------
    +- hdp-centos-6.7: Centos 6.7 + HDP. Used in the quick-dev-platform Vagrant image
    +- metron-centos-6.7: Centos 6.7 + HDP + Metron. Used for the codelab-platform Vagrant image.
    +
    +Prerequisites
    +---------------------
    +- Packer 0.10.1 https://www.packer.io/
    +- Virtualbox 5.0.16 https://www.virtualbox.org/
    +
    +Build Both Images
    +---------------------- 
    +  Navigate to <your-project-directory>/metron-deployment/packer-build
    +  Execute bin/bento
    --- End diff --
    
    If I use `build`, I seem to run into an error.  What am I doing wrong?
    
    ```
    nallen @ ~/tmp/incubator-metron-pr-123/metron-deployment/packer-build
    $ ./bin/bento build
    ==> Starting build for templates: ["hdp-centos-6.7", "metron-centos-6.7"]
    ==> [hdp-centos-6.7] Building: 'packer build -var-file=/var/folders/hb/dp9xm3q92gq3w9w9btb0kqyw0000gn/T/hdp-centos-6.7-metadata-var-file20160518-26378-12zwyn0 hdp-centos-6.7.json'
    >>> [hdp-centos-6.7] Error building, exited pid 26387 exit 127
    ```


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---