[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126331708 So I will amend the interrupted to be level debug and then merge. next I will create a new PR for any remaining empty catch blocks, @koushik-das. --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
Re: [Blocker] Default ip table rules on VR
Guys, I see votes here but no arguments. Why is it a blocker? From: Jayapal Reddy Uradi [mailto:jayapalreddy.ur...@citrix.com] Sent: 30 July 2015 02:07 PM To: dev@cloudstack.apache.org dev@cloudstack.apache.org Subject: Re: [Blocker] Default ip table rules on VR I see VR ingress traffic is blocked by default from iptables mangle table. So, ... But on the guest interface all the traffic is accepted. this is behind the VR. Also egress firewall rule will break because of FORWARD policy. On Thu, Jul 30, 2015 at 2:35 PM, Wilder Rodrigues wrodrig...@schubergphilis.com wrote: Hi, We discussed that one yesterday and I already assigned the issue to myself on Jira. I will fix it. Cheers, WIlder On 30 Jul 2015, at 14:09, Sanjeev N sanj...@apache.org wrote: Agree with Kishan Kavala and Jayapal. On Thu, Jul 30, 2015 at 2:13 PM, Kishan Kavala kishan.kav...@citrix.com wrote: This is a security issue with high impact. We should treat it as a blocker. -Original Message- From: Jayapal Reddy Uradi [mailto:jayapalreddy.ur...@citrix.com] Sent: 30 July 2015 02:07 PM To: dev@cloudstack.apache.org dev@cloudstack.apache.org Subject: Re: [Blocker] Default ip table rules on VR I see VR ingress traffic is blocked by default from iptables mangle table. But on the guest interface all the traffic is accepted. Also egress firewall rule will break because of FORWARD policy. Thanks, Jayapal On 30-Jul-2015, at 12:53 PM, Jayapal Reddy Uradi jayapalreddy.ur...@citrix.com wrote: It is security concern on the VR. All the ingress traffic onto the VR is accepted. Let it be blocker. Thanks, Jayapal On 30-Jul-2015, at 12:28 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: I changed it to critical. It is only a blocker if we agree on this list that it is. On Thu, Jul 30, 2015 at 6:44 AM, Sanjeev N sanj...@apache.org wrote: Hi, In latest ACS builds, the ip table rules in VR have ACCEPT as the default policy in INPUT and FORWARD chains, instead of DROP. Created a blocker bug for this issue https://issues.apache.org/jira/browse/CLOUDSTACK-8688 Can somebody please fix it? Thanks, Sanjeev -- Daan -- Daan
[GitHub] cloudstack pull request: CLOUDSTACK-8689: Verify effect of changin...
Github user pritisarap12 commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/638#discussion_r35862152 --- Diff: test/integration/testpaths/testpath_hypervisor_limit.py --- @@ -0,0 +1,191 @@ +# 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. + + Test cases to Verify effect of changing value of XenServer +Max guest limit on previously added hosts + + +from nose.plugins.attrib import attr +from marvin.cloudstackTestCase import cloudstackTestCase +from marvin.lib.utils import (cleanup_resources, +validateList) +from marvin.lib.base import (Account, + ServiceOffering, + VirtualMachine, + Host + ) +from marvin.lib.common import (get_domain, + get_zone, + get_template, + ) + + +from marvin.cloudstackAPI import (updateHypervisorCapabilities, + listHypervisorCapabilities) + +from marvin.codes import PASS + + + +class TestMaxHyperviosrLimit(cloudstackTestCase): + +@classmethod +def setUpClass(cls): +testClient = super(TestMaxHyperviosrLimit, cls).getClsTestClient() +cls.apiclient = testClient.getApiClient() +cls.testdata = testClient.getParsedTestDataConfig() + +cls.hypervisor = cls.testClient.getHypervisorInfo() +# Get Zone, Domain and templates +cls.domain = get_domain(cls.apiclient) +cls.zone = get_zone(cls.apiclient, testClient.getZoneForTests()) + +cls.template = get_template( +cls.apiclient, +cls.zone.id, +cls.testdata[ostype]) + +cls._cleanup = [] +hostList = Host.list(cls.apiclient, zoneid=cls.zone.id, type=Routing) +cls.host = Host(hostList[0].__dict__) +try: + +cls.skiptest = False +if cls.hypervisor.lower() not in ['xenserver']: +cls.skiptest = True +return +# Create an account +cls.account = Account.create( +cls.apiclient, +cls.testdata[account], +domainid=cls.domain.id +) + +# Create user api client of the account +cls.userapiclient = testClient.getUserApiClient( +UserName=cls.account.name, +DomainName=cls.account.domain +) +# Create Service offering +cls.service_offering = ServiceOffering.create( +cls.apiclient, +cls.testdata[service_offering], +) + +cls._cleanup = [ +cls.account, +cls.service_offering, +] +except Exception as e: +cls.tearDownClass() +raise e +return + +@classmethod +def tearDownClass(cls): +try: +cleanup_resources(cls.apiclient, cls._cleanup) +except Exception as e: +raise Exception(Warning: Exception during cleanup : %s % e) + +def setUp(self): +self.cleanup = [] +if self.skiptest: +self.skipTest(This test is to be checked on xenserver \ +only Hence, skip for %s % self.hypervisor) + +self.apiclient = self.testClient.getApiClient() +self.dbclient = self.testClient.getDbConnection() + +def tearDown(self): +try: + +cmd = updateHypervisorCapabilities.updateHypervisorCapabilitiesCmd() +cmd.id = self.hostCapId +cmd.maxguestslimit = self.originalLimit +self.apiclient.updateHypervisorCapabilities(cmd)
[GitHub] cloudstack pull request: Coverity Issue: Resource Leak fixed
Github user kansal commented on the pull request: https://github.com/apache/cloudstack/pull/643#issuecomment-126301540 @DaanHoogland It was the issue that was reported by our internal coverity. The issue reported is: noescape: Resource 'in' is not closed or saved in readObject. CID 17897: Resource leak (RESOURCE_LEAK). leaked_resource: Variable in going out of scope leaks the resource it refers to. --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Coverity Issue: Resource Leak fixed
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/643#issuecomment-126319443 -1 on this. I cannot track any internal tracking system of another company. please if the public coverity doesn't have this make a jira ticket describve the problem and put the ticket id in hte commit message. --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Coverity Issue: Resource Leak fixed
Github user miguelaferreira commented on the pull request: https://github.com/apache/cloudstack/pull/643#issuecomment-126319900 Hi @kansal If this issue was caught by your internal Coverity scan, wouldn't it also have been cough by the public Coverity scan? Or are these configured differently? It would be great to use the public IDs all-around, otherwise it will be very confusing. I can imagine many people have their own internal ticketing systems (for example), and if people would just start to use IDs form those internal systems it would be extremely hard to backtrack. Don't you think? --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: CLOUDSTACK-8687: Prepare template only on...
Github user kishankavala commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/635#discussion_r35862098 --- Diff: api/src/org/apache/cloudstack/api/command/admin/template/PrepareTemplateCmd.java --- @@ -60,6 +61,15 @@ description = template ID of the template to be prepared in primary storage(s).) private Long templateId; +@ACL(accessType = AccessType.OperateEntry) +@Parameter(name = ApiConstants.STORAGE_ID, +type = CommandType.UUID, +entityType = StoragePoolResponse.class, +required = false, +description = storage pool ID of the primary storage pool to which the template should be prepared. If it is not provided the template + + is prepared on all the available primary storage pools.) +private Long storageId; --- End diff -- @devdeep LGTM if storageId is consistent across APIs --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
Re: [Blocker] Default ip table rules on VR
Hi, We discussed that one yesterday and I already assigned the issue to myself on Jira. I will fix it. Cheers, WIlder On 30 Jul 2015, at 14:09, Sanjeev N sanj...@apache.org wrote: Agree with Kishan Kavala and Jayapal. On Thu, Jul 30, 2015 at 2:13 PM, Kishan Kavala kishan.kav...@citrix.com wrote: This is a security issue with high impact. We should treat it as a blocker. -Original Message- From: Jayapal Reddy Uradi [mailto:jayapalreddy.ur...@citrix.com] Sent: 30 July 2015 02:07 PM To: dev@cloudstack.apache.org dev@cloudstack.apache.org Subject: Re: [Blocker] Default ip table rules on VR I see VR ingress traffic is blocked by default from iptables mangle table. But on the guest interface all the traffic is accepted. Also egress firewall rule will break because of FORWARD policy. Thanks, Jayapal On 30-Jul-2015, at 12:53 PM, Jayapal Reddy Uradi jayapalreddy.ur...@citrix.com wrote: It is security concern on the VR. All the ingress traffic onto the VR is accepted. Let it be blocker. Thanks, Jayapal On 30-Jul-2015, at 12:28 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: I changed it to critical. It is only a blocker if we agree on this list that it is. On Thu, Jul 30, 2015 at 6:44 AM, Sanjeev N sanj...@apache.org wrote: Hi, In latest ACS builds, the ip table rules in VR have ACCEPT as the default policy in INPUT and FORWARD chains, instead of DROP. Created a blocker bug for this issue https://issues.apache.org/jira/browse/CLOUDSTACK-8688 Can somebody please fix it? Thanks, Sanjeev -- Daan
Build failed in Jenkins: simulator-4.5-singlerun #256
See http://jenkins.buildacloud.org/job/simulator-4.5-singlerun/256/ -- Started by upstream project build-4.5-simulator build number 311 originally caused by: Started by upstream project build-4.5 build number 503 originally caused by: Started by an SCM change [EnvInject] - Loading node environment variables. Building remotely on simulator in workspace http://jenkins.buildacloud.org/job/simulator-4.5-singlerun/ws/ /usr/bin/git rev-parse --is-inside-work-tree # timeout=400 Fetching changes from the remote Git repository /usr/bin/git config remote.origin.url https://git-wip-us.apache.org/repos/asf/cloudstack.git # timeout=400 Fetching upstream changes from https://git-wip-us.apache.org/repos/asf/cloudstack.git /usr/bin/git --version # timeout=400 /usr/bin/git fetch --tags --progress https://git-wip-us.apache.org/repos/asf/cloudstack.git +refs/heads/*:refs/remotes/origin/* ERROR: Error fetching remote repo 'origin' hudson.plugins.git.GitException: Failed to fetch from https://git-wip-us.apache.org/repos/asf/cloudstack.git at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:735) at hudson.plugins.git.GitSCM.retrieveChanges(GitSCM.java:983) at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1016) at hudson.scm.SCM.checkout(SCM.java:484) at hudson.model.AbstractProject.checkout(AbstractProject.java:1258) at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:622) at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:528) at hudson.model.Run.execute(Run.java:1759) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:89) at hudson.model.Executor.run(Executor.java:240) Caused by: hudson.plugins.git.GitException: Command /usr/bin/git fetch --tags --progress https://git-wip-us.apache.org/repos/asf/cloudstack.git +refs/heads/*:refs/remotes/origin/* returned status code 128: stdout: stderr: error: while accessing https://git-wip-us.apache.org/repos/asf/cloudstack.git/info/refs fatal: HTTP request failed at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandIn(CliGitAPIImpl.java:1591) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.launchCommandWithCredentials(CliGitAPIImpl.java:1379) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl.access$300(CliGitAPIImpl.java:86) at org.jenkinsci.plugins.gitclient.CliGitAPIImpl$1.execute(CliGitAPIImpl.java:324) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:152) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler$1.call(RemoteGitImpl.java:145) at hudson.remoting.UserRequest.perform(UserRequest.java:121) at hudson.remoting.UserRequest.perform(UserRequest.java:49) at hudson.remoting.Request$2.run(Request.java:324) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:68) at java.util.concurrent.FutureTask.run(FutureTask.java:262) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:744) at ..remote call to simulator(Native Method) at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1356) at hudson.remoting.UserResponse.retrieve(UserRequest.java:221) at hudson.remoting.Channel.call(Channel.java:752) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.execute(RemoteGitImpl.java:145) at sun.reflect.GeneratedMethodAccessor375.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.jenkinsci.plugins.gitclient.RemoteGitImpl$CommandInvocationHandler.invoke(RemoteGitImpl.java:131) at sun.proxy.$Proxy46.execute(Unknown Source) at hudson.plugins.git.GitSCM.fetchFrom(GitSCM.java:733) ... 11 more ERROR: Error fetching remote repo 'origin' [xUnit] [INFO] - Starting to record. [xUnit] [INFO] - Processing JUnit [xUnit] [INFO] - [JUnit] - No test report file(s) were found with the pattern 'xunit.xml' relative to 'http://jenkins.buildacloud.org/job/simulator-4.5-singlerun/ws/' for the testing framework 'JUnit'. Did you enter a pattern relative to the correct directory? Did you generate the result report(s) for 'JUnit'? [xUnit] [ERROR] - No test reports found for the metric 'JUnit' with the resolved pattern 'xunit.xml'. Configuration error?. [xUnit] [INFO] - Failing BUILD. [xUnit] [INFO] - There are errors
[GitHub] cloudstack pull request: Update NiciraNvpGuestNetworkGuru.java
Github user kishankavala commented on the pull request: https://github.com/apache/cloudstack/pull/636#issuecomment-126288404 @sspans Since Test case is updated to cover VXLAN also, 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Update NiciraNvpGuestNetworkGuru.java
Github user asfgit closed the pull request at: https://github.com/apache/cloudstack/pull/636 --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Update L10N resource files on master bran...
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/640#issuecomment-126307227 Bruno, please find two LGTM before merging, thanks. Can you still advertise and find some? --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Update L10N resource files on master bran...
Github user milamberspace commented on the pull request: https://github.com/apache/cloudstack/pull/640#issuecomment-126315563 Sorry, I already merged on apache repo. I will better the next time. Howto find the rules before merging ? (2 LGTM, How many asfbot/cloudstack-pull process?) --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
Re: [Blocker] Default ip table rules on VR
Agree with Kishan Kavala and Jayapal. On Thu, Jul 30, 2015 at 2:13 PM, Kishan Kavala kishan.kav...@citrix.com wrote: This is a security issue with high impact. We should treat it as a blocker. -Original Message- From: Jayapal Reddy Uradi [mailto:jayapalreddy.ur...@citrix.com] Sent: 30 July 2015 02:07 PM To: dev@cloudstack.apache.org dev@cloudstack.apache.org Subject: Re: [Blocker] Default ip table rules on VR I see VR ingress traffic is blocked by default from iptables mangle table. But on the guest interface all the traffic is accepted. Also egress firewall rule will break because of FORWARD policy. Thanks, Jayapal On 30-Jul-2015, at 12:53 PM, Jayapal Reddy Uradi jayapalreddy.ur...@citrix.com wrote: It is security concern on the VR. All the ingress traffic onto the VR is accepted. Let it be blocker. Thanks, Jayapal On 30-Jul-2015, at 12:28 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: I changed it to critical. It is only a blocker if we agree on this list that it is. On Thu, Jul 30, 2015 at 6:44 AM, Sanjeev N sanj...@apache.org wrote: Hi, In latest ACS builds, the ip table rules in VR have ACCEPT as the default policy in INPUT and FORWARD chains, instead of DROP. Created a blocker bug for this issue https://issues.apache.org/jira/browse/CLOUDSTACK-8688 Can somebody please fix it? Thanks, Sanjeev -- Daan
Re: [4.6] RC1 soon ?
never mind that again, answerring to fast as I probably do one out of two or three times :( Looking further... On Thu, Jul 30, 2015 at 9:19 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: Mike, I am looking at the commit and it makes perfect sense as the the prior situation was creating a prepared statement based on dynamicly added strings. The only queer thing is that the int i = 1 is replaced with i = 1, reusing the loop counter instead of hiding it. Maybe this is the problem On Thu, Jul 30, 2015 at 8:55 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I see the problem. The way a SQL statement was constructed was changed by commit b84093f691ae0b09d2c525d50f2e2d200c709b2c: https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f=engine/schema/src/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java;h=d3c29f70d6ab56379c2436b5cafc933049200f31;hp=faf5291554a68506b14438a7e1cda61cd4c3cc0c;hb=b84093f691ae0b09d2c525d50f2e2d200c709b2c;hpb=1407033cc2e0742653d82bb0181c041b31253693 and no longer makes any sense SELECT storage_pool.* from storage_pool LEFT JOIN storage_pool_details ON storage_pool.id = storage_pool_details.pool_id WHERE storage_pool.removed is null and storage_pool.status = 'Up' and storage_pool.data_center_id = 1 and storage_pool.scope = 'ZONE' and (((storage_pool_details.name=1) AND (storage_pool_details.value=** NOT SPECIFIED **))) GROUP BY storage_pool_details.pool_id HAVING COUNT(storage_pool_details.name) = ** NOT SPECIFIED ** I think I'm just going to revert this commit. It was related to a change put in at the request of FindBugs. I've CCed the relevant participants in the commit in case they wish to re-evaluate the FindBugs request and resubmit a fix. On Thu, Jul 30, 2015 at 12:13 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: FYI that I get the same error message when trying to attach a data disk that is based on zone-wide primary storage. On Thu, Jul 30, 2015 at 12:10 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I'm actually having trouble creating a VM whose root disk runs on zone-wide primary storage. This is definitely a blocker for 4.6. I'm just beginning to look into this, but this is the error message I receive: findZoneWideStoragePoolsByTags:Exception:No value specified for parameter 4 On Mon, Jul 27, 2015 at 8:51 PM, Pierre-Luc Dion pdion...@apache.org wrote: Hi, I've create this jira filter[1] for the Release Manager, based on it, there would be only 4 maybe just 3 blockers on 4.6. Based on this, should we consider placing a target date for RC1 somewhere like end of August ? What's missing and to do in 4.6 as far as I know: 1. Basic documentation of new features, 2. Decide if we let it in master and freeze merge during RC ? 3. Build all job as 4.6 in jenkins ? 4. Organize a QA-party, like old time lan-party [1] https://issues.apache.org/jira/issues/?filter=12332940 -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Daan -- Daan
Re: [4.6] RC1 soon ?
Sure, I can revert it and leave it for your leisure to find an acceptable fix to satisfy FindBugs. On Thu, Jul 30, 2015 at 1:42 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: I am now thinking of how to isolate this code to write a proper test. This is not going to be successful tonight, while the original seven samurai is on tv. Maybe reverting is the best option and we live with findbugs regression for a day. I will think of a way to fix this tomorrow wit a more clear head. On Thu, Jul 30, 2015 at 9:33 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: But reintroduced the vulnerability that findbugs was complaining about... I think the problem is in this bit: int i=0; for (Map.EntryString, String detail : details.entrySet()) { pstmt.setString(++i,detail.getKey()); pstmt.setString(++i,detail.getValue()); } ++i should have been i++ in both cases. I messed those in my review, sorry On Thu, Jul 30, 2015 at 9:24 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: No problem, Daan. :) Just from an empirical standpoint, though, reverting the commit in my local repo fixed the problem. On Thu, Jul 30, 2015 at 1:20 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: never mind that again, answerring to fast as I probably do one out of two or three times :( Looking further... On Thu, Jul 30, 2015 at 9:19 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: Mike, I am looking at the commit and it makes perfect sense as the the prior situation was creating a prepared statement based on dynamicly added strings. The only queer thing is that the int i = 1 is replaced with i = 1, reusing the loop counter instead of hiding it. Maybe this is the problem On Thu, Jul 30, 2015 at 8:55 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I see the problem. The way a SQL statement was constructed was changed by commit b84093f691ae0b09d2c525d50f2e2d200c709b2c: https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f=engine/schema/src/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java;h=d3c29f70d6ab56379c2436b5cafc933049200f31;hp=faf5291554a68506b14438a7e1cda61cd4c3cc0c;hb=b84093f691ae0b09d2c525d50f2e2d200c709b2c;hpb=1407033cc2e0742653d82bb0181c041b31253693 and no longer makes any sense SELECT storage_pool.* from storage_pool LEFT JOIN storage_pool_details ON storage_pool.id = storage_pool_details.pool_id WHERE storage_pool.removed is null and storage_pool.status = 'Up' and storage_pool.data_center_id = 1 and storage_pool.scope = 'ZONE' and (((storage_pool_details.name=1) AND (storage_pool_details.value=** NOT SPECIFIED **))) GROUP BY storage_pool_details.pool_id HAVING COUNT(storage_pool_details.name) = ** NOT SPECIFIED ** I think I'm just going to revert this commit. It was related to a change put in at the request of FindBugs. I've CCed the relevant participants in the commit in case they wish to re-evaluate the FindBugs request and resubmit a fix. On Thu, Jul 30, 2015 at 12:13 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: FYI that I get the same error message when trying to attach a data disk that is based on zone-wide primary storage. On Thu, Jul 30, 2015 at 12:10 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I'm actually having trouble creating a VM whose root disk runs on zone-wide primary storage. This is definitely a blocker for 4.6. I'm just beginning to look into this, but this is the error message I receive: findZoneWideStoragePoolsByTags:Exception:No value specified for parameter 4 On Mon, Jul 27, 2015 at 8:51 PM, Pierre-Luc Dion pdion...@apache.org wrote: Hi, I've create this jira filter[1] for the Release Manager, based on it, there would be only 4 maybe just 3 blockers on 4.6. Based on this, should we consider placing a target date for RC1 somewhere like end of August ? What's missing and to do in 4.6 as far as I know: 1. Basic documentation of new features, 2. Decide if we let it in master and freeze merge during RC ? 3. Build all job as 4.6 in jenkins ? 4. Organize a QA-party, like old time lan-party [1] https://issues.apache.org/jira/issues/?filter=12332940 -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302
Re: [4.6] RC1 soon ?
No problem, Daan. :) Just from an empirical standpoint, though, reverting the commit in my local repo fixed the problem. On Thu, Jul 30, 2015 at 1:20 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: never mind that again, answerring to fast as I probably do one out of two or three times :( Looking further... On Thu, Jul 30, 2015 at 9:19 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: Mike, I am looking at the commit and it makes perfect sense as the the prior situation was creating a prepared statement based on dynamicly added strings. The only queer thing is that the int i = 1 is replaced with i = 1, reusing the loop counter instead of hiding it. Maybe this is the problem On Thu, Jul 30, 2015 at 8:55 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I see the problem. The way a SQL statement was constructed was changed by commit b84093f691ae0b09d2c525d50f2e2d200c709b2c: https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f=engine/schema/src/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java;h=d3c29f70d6ab56379c2436b5cafc933049200f31;hp=faf5291554a68506b14438a7e1cda61cd4c3cc0c;hb=b84093f691ae0b09d2c525d50f2e2d200c709b2c;hpb=1407033cc2e0742653d82bb0181c041b31253693 and no longer makes any sense SELECT storage_pool.* from storage_pool LEFT JOIN storage_pool_details ON storage_pool.id = storage_pool_details.pool_id WHERE storage_pool.removed is null and storage_pool.status = 'Up' and storage_pool.data_center_id = 1 and storage_pool.scope = 'ZONE' and (((storage_pool_details.name=1) AND (storage_pool_details.value=** NOT SPECIFIED **))) GROUP BY storage_pool_details.pool_id HAVING COUNT(storage_pool_details.name) = ** NOT SPECIFIED ** I think I'm just going to revert this commit. It was related to a change put in at the request of FindBugs. I've CCed the relevant participants in the commit in case they wish to re-evaluate the FindBugs request and resubmit a fix. On Thu, Jul 30, 2015 at 12:13 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: FYI that I get the same error message when trying to attach a data disk that is based on zone-wide primary storage. On Thu, Jul 30, 2015 at 12:10 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I'm actually having trouble creating a VM whose root disk runs on zone-wide primary storage. This is definitely a blocker for 4.6. I'm just beginning to look into this, but this is the error message I receive: findZoneWideStoragePoolsByTags:Exception:No value specified for parameter 4 On Mon, Jul 27, 2015 at 8:51 PM, Pierre-Luc Dion pdion...@apache.org wrote: Hi, I've create this jira filter[1] for the Release Manager, based on it, there would be only 4 maybe just 3 blockers on 4.6. Based on this, should we consider placing a target date for RC1 somewhere like end of August ? What's missing and to do in 4.6 as far as I know: 1. Basic documentation of new features, 2. Decide if we let it in master and freeze merge during RC ? 3. Build all job as 4.6 in jenkins ? 4. Organize a QA-party, like old time lan-party [1] https://issues.apache.org/jira/issues/?filter=12332940 -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Daan -- Daan -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud http://solidfire.com/solution/overview/?video=play*™*
Re: [4.6] RC1 soon ?
But reintroduced the vulnerability that findbugs was complaining about... I think the problem is in this bit: int i=0; for (Map.EntryString, String detail : details.entrySet()) { pstmt.setString(++i,detail.getKey()); pstmt.setString(++i,detail.getValue()); } ++i should have been i++ in both cases. I messed those in my review, sorry On Thu, Jul 30, 2015 at 9:24 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: No problem, Daan. :) Just from an empirical standpoint, though, reverting the commit in my local repo fixed the problem. On Thu, Jul 30, 2015 at 1:20 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: never mind that again, answerring to fast as I probably do one out of two or three times :( Looking further... On Thu, Jul 30, 2015 at 9:19 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: Mike, I am looking at the commit and it makes perfect sense as the the prior situation was creating a prepared statement based on dynamicly added strings. The only queer thing is that the int i = 1 is replaced with i = 1, reusing the loop counter instead of hiding it. Maybe this is the problem On Thu, Jul 30, 2015 at 8:55 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I see the problem. The way a SQL statement was constructed was changed by commit b84093f691ae0b09d2c525d50f2e2d200c709b2c: https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f=engine/schema/src/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java;h=d3c29f70d6ab56379c2436b5cafc933049200f31;hp=faf5291554a68506b14438a7e1cda61cd4c3cc0c;hb=b84093f691ae0b09d2c525d50f2e2d200c709b2c;hpb=1407033cc2e0742653d82bb0181c041b31253693 and no longer makes any sense SELECT storage_pool.* from storage_pool LEFT JOIN storage_pool_details ON storage_pool.id = storage_pool_details.pool_id WHERE storage_pool.removed is null and storage_pool.status = 'Up' and storage_pool.data_center_id = 1 and storage_pool.scope = 'ZONE' and (((storage_pool_details.name=1) AND (storage_pool_details.value=** NOT SPECIFIED **))) GROUP BY storage_pool_details.pool_id HAVING COUNT(storage_pool_details.name) = ** NOT SPECIFIED ** I think I'm just going to revert this commit. It was related to a change put in at the request of FindBugs. I've CCed the relevant participants in the commit in case they wish to re-evaluate the FindBugs request and resubmit a fix. On Thu, Jul 30, 2015 at 12:13 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: FYI that I get the same error message when trying to attach a data disk that is based on zone-wide primary storage. On Thu, Jul 30, 2015 at 12:10 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I'm actually having trouble creating a VM whose root disk runs on zone-wide primary storage. This is definitely a blocker for 4.6. I'm just beginning to look into this, but this is the error message I receive: findZoneWideStoragePoolsByTags:Exception:No value specified for parameter 4 On Mon, Jul 27, 2015 at 8:51 PM, Pierre-Luc Dion pdion...@apache.org wrote: Hi, I've create this jira filter[1] for the Release Manager, based on it, there would be only 4 maybe just 3 blockers on 4.6. Based on this, should we consider placing a target date for RC1 somewhere like end of August ? What's missing and to do in 4.6 as far as I know: 1. Basic documentation of new features, 2. Decide if we let it in master and freeze merge during RC ? 3. Build all job as 4.6 in jenkins ? 4. Organize a QA-party, like old time lan-party [1] https://issues.apache.org/jira/issues/?filter=12332940 -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Daan -- Daan -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Daan
Re: [4.6] RC1 soon ?
leasure time is on On Thu, Jul 30, 2015 at 9:44 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: Sure, I can revert it and leave it for your leisure to find an acceptable fix to satisfy FindBugs. On Thu, Jul 30, 2015 at 1:42 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: I am now thinking of how to isolate this code to write a proper test. This is not going to be successful tonight, while the original seven samurai is on tv. Maybe reverting is the best option and we live with findbugs regression for a day. I will think of a way to fix this tomorrow wit a more clear head. On Thu, Jul 30, 2015 at 9:33 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: But reintroduced the vulnerability that findbugs was complaining about... I think the problem is in this bit: int i=0; for (Map.EntryString, String detail : details.entrySet()) { pstmt.setString(++i,detail.getKey()); pstmt.setString(++i,detail.getValue()); } ++i should have been i++ in both cases. I messed those in my review, sorry On Thu, Jul 30, 2015 at 9:24 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: No problem, Daan. :) Just from an empirical standpoint, though, reverting the commit in my local repo fixed the problem. On Thu, Jul 30, 2015 at 1:20 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: never mind that again, answerring to fast as I probably do one out of two or three times :( Looking further... On Thu, Jul 30, 2015 at 9:19 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: Mike, I am looking at the commit and it makes perfect sense as the the prior situation was creating a prepared statement based on dynamicly added strings. The only queer thing is that the int i = 1 is replaced with i = 1, reusing the loop counter instead of hiding it. Maybe this is the problem On Thu, Jul 30, 2015 at 8:55 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I see the problem. The way a SQL statement was constructed was changed by commit b84093f691ae0b09d2c525d50f2e2d200c709b2c: https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f=engine/schema/src/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java;h=d3c29f70d6ab56379c2436b5cafc933049200f31;hp=faf5291554a68506b14438a7e1cda61cd4c3cc0c;hb=b84093f691ae0b09d2c525d50f2e2d200c709b2c;hpb=1407033cc2e0742653d82bb0181c041b31253693 and no longer makes any sense SELECT storage_pool.* from storage_pool LEFT JOIN storage_pool_details ON storage_pool.id = storage_pool_details.pool_id WHERE storage_pool.removed is null and storage_pool.status = 'Up' and storage_pool.data_center_id = 1 and storage_pool.scope = 'ZONE' and (((storage_pool_details.name=1) AND (storage_pool_details.value=** NOT SPECIFIED **))) GROUP BY storage_pool_details.pool_id HAVING COUNT(storage_pool_details.name) = ** NOT SPECIFIED ** I think I'm just going to revert this commit. It was related to a change put in at the request of FindBugs. I've CCed the relevant participants in the commit in case they wish to re-evaluate the FindBugs request and resubmit a fix. On Thu, Jul 30, 2015 at 12:13 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: FYI that I get the same error message when trying to attach a data disk that is based on zone-wide primary storage. On Thu, Jul 30, 2015 at 12:10 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I'm actually having trouble creating a VM whose root disk runs on zone-wide primary storage. This is definitely a blocker for 4.6. I'm just beginning to look into this, but this is the error message I receive: findZoneWideStoragePoolsByTags:Exception:No value specified for parameter 4 On Mon, Jul 27, 2015 at 8:51 PM, Pierre-Luc Dion pdion...@apache.org wrote: Hi, I've create this jira filter[1] for the Release Manager, based on it, there would be only 4 maybe just 3 blockers on 4.6. Based on this, should we consider placing a target date for RC1 somewhere like end of August ? What's missing and to do in 4.6 as far as I know: 1. Basic documentation of new features, 2. Decide if we let it in master and freeze merge during RC ? 3. Build all job as 4.6 in jenkins ? 4. Organize a QA-party, like old time lan-party [1] https://issues.apache.org/jira/issues/?filter=12332940 -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™
Re: [4.6] RC1 soon ?
I'm doing other testing locally anyways. If you happen to find a fix, then I won't bother to revert. I can just try it again with your fix. I'll wait until tonight MST to revert. On Thu, Jul 30, 2015 at 1:51 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: leasure time is on On Thu, Jul 30, 2015 at 9:44 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: Sure, I can revert it and leave it for your leisure to find an acceptable fix to satisfy FindBugs. On Thu, Jul 30, 2015 at 1:42 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: I am now thinking of how to isolate this code to write a proper test. This is not going to be successful tonight, while the original seven samurai is on tv. Maybe reverting is the best option and we live with findbugs regression for a day. I will think of a way to fix this tomorrow wit a more clear head. On Thu, Jul 30, 2015 at 9:33 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: But reintroduced the vulnerability that findbugs was complaining about... I think the problem is in this bit: int i=0; for (Map.EntryString, String detail : details.entrySet()) { pstmt.setString(++i,detail.getKey()); pstmt.setString(++i,detail.getValue()); } ++i should have been i++ in both cases. I messed those in my review, sorry On Thu, Jul 30, 2015 at 9:24 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: No problem, Daan. :) Just from an empirical standpoint, though, reverting the commit in my local repo fixed the problem. On Thu, Jul 30, 2015 at 1:20 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: never mind that again, answerring to fast as I probably do one out of two or three times :( Looking further... On Thu, Jul 30, 2015 at 9:19 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: Mike, I am looking at the commit and it makes perfect sense as the the prior situation was creating a prepared statement based on dynamicly added strings. The only queer thing is that the int i = 1 is replaced with i = 1, reusing the loop counter instead of hiding it. Maybe this is the problem On Thu, Jul 30, 2015 at 8:55 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I see the problem. The way a SQL statement was constructed was changed by commit b84093f691ae0b09d2c525d50f2e2d200c709b2c: https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f=engine/schema/src/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java;h=d3c29f70d6ab56379c2436b5cafc933049200f31;hp=faf5291554a68506b14438a7e1cda61cd4c3cc0c;hb=b84093f691ae0b09d2c525d50f2e2d200c709b2c;hpb=1407033cc2e0742653d82bb0181c041b31253693 and no longer makes any sense SELECT storage_pool.* from storage_pool LEFT JOIN storage_pool_details ON storage_pool.id = storage_pool_details.pool_id WHERE storage_pool.removed is null and storage_pool.status = 'Up' and storage_pool.data_center_id = 1 and storage_pool.scope = 'ZONE' and (((storage_pool_details.name=1) AND (storage_pool_details.value=** NOT SPECIFIED **))) GROUP BY storage_pool_details.pool_id HAVING COUNT(storage_pool_details.name) = ** NOT SPECIFIED ** I think I'm just going to revert this commit. It was related to a change put in at the request of FindBugs. I've CCed the relevant participants in the commit in case they wish to re-evaluate the FindBugs request and resubmit a fix. On Thu, Jul 30, 2015 at 12:13 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: FYI that I get the same error message when trying to attach a data disk that is based on zone-wide primary storage. On Thu, Jul 30, 2015 at 12:10 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I'm actually having trouble creating a VM whose root disk runs on zone-wide primary storage. This is definitely a blocker for 4.6. I'm just beginning to look into this, but this is the error message I receive: findZoneWideStoragePoolsByTags:Exception:No value specified for parameter 4 On Mon, Jul 27, 2015 at 8:51 PM, Pierre-Luc Dion pdion...@apache.org wrote: Hi, I've create this jira filter[1] for the Release Manager, based on it, there would be only 4 maybe just 3 blockers on 4.6. Based on this, should we consider placing a target date for RC1 somewhere like end of August ? What's missing and to do in 4.6 as far as I know: 1. Basic documentation of new features, 2. Decide if we let it in master and freeze merge during RC ? 3. Build all job as 4.6 in jenkins ? 4. Organize a QA-party, like old time lan-party [1]
Re: [4.6] RC1 soon ?
Thanks Mike, I was thinking that the order of applying the statement parameters was reversed. Maybe you can try and apply this snippit: diff --git a/engine/schema/src/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java b/engine/schema/src/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java index d3c29f7..c388da6 100644 --- a/engine/schema/src/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java +++ b/engine/schema/src/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java @@ -399,17 +399,16 @@ sql.append(ZoneWideDetailsSqlSuffix); TransactionLegacy txn = TransactionLegacy.currentTxn(); try (PreparedStatement pstmt = txn.prepareStatement(sql.toString());){ -int i=0; -for (Map.EntryString, String detail : details.entrySet()) { -pstmt.setString(++i,detail.getKey()); -pstmt.setString(++i,detail.getValue()); -} ListStoragePoolVO pools = new ArrayListStoragePoolVO(); if (pstmt != null) { -i = 1; +int i = 1; pstmt.setLong(i++, dcId); pstmt.setString(i++, ScopeType.ZONE.toString()); pstmt.setInt(i++, details.size()); +for (Map.EntryString, String detail : details.entrySet()) { +pstmt.setString(i++,detail.getKey()); +pstmt.setString(i++,detail.getValue()); +} try(ResultSet rs = pstmt.executeQuery();) { while (rs.next()) { pools.add(toEntityBean(rs, false)); On Thu, Jul 30, 2015 at 9:54 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I'm doing other testing locally anyways. If you happen to find a fix, then I won't bother to revert. I can just try it again with your fix. I'll wait until tonight MST to revert. On Thu, Jul 30, 2015 at 1:51 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: leasure time is on On Thu, Jul 30, 2015 at 9:44 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: Sure, I can revert it and leave it for your leisure to find an acceptable fix to satisfy FindBugs. On Thu, Jul 30, 2015 at 1:42 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: I am now thinking of how to isolate this code to write a proper test. This is not going to be successful tonight, while the original seven samurai is on tv. Maybe reverting is the best option and we live with findbugs regression for a day. I will think of a way to fix this tomorrow wit a more clear head. On Thu, Jul 30, 2015 at 9:33 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: But reintroduced the vulnerability that findbugs was complaining about... I think the problem is in this bit: int i=0; for (Map.EntryString, String detail : details.entrySet()) { pstmt.setString(++i,detail.getKey()); pstmt.setString(++i,detail.getValue()); } ++i should have been i++ in both cases. I messed those in my review, sorry On Thu, Jul 30, 2015 at 9:24 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: No problem, Daan. :) Just from an empirical standpoint, though, reverting the commit in my local repo fixed the problem. On Thu, Jul 30, 2015 at 1:20 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: never mind that again, answerring to fast as I probably do one out of two or three times :( Looking further... On Thu, Jul 30, 2015 at 9:19 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: Mike, I am looking at the commit and it makes perfect sense as the the prior situation was creating a prepared statement based on dynamicly added strings. The only queer thing is that the int i = 1 is replaced with i = 1, reusing the loop counter instead of hiding it. Maybe this is the problem On Thu, Jul 30, 2015 at 8:55 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I see the problem. The way a SQL statement was constructed was changed by commit b84093f691ae0b09d2c525d50f2e2d200c709b2c: https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f=engine/schema/src/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java;h=d3c29f70d6ab56379c2436b5cafc933049200f31;hp=faf5291554a68506b14438a7e1cda61cd4c3cc0c;hb=b84093f691ae0b09d2c525d50f2e2d200c709b2c;hpb=1407033cc2e0742653d82bb0181c041b31253693 and no longer makes any sense SELECT storage_pool.* from storage_pool LEFT JOIN storage_pool_details ON storage_pool.id = storage_pool_details.pool_id WHERE storage_pool.removed is null and storage_pool.status =
Re: [4.6] RC1 soon ?
I am now thinking of how to isolate this code to write a proper test. This is not going to be successful tonight, while the original seven samurai is on tv. Maybe reverting is the best option and we live with findbugs regression for a day. I will think of a way to fix this tomorrow wit a more clear head. On Thu, Jul 30, 2015 at 9:33 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: But reintroduced the vulnerability that findbugs was complaining about... I think the problem is in this bit: int i=0; for (Map.EntryString, String detail : details.entrySet()) { pstmt.setString(++i,detail.getKey()); pstmt.setString(++i,detail.getValue()); } ++i should have been i++ in both cases. I messed those in my review, sorry On Thu, Jul 30, 2015 at 9:24 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: No problem, Daan. :) Just from an empirical standpoint, though, reverting the commit in my local repo fixed the problem. On Thu, Jul 30, 2015 at 1:20 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: never mind that again, answerring to fast as I probably do one out of two or three times :( Looking further... On Thu, Jul 30, 2015 at 9:19 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: Mike, I am looking at the commit and it makes perfect sense as the the prior situation was creating a prepared statement based on dynamicly added strings. The only queer thing is that the int i = 1 is replaced with i = 1, reusing the loop counter instead of hiding it. Maybe this is the problem On Thu, Jul 30, 2015 at 8:55 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I see the problem. The way a SQL statement was constructed was changed by commit b84093f691ae0b09d2c525d50f2e2d200c709b2c: https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f=engine/schema/src/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java;h=d3c29f70d6ab56379c2436b5cafc933049200f31;hp=faf5291554a68506b14438a7e1cda61cd4c3cc0c;hb=b84093f691ae0b09d2c525d50f2e2d200c709b2c;hpb=1407033cc2e0742653d82bb0181c041b31253693 and no longer makes any sense SELECT storage_pool.* from storage_pool LEFT JOIN storage_pool_details ON storage_pool.id = storage_pool_details.pool_id WHERE storage_pool.removed is null and storage_pool.status = 'Up' and storage_pool.data_center_id = 1 and storage_pool.scope = 'ZONE' and (((storage_pool_details.name=1) AND (storage_pool_details.value=** NOT SPECIFIED **))) GROUP BY storage_pool_details.pool_id HAVING COUNT(storage_pool_details.name) = ** NOT SPECIFIED ** I think I'm just going to revert this commit. It was related to a change put in at the request of FindBugs. I've CCed the relevant participants in the commit in case they wish to re-evaluate the FindBugs request and resubmit a fix. On Thu, Jul 30, 2015 at 12:13 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: FYI that I get the same error message when trying to attach a data disk that is based on zone-wide primary storage. On Thu, Jul 30, 2015 at 12:10 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I'm actually having trouble creating a VM whose root disk runs on zone-wide primary storage. This is definitely a blocker for 4.6. I'm just beginning to look into this, but this is the error message I receive: findZoneWideStoragePoolsByTags:Exception:No value specified for parameter 4 On Mon, Jul 27, 2015 at 8:51 PM, Pierre-Luc Dion pdion...@apache.org wrote: Hi, I've create this jira filter[1] for the Release Manager, based on it, there would be only 4 maybe just 3 blockers on 4.6. Based on this, should we consider placing a target date for RC1 somewhere like end of August ? What's missing and to do in 4.6 as far as I know: 1. Basic documentation of new features, 2. Decide if we let it in master and freeze merge during RC ? 3. Build all job as 4.6 in jenkins ? 4. Organize a QA-party, like old time lan-party [1] https://issues.apache.org/jira/issues/?filter=12332940 -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Daan -- Daan -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Daan -- Daan
Re: [GitHub] cloudstack pull request: initial dockerization commit.
Hello dev@! I'm looking for another LGTM (real one, please read the PR) as replacement of Seb, PR #623 replace the PR #605 based on Seb's comments. Cheers, On Mon, Jul 27, 2015 at 4:52 AM, wido g...@git.apache.org wrote: Github user wido commented on the pull request: https://github.com/apache/cloudstack/pull/623#issuecomment-125132961 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
Re: [Blocker] Default ip table rules on VR
Thanks for working on it Wilder !! On Thu, Jul 30, 2015 at 6:05 PM, Wilder Rodrigues wrodrig...@schubergphilis.com wrote: Hi, We discussed that one yesterday and I already assigned the issue to myself on Jira. I will fix it. Cheers, WIlder On 30 Jul 2015, at 14:09, Sanjeev N sanj...@apache.org wrote: Agree with Kishan Kavala and Jayapal. On Thu, Jul 30, 2015 at 2:13 PM, Kishan Kavala kishan.kav...@citrix.com wrote: This is a security issue with high impact. We should treat it as a blocker. -Original Message- From: Jayapal Reddy Uradi [mailto:jayapalreddy.ur...@citrix.com] Sent: 30 July 2015 02:07 PM To: dev@cloudstack.apache.org dev@cloudstack.apache.org Subject: Re: [Blocker] Default ip table rules on VR I see VR ingress traffic is blocked by default from iptables mangle table. But on the guest interface all the traffic is accepted. Also egress firewall rule will break because of FORWARD policy. Thanks, Jayapal On 30-Jul-2015, at 12:53 PM, Jayapal Reddy Uradi jayapalreddy.ur...@citrix.com wrote: It is security concern on the VR. All the ingress traffic onto the VR is accepted. Let it be blocker. Thanks, Jayapal On 30-Jul-2015, at 12:28 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: I changed it to critical. It is only a blocker if we agree on this list that it is. On Thu, Jul 30, 2015 at 6:44 AM, Sanjeev N sanj...@apache.org wrote: Hi, In latest ACS builds, the ip table rules in VR have ACCEPT as the default policy in INPUT and FORWARD chains, instead of DROP. Created a blocker bug for this issue https://issues.apache.org/jira/browse/CLOUDSTACK-8688 Can somebody please fix it? Thanks, Sanjeev -- Daan
Re: New snapshot(s) text in GUI
FYI that I just fixed this little snapshot(s) issue tonight in master. Here's the SHA: c0230273cdbdf2558f4a0802d177bd5757de34fd On Mon, Dec 29, 2014 at 6:38 PM, Nux! n...@li.nux.ro wrote: +1 for reverting, looks unprofessional/inconsistent -- Sent from the Delta quadrant using Borg technology! Nux! www.nux.ro - Original Message - From: Mike Tutkowski mike.tutkow...@solidfire.com To: dev@cloudstack.apache.org Sent: Monday, 29 December, 2014 22:26:26 Subject: New snapshot(s) text in GUI Hi, In 4.6 (master), I notice we now use the term snapshot(s) instead of Snapshots (for example, click on a volume and under its details panel in the upper right, it says, snapshot(s)). This is a bit non standard for the way the rest of the GUI looks. For example, we say: Volumes, SSH Key Pairs, Templates, Events, Alerts, etc. (For example, we don't say alert(s) anywhere, to my knowledge.) It seems like snapshot(s) should be changed back to Snapshots. What do people think? -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud http://solidfire.com/solution/overview/?video=play*™* -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud http://solidfire.com/solution/overview/?video=play*™*
[GitHub] cloudstack pull request: CLOUDSTACK-8686:Verify data disk attachme...
Github user pritisarap12 commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/631#discussion_r35947714 --- Diff: test/integration/testpaths/testpath_attach_disk_zwps.py --- @@ -0,0 +1,185 @@ +# 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. + Test case for Data Disk Attach to VM on ZWPS Test Path + + +from nose.plugins.attrib import attr +from marvin.cloudstackTestCase import cloudstackTestCase +from marvin.lib.utils import (cleanup_resources, + validateList) +from marvin.lib.base import (Account, + ServiceOffering, + DiskOffering, + Volume, + VirtualMachine, + StoragePool + ) +from marvin.lib.common import (get_domain, + get_zone, + get_template + ) + +from marvin.codes import (PASS, + ZONETAG1) + + +class TestAttachDataDisk(cloudstackTestCase): + +@classmethod +def setUpClass(cls): +testClient = super(TestAttachDataDisk, cls).getClsTestClient() +cls.apiclient = testClient.getApiClient() +cls.testdata = testClient.getParsedTestDataConfig() +cls.hypervisor = cls.testClient.getHypervisorInfo() + +# Get Zone, Domain and templates +cls.domain = get_domain(cls.apiclient) +cls.zone = get_zone(cls.apiclient, testClient.getZoneForTests()) +cls._cleanup = [] +cls.template = get_template( +cls.apiclient, +cls.zone.id, +cls.testdata[ostype]) +cls.skiptest = False + +try: +cls.pools = StoragePool.list(cls.apiclient, zoneid=cls.zone.id) +except Exception as e: +cls.skiptest = True +return +try: + +# Create an account +cls.account = Account.create( +cls.apiclient, +cls.testdata[account], +domainid=cls.domain.id +) +cls._cleanup.append(cls.account) + +# Create user api client of the account +cls.userapiclient = testClient.getUserApiClient( +UserName=cls.account.name, +DomainName=cls.account.domain +) +# Create Service offering +cls.service_offering_zone1 = ServiceOffering.create( +cls.apiclient, +cls.testdata[service_offering], +tags=ZONETAG1 +) +cls._cleanup.append(cls.service_offering_zone1) + +# Create Disk offering +cls.disk_offering = DiskOffering.create( +cls.apiclient, +cls.testdata[disk_offering] +) + +cls._cleanup.append(cls.disk_offering) + +except Exception as e: +cls.tearDownClass() +raise e +return + +@classmethod +def tearDownClass(cls): +try: +cleanup_resources(cls.apiclient, cls._cleanup) +except Exception as e: +raise Exception(Warning: Exception during cleanup : %s % e) + +def setUp(self): +self.apiclient = self.testClient.getApiClient() +self.dbclient = self.testClient.getDbConnection() +self.cleanup = [] + +def tearDown(self): +try: +if hasattr(self, data_volume_created): +data_volumes_list = Volume.list( +self.userapiclient, +id=self.data_volume_created.id, +virtualmachineid=self.vm.id +) +
[GitHub] cloudstack pull request: Coverity Issue: Resource Leak fixed
Github user kansal commented on the pull request: https://github.com/apache/cloudstack/pull/643#issuecomment-126570824 @DaanHoogland @miguelaferreira I understand you concerns. I have created the ticket for this in JIRA with ID: CLOUDSTACK-8692. Will keep this in mind while for future commits. 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
Small grammatical point to clarify
Hi everyone, I just checked in a couple changes to messages.properties in master. One thing I'd like to note is what I changed in e640e0cf6eb9508f74f9bad59519f7189da7d82e. https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f=client/WEB-INF/classes/resources/messages.properties;h=f81a196cf711d709af6a399a6f5e6d275dd7e951;hp=dcbf6c83a24a4cfd6977659d4f531c64c1786edb;hb=e640e0cf6eb9508f74f9bad59519f7189da7d82e;hpb=c0230273cdbdf2558f4a0802d177bd5757de34fd In this commit, I changed Setup to Set up where applicable. This is not necessarily common knowledge among native English speakers, but words like Setup versus Set up, Login versus Log in, etc. represent the difference between the noun (or adjective) form versus the verb form. For example: Your setup is perfect. // setup being used in the noun form (similar to the word configuration here) Follow the setup instructions. // setup being used in the adjective form versus I need to set up my system better. // set up being used in the verb form Not a big deal. :) Just something I noticed a while ago and finally corrected. The most common one (which I may address later) is login versus log in. Talk to you later! -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud http://solidfire.com/solution/overview/?video=play*™*
Re: [4.6] RC1 soon ?
I see the problem. The way a SQL statement was constructed was changed by commit b84093f691ae0b09d2c525d50f2e2d200c709b2c: https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f=engine/schema/src/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java;h=d3c29f70d6ab56379c2436b5cafc933049200f31;hp=faf5291554a68506b14438a7e1cda61cd4c3cc0c;hb=b84093f691ae0b09d2c525d50f2e2d200c709b2c;hpb=1407033cc2e0742653d82bb0181c041b31253693 and no longer makes any sense SELECT storage_pool.* from storage_pool LEFT JOIN storage_pool_details ON storage_pool.id = storage_pool_details.pool_id WHERE storage_pool.removed is null and storage_pool.status = 'Up' and storage_pool.data_center_id = 1 and storage_pool.scope = 'ZONE' and (((storage_pool_details.name=1) AND (storage_pool_details.value=** NOT SPECIFIED **))) GROUP BY storage_pool_details.pool_id HAVING COUNT(storage_pool_details.name) = ** NOT SPECIFIED ** I think I'm just going to revert this commit. It was related to a change put in at the request of FindBugs. I've CCed the relevant participants in the commit in case they wish to re-evaluate the FindBugs request and resubmit a fix. On Thu, Jul 30, 2015 at 12:13 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: FYI that I get the same error message when trying to attach a data disk that is based on zone-wide primary storage. On Thu, Jul 30, 2015 at 12:10 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I'm actually having trouble creating a VM whose root disk runs on zone-wide primary storage. This is definitely a blocker for 4.6. I'm just beginning to look into this, but this is the error message I receive: findZoneWideStoragePoolsByTags:Exception:No value specified for parameter 4 On Mon, Jul 27, 2015 at 8:51 PM, Pierre-Luc Dion pdion...@apache.org wrote: Hi, I've create this jira filter[1] for the Release Manager, based on it, there would be only 4 maybe just 3 blockers on 4.6. Based on this, should we consider placing a target date for RC1 somewhere like end of August ? What's missing and to do in 4.6 as far as I know: 1. Basic documentation of new features, 2. Decide if we let it in master and freeze merge during RC ? 3. Build all job as 4.6 in jenkins ? 4. Organize a QA-party, like old time lan-party [1] https://issues.apache.org/jira/issues/?filter=12332940 -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud http://solidfire.com/solution/overview/?video=play*™* -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud http://solidfire.com/solution/overview/?video=play*™* -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud http://solidfire.com/solution/overview/?video=play*™*
Re: [4.6] RC1 soon ?
Mike, I am looking at the commit and it makes perfect sense as the the prior situation was creating a prepared statement based on dynamicly added strings. The only queer thing is that the int i = 1 is replaced with i = 1, reusing the loop counter instead of hiding it. Maybe this is the problem On Thu, Jul 30, 2015 at 8:55 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I see the problem. The way a SQL statement was constructed was changed by commit b84093f691ae0b09d2c525d50f2e2d200c709b2c: https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=blobdiff;f=engine/schema/src/org/apache/cloudstack/storage/datastore/db/PrimaryDataStoreDaoImpl.java;h=d3c29f70d6ab56379c2436b5cafc933049200f31;hp=faf5291554a68506b14438a7e1cda61cd4c3cc0c;hb=b84093f691ae0b09d2c525d50f2e2d200c709b2c;hpb=1407033cc2e0742653d82bb0181c041b31253693 and no longer makes any sense SELECT storage_pool.* from storage_pool LEFT JOIN storage_pool_details ON storage_pool.id = storage_pool_details.pool_id WHERE storage_pool.removed is null and storage_pool.status = 'Up' and storage_pool.data_center_id = 1 and storage_pool.scope = 'ZONE' and (((storage_pool_details.name=1) AND (storage_pool_details.value=** NOT SPECIFIED **))) GROUP BY storage_pool_details.pool_id HAVING COUNT(storage_pool_details.name) = ** NOT SPECIFIED ** I think I'm just going to revert this commit. It was related to a change put in at the request of FindBugs. I've CCed the relevant participants in the commit in case they wish to re-evaluate the FindBugs request and resubmit a fix. On Thu, Jul 30, 2015 at 12:13 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: FYI that I get the same error message when trying to attach a data disk that is based on zone-wide primary storage. On Thu, Jul 30, 2015 at 12:10 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I'm actually having trouble creating a VM whose root disk runs on zone-wide primary storage. This is definitely a blocker for 4.6. I'm just beginning to look into this, but this is the error message I receive: findZoneWideStoragePoolsByTags:Exception:No value specified for parameter 4 On Mon, Jul 27, 2015 at 8:51 PM, Pierre-Luc Dion pdion...@apache.org wrote: Hi, I've create this jira filter[1] for the Release Manager, based on it, there would be only 4 maybe just 3 blockers on 4.6. Based on this, should we consider placing a target date for RC1 somewhere like end of August ? What's missing and to do in 4.6 as far as I know: 1. Basic documentation of new features, 2. Decide if we let it in master and freeze merge during RC ? 3. Build all job as 4.6 in jenkins ? 4. Organize a QA-party, like old time lan-party [1] https://issues.apache.org/jira/issues/?filter=12332940 -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Mike Tutkowski Senior CloudStack Developer, SolidFire Inc. e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud™ -- Daan
[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126202911 @koushik-das, Ignoring interrupted exceptions means that you do not allow the user or other threads to interrupt you. To me that seems serious. I did not in any case see comment about why it was done so I rigorously added the messages. As for level; On one hand you are right @wilderrodrigues , as some errors that have been ignored in the past have been problems. On the other hand, someone did think it was safe to ignore those errors. The real job is to asses all the messages on level but I regard that out of scope for this PR. Maybe some of them should be WARN or even ERROR and others merely DEBUG or TRACE. I put the tag [ignored] there so we know we must considder them for either proper handling or another level of logging. --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...
Github user wilderrodrigues commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126204154 Fair enough, @DaanHoogland Thanks for the exaplanation. :) LGTM :+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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Added a test to verify that listSnapshots...
Github user asfgit closed the pull request at: https://github.com/apache/cloudstack/pull/632 --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...
Github user wido commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126214607 Code wise it is 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: CLOUDSTACK-8689: Verify effect of changin...
Github user sanju1010 commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/638#discussion_r35848618 --- Diff: test/integration/testpaths/testpath_hypervisor_limit.py --- @@ -0,0 +1,191 @@ +# 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. + + Test cases to Verify effect of changing value of XenServer +Max guest limit on previously added hosts + + +from nose.plugins.attrib import attr +from marvin.cloudstackTestCase import cloudstackTestCase +from marvin.lib.utils import (cleanup_resources, +validateList) +from marvin.lib.base import (Account, + ServiceOffering, + VirtualMachine, + Host + ) +from marvin.lib.common import (get_domain, + get_zone, + get_template, + ) + + +from marvin.cloudstackAPI import (updateHypervisorCapabilities, + listHypervisorCapabilities) + +from marvin.codes import PASS + + + +class TestMaxHyperviosrLimit(cloudstackTestCase): + +@classmethod +def setUpClass(cls): +testClient = super(TestMaxHyperviosrLimit, cls).getClsTestClient() +cls.apiclient = testClient.getApiClient() +cls.testdata = testClient.getParsedTestDataConfig() + +cls.hypervisor = cls.testClient.getHypervisorInfo() +# Get Zone, Domain and templates +cls.domain = get_domain(cls.apiclient) +cls.zone = get_zone(cls.apiclient, testClient.getZoneForTests()) + +cls.template = get_template( +cls.apiclient, +cls.zone.id, +cls.testdata[ostype]) + +cls._cleanup = [] +hostList = Host.list(cls.apiclient, zoneid=cls.zone.id, type=Routing) +cls.host = Host(hostList[0].__dict__) +try: + +cls.skiptest = False +if cls.hypervisor.lower() not in ['xenserver']: +cls.skiptest = True +return +# Create an account +cls.account = Account.create( +cls.apiclient, +cls.testdata[account], +domainid=cls.domain.id +) + +# Create user api client of the account +cls.userapiclient = testClient.getUserApiClient( +UserName=cls.account.name, +DomainName=cls.account.domain +) +# Create Service offering +cls.service_offering = ServiceOffering.create( +cls.apiclient, +cls.testdata[service_offering], +) + +cls._cleanup = [ +cls.account, +cls.service_offering, +] +except Exception as e: +cls.tearDownClass() +raise e +return + +@classmethod +def tearDownClass(cls): +try: +cleanup_resources(cls.apiclient, cls._cleanup) +except Exception as e: +raise Exception(Warning: Exception during cleanup : %s % e) + +def setUp(self): +self.cleanup = [] +if self.skiptest: +self.skipTest(This test is to be checked on xenserver \ +only Hence, skip for %s % self.hypervisor) + +self.apiclient = self.testClient.getApiClient() +self.dbclient = self.testClient.getDbConnection() + +def tearDown(self): +try: + +cmd = updateHypervisorCapabilities.updateHypervisorCapabilitiesCmd() +cmd.id = self.hostCapId +cmd.maxguestslimit = self.originalLimit +self.apiclient.updateHypervisorCapabilities(cmd)
[GitHub] cloudstack pull request: CLOUDSTACK-8687: Prepare template only on...
Github user devdeep commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/635#discussion_r35849928 --- Diff: api/src/org/apache/cloudstack/api/command/admin/template/PrepareTemplateCmd.java --- @@ -60,6 +61,15 @@ description = template ID of the template to be prepared in primary storage(s).) private Long templateId; +@ACL(accessType = AccessType.OperateEntry) +@Parameter(name = ApiConstants.STORAGE_ID, +type = CommandType.UUID, +entityType = StoragePoolResponse.class, +required = false, +description = storage pool ID of the primary storage pool to which the template should be prepared. If it is not provided the template + + is prepared on all the available primary storage pools.) +private Long storageId; --- End diff -- @kishankavala There isn't a poolid or storagePoolid constant available in apiconstants. I had looked for it and couldn't find it. Moreover, storageId is the parameter name used through the apis whenever a primary storage pool is referred, for example in list/update/migrate volumes, volume response etc. So I decided to use storageId here too for consistency, instead of defining a new one. --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...
Github user wilderrodrigues commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126215256 @kishankavala @DaanHoogland :+1: for the Jira ticket. After 4.6 we can come back to this and assess the messages accordingly. But would be nice to have the logs in systems running 4.6. Cheers, Wilder --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: CLOUDSTACK-8689: Verify effect of changin...
Github user sanju1010 commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/638#discussion_r35848734 --- Diff: test/integration/testpaths/testpath_hypervisor_limit.py --- @@ -0,0 +1,191 @@ +# 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. + + Test cases to Verify effect of changing value of XenServer +Max guest limit on previously added hosts + + +from nose.plugins.attrib import attr +from marvin.cloudstackTestCase import cloudstackTestCase +from marvin.lib.utils import (cleanup_resources, +validateList) +from marvin.lib.base import (Account, + ServiceOffering, + VirtualMachine, + Host + ) +from marvin.lib.common import (get_domain, + get_zone, + get_template, + ) + + +from marvin.cloudstackAPI import (updateHypervisorCapabilities, + listHypervisorCapabilities) + +from marvin.codes import PASS + + + +class TestMaxHyperviosrLimit(cloudstackTestCase): + +@classmethod +def setUpClass(cls): +testClient = super(TestMaxHyperviosrLimit, cls).getClsTestClient() +cls.apiclient = testClient.getApiClient() +cls.testdata = testClient.getParsedTestDataConfig() + +cls.hypervisor = cls.testClient.getHypervisorInfo() +# Get Zone, Domain and templates +cls.domain = get_domain(cls.apiclient) +cls.zone = get_zone(cls.apiclient, testClient.getZoneForTests()) + +cls.template = get_template( +cls.apiclient, +cls.zone.id, +cls.testdata[ostype]) + +cls._cleanup = [] +hostList = Host.list(cls.apiclient, zoneid=cls.zone.id, type=Routing) +cls.host = Host(hostList[0].__dict__) +try: + +cls.skiptest = False +if cls.hypervisor.lower() not in ['xenserver']: +cls.skiptest = True +return +# Create an account +cls.account = Account.create( +cls.apiclient, +cls.testdata[account], +domainid=cls.domain.id +) + +# Create user api client of the account +cls.userapiclient = testClient.getUserApiClient( +UserName=cls.account.name, +DomainName=cls.account.domain +) +# Create Service offering +cls.service_offering = ServiceOffering.create( +cls.apiclient, +cls.testdata[service_offering], +) + +cls._cleanup = [ +cls.account, +cls.service_offering, +] +except Exception as e: +cls.tearDownClass() +raise e +return + +@classmethod +def tearDownClass(cls): +try: +cleanup_resources(cls.apiclient, cls._cleanup) +except Exception as e: +raise Exception(Warning: Exception during cleanup : %s % e) + +def setUp(self): +self.cleanup = [] +if self.skiptest: +self.skipTest(This test is to be checked on xenserver \ +only Hence, skip for %s % self.hypervisor) + +self.apiclient = self.testClient.getApiClient() +self.dbclient = self.testClient.getDbConnection() + +def tearDown(self): +try: + +cmd = updateHypervisorCapabilities.updateHypervisorCapabilitiesCmd() +cmd.id = self.hostCapId +cmd.maxguestslimit = self.originalLimit +self.apiclient.updateHypervisorCapabilities(cmd)
[GitHub] cloudstack pull request: CLOUDSTACK-8687: Prepare template only on...
Github user kishankavala commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/635#discussion_r35849002 --- Diff: api/src/org/apache/cloudstack/api/command/admin/template/PrepareTemplateCmd.java --- @@ -60,6 +61,15 @@ description = template ID of the template to be prepared in primary storage(s).) private Long templateId; +@ACL(accessType = AccessType.OperateEntry) +@Parameter(name = ApiConstants.STORAGE_ID, +type = CommandType.UUID, +entityType = StoragePoolResponse.class, +required = false, +description = storage pool ID of the primary storage pool to which the template should be prepared. If it is not provided the template + + is prepared on all the available primary storage pools.) +private Long storageId; --- End diff -- better to use poolId ou storagePoolId instead of storageId to be consistent --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
Re: [Blocker] Default ip table rules on VR
I see VR ingress traffic is blocked by default from iptables mangle table. But on the guest interface all the traffic is accepted. Also egress firewall rule will break because of FORWARD policy. Thanks, Jayapal On 30-Jul-2015, at 12:53 PM, Jayapal Reddy Uradi jayapalreddy.ur...@citrix.com wrote: It is security concern on the VR. All the ingress traffic onto the VR is accepted. Let it be blocker. Thanks, Jayapal On 30-Jul-2015, at 12:28 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: I changed it to critical. It is only a blocker if we agree on this list that it is. On Thu, Jul 30, 2015 at 6:44 AM, Sanjeev N sanj...@apache.org wrote: Hi, In latest ACS builds, the ip table rules in VR have ACCEPT as the default policy in INPUT and FORWARD chains, instead of DROP. Created a blocker bug for this issue https://issues.apache.org/jira/browse/CLOUDSTACK-8688 Can somebody please fix it? Thanks, Sanjeev -- Daan
RE: [Blocker] Default ip table rules on VR
This is a security issue with high impact. We should treat it as a blocker. -Original Message- From: Jayapal Reddy Uradi [mailto:jayapalreddy.ur...@citrix.com] Sent: 30 July 2015 02:07 PM To: dev@cloudstack.apache.org dev@cloudstack.apache.org Subject: Re: [Blocker] Default ip table rules on VR I see VR ingress traffic is blocked by default from iptables mangle table. But on the guest interface all the traffic is accepted. Also egress firewall rule will break because of FORWARD policy. Thanks, Jayapal On 30-Jul-2015, at 12:53 PM, Jayapal Reddy Uradi jayapalreddy.ur...@citrix.com wrote: It is security concern on the VR. All the ingress traffic onto the VR is accepted. Let it be blocker. Thanks, Jayapal On 30-Jul-2015, at 12:28 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: I changed it to critical. It is only a blocker if we agree on this list that it is. On Thu, Jul 30, 2015 at 6:44 AM, Sanjeev N sanj...@apache.org wrote: Hi, In latest ACS builds, the ip table rules in VR have ACCEPT as the default policy in INPUT and FORWARD chains, instead of DROP. Created a blocker bug for this issue https://issues.apache.org/jira/browse/CLOUDSTACK-8688 Can somebody please fix it? Thanks, Sanjeev -- Daan
Cloudstack commands to Xen hosts
Hi all, I was wondering, how does CS send commands to Xen hosts? Does it use SSH? Cheers
RE: Cloudstack commands to Xen hosts
Either http or https..not sure which. xapi runs on ports 80 and 443 on each XenServer, so it hits one of those with an API request Todd Hebert Hosting engineer E: theb...@digiweb.ie A: College Business Technology Park, Blanchardstown, Dublin 15, Ireland W: http://www.digiweb.ie/ -Original Message- From: Gabriel Beims Bräscher [mailto:gabrasc...@gmail.com] Sent: 30 July 2015 17:24 To: dev@cloudstack.apache.org Subject: Cloudstack commands to Xen hosts Hi all, I was wondering, how does CS send commands to Xen hosts? Does it use SSH? Cheers
Re: [4.6] RC1 soon ?
FYI that I get the same error message when trying to attach a data disk that is based on zone-wide primary storage. On Thu, Jul 30, 2015 at 12:10 PM, Mike Tutkowski mike.tutkow...@solidfire.com wrote: I'm actually having trouble creating a VM whose root disk runs on zone-wide primary storage. This is definitely a blocker for 4.6. I'm just beginning to look into this, but this is the error message I receive: findZoneWideStoragePoolsByTags:Exception:No value specified for parameter 4 On Mon, Jul 27, 2015 at 8:51 PM, Pierre-Luc Dion pdion...@apache.org wrote: Hi, I've create this jira filter[1] for the Release Manager, based on it, there would be only 4 maybe just 3 blockers on 4.6. Based on this, should we consider placing a target date for RC1 somewhere like end of August ? What's missing and to do in 4.6 as far as I know: 1. Basic documentation of new features, 2. Decide if we let it in master and freeze merge during RC ? 3. Build all job as 4.6 in jenkins ? 4. Organize a QA-party, like old time lan-party [1] https://issues.apache.org/jira/issues/?filter=12332940 -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud http://solidfire.com/solution/overview/?video=play*™* -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud http://solidfire.com/solution/overview/?video=play*™*
[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...
Github user wilderrodrigues commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126200897 Hi @DaanHoogland Nice you took time to have a look at those. It really helps sys admins to know what is going on with ACS. However, I would rather have them logged as WARN over INFO. Why? Because if we fall into the catch block, is because something went wrong or might probably require manual intervention. If you agree, would that be a lot of work to change them into WARN? Concerning the logs getting filled up too soon, I wouldn't really bother. From my point of view that's an admin task to have a clever rotation of logs. If ACS code base was more robust, we could afford less logs and filling up files wouldn't be a problem. But since it isn't, let's make sure the users/admins are aware about what is happening. With respect to the InterruptedExceptions, we can log them as debug, but ignoring them completely wouldn't be nice. Cheers, Wilder --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126206244 @kishankavala you actually made me think I should wait till after 4.6, on the other hand we will have to take the pain in a release. --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: CLOUDSTACK-8689: Verify effect of changin...
GitHub user pritisarap12 opened a pull request: https://github.com/apache/cloudstack/pull/638 CLOUDSTACK-8689: Verify effect of changing value of XenServer Max guest limit Verify effect of changing value of Max guest limit of XenServer on previously added hosts -Check if it reads changed value and act accordingly You can merge this pull request into a Git repository by running: $ git pull https://github.com/pritisarap12/cloudstack CLOUDSTACK-8689-Verify-effect-of-changing-value-of-XenServer-Max-guest-limitis-on-previously-added-hosts Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/638.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 #638 commit e2c578f7fa29404213a26c80458e1e51fc494759 Author: Priti Sarap priti.sa...@clogeny.com Date: 2015-07-30T07:30:39Z CLOUDSTACK-8689: Verify effect of changing value of XenServer Max guest limitis on previously added hosts --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: CLOUDSTACK-8668: VR type in shared networ...
Github user wilderrodrigues commented on the pull request: https://github.com/apache/cloudstack/pull/627#issuecomment-126196695 Awesome, thanks! Cheers, Wilder Sent from my iPhone On 30 Jul 2015, at 07:22, kishankavala notificati...@github.commailto:notificati...@github.com wrote: Hi @wilderrodrigueshttps://github.com/wilderrodrigues, @sanjeevneelarapuhttps://github.com/sanjeevneelarapu filed ticket for default policy ACCEPT issue. https://issues.apache.org/jira/browse/CLOUDSTACK-8688 â Reply to this email directly or view it on GitHubhttps://github.com/apache/cloudstack/pull/627#issuecomment-126186427. --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
Re: [Blocker] Default ip table rules on VR
I changed it to critical. It is only a blocker if we agree on this list that it is. On Thu, Jul 30, 2015 at 6:44 AM, Sanjeev N sanj...@apache.org wrote: Hi, In latest ACS builds, the ip table rules in VR have ACCEPT as the default policy in INPUT and FORWARD chains, instead of DROP. Created a blocker bug for this issue https://issues.apache.org/jira/browse/CLOUDSTACK-8688 Can somebody please fix it? Thanks, Sanjeev -- Daan
[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...
Github user kishankavala commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126205414 @DaanHoogland Agreed that setting appropriate log level is out of the scope for this PR. But we should file a jira ticket to track and address it before next release. --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
Re: [Blocker] Default ip table rules on VR
It is security concern on the VR. All the ingress traffic onto the VR is accepted. Let it be blocker. Thanks, Jayapal On 30-Jul-2015, at 12:28 PM, Daan Hoogland daan.hoogl...@gmail.com wrote: I changed it to critical. It is only a blocker if we agree on this list that it is. On Thu, Jul 30, 2015 at 6:44 AM, Sanjeev N sanj...@apache.org wrote: Hi, In latest ACS builds, the ip table rules in VR have ACCEPT as the default policy in INPUT and FORWARD chains, instead of DROP. Created a blocker bug for this issue https://issues.apache.org/jira/browse/CLOUDSTACK-8688 Can somebody please fix it? Thanks, Sanjeev -- Daan
[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...
Github user asfgit closed the pull request at: https://github.com/apache/cloudstack/pull/637 --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
Re: [4.6] RC1 soon ?
I'm actually having trouble creating a VM whose root disk runs on zone-wide primary storage. This is definitely a blocker for 4.6. I'm just beginning to look into this, but this is the error message I receive: findZoneWideStoragePoolsByTags:Exception:No value specified for parameter 4 On Mon, Jul 27, 2015 at 8:51 PM, Pierre-Luc Dion pdion...@apache.org wrote: Hi, I've create this jira filter[1] for the Release Manager, based on it, there would be only 4 maybe just 3 blockers on 4.6. Based on this, should we consider placing a target date for RC1 somewhere like end of August ? What's missing and to do in 4.6 as far as I know: 1. Basic documentation of new features, 2. Decide if we let it in master and freeze merge during RC ? 3. Build all job as 4.6 in jenkins ? 4. Organize a QA-party, like old time lan-party [1] https://issues.apache.org/jira/issues/?filter=12332940 -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud http://solidfire.com/solution/overview/?video=play*™*
[GitHub] cloudstack pull request: Coverity Issue: Resource Leak fixed
GitHub user kansal opened a pull request: https://github.com/apache/cloudstack/pull/643 Coverity Issue: Resource Leak fixed Resource leak fixed. Please review. You can merge this pull request into a Git repository by running: $ git pull https://github.com/kansal/cloudstack Coverity-17897 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/643.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 #643 commit 8f083a5e4087c0a89f16e16ccfad592d678cbc09 Author: Kshitij Kansal kshitij.kan...@citrix.com Date: 2015-07-30T10:53:50Z Coverity Issue: Resource Leak fixed --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Coverity Issue: Resource Leak fixed
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/643#issuecomment-126274712 @kansal please add the coverity number to the commit message, this way we can not track it. And while you look at it make sure you put the issue on your name to prevent any double effort. --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Update NiciraNvpGuestNetworkGuru.java
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/636#issuecomment-126250367 @sspans yes but they might be tempted to do some vxlanning after upgrading ACS not upgrading NSX . what would happen? --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Update NiciraNvpGuestNetworkGuru.java
Github user sspans commented on the pull request: https://github.com/apache/cloudstack/pull/636#issuecomment-126250153 Testing and a unit-test will still be added. We need this feature because we're planning to roll out new zones with VXLAN, which if the changes remain small would ideally also be backported to 4.4. --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Update NiciraNvpGuestNetworkGuru.java
Github user sspans commented on the pull request: https://github.com/apache/cloudstack/pull/636#issuecomment-126257887 The plugin would fail, similar to how it fails now when you ask ik to do vxlan when it only supports STT. The encapsulation type is something that you first configure in NSX and then in cloudstack. So the scenario you're trying to propose is really very unrealistic. NB: NSX releases supporting only STT don't seem to be available for download anymore. --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
Re: Git Rebase Question
Happy to know your problem is fixed. Cheers \ Miguel Ferreira mferre...@schubergphilis.commailto:mferre...@schubergphilis.com On 29 Jul 2015, at 19:34, Mike Tutkowski mike.tutkow...@solidfire.commailto:mike.tutkow...@solidfire.com wrote: Hi Miguel, I appreciate your willingness to help - thanks! As it turns out, however - and you may have read this in a subsequent e-mail after you sent yours, I was able to perform a rebase without issue by switching over to another dev machine. I don't know if it was due to switching the OS Git was running on (probably unlikely), if it was because it was a different (older, in this case) version of Git I had running on the other dev machine, or if there was just some weird state on my original machine that was messing Git up, but it works now (at least on the 2nd dev machine). Thanks! Mike On Wed, Jul 29, 2015 at 3:43 AM, Miguel Ferreira mferre...@schubergphilis.commailto:mferre...@schubergphilis.com wrote: Hi Mike, I’m willing to help you with this, but the easiest way would be for you to point me to the repo you are working on. This way I could actually see what’s going on. Anyway, from your description, all the files might be new in your modified branch, but a file with the same name might have been introduced in the 4.5 branch upstream. Could that be the case? I can think of other situations that could result in such conflicts, for example, when your modified branch has merges coming form other local or remote branches. If you could point me to your modified branch and tell me which branch yo want to pull and rebase from, I could give it a try and let you know what I find. Cheers, \ Miguel Ferreira mferre...@schubergphilis.commailto:mferre...@schubergphilis.commailto:mferre...@schubergphilis.com On 15 Jul 2015, at 03:03, Mike Tutkowski mike.tutkow...@solidfire.commailto:mike.tutkow...@solidfire.com mailto:mike.tutkow...@solidfire.com wrote: Hi everyone, I have a Git question that relates to a rebase problem I've been seeing. I have a branch I've been working on the past six or seven weeks. As you'd expect, every now and then I update my local 4.5 branch from the upstream CloudStack one and perform a rebase. The weird part is that even though all of the files in my modified 4.5 branch are new (there are no updates to any existing files or any deletions of existing files), when I try to rebase on top of an updated 4.5, I see an error when it tries to apply one patch (there are about 50 or so commits being applied and I've typically had trouble in the middle some where). The error informs me that the patch can't be applied because it would conflict with an existing, modified file of mine (and, as such, it says I should stash before doing the rebase). For one, no matter which file it refers to, the file in question is not in a modified state. When I do a git status, nothing comes up modified either. That being the case, I do a git rebase --continue, but get an error saying that nothing's been added and so a continue can't be started. I end up having to either skip the patch (and reapply it manually once the rebase is done) or perform some other hack to get past this issue. Thoughts? -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkow...@solidfire.commailto:mike.tutkow...@solidfire.commailto:mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud http://solidfire.com/solution/overview/?video=play*™* -- *Mike Tutkowski* *Senior CloudStack Developer, SolidFire Inc.* e: mike.tutkow...@solidfire.commailto:mike.tutkow...@solidfire.com o: 303.746.7302 Advancing the way the world uses the cloud http://solidfire.com/solution/overview/?video=play*™*
[GitHub] cloudstack pull request: :q!Coverity 17897
Github user kansal closed the pull request at: https://github.com/apache/cloudstack/pull/639 --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Update NiciraNvpGuestNetworkGuru.java
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/636#issuecomment-126258728 ok --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Update L10N resource files on master bran...
GitHub user milamberspace opened a pull request: https://github.com/apache/cloudstack/pull/640 Update L10N resource files on master branch with 4.6 translation strings from Transifex (20150730) You can merge this pull request into a Git repository by running: $ git pull https://github.com/milamberspace/cloudstack squashed Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/640.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 #640 commit ac7c882e346f01aba2539488633f73cbd00a547d Author: Milamber milam...@apache.org Date: 2015-07-30T10:03:38Z Update L10N resource files on master branch with 4.6 translation strings from Transifex (20150730) --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...
Github user koushik-das commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126260440 @DaanHoogland Merge this in 4.6. If possible push the log level changes in 4.6 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Update L10N resource files on 4.5 branch ...
GitHub user milamberspace opened a pull request: https://github.com/apache/cloudstack/pull/641 Update L10N resource files on 4.5 branch with 4.5 translation strings⦠⦠from Transifex (20150730) You can merge this pull request into a Git repository by running: $ git pull https://github.com/milamberspace/cloudstack update45 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/641.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 #641 commit f3c423fb781ce563eacc380a9dbf86f8d3a996d9 Author: Milamber milam...@apache.org Date: 2015-07-30T10:10:18Z Update L10N resource files on 4.5 branch with 4.5 translation strings from Transifex (20150730) --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Update L10N resource files on master bran...
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/640#issuecomment-126263112 Thanks BrunO! I can't judge all the languages but du/en/fr look good to 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Update L10N resource files on 4.4 branch ...
GitHub user milamberspace opened a pull request: https://github.com/apache/cloudstack/pull/642 Update L10N resource files on 4.4 branch with 4.4 translation strings⦠⦠from Transifex (20150730) You can merge this pull request into a Git repository by running: $ git pull https://github.com/milamberspace/cloudstack 4.4 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/642.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 #642 commit 9b3a553efddabef6a2a1ae045ff5862a0f34d18e Author: Milamber milam...@apache.org Date: 2015-07-30T10:20:09Z Update L10N resource files on 4.4 branch with 4.4 translation strings from Transifex (20150730) --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...
Github user DaanHoogland commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126238495 So @koushik-das Do you propose the folowing? - merge this for 4.6 - make a critical ticket for 4.7 to asses log levels note that I am not completely done yet and will have addressed all but the hyperv console before the end of the weekend hopefully. --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Update NiciraNvpGuestNetworkGuru.java
Github user sspans commented on the pull request: https://github.com/apache/cloudstack/pull/636#issuecomment-126247958 Daan: any supported release of vmware nsx will support VXLAN. People running older releases probably already have an STT setup running, and should not encounter problems following these changes. --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Cloudstack 8656 adding messages to empty ...
Github user koushik-das commented on the pull request: https://github.com/apache/cloudstack/pull/637#issuecomment-126233316 Changes LGTM, since we are creating a separate bug for correctly handling log levels. @DaanHoogland I am not saying to remove the interrupted exceptions, just that logging messages for them may not be needed. But I agree with @wilderrodrigues that log level for these may be changed to DEBUG --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Removed medium dictionary from test_dat...
GitHub user sanju1010 opened a pull request: https://github.com/apache/cloudstack/pull/644 Removed medium dictionary from test_data and modified the tests dependen on it We have two entried(keys) named small and medium inside test_data.py to specify the vm properties and access details. However, both contain the same values. So deleted one of them and also modified the tests accordingly. Ran all the tests and all of them passed. Test advanced zone virtual router ... === TestName: test_advZoneVirtualRouter | Status : SUCCESS === ok Test Deploy Virtual Machine ... === TestName: test_deploy_vm | Status : SUCCESS === ok Test Multiple Deploy Virtual Machine ... === TestName: test_deploy_vm_multiple | Status : SUCCESS === ok Test Stop Virtual Machine ... === TestName: test_01_stop_vm | Status : SUCCESS === ok Test Start Virtual Machine ... === TestName: test_02_start_vm | Status : SUCCESS === ok Test Reboot Virtual Machine ... === TestName: test_03_reboot_vm | Status : SUCCESS === ok Test destroy Virtual Machine ... === TestName: test_06_destroy_vm | Status : SUCCESS === ok Test recover Virtual Machine ... === TestName: test_07_restore_vm | Status : SUCCESS === ok Test migrate VM ... === TestName: test_08_migrate_vm | Status : SUCCESS === Test to create service offering ... === TestName: test_01_create_service_offering | Status : SUCCESS === ok Test to update existing service offering ... === TestName: test_02_edit_service_offering | Status : SUCCESS === ok Test to delete service offering ... === TestName: test_03_delete_service_offering | Status : SUCCESS === ok Test to change service to a small capacity ... === TestName: test_04_change_offering_small | Status : SUCCESS === ok You can merge this pull request into a Git repository by running: $ git pull https://github.com/sanju1010/cloudstack testdata Alternatively you can review and apply these changes as the patch at: https://github.com/apache/cloudstack/pull/644.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 #644 commit 340e23c2d7dc595856d9c62d493272b91fc13a28 Author: sanjeev sanj...@apache.org Date: 2015-07-08T06:19:17Z Removed medium dictionary from test_data and modified the tests dependent on it Bug-Id: CLOUDSTACK-8617 Removed commented lines from the files --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Coverity Issue: Resource Leak fixed
Github user DaanHoogland commented on a diff in the pull request: https://github.com/apache/cloudstack/pull/643#discussion_r35860179 --- Diff: server/src/org/apache/cloudstack/region/RegionsApiUtil.java --- @@ -186,8 +186,12 @@ protected static UserAccount makeUserAccountAPICall(Region region, String comman XStream xstream = new XStream(new DomDriver()); xstream.alias(useraccount, UserAccountVO.class); xstream.aliasField(id, UserAccountVO.class, uuid); -ObjectInputStream in = xstream.createObjectInputStream(is); -return (UserAccountVO)in.readObject(); +try(ObjectInputStream in = xstream.createObjectInputStream(is);) { +return (UserAccountVO)in.readObject(); +} catch (IOException e) { +s_logger.error(e.getMessage()); +return null; --- End diff -- this return is not needed. we will fall through to other return. You can opt not to and put another log message in there 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Update L10N resource files on master bran...
Github user asfgit closed the pull request at: https://github.com/apache/cloudstack/pull/640 --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
[GitHub] cloudstack pull request: Update L10N resource files on 4.5 branch ...
Github user asfgit closed the pull request at: https://github.com/apache/cloudstack/pull/641 --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---
UsageMonitor UI Plugin ready
Hello everyone, herby I share with everyone our first UI Plugin to monitor the usage resources. Here is the link: https://github.com/BIT-Group-GmbH/cloudstack-plugin-ui-usagemonitor Any thoughts will be very much appreciated. Cheers and have fun! -- Ramzi Youssefi Görlitzer Str. 49 01099 Dresden, Germany. Cell: +49 173 1965465 Email: ryouss...@gmail.com
[GitHub] cloudstack pull request: Update L10N resource files on 4.4 branch ...
Github user asfgit closed the pull request at: https://github.com/apache/cloudstack/pull/642 --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. ---