Return-Path: X-Original-To: apmail-cloudstack-issues-archive@www.apache.org Delivered-To: apmail-cloudstack-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9D607181DB for ; Tue, 20 Oct 2015 14:42:44 +0000 (UTC) Received: (qmail 23637 invoked by uid 500); 20 Oct 2015 14:42:28 -0000 Delivered-To: apmail-cloudstack-issues-archive@cloudstack.apache.org Received: (qmail 23493 invoked by uid 500); 20 Oct 2015 14:42:28 -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 23450 invoked by uid 500); 20 Oct 2015 14:42:28 -0000 Delivered-To: apmail-incubator-cloudstack-issues@incubator.apache.org Received: (qmail 23433 invoked by uid 99); 20 Oct 2015 14:42:28 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Oct 2015 14:42:28 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id E73332C1F81 for ; Tue, 20 Oct 2015 14:42:27 +0000 (UTC) Date: Tue, 20 Oct 2015 14:42:27 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: cloudstack-issues@incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (CLOUDSTACK-8933) SSVm and CPVM do not survive a reboot from API MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CLOUDSTACK-8933?page=3Dcom.atla= ssian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId= =3D14965198#comment-14965198 ]=20 ASF GitHub Bot commented on CLOUDSTACK-8933: -------------------------------------------- Github user wilderrodrigues commented on the pull request: https://github.com/apache/cloudstack/pull/959#issuecomment-149588601 =20 Ping @karuturi @bvbharat @borisroman @wido @remibergsma @miguelaferreir= a @DaanHoogland=20 =20 Test Environment: =20 * Management Server + MySQL on CentOS 7.1 * KVM host on CentOS 7.1 * ACS Agent and Common built from source =20 Tests Results: =20 ``` Test SSVM Internals ... =3D=3D=3D TestName: test_03_ssvm_internals | St= atus : SUCCESS =3D=3D=3D ok Test CPVM Internals ... =3D=3D=3D TestName: test_04_cpvm_internals | St= atus : SUCCESS =3D=3D=3D ok Test stop SSVM ... =3D=3D=3D TestName: test_05_stop_ssvm | Status : SUC= CESS =3D=3D=3D ok Test stop CPVM ... =3D=3D=3D TestName: test_06_stop_cpvm | Status : SUC= CESS =3D=3D=3D ok Test reboot SSVM ... =3D=3D=3D TestName: test_07_reboot_ssvm | Status := SUCCESS =3D=3D=3D ok Test reboot CPVM ... =3D=3D=3D TestName: test_08_reboot_cpvm | Status := SUCCESS =3D=3D=3D ok Test destroy SSVM ... =3D=3D=3D TestName: test_09_destroy_ssvm | Status= : SUCCESS =3D=3D=3D ok Test destroy CPVM ... =3D=3D=3D TestName: test_10_destroy_cpvm | Status= : SUCCESS =3D=3D=3D ok =20 ---------------------------------------------------------------------- Ran 8 tests in 2099.701s =20 OK /tmp//MarvinLogs/test_ssvm_VGNRI1/results.txt (END) =20 =20 =20 Create a redundant VPC with two networks with two VMs in each network .= .. =3D=3D=3D TestName: test_01_create_redundant_VPC_2tiers_4VMs_4IPs_4PF_AC= L | Status : SUCCESS =3D=3D=3D ok Create a redundant VPC with two networks with two VMs in each network a= nd check default routes ... =3D=3D=3D TestName: test_02_redundant_VPC_defau= lt_routes | Status : SUCCESS =3D=3D=3D ok Create a VPC with two networks with one VM in each network and test nic= s after destroy ... =3D=3D=3D TestName: test_01_VPC_nics_after_destroy | St= atus : SUCCESS =3D=3D=3D ok Create a VPC with two networks with one VM in each network and test def= ault routes ... =3D=3D=3D TestName: test_02_VPC_default_routes | Status : S= UCCESS =3D=3D=3D ok Test iptables default INPUT/FORWARD policy on RouterVM ... =3D=3D=3D Te= stName: test_02_routervm_iptables_policies | Status : SUCCESS =3D=3D=3D ok Test iptables default INPUT/FORWARD policies on VPC router ... =3D=3D= =3D TestName: test_01_single_VPC_iptables_policies | Status : SUCCESS =3D= =3D=3D ok Stop existing router, add a PF rule and check we can access the VM ... = =3D=3D=3D TestName: test_isolate_network_FW_PF_default_routes | Status : SU= CCESS =3D=3D=3D ok Test redundant router internals ... =3D=3D=3D TestName: test_RVR_Networ= k_FW_PF_SSH_default_routes | Status : SUCCESS =3D=3D=3D ok =20 ---------------------------------------------------------------------- Ran 8 tests in 7418.431s =20 OK /tmp//MarvinLogs/test_routers_network_ops_VMU09R/results.txt (END) =20 =20 =20 Test to create Load balancing rule with source NAT ... =3D=3D=3D TestNa= me: test_01_create_lb_rule_src_nat | Status : SUCCESS =3D=3D=3D ok Test to create Load balancing rule with non source NAT ... =3D=3D=3D Te= stName: test_02_create_lb_rule_non_nat | Status : SUCCESS =3D=3D=3D ok Test for assign & removing load balancing rule ... =3D=3D=3D TestName: = test_assign_and_removal_lb | Status : SUCCESS =3D=3D=3D ok =20 ---------------------------------------------------------------------- Ran 3 tests in 871.657s =20 OK /tmp//MarvinLogs/test_loadbalance_AHQVYG/results.txt (END) ``` =20 Cheers, Wilder > SSVm and CPVM do not survive a reboot from API > ---------------------------------------------- > > Key: CLOUDSTACK-8933 > URL: https://issues.apache.org/jira/browse/CLOUDSTACK-893= 3 > Project: CloudStack > Issue Type: Bug > Security Level: Public(Anyone can view this level - this is the defa= ult.)=20 > Components: SystemVM > Affects Versions: 4.6.0 > Environment: KVM Advanced / Basic zone > Reporter: Remi Bergsma > Assignee: Wilder Rodrigues > Priority: Blocker > Fix For: 4.6.0 > > Attachments: Console screenshot.png, reboot.4.5.log, reboot.4.6.l= og > > > These tests fail: > - integration.smoke.test_ssvm.TestSSVMs.test_07_reboot_ssvm > - integration.smoke.test_ssvm.TestSSVMs.test_08_reboot_cpvm > Stopping works, then CloudStack successfully deploys a new one. Rebooting= doesn=E2=80=99t work as it doesn=E2=80=99t complete the boot sequence. Loo= king at the agent.log I noticed the systemvm doesn=E2=80=99t get patched so= it is probably waiting for that to happen. > A successful start shows this: > 2015-10-05 21:26:12,748 DEBUG [kvm.resource.LibvirtComputingResource] (ag= entRequest-Handler-4:null) Executing: /usr/share/cloudstack-common/scripts/= vm/hypervisor/kvm/patchviasocket.pl -n v-1-VM -p %template=3DdomP%type=3Dco= nsoleproxy%host=3D192.168.22.61%port=3D8250%name=3Dv-1-VM%zone=3D1%pod=3D1%= guid=3DProxy.1%proxy_vm=3D1%disable_rp_filter=3Dtrue%eth2ip=3D192.168.23.2%= eth2mask=3D255.255.255.0%gateway=3D192.168.23.1%eth0ip=3D169.254.1.20%eth0m= ask=3D255.255.0.0%eth1ip=3D192.168.22.137%eth1mask=3D255.255.255.0%mgmtcidr= =3D192.168.22.0/24%localgw=3D192.168.22.1%internaldns1=3D8.8.4.4%dns1=3D8.8= .8.8 > 2015-10-05 21:26:12,777 DEBUG [kvm.resource.LibvirtComputingResource] (ag= entRequest-Handler-4:null) Execution is successful. > The reboot doesn=E2=80=99t do this. When I hit reboot and run this comman= d manually, it works: > /usr/share/cloudstack-common/scripts/vm/hypervisor/kvm/patchviasocket.pl = -n v-1-VM -p %template=3DdomP%type=3Dconsoleproxy%host=3D192.168.22.61%port= =3D8250%name=3Dv-1-VM%zone=3D1%pod=3D1%guid=3DProxy1%proxy_vm=3D1%disable_r= p_filter=3Dtru%eth2ip=3D192.168.23.2%eth2mask=3D255.255.255.0%gateway=3D192= .168.23.1%eth0ip=3D169.254.1.20%eth0mask=3D255.255.0.0%eth1ip=3D192.168.22.= 137%eth1mask=3D255.255.255.0%mgmtcidr=3D192.168.22.0/24%localgw=3D192.168.2= 2.1%internaldns1=3D8.8.4.4%dns1=3D8.8.8.8 > I basically copy/pasted the patch line from the stop/start and used it wh= en rebooting. Now everything works. > We need to figure out why it doesn=E2=80=99t patch the system vms on rebo= ot. -- This message was sent by Atlassian JIRA (v6.3.4#6332)