You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by karuturi <gi...@git.apache.org> on 2015/08/04 11:41:09 UTC

[GitHub] cloudstack pull request: CLOUDSTACK-8696: Create Region fails with...

GitHub user karuturi opened a pull request:

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

    CLOUDSTACK-8696: Create Region fails with exception

    'id' in the region table should not be an autoincrement unlike other
    tables. This is because, region ids must be in sync across installs and
    hence is accepted as input to the addRegions api.
    
    It is not a good practise to override id for this purpose. another
    column 'regionId' has to be created and used(CLOUDSTACK-8706). until it
    is fixed, id should never be autoincrement in regions table.

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

    $ git pull https://github.com/karuturi/cloudstack CLOUDSTACK-8696

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

    https://github.com/apache/cloudstack/pull/657.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 #657
    
----
commit b6a78044a0881e17d045f35850222c275a84642e
Author: Rajani Karuturi <ra...@gmail.com>
Date:   2015-08-04T09:19:30Z

    CLOUDSTACK-8696: Create Region fails with exception
    
    'id' in the region table should not be an autoincrement unlike other
    tables. This is because, region ids must be in sync across installs and
    hence is accepted as input to the addRegions api.
    
    It is not a good practise to override id for this purpose. another
    column 'regionId' has to be created and used(CLOUDSTACK-8706). until it
    is fixed, id should never be autoincrement in regions table.

----


---
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: CLOUDSTACK-8696: Create Region fails with...

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

    https://github.com/apache/cloudstack/pull/657#issuecomment-128337719
  
    I will merge this to master and keep the bug open so that it can be fixed in 4.5.2


---
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: CLOUDSTACK-8696: Create Region fails with...

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

    https://github.com/apache/cloudstack/pull/657#issuecomment-128128323
  
    @kishankavala Released versions will never be changed, only their ongoing release branches, like the '4.5' branch. So, we won't touch 4.5.0 and 4.5.1. What goes into the '4.5' branch today, will eventually become 4.5.2, etc
    
    We'll start the new procedure with 4.6 and then probably learn along the way. We can do 4.4/4.5 like we did before for now.


---
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: CLOUDSTACK-8696: Create Region fails with...

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

    https://github.com/apache/cloudstack/pull/657#issuecomment-127560212
  
    @karuturi This issue exists in releases > 4.5.0 
    Shouldn't this be fixed in 4.5.0, 4.5.1 and merged forward as per the new release process?
    Or is the new process for releases 4.6+ only?


---
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: CLOUDSTACK-8696: Create Region fails with...

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

    https://github.com/apache/cloudstack/pull/657#issuecomment-127548502
  
    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.
---

[GitHub] cloudstack pull request: CLOUDSTACK-8696: Create Region fails with...

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

    https://github.com/apache/cloudstack/pull/657#issuecomment-127916051
  
    @bhaisaab If we do that we do commit ourselves to releasing 4.5.2 before 4.6.0 don't we?


---
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: CLOUDSTACK-8696: Create Region fails with...

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

    https://github.com/apache/cloudstack/pull/657#issuecomment-128230517
  
    Yes please move the necessary code to schema-451to452.sql on 4.5 branch; we'll merge the same change on master as well


---
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: CLOUDSTACK-8696: Create Region fails with...

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

    https://github.com/apache/cloudstack/pull/657#issuecomment-129423682
  
    WRT master/4.6 4.5.2 was assumed frozen. There are other changes in 452to462 sql as well which may/maynot be bug fixes. 
    A separate PR needs to be done for 451to452


---
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: CLOUDSTACK-8696: Create Region fails with...

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

    https://github.com/apache/cloudstack/pull/657#issuecomment-128227678
  
    @remibergsma 
    Agreed. In this case fix will go into 4.5.2 and 4.6
    Updated fixVersion accordingly


---
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: CLOUDSTACK-8696: Create Region fails with...

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

    https://github.com/apache/cloudstack/pull/657#issuecomment-128373260
  
    Looks like some confusion is going on here; the changes need to go into: setup/db/db/schema-451to452.sql that I had suggested earlier. If you do that, then people who are on 4.5.1 will get this fix when they upgrade to 4.5.2. An upgrade path already exists from 452 to 460, so people who would upgrade from 4.5.1 or earlier to 4.6.0 will run run this upgrade path (since the schema file 451to452.sql runs as part of the upgrade path). If you've any questions/confusion, please discuss with me.
    
    I'm aiming to get 4.5.2 out of the door before 4.6.0, as 4.5.2 will be a minor release that will require less QA/release efforts with not many changes unlike 4.6.0


---
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: CLOUDSTACK-8696: Create Region fails with...

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

    https://github.com/apache/cloudstack/pull/657#issuecomment-128306138
  
    LGTM if 4.5.2 is released before 4.6.0


---
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: CLOUDSTACK-8696: Create Region fails with...

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

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


---
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: CLOUDSTACK-8696: Create Region fails with...

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

    https://github.com/apache/cloudstack/pull/657#issuecomment-127555462
  
    @karuturi @bhaisaab this must be fixed *before* 4.5.2 so it shouldn't be in the 452to460 file. If we put it there we are saying the bug will be in an unreleased version.


---
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: CLOUDSTACK-8696: Create Region fails with...

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

    https://github.com/apache/cloudstack/pull/657#issuecomment-128023315
  
    @DaanHoogland yes, there was a discussion with @remibergsma and @karuturi on slack; I'll start something next week


---
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: CLOUDSTACK-8696: Create Region fails with...

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

    https://github.com/apache/cloudstack/pull/657#issuecomment-128126924
  
    @DaanHoogland @karuturi @bhaisaab Yes, let's do 4.5.2 first and then all focus on 4.6.0


---
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: CLOUDSTACK-8696: Create Region fails with...

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

    https://github.com/apache/cloudstack/pull/657#issuecomment-128293895
  
    I read it as this PR is good for master. If thats the case, can I get some +1s please.


---
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: CLOUDSTACK-8696: Create Region fails with...

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

    https://github.com/apache/cloudstack/pull/657#issuecomment-127899688
  
    @karuturi can you move this to 451to452 schema and then merge on both 4.5/master which will fix the issue for both future releases 4.5.2 and 4.6.0?


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