Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 617AC200D4F for ; Wed, 6 Dec 2017 17:10:09 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 60182160C1D; Wed, 6 Dec 2017 16:10:09 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7DEDC160BFD for ; Wed, 6 Dec 2017 17:10:08 +0100 (CET) Received: (qmail 73307 invoked by uid 500); 6 Dec 2017 16:10:07 -0000 Mailing-List: contact issues-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cloudstack.apache.org Delivered-To: mailing list issues@cloudstack.apache.org Received: (qmail 73298 invoked by uid 500); 6 Dec 2017 16:10:07 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 73295 invoked by uid 99); 6 Dec 2017 16:10:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Dec 2017 16:10:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id DEDD1180773 for ; Wed, 6 Dec 2017 16:10:06 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id byRtUQB8qEYq for ; Wed, 6 Dec 2017 16:10:05 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 912275F256 for ; Wed, 6 Dec 2017 16:10:04 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 7DA02E101B for ; Wed, 6 Dec 2017 16:10:03 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 8B398255CF for ; Wed, 6 Dec 2017 16:10:02 +0000 (UTC) Date: Wed, 6 Dec 2017 16:10:02 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-10177) NPE when programming Security Groups with KVM MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 06 Dec 2017 16:10:09 -0000 [ https://issues.apache.org/jira/browse/CLOUDSTACK-10177?page=3Dcom.atl= assian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D16280393#comment-16280393 ]=20 ASF GitHub Bot commented on CLOUDSTACK-10177: --------------------------------------------- bwsw commented on issue #2355: CLOUDSTACK-10177: Only pass IPv6 address to = Security Group Python scr=E2=80=A6 URL: https://github.com/apache/cloudstack/pull/2355#issuecomment-349687296 =20 =20 @GabrielBrascher @wido=20 Also, this fix already present in previous PRs in broader edition, becau= se I cherry picked it to #2320 from somewhere. Also, please take a look at = security_groups.py because there are still cases when ICMPv6 can lead to ex= ceptions without proper handling. E.g. passing -1,-1 for icmp v6 SG. ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. =20 For queries about this service, please contact Infrastructure at: users@infra.apache.org > NPE when programming Security Groups with KVM > --------------------------------------------- > > Key: CLOUDSTACK-10177 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-101= 77 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: KVM > Affects Versions: 4.10.0.0 > Environment: Ubuntu 16.04 - KVM=20 > Reporter: Wido den Hollander > Labels: ipv6, kvm, security-groups > > On a Hypervisor we saw the programming of Security Groups fail and I am n= ot sure yet why: > {quote}2017-12-06 14:10:31,095 DEBUG [cloud.agent.Agent] (agentRequest-Ha= ndler-15:null) (logid:e68a57b9) Request:Seq 1-3318027025465216281: { Cmd ,= MgmtId: 90520741056852, via: 1, Ver: v1, Flags: 100111, [{"com.cloud.agent= .api.SecurityGroupRulesCmd":{"guestIp":"62.221.192.7","vmName":"i- > 4-6-VM","guestMac":"1e:00:4f:00:00:f9","signature":"4134ed9a39aa2aa856207= 80ce4b7bc27","seqNum":14,"vmId":6,"msId":90520741056852,"ingressRuleSet":[{= "proto":"tcp","startPort":22,"endPort":22}],"egressRuleSet":[],"wait":0}}] = } > 2017-12-06 14:10:31,095 DEBUG [cloud.agent.Agent] (agentRequest-Handler-1= 5:null) (logid:e68a57b9) Processing command: com.cloud.agent.api.SecurityGr= oupRulesCmd > 2017-12-06 14:10:31,095 DEBUG [kvm.resource.LibvirtConnection] (agentRequ= est-Handler-15:null) (logid:e68a57b9) Looking for libvirtd connection at: q= emu:///system > 2017-12-06 14:10:31,098 DEBUG [kvm.resource.LibvirtComputingResource] (ag= entRequest-Handler-15:null) (logid:e68a57b9) Executing: /usr/share/cloudsta= ck-common/scripts/vm/network/security_group.py add_network_rules --vmname i= -4-6-VM --vmid 6 --vmip 62.221.192.7 --vmip6 null --sig 413 > 4ed9a39aa2aa85620780ce4b7bc27 --seq 14 --vmmac 1e:00:4f:00:00:f9 --vif vn= et6 --brname cloudbr0 --nicsecips 0: --rules I:tcp:22:22:0.0.0.0/0,NEXT;=20 > 2017-12-06 14:10:31,098 WARN [kvm.resource.LibvirtComputingResource] (ag= entRequest-Handler-15:null) (logid:e68a57b9) Exception: /usr/share/cloudsta= ck-common/scripts/vm/network/security_group.py add_network_rules --vmname i= -4-6-VM --vmid 6 --vmip 62.221.192.7 --vmip6 null --sig 4134ed9a39aa2aa8562= 0780ce4b7bc27 --seq 14 --vmmac 1e:00:4f:00:00:f9 --vif vnet6 --brname cloud= br0 --nicsecips 0: --rules I:tcp:22:22:0.0.0.0/0,NEXT;=20 > java.lang.NullPointerException > at java.lang.ProcessBuilder.start(ProcessBuilder.java:1012) > at com.cloud.utils.script.Script.execute(Script.java:214) > at com.cloud.utils.script.Script.execute(Script.java:182) > at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.add= NetworkRules(LibvirtComputingResource.java:3429) > at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtSecurityGroup= RulesCommandWrapper.execute(LibvirtSecurityGroupRulesCommandWrapper.java:57= ) > at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtSecurityGroup= RulesCommandWrapper.execute(LibvirtSecurityGroupRulesCommandWrapper.java:36= ) > at com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrappe= r.execute(LibvirtRequestWrapper.java:75) > at com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.exe= cuteRequest(LibvirtComputingResource.java:1369) > at com.cloud.agent.Agent.processRequest(Agent.java:525) > at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:83= 3) > at com.cloud.utils.nio.Task.call(Task.java:83) > at com.cloud.utils.nio.Task.call(Task.java:29) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolEx= ecutor.java:1149) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolE= xecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > 2017-12-06 14:10:31,098 WARN [resource.wrapper.LibvirtSecurityGroupRules= CommandWrapper] (agentRequest-Handler-15:null) (logid:e68a57b9) Failed to p= rogram network rules for vm i-4-6-VM > 2017-12-06 14:10:31,098 DEBUG [cloud.agent.Agent] (agentRequest-Handler-1= 5:null) (logid:e68a57b9) Seq 1-3318027025465216281: { Ans: , MgmtId: 90520= 741056852, via: 1, Ver: v1, Flags: 110, [{"com.cloud.agent.api.SecurityGrou= pRuleAnswer":{"logSequenceNumber":14,"vmId":6,"reason":"PROGRAMMING_FAILED"= ,"result":false,"details":"programming network rules failed","wait":0}}] } > {quote} > I see the vmip6 being null and after setting a IPv6 address for the Insta= nce it suddenly worked. > However, I was not yet able in the code to figure out why this is a NPE i= n com.cloud.utils.Script > It has a issue with getting back output from ProcessBuilder. > Creating this ticket to make sure it's tracked, but I don't know what is = happening yet. -- This message was sent by Atlassian JIRA (v6.4.14#64029)