You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by rhtyd <gi...@git.apache.org> on 2016/08/23 11:57:58 UTC

[GitHub] cloudstack pull request #1657: CLOUDSTACK-9467: Add symlink to key file for ...

GitHub user rhtyd opened a pull request:

    https://github.com/apache/cloudstack/pull/1657

    CLOUDSTACK-9467: Add symlink to key file for usage server

    On fresh installation, the usage server fails to start if the `key` file does
    not exist in its classpath. The issue is reproducible in environments (such as Trillian)
    where the usage server is installed before cloudstack-setup-databases has been called.
    Before the cloudstack db has been setup, the key file does not exist at its
    default location and installation of usage-server fails to add a symlink to the
    key file.
    
    This fix adds a default symlink to `/etc/cloudstack/management/key` if a
    symlink/file does not already exist in the /etc/cloudstack/usage directory.
    
    On new installation, in the post-installation steps it checks if the symlink
    or file exists, and adds a symlink if it does not exist. On existing
    installations, if symlink or file exists then it will skip adding symlink.
    
    /cc @jburwell @PaulAngus @karuturi 
    @blueorangutan package

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

    $ git pull https://github.com/shapeblue/cloudstack 4.8-usageserverfix

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

    https://github.com/apache/cloudstack/pull/1657.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 #1657
    
----
commit 8cd44b1684b41884f10f350318dc8130eb5b5f75
Author: Rohit Yadav <ro...@shapeblue.com>
Date:   2016-08-23T11:50:41Z

    CLOUDSTACK-9467: Add symlink to key file for usage server
    
    On fresh installation, the usage server fails to start if the `key` file does
    not exist in its classpath. The issue is reproducible in environments where
    the usage server is installed before cloudstack-setup-databases has been called.
    Before the cloudstack db has been setup, the key file does not exist at its
    default location and installation of usage-server fails to add a symlink to the
    key file.
    
    This fix adds a default symlink to `/etc/cloudstack/management/key` if a
    symlink/file does not already exist in the /etc/cloudstack/usage directory.
    
    On new installation, in the post-installation steps it checks if the symlink
    or file exists, and adds a symlink if it does not exist. On existing
    installations, if symlink or file exists then it will skip adding symlink.
    
    Signed-off-by: Rohit Yadav <ro...@shapeblue.com>

----


---
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] cloudstack issue #1657: [lts/blocker] CLOUDSTACK-9467: Add symlink to key fi...

Posted by rhtyd <gi...@git.apache.org>.
Github user rhtyd commented on the issue:

    https://github.com/apache/cloudstack/pull/1657
  
    @blueorangutan test


---
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] cloudstack issue #1657: [lts/blocker] CLOUDSTACK-9467: Add symlink to key fi...

Posted by rhtyd <gi...@git.apache.org>.
Github user rhtyd commented on the issue:

    https://github.com/apache/cloudstack/pull/1657
  
    @jburwell no this is PR is related to packaging, while 1593 fixes something different. The Travis build failure has been fixed at #1648, the failures are unrelated to this PR. Since this is a packaging fix, built packages confirm that packaging is not broken. Further, Trillian tests confirm regression testing (though due to an infra issue the tests have not been commented here).
    
    Manual installation confirmed the fix, usage server started without any issue.
    ># /etc/init.d/cloudstack-usage status
    > * cloudstack-usage is running



---
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] cloudstack issue #1657: [lts/blocker] CLOUDSTACK-9467: Add symlink to key fi...

Posted by blueorangutan <gi...@git.apache.org>.
Github user blueorangutan commented on the issue:

    https://github.com/apache/cloudstack/pull/1657
  
    @rhtyd a Trillian-Jenkins test job (centos6 mgmt + vmware-55u3) has been kicked to run smoke tests against packages at http://packages.shapeblue.com/cloudstack/pr/1657


---
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] cloudstack pull request #1657: [lts/blocker] CLOUDSTACK-9467: Add symlink to...

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

    https://github.com/apache/cloudstack/pull/1657


---
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] cloudstack issue #1657: CLOUDSTACK-9467: Add symlink to key file for usage s...

Posted by blueorangutan <gi...@git.apache.org>.
Github user blueorangutan commented on the issue:

    https://github.com/apache/cloudstack/pull/1657
  
    @rhtyd a Jenkins job has been kicked to build packages. I'll keep you posted as I make progress.


---
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] cloudstack issue #1657: [lts/blocker] CLOUDSTACK-9467: Add symlink to key fi...

Posted by abhinandanprateek <gi...@git.apache.org>.
Github user abhinandanprateek commented on the issue:

    https://github.com/apache/cloudstack/pull/1657
  
    LGTM on code review, this will fix the broken symlink for usage server


---
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] cloudstack issue #1657: [lts/blocker] CLOUDSTACK-9467: Add symlink to key fi...

Posted by blueorangutan <gi...@git.apache.org>.
Github user blueorangutan commented on the issue:

    https://github.com/apache/cloudstack/pull/1657
  
    Packaging result: \u2714centos6 \u2714centos7 \u2714debian repo: http://packages.shapeblue.com/cloudstack/pr/1657
    Job ID-102


---
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] cloudstack issue #1657: [lts/blocker] CLOUDSTACK-9467: Add symlink to key fi...

Posted by jburwell <gi...@git.apache.org>.
Github user jburwell commented on the issue:

    https://github.com/apache/cloudstack/pull/1657
  
    @rhtyd do you see any potential conflict between this PR and PR #1593?  Also, the Travis build failed.  Could you please investigate?


---
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] cloudstack issue #1657: [lts/blocker] CLOUDSTACK-9467: Add symlink to key fi...

Posted by rhtyd <gi...@git.apache.org>.
Github user rhtyd commented on the issue:

    https://github.com/apache/cloudstack/pull/1657
  
    Thanks @abhinandanprateek @serg38  for the review. With enough lgtms and travis/manual tests, I'll merge this (failing Travis tests are not due to this change, but due to a tearDown issue). 


---
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] cloudstack issue #1657: [lts/blocker] CLOUDSTACK-9467: Add symlink to key fi...

Posted by serg38 <gi...@git.apache.org>.
Github user serg38 commented on the issue:

    https://github.com/apache/cloudstack/pull/1657
  
    LGTM 


---
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.
---