[ https://issues.apache.org/jira/browse/CLOUDSTACK-10177?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16281245#comment-16281245 ]
ASF GitHub Bot commented on CLOUDSTACK-10177: --------------------------------------------- blueorangutan commented on issue #2355: CLOUDSTACK-10177: Only pass IPv6 address to Security Group Python scr… URL: https://github.com/apache/cloudstack/pull/2355#issuecomment-349841679 <b>Trillian test result (tid-1740)</b> Environment: kvm-centos7 (x2), Advanced Networking with Mgmt server 7 Total time taken: 29843 seconds Marvin logs: https://github.com/blueorangutan/acs-prs/releases/download/trillian/pr2355-t1740-kvm-centos7.zip Test /marvin/tests/smoke/test_accounts.py took 1285 seconds Test /marvin/tests/smoke/test_affinity_groups_projects.py took 200 seconds Test /marvin/tests/smoke/test_affinity_groups.py took 100 seconds Test /marvin/tests/smoke/test_certauthority_root.py took 43 seconds Test /marvin/tests/smoke/test_deploy_vgpu_enabled_vm.py took 4 seconds Test /marvin/tests/smoke/test_deploy_virtio_scsi_vm.py took 1516 seconds Test /marvin/tests/smoke/test_deploy_vm_iso.py took 85 seconds Test /marvin/tests/smoke/test_deploy_vm_root_resize.py took 120 seconds Test /marvin/tests/smoke/test_deploy_vms_with_varied_deploymentplanners.py took 180 seconds Test /marvin/tests/smoke/test_deploy_vm_with_userdata.py took 90 seconds Test /marvin/tests/smoke/test_disk_offerings.py took 4 seconds Test /marvin/tests/smoke/test_dynamicroles.py took 107 seconds Test /marvin/tests/smoke/test_global_settings.py took 4 seconds Test /marvin/tests/smoke/test_guest_vlan_range.py took 25 seconds Test /marvin/tests/smoke/test_host_annotations.py took 13 seconds Test /marvin/tests/smoke/test_hostha_simulator.py took 5 seconds Test /marvin/tests/smoke/test_host_maintenance.py took 295 seconds Test /marvin/tests/smoke/test_hosts.py took 5 seconds Test /marvin/tests/smoke/test_internal_lb.py took 1516 seconds Test /marvin/tests/smoke/test_iso.py took 242 seconds Test /marvin/tests/smoke/test_list_ids_parameter.py took 640 seconds Test /marvin/tests/smoke/test_loadbalance.py took 666 seconds Test /marvin/tests/smoke/test_login.py took 21 seconds Test /marvin/tests/smoke/test_metrics_api.py took 112 seconds Test /marvin/tests/smoke/test_multipleips_per_nic.py took 136 seconds Test /marvin/tests/smoke/test_nested_virtualization.py took 9 seconds Test /marvin/tests/smoke/test_network_acl.py took 81 seconds Test /marvin/tests/smoke/test_network.py took 1398 seconds Test /marvin/tests/smoke/test_nic_adapter_type.py took 9 seconds Test /marvin/tests/smoke/test_nic.py took 462 seconds Test /marvin/tests/smoke/test_non_contigiousvlan.py took 19 seconds Test /marvin/tests/smoke/test_outofbandmanagement_nestedplugin.py took 90 seconds Test /marvin/tests/smoke/test_outofbandmanagement.py took 235 seconds Test /marvin/tests/smoke/test_over_provisioning.py took 4 seconds Test /marvin/tests/smoke/test_password_server.py took 265 seconds Test /marvin/tests/smoke/test_portable_publicip.py took 50 seconds Test /marvin/tests/smoke/test_portforwardingrules.py took 116 seconds Test /marvin/tests/smoke/test_primary_storage.py took 546 seconds Test /marvin/tests/smoke/test_privategw_acl.py took 864 seconds Test /marvin/tests/smoke/test_projects.py took 602 seconds Test /marvin/tests/smoke/test_public_ip_range.py took 10 seconds Test /marvin/tests/smoke/test_pvlan.py took 9 seconds Test /marvin/tests/smoke/test_regions.py took 5 seconds Test /marvin/tests/smoke/test_reset_vm_on_reboot.py took 256 seconds Test /marvin/tests/smoke/test_resource_detail.py took 14 seconds Test /marvin/tests/smoke/test_router_dhcphosts.py took 421 seconds Test /marvin/tests/smoke/test_router_dns.py took 197 seconds Test /marvin/tests/smoke/test_router_dnsservice.py took 174 seconds Test /marvin/tests/smoke/test_routers_iptables_default_policy.py took 320 seconds Test /marvin/tests/smoke/test_routers_network_ops.py took 950 seconds Test /marvin/tests/smoke/test_routers.py took 269 seconds Test /marvin/tests/smoke/test_scale_vm.py took 3 seconds Test /marvin/tests/smoke/test_secondary_storage.py took 4 seconds Test /marvin/tests/smoke/test_service_offerings.py took 370 seconds Test /marvin/tests/smoke/test_snapshots.py took 208 seconds Test /marvin/tests/smoke/test_ssvm.py took 886 seconds Test /marvin/tests/smoke/test_staticroles.py took 3 seconds Test /marvin/tests/smoke/test_templates.py took 1211 seconds Test /marvin/tests/smoke/test_usage_events.py took 4 seconds Test /marvin/tests/smoke/test_usage.py took 1579 seconds Test /marvin/tests/smoke/test_vm_life_cycle.py took 1394 seconds Test /marvin/tests/smoke/test_vm_snapshots.py took 634 seconds Test /marvin/tests/smoke/test_volumes.py took 2212 seconds Test /marvin/tests/smoke/test_vpc_redundant.py took 2728 seconds Test /marvin/tests/smoke/test_vpc_router_nics.py took 674 seconds Test /marvin/tests/smoke/test_vpc_vpn.py took 696 seconds Test /marvin/tests/smoke/test_hostha_kvm.py took 833 seconds Test completed. 61 look OK, 6 have error(s) Test | Result | Time (s) | Test File --- | --- | --- | --- ContextSuite context=TestDeployVirtioSCSIVM>:setup | `Error` | 0.00 | test_deploy_virtio_scsi_vm.py ContextSuite context=TestInternalLb>:setup | `Error` | 0.00 | test_internal_lb.py test_01_vpc_privategw_acl | `Failure` | 56.15 | test_privategw_acl.py test_02_vpc_privategw_static_routes | `Failure` | 157.12 | test_privategw_acl.py test_03_vpc_privategw_restart_vpc_cleanup | `Failure` | 152.27 | test_privategw_acl.py test_04_rvpc_privategw_static_routes | `Failure` | 277.91 | test_privategw_acl.py test_10_attachAndDetach_iso | `Failure` | 673.68 | test_vm_life_cycle.py test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_ACL | `Failure` | 387.61 | test_vpc_redundant.py test_01_vpc_remote_access_vpn | `Failure` | 60.71 | test_vpc_vpn.py ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org > NPE when programming Security Groups with KVM > --------------------------------------------- > > Key: CLOUDSTACK-10177 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-10177 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the > default.) > Components: KVM > Affects Versions: 4.10.0.0 > Environment: Ubuntu 16.04 - KVM > Reporter: Wido den Hollander > Labels: ipv6, kvm, security-groups > > On a Hypervisor we saw the programming of Security Groups fail and I am not > sure yet why: > {quote}2017-12-06 14:10:31,095 DEBUG [cloud.agent.Agent] > (agentRequest-Handler-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":"4134ed9a39aa2aa85620780ce4b7bc27","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-15:null) (logid:e68a57b9) Processing command: > com.cloud.agent.api.SecurityGroupRulesCmd > 2017-12-06 14:10:31,095 DEBUG [kvm.resource.LibvirtConnection] > (agentRequest-Handler-15:null) (logid:e68a57b9) Looking for libvirtd > connection at: qemu:///system > 2017-12-06 14:10:31,098 DEBUG [kvm.resource.LibvirtComputingResource] > (agentRequest-Handler-15:null) (logid:e68a57b9) Executing: > /usr/share/cloudstack-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 vnet6 > --brname cloudbr0 --nicsecips 0: --rules I:tcp:22:22:0.0.0.0/0,NEXT; > 2017-12-06 14:10:31,098 WARN [kvm.resource.LibvirtComputingResource] > (agentRequest-Handler-15:null) (logid:e68a57b9) Exception: > /usr/share/cloudstack-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 4134ed9a39aa2aa85620780ce4b7bc27 --seq 14 --vmmac 1e:00:4f:00:00:f9 > --vif vnet6 --brname cloudbr0 --nicsecips 0: --rules > I:tcp:22:22:0.0.0.0/0,NEXT; > 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.addNetworkRules(LibvirtComputingResource.java:3429) > at > com.cloud.hypervisor.kvm.resource.wrapper.LibvirtSecurityGroupRulesCommandWrapper.execute(LibvirtSecurityGroupRulesCommandWrapper.java:57) > at > com.cloud.hypervisor.kvm.resource.wrapper.LibvirtSecurityGroupRulesCommandWrapper.execute(LibvirtSecurityGroupRulesCommandWrapper.java:36) > at > com.cloud.hypervisor.kvm.resource.wrapper.LibvirtRequestWrapper.execute(LibvirtRequestWrapper.java:75) > at > com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1369) > at com.cloud.agent.Agent.processRequest(Agent.java:525) > at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:833) > 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(ThreadPoolExecutor.java:1149) > at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > 2017-12-06 14:10:31,098 WARN > [resource.wrapper.LibvirtSecurityGroupRulesCommandWrapper] > (agentRequest-Handler-15:null) (logid:e68a57b9) Failed to program network > rules for vm i-4-6-VM > 2017-12-06 14:10:31,098 DEBUG [cloud.agent.Agent] > (agentRequest-Handler-15:null) (logid:e68a57b9) Seq 1-3318027025465216281: { > Ans: , MgmtId: 90520741056852, via: 1, Ver: v1, Flags: 110, > [{"com.cloud.agent.api.SecurityGroupRuleAnswer":{"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 Instance > it suddenly worked. > However, I was not yet able in the code to figure out why this is a NPE in > 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)