Return-Path: X-Original-To: apmail-cloudstack-users-archive@www.apache.org Delivered-To: apmail-cloudstack-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2AE9410F8C for ; Sun, 29 Sep 2013 20:52:44 +0000 (UTC) Received: (qmail 15164 invoked by uid 500); 29 Sep 2013 20:52:43 -0000 Delivered-To: apmail-cloudstack-users-archive@cloudstack.apache.org Received: (qmail 14919 invoked by uid 500); 29 Sep 2013 20:52:42 -0000 Mailing-List: contact users-help@cloudstack.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cloudstack.apache.org Delivered-To: mailing list users@cloudstack.apache.org Received: (qmail 14911 invoked by uid 99); 29 Sep 2013 20:52:40 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Sep 2013 20:52:40 +0000 X-ASF-Spam-Status: No, hits=2.5 required=5.0 tests=FREEMAIL_REPLY,HTML_MESSAGE,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rafaelweingartner@gmail.com designates 209.85.215.48 as permitted sender) Received: from [209.85.215.48] (HELO mail-la0-f48.google.com) (209.85.215.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 29 Sep 2013 20:52:33 +0000 Received: by mail-la0-f48.google.com with SMTP id er20so3752268lab.35 for ; Sun, 29 Sep 2013 13:52:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=VsjilnxfBmdDD7Z90mdRJ8bqarDqrS/CyA4TXd6I8Iw=; b=qhH5wErMq26dYFua2UnfXSiabAj24O1HHDEjaZqEa3jM8k2CL1cE7VugDlx6QYXLh+ rmQQ50Jyq+C8tXK/8tkHPgygFld5aNiFgWpjUxT3C/Ga1LIPOt5rrTbKPUc9gkY8QGvj 3Y4utHt5gKDcltrV+vPbOq1YCM2U5cr+vIKyPugw4+9W083HSGkVmJXxmSB0nWywE07U OMizrvlbRmXUwh+OUSm4RBSi42aIFB9ndn+HAOakPpfg9eXGDgGoSaiK6iajuU9mhZKH fcMWSoasobFvHUggV0Uu6X7QKqV3nj4QBAGiyPXX18/sHH1dLA5uNcrEObU2KcNlDvGS qOWQ== MIME-Version: 1.0 X-Received: by 10.112.157.67 with SMTP id wk3mr3115543lbb.32.1380487933188; Sun, 29 Sep 2013 13:52:13 -0700 (PDT) Received: by 10.112.158.101 with HTTP; Sun, 29 Sep 2013 13:52:13 -0700 (PDT) In-Reply-To: References: Date: Sun, 29 Sep 2013 17:52:13 -0300 Message-ID: Subject: Re: Management Server does not start when interface cable is unplugged. From: Rafael Weingartner To: users@cloudstack.apache.org Content-Type: multipart/alternative; boundary=001a11c3409cdfe0f604e78be493 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c3409cdfe0f604e78be493 Content-Type: text/plain; charset=ISO-8859-1 Ok, I got it. Even though the managed hosts are on the 192.162.1.0/24 network, you can still use the localhost as the parameter on CS. Since it is just used on CS for management purpose, specially when you have more than one CS Web server deployment. 2013/9/29 Karan . > I mean the hosts on which hypervisors are running. The cloudstack agents. > > > On Mon, Sep 30, 2013 at 2:15 AM, Rafael Weingartner < > rafaelweingartner@gmail.com> wrote: > > > what do you mean with "manage the agents in office lab"? > > > > > > 2013/9/29 Karan . > > > > > Thanks Rafael this is one possible solution. But this is the complete > > > scenario I am facing. > > > When I am at my office I use my laptop(which has MS and agent on it) > to > > > manage the agents in office lab. Now I want that when I am back at > home I > > > can still start the MS on my laptop and tinker around with cloudstack > > but > > > this time I am not connected to any network . > > > > > > The solution I can see here is that when I am at office I should set > > host > > > in cloud.configuration to 192.168.1.4 and at home I should set it to > > > 127.0.0.1 . right? > > > > > > > > > Regards > > > > > > Karan > > > > > > > > > On Mon, Sep 30, 2013 at 1:52 AM, Karan . > wrote: > > > > > > > 192.168.1.4 is my CS server ip and yes I can ping it. Currently, I > have > > > > only one machine in my setup and I have assigned this ip to it and I > > am > > > > running MS as well as agent over it. > > > > I would like to know how I can run CLOUDSTACK in a single node setup > > > > without being connected to any network and gateways. > > > > > > > > > > > > > > > > > > > > > > > > On Mon, Sep 30, 2013 at 1:40 AM, Rafael Weingartner < > > > > rafaelweingartner@gmail.com> wrote: > > > > > > > >> better, what is the CS server ip address? > > > >> > > > >> > > > >> 2013/9/29 Rafael Weingartner > > > >> > > > >> > from the server that CS is running can you ping this address: > > > >> 192.168.1.4? > > > >> > > > > >> > > > > >> > 2013/9/29 Karan . > > > >> > > > > >> > Hi Marty, > > > >> >> > > > >> >> Interface already has static ip assigned to it. In fact, this is > > how > > > >> >> cloudstack has configured my /etc/network/interfaces > > > >> >> > > > >> >> auto lo > > > >> >> iface lo inet loopback > > > >> >> > > > >> >> auto eth0 > > > >> >> iface eth0 inet manual > > > >> >> > > > >> >> auto cloudbr0 > > > >> >> iface cloudbr0 inet static > > > >> >> bridge_ports eth0 > > > >> >> address 192.168.1.4 > > > >> >> netmask 255.255.255.0 > > > >> >> gateway 192.168.1.1 > > > >> >> > > > >> >> And this is the output for 'ip link ' > > > >> >> > > > >> >> 1: lo: mtu 65536 qdisc noqueue state > UNKNOWN > > > >> mode > > > >> >> DEFAULT > > > >> >> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 > > > >> >> 2: eth0: mtu 1500 qdisc > > > pfifo_fast > > > >> >> master cloudbr0 state DOWN mode DEFAULT qlen 1000 > > > >> >> link/ether 28:92:4a:1e:f1:37 brd ff:ff:ff:ff:ff:ff > > > >> >> 3: cloudbr0: mtu 1500 qdisc > > > noqueue > > > >> >> state DOWN mode DEFAULT > > > >> >> link/ether 28:92:4a:1e:f1:37 brd ff:ff:ff:ff:ff:ff > > > >> >> > > > >> >> And 'ip address' > > > >> >> 1: lo: mtu 65536 qdisc noqueue state > UNKNOWN > > > >> >> link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 > > > >> >> inet 127.0.0.1/8 scope host lo > > > >> >> inet6 ::1/128 scope host > > > >> >> valid_lft forever preferred_lft forever > > > >> >> 2: eth0: mtu 1500 qdisc > > > pfifo_fast > > > >> >> master cloudbr0 state DOWN qlen 1000 > > > >> >> link/ether 28:92:4a:1e:f1:37 brd ff:ff:ff:ff:ff:ff > > > >> >> 3: cloudbr0: mtu 1500 qdisc > > > noqueue > > > >> >> state DOWN > > > >> >> link/ether 28:92:4a:1e:f1:37 brd ff:ff:ff:ff:ff:ff > > > >> >> inet 192.168.1.4/24 brd 192.168.1.255 scope global cloudbr0 > > > >> >> > > > >> >> > > > >> >> > > > >> >> Regards > > > >> >> Karan Pugla > > > >> >> > > > >> >> > > > >> >> On Mon, Sep 30, 2013 at 1:23 AM, Marty Sweet < > msweet.dev@gmail.com > > > > > > >> >> wrote: > > > >> >> > > > >> >> > Hi Karan, > > > >> >> > > > > >> >> > Try assigning a static address to the interface then bring it > up > > > >> using > > > >> >> > ifup. This should in theory not close down the IP address once > > link > > > >> has > > > >> >> > been lost. > > > >> >> > > > > >> >> > Hope this helps, > > > >> >> > Marty > > > >> >> > > > > >> >> > > > > >> >> > On Sun, Sep 29, 2013 at 7:41 PM, Karan . < > digitalkaran@gmail.com > > > > > > >> >> wrote: > > > >> >> > > > > >> >> > > Hi > > > >> >> > > > > > >> >> > > I'll be giving a short demo on CLOUDSTACK in my organization > > and > > > >> for > > > >> >> > this > > > >> >> > > I have a very basic setup of Cloudstack 4.1.1 where I am > > using > > > >> one > > > >> >> > laptop > > > >> >> > > as management server as well as agent . Also, I am using > basic > > > >> >> > networking. > > > >> >> > > From logs I have observed that whenever my network cable is > > > >> >> unplugged, MS > > > >> >> > > doesn't start and throws following exception: > > > >> >> > > > > > >> >> > > 2013-09-29 23:09:09,693 INFO > > [cloud.cluster.ClusterManagerImpl] > > > >> >> > > (Timer-1:null) Start configuring cluster manager : > > > >> >> > > ClusterManagerImpl_EnhancerByCloudStack_d07fda90 > > > >> >> > > 2013-09-29 23:09:09,753 INFO > > [cloud.cluster.ClusterManagerImpl] > > > >> >> > > (Timer-1:null) Cluster node IP : 192.168.1.4 > > > >> >> > > 2013-09-29 23:09:09,756 ERROR > > [utils.component.ComponentContext] > > > >> >> > > (Timer-1:null) Unhandled exception > > > >> >> > > javax.naming.ConfigurationException: cluster node IP should > be > > > >> valid > > > >> >> > local > > > >> >> > > address where the server is running, please check your > > > >> configuration > > > >> >> > > at > > > >> >> > > > > > >> >> > > > > > >> >> > > > > >> >> > > > >> > > > > > > com.cloud.cluster.ClusterManagerImpl.configure(ClusterManagerImpl.java:1319) > > > >> >> > > at > > > >> >> > > > > > >> >> > > > > > >> >> > > > > >> >> > > > >> > > > > > > com.cloud.utils.component.ComponentContext.initComponentsLifeCycle(ComponentContext.java:111) > > > >> >> > > at > > > >> >> > > > > > >> >> > > > >> > > com.cloud.servlet.CloudStartupServlet$1.run(CloudStartupServlet.java:50) > > > >> >> > > at java.util.TimerThread.mainLoop(Timer.java:555) > > > >> >> > > at java.util.TimerThread.run(Timer.java:505) > > > >> >> > > > > > >> >> > > Just for starting MS I have to attach my laptop to a network. > > > >> Please > > > >> >> > > suggest me a way where I can start MS without being connected > > to > > > >> any > > > >> >> > > network since I have a single host setup. I have tried > bringing > > > my > > > >> >> > > interface up using 'ip link set eth0 up' but eth0 status is > > > always > > > >> >> DOWN > > > >> >> > > unless I plug it into a network. > > > >> >> > > > > > >> >> > > > > > >> >> > > Regards > > > >> >> > > Karan Pugla > > > >> >> > > > > > >> >> > > > > >> >> > > > >> > > > > >> > > > > >> > > > > >> > -- > > > >> > Rafael Weingartner > > > >> > > > > >> > > > >> > > > >> > > > >> -- > > > >> Rafael Weingartner > > > >> > > > > > > > > > > > > > > > > > > > -- > > Rafael Weingartner > > > -- Rafael Weingartner --001a11c3409cdfe0f604e78be493--