You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by Sarath Chandra <sa...@gmail.com> on 2013/08/06 13:33:41 UTC

Help needed with Cloudstack Setup

Hi All,

I am doing a fresh cloudstack installation and am not able to instantiate
any VMs (both system & guest vms). I am seeing the following errors:

ERROR [network.element.SspElement] (consoleproxy-1:ctx-6d22b00c)
ReservationContext was null for NicProfile[2-1-null-null-null
Ntwk[202|Control|3]
ERROR [network.element.SspElement] (secstorage-1:ctx-3f99cd9c)
ReservationContext was null for NicProfile[84-22-null-10.20.30.11-null
Ntwk[200|Public|1]
ERROR [network.element.SspElement] (consoleproxy-1:ctx-6d22b00c)
ReservationContext was null for NicProfile[3-1-null-null-null
Ntwk[201|Management|2]
WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl]
(consoleproxy-1:ctx-6d22b00c) Exception while trying to start console proxy
com.cloud.exception.InsufficientServerCapacityException: Unable to create a
deployment for VM[ConsoleProxy|v-1-VM]Scope=interface
com.cloud.dc.DataCenter; id=1

at a later place
com.cloud.utils.exception.CloudRuntimeException: Failed to find template
routing-3 in VMTemplateStoragePool


I suspect my configuration is wrong some where. Can anybody kindly check
and confirm if my configuration is right. If its right, then please point
me to the likely cause of this issue.


I have attached a picture to this mail which shows my lab setup. To give a
brief, the following is my setup:

Server <----------> Switch 1 <--------------> Switch 2 <---------------->
KVM Hypervisor

The switches allow all Vlan traffic to pass through them (basically trunk
all and have added vlans 3100,3200,3300 to both the switches)


On my server I have done the following:


   - Ubuntu 13.04 OS
   - Started NFS and exported to /mnt/primary (not using this) and
   /mnt/secondary
   - Installed the System template by executing the command  :
   cloud-install-sys-tmplt -m /mnt/secondary -u
   http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2-h
kvm -o localhost -r root -d
   - $ mvn clean install -P developer,systemvm
   - $ mvn -P developer -pl developer -Ddeploydb  (Deployed the db)
   - $ mvn -pl :cloud-client-ui jetty:run  (Started the management server)

On my hypervisor I have the following:

   - Ubuntu 13.04 OS
   - KVM as hypervisor

*Server Interface configuration:*
eth0 : Corporate Lab network ip (lets call it as server-corporate-ip)
eth1.3200 : 172.16.10.1 (assigned during CS setup)   [eth1.3200 is a
subinterface on eth1]

*Global Settings*:
system.vm.use.local.storage = true

*Zone Setup details*:
DNS 1    8.8.8.8
DNS 2    8.8.4.4
Internal DNS 1    172.16.10.1
Guest CIDR    10.1.1.0/24
Local storage enabled    Yes

*Pod Setup*
Netmask    255.255.255.0
Start IP    172.16.20.10
End IP    172.16.20.100
Gateway    172.16.20.1
Allocation State    Enabled
Dedicated    No

*Cluster Setup*
Zone    Zone-1
Pod    Pod-1
Hypervisor    KVM
Cluster Type    CloudManaged

*Host Setup*
Resource state    Enabled
State    Up
Type    Routing  (?????? why routing????)
Host Tags
OS Preference    None
Zone    Zone-1
Pod    Pod-1
Cluster    Cluster-1
IP Address    172.16.10.10
Version    4.2.0-SNAPSHOT
Dedicated    No

*Primary Storage (Auto Configured)*
Name : <Hypervisor name> Local Storage
State    Up
Pod    Pod-1
Cluster    Cluster-1
Type    Filesystem
IP Address    172.16.10.10
Path    /var/lib/libvirt/images
Disk Total    221.23 GB

*Secondary Storage*
Name : SecondaryStorage-1
URL    nfs://server-corporate-ip/mnt/secondary
Provider    NFS
Scope    ZONE
Zone    Zone-1


*Hypervisor Interface configuration:*
eth0 : Corporate Lab network ip (lets call it as host-corporate-ip)
eth1.3100 : 172.16.10.10
eth1.3200 : assigned to cloudbr0
eth1.3300 : assigned to cloudbr1

I have created the sub-interfaces as per CS hypervisor install guide.

*agent.properties* (has got auto configured)
#Storage
#Tue Aug 06 15:20:15 IST 2013
guest.network.device=cloudbr0
workers=5
private.network.device=
cloudbr0
port=8250
resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
pod=1
zone=1
guid=acc23093-6630-3c1a-aeb0-39367415bf6b
cluster=1
public.network.device=cloudbr0
local.storage.uuid=7c7e70ab-7e5d-4766-8d5c-f51935b780c4
domr.scripts.dir=scripts/network/domr/kvm
host=server-corporate-ip
LibvirtComputingResource.id=1


thanks and regards,
Sarath

Re: Help needed with Cloudstack Setup

Posted by Marcus Sorensen <sh...@gmail.com>.
No idea, it's been mostly off of my radar. I just happened to try to
test a few fixes and 4.2 was having problems with local storage.  At
the least I'd say it's not a good idea for someone to use it (or any
non-production version) right now if they're setting up cloudstack for
the first time.

On Wed, Aug 7, 2013 at 2:04 PM, Chip Childers <ch...@sungard.com> wrote:
> On Wed, Aug 07, 2013 at 01:50:28PM -0600, Marcus Sorensen wrote:
>> Local storage wasn't working at all yesterday in 4.2. Fixed last night. Not
>> sure if that is related.
>
> The master / 4.2 quality seems to be churning a ton...  this isn't a
> good sign IMO.  Did we cram in too much at the end again?

Re: Help needed with Cloudstack Setup

Posted by Chip Childers <ch...@sungard.com>.
On Wed, Aug 07, 2013 at 01:50:28PM -0600, Marcus Sorensen wrote:
> Local storage wasn't working at all yesterday in 4.2. Fixed last night. Not
> sure if that is related.

The master / 4.2 quality seems to be churning a ton...  this isn't a
good sign IMO.  Did we cram in too much at the end again?

Re: Help needed with Cloudstack Setup

Posted by Marcus Sorensen <sh...@gmail.com>.
Local storage wasn't working at all yesterday in 4.2. Fixed last night. Not
sure if that is related.
On Aug 7, 2013 1:32 PM, "Sarath Chandra" <sa...@gmail.com>
wrote:

> Hi All,
>
> Thanks for your inputs. I have tried with the suggested changes but could
> not get it working. I started from scratch again to see if it helps. But I
> seem to be going wrong in some place.
>
> Can some one kinldy go though the below setup and tell me if its right. I
> am stuck since a week trying to get this running :(
>
> I have the following setup:
>
> Cloudstack Management Server
>
> Port 20 of Switch (Trunk all + with necessary Vlans)
>
> Hypervisor (Ubuntu + KVM)
>
> Port 22 of Switch (Trunk all + with necessary Vlans)
>
>
> I am thinking of having the following networks/sub-networks:
> mgmt/public/private/storage - 172.16.10.0/24 network
>
> Mangement
>
> Server - 172.16.10.1, Hypervisor – 172.16.10.10
>
> Public
>
> 172.16.10.20 - 172.16.10.30
>
> Private (System VMs e.t.c)
>
> 172.16.10.31 - 172.16.10.200
>
> Guest
>
> 10.1.1.0/24
>
>
> *Server Side Configuration*
>
> CloudStack Server:
>
>   eth0
>
> Corporate lab ip (lets say 1.1.1.1)
>
> eth1.3100
>
> Subinterface of Eth1 with Vlan 3100,  IP: 172.16.10.1
>
>
> *Global settings*
>
> system.vm.use.local.storage = true
>
>
> *Zone Creation Wizard for Advanced Network
> *
>
> Name : Zone-1**
>
> DNS1 : 8.8.8.8
>
> Internal DNS1 : 8.8.8.8
>
> Hypervisor : KVM
>
> Guest CIDR = 10.1.1.0/24
>
> Local Storage enabled = true
>
>
> *Network Setup*
>
> Physical Network 1 : Isolation Method Vlan
>
> mgmt -- ???????? gave cloudbr0 (on the hypervisor, I have eth1.3100
> assigned with IP 172.16.10.10 for mgmt traffic, cant add a bridge to it)
>
> public -- cloudbr0
>
> guest -- cloudbr1
>
>
> *Public IP range
> *
>
> GW : 172.16.10.1/24  (ip of the CS server)
>
> Vlan : 3200    (Public traffic Vlan)
>
> IP range : 172.16.10.20 - 172.16.10.30
>
>
> *POD*
>
> GW : 172.16.10.1/24  (ip of the CS server)
>
> IP Range (Private n/w) : 172.16.10.31 - 172.16.10.200
>
>
> *Guest*
>
>    - Skipped Vlan range for guest traffic
>
> *Cluster*
> Name : Cluster-1
> Hypervisor : KVM
>
> *Host*
> Name : Corporate Lab IP for Host (lets say 2.2.2.2)
> username & password
>
> *Primary Storage*  : Gets skipped as I have selected local storage to true.
>
> *Secondary Storage*
> Provider : NFS
> Name : SecondaryStorage-1
> NFS Server : CS Server Corporate ip (1.1.1.1)
> path : /mnt/secondary
>
> *Hypervisor (Ubuntu 13.04 + KVM)*
>
>   eth0
>
> Corporate Lab ip (2.2.2.2)
>
> eth1.3100
>
> 172.16.10.10   GW: 172.16.10.1
>
> eth1.3200
>
> Added to bridge Cloudbr0
>
> eth1.3300
>
> Added to bridge Cloudbr1
>
>
>
>
>
> Agent is setup properly and is able to communicate with the server.
>
> *Is this configuration correct or am I missing something??*
>
> I have seeded the SystemVM with the proper 4.2 templates as per Prasanna's
> suggestion today. My Setup due to some reason is not able to start the
> console proxy & SSVMs.
>
>
> Thanks in advance for your suggestions.
>
>
> regards,
>
> Sarath
>

Re: Help needed with Cloudstack Setup

Posted by Sarath Chandra <sa...@gmail.com>.
Thanks to everyone. I have been out of action since a few days and could
not work on the given suggestions. Will try out all the suggestions using
4.1.1 instead of 4.2.0.

regards,
Sarath


On Tue, Aug 13, 2013 at 10:44 PM, Chiradeep Vittal <
Chiradeep.Vittal@citrix.com> wrote:

> Also, since 4.2 is still stabilizing, try out 4.1.1 first.
>
> On 8/7/13 1:19 PM, "Ron Wheeler" <rw...@artifact-software.com> wrote:
>
> >Do you have any error messages in the log files that you can share?
> >
> >Ron
> >
> >On 07/08/2013 3:37 PM, Sarath Chandra wrote:
> >> Hi All,
> >>
> >> Thanks for your inputs. I have tried with the suggested changes but
> >>could
> >> not get it working. I started from scratch again to see if it helps.
> >>But I
> >> seem to be going wrong in some place.
> >>
> >> Can some one kinldy go though the below setup and tell me if its right.
> >>I
> >> am stuck since a week trying to get this running :(
> >>
> >> I have the following setup:
> >>
> >> Cloudstack Management Server
> >>
> >> Port 20 of Switch (Trunk all + with necessary Vlans)
> >>
> >> Hypervisor (Ubuntu + KVM)
> >>
> >> Port 22 of Switch (Trunk all + with necessary Vlans)
> >>
> >>
> >> I am thinking of having the following networks/sub-networks:
> >> mgmt/public/private/storage - 172.16.10.0/24 network
> >>
> >> Mangement
> >>
> >> Server - 172.16.10.1, Hypervisor ­ 172.16.10.10
> >>
> >> Public
> >>
> >> 172.16.10.20 - 172.16.10.30
> >>
> >> Private (System VMs e.t.c)
> >>
> >> 172.16.10.31 - 172.16.10.200
> >>
> >> Guest
> >>
> >> 10.1.1.0/24
> >>
> >>
> >> *Server Side Configuration*
> >>
> >> CloudStack Server:
> >>
> >>    eth0
> >>
> >> Corporate lab ip (lets say 1.1.1.1)
> >>
> >> eth1.3100
> >>
> >> Subinterface of Eth1 with Vlan 3100,  IP: 172.16.10.1
> >>
> >>
> >> *Global settings*
> >>
> >> system.vm.use.local.storage = true
> >>
> >>
> >> *Zone Creation Wizard for Advanced Network
> >> *
> >>
> >> Name : Zone-1**
> >>
> >> DNS1 : 8.8.8.8
> >>
> >> Internal DNS1 : 8.8.8.8
> >>
> >> Hypervisor : KVM
> >>
> >> Guest CIDR = 10.1.1.0/24
> >>
> >> Local Storage enabled = true
> >>
> >>
> >> *Network Setup*
> >>
> >> Physical Network 1 : Isolation Method Vlan
> >>
> >> mgmt -- ???????? gave cloudbr0 (on the hypervisor, I have eth1.3100
> >> assigned with IP 172.16.10.10 for mgmt traffic, cant add a bridge to it)
> >>
> >> public -- cloudbr0
> >>
> >> guest -- cloudbr1
> >>
> >>
> >> *Public IP range
> >> *
> >>
> >> GW : 172.16.10.1/24  (ip of the CS server)
> >>
> >> Vlan : 3200    (Public traffic Vlan)
> >>
> >> IP range : 172.16.10.20 - 172.16.10.30
> >>
> >>
> >> *POD*
> >>
> >> GW : 172.16.10.1/24  (ip of the CS server)
> >>
> >> IP Range (Private n/w) : 172.16.10.31 - 172.16.10.200
> >>
> >>
> >> *Guest*
> >>
> >>     - Skipped Vlan range for guest traffic
> >>
> >> *Cluster*
> >> Name : Cluster-1
> >> Hypervisor : KVM
> >>
> >> *Host*
> >> Name : Corporate Lab IP for Host (lets say 2.2.2.2)
> >> username & password
> >>
> >> *Primary Storage*  : Gets skipped as I have selected local storage to
> >>true.
> >>
> >> *Secondary Storage*
> >> Provider : NFS
> >> Name : SecondaryStorage-1
> >> NFS Server : CS Server Corporate ip (1.1.1.1)
> >> path : /mnt/secondary
> >>
> >> *Hypervisor (Ubuntu 13.04 + KVM)*
> >>
> >>    eth0
> >>
> >> Corporate Lab ip (2.2.2.2)
> >>
> >> eth1.3100
> >>
> >> 172.16.10.10   GW: 172.16.10.1
> >>
> >> eth1.3200
> >>
> >> Added to bridge Cloudbr0
> >>
> >> eth1.3300
> >>
> >> Added to bridge Cloudbr1
> >>
> >>
> >>
> >>
> >>
> >> Agent is setup properly and is able to communicate with the server.
> >>
> >> *Is this configuration correct or am I missing something??*
> >>
> >> I have seeded the SystemVM with the proper 4.2 templates as per
> >>Prasanna's
> >> suggestion today. My Setup due to some reason is not able to start the
> >> console proxy & SSVMs.
> >>
> >>
> >> Thanks in advance for your suggestions.
> >>
> >>
> >> regards,
> >>
> >> Sarath
> >>
> >
> >
> >--
> >Ron Wheeler
> >President
> >Artifact Software Inc
> >email: rwheeler@artifact-software.com
> >skype: ronaldmwheeler
> >phone: 866-970-2435, ext 102
> >
>
>

Re: Help needed with Cloudstack Setup

Posted by Chiradeep Vittal <Ch...@citrix.com>.
Also, since 4.2 is still stabilizing, try out 4.1.1 first.

On 8/7/13 1:19 PM, "Ron Wheeler" <rw...@artifact-software.com> wrote:

>Do you have any error messages in the log files that you can share?
>
>Ron
>
>On 07/08/2013 3:37 PM, Sarath Chandra wrote:
>> Hi All,
>>
>> Thanks for your inputs. I have tried with the suggested changes but
>>could
>> not get it working. I started from scratch again to see if it helps.
>>But I
>> seem to be going wrong in some place.
>>
>> Can some one kinldy go though the below setup and tell me if its right.
>>I
>> am stuck since a week trying to get this running :(
>>
>> I have the following setup:
>>
>> Cloudstack Management Server
>>
>> Port 20 of Switch (Trunk all + with necessary Vlans)
>>
>> Hypervisor (Ubuntu + KVM)
>>
>> Port 22 of Switch (Trunk all + with necessary Vlans)
>>
>>
>> I am thinking of having the following networks/sub-networks:
>> mgmt/public/private/storage - 172.16.10.0/24 network
>>
>> Mangement
>>
>> Server - 172.16.10.1, Hypervisor ­ 172.16.10.10
>>
>> Public
>>
>> 172.16.10.20 - 172.16.10.30
>>
>> Private (System VMs e.t.c)
>>
>> 172.16.10.31 - 172.16.10.200
>>
>> Guest
>>
>> 10.1.1.0/24
>>
>>
>> *Server Side Configuration*
>>
>> CloudStack Server:
>>
>>    eth0
>>
>> Corporate lab ip (lets say 1.1.1.1)
>>
>> eth1.3100
>>
>> Subinterface of Eth1 with Vlan 3100,  IP: 172.16.10.1
>>
>>
>> *Global settings*
>>
>> system.vm.use.local.storage = true
>>
>>
>> *Zone Creation Wizard for Advanced Network
>> *
>>
>> Name : Zone-1**
>>
>> DNS1 : 8.8.8.8
>>
>> Internal DNS1 : 8.8.8.8
>>
>> Hypervisor : KVM
>>
>> Guest CIDR = 10.1.1.0/24
>>
>> Local Storage enabled = true
>>
>>
>> *Network Setup*
>>
>> Physical Network 1 : Isolation Method Vlan
>>
>> mgmt -- ???????? gave cloudbr0 (on the hypervisor, I have eth1.3100
>> assigned with IP 172.16.10.10 for mgmt traffic, cant add a bridge to it)
>>
>> public -- cloudbr0
>>
>> guest -- cloudbr1
>>
>>
>> *Public IP range
>> *
>>
>> GW : 172.16.10.1/24  (ip of the CS server)
>>
>> Vlan : 3200    (Public traffic Vlan)
>>
>> IP range : 172.16.10.20 - 172.16.10.30
>>
>>
>> *POD*
>>
>> GW : 172.16.10.1/24  (ip of the CS server)
>>
>> IP Range (Private n/w) : 172.16.10.31 - 172.16.10.200
>>
>>
>> *Guest*
>>
>>     - Skipped Vlan range for guest traffic
>>
>> *Cluster*
>> Name : Cluster-1
>> Hypervisor : KVM
>>
>> *Host*
>> Name : Corporate Lab IP for Host (lets say 2.2.2.2)
>> username & password
>>
>> *Primary Storage*  : Gets skipped as I have selected local storage to
>>true.
>>
>> *Secondary Storage*
>> Provider : NFS
>> Name : SecondaryStorage-1
>> NFS Server : CS Server Corporate ip (1.1.1.1)
>> path : /mnt/secondary
>>
>> *Hypervisor (Ubuntu 13.04 + KVM)*
>>
>>    eth0
>>
>> Corporate Lab ip (2.2.2.2)
>>
>> eth1.3100
>>
>> 172.16.10.10   GW: 172.16.10.1
>>
>> eth1.3200
>>
>> Added to bridge Cloudbr0
>>
>> eth1.3300
>>
>> Added to bridge Cloudbr1
>>
>>
>>
>>
>>
>> Agent is setup properly and is able to communicate with the server.
>>
>> *Is this configuration correct or am I missing something??*
>>
>> I have seeded the SystemVM with the proper 4.2 templates as per
>>Prasanna's
>> suggestion today. My Setup due to some reason is not able to start the
>> console proxy & SSVMs.
>>
>>
>> Thanks in advance for your suggestions.
>>
>>
>> regards,
>>
>> Sarath
>>
>
>
>-- 
>Ron Wheeler
>President
>Artifact Software Inc
>email: rwheeler@artifact-software.com
>skype: ronaldmwheeler
>phone: 866-970-2435, ext 102
>


Re: Help needed with Cloudstack Setup

Posted by Ron Wheeler <rw...@artifact-software.com>.
Do you have any error messages in the log files that you can share?

Ron

On 07/08/2013 3:37 PM, Sarath Chandra wrote:
> Hi All,
>
> Thanks for your inputs. I have tried with the suggested changes but could
> not get it working. I started from scratch again to see if it helps. But I
> seem to be going wrong in some place.
>
> Can some one kinldy go though the below setup and tell me if its right. I
> am stuck since a week trying to get this running :(
>
> I have the following setup:
>
> Cloudstack Management Server
>
> Port 20 of Switch (Trunk all + with necessary Vlans)
>
> Hypervisor (Ubuntu + KVM)
>
> Port 22 of Switch (Trunk all + with necessary Vlans)
>
>
> I am thinking of having the following networks/sub-networks:
> mgmt/public/private/storage - 172.16.10.0/24 network
>
> Mangement
>
> Server - 172.16.10.1, Hypervisor – 172.16.10.10
>
> Public
>
> 172.16.10.20 - 172.16.10.30
>
> Private (System VMs e.t.c)
>
> 172.16.10.31 - 172.16.10.200
>
> Guest
>
> 10.1.1.0/24
>
>
> *Server Side Configuration*
>
> CloudStack Server:
>
>    eth0
>
> Corporate lab ip (lets say 1.1.1.1)
>
> eth1.3100
>
> Subinterface of Eth1 with Vlan 3100,  IP: 172.16.10.1
>
>
> *Global settings*
>
> system.vm.use.local.storage = true
>
>
> *Zone Creation Wizard for Advanced Network
> *
>
> Name : Zone-1**
>
> DNS1 : 8.8.8.8
>
> Internal DNS1 : 8.8.8.8
>
> Hypervisor : KVM
>
> Guest CIDR = 10.1.1.0/24
>
> Local Storage enabled = true
>
>
> *Network Setup*
>
> Physical Network 1 : Isolation Method Vlan
>
> mgmt -- ???????? gave cloudbr0 (on the hypervisor, I have eth1.3100
> assigned with IP 172.16.10.10 for mgmt traffic, cant add a bridge to it)
>
> public -- cloudbr0
>
> guest -- cloudbr1
>
>
> *Public IP range
> *
>
> GW : 172.16.10.1/24  (ip of the CS server)
>
> Vlan : 3200    (Public traffic Vlan)
>
> IP range : 172.16.10.20 - 172.16.10.30
>
>
> *POD*
>
> GW : 172.16.10.1/24  (ip of the CS server)
>
> IP Range (Private n/w) : 172.16.10.31 - 172.16.10.200
>
>
> *Guest*
>
>     - Skipped Vlan range for guest traffic
>
> *Cluster*
> Name : Cluster-1
> Hypervisor : KVM
>
> *Host*
> Name : Corporate Lab IP for Host (lets say 2.2.2.2)
> username & password
>
> *Primary Storage*  : Gets skipped as I have selected local storage to true.
>
> *Secondary Storage*
> Provider : NFS
> Name : SecondaryStorage-1
> NFS Server : CS Server Corporate ip (1.1.1.1)
> path : /mnt/secondary
>
> *Hypervisor (Ubuntu 13.04 + KVM)*
>
>    eth0
>
> Corporate Lab ip (2.2.2.2)
>
> eth1.3100
>
> 172.16.10.10   GW: 172.16.10.1
>
> eth1.3200
>
> Added to bridge Cloudbr0
>
> eth1.3300
>
> Added to bridge Cloudbr1
>
>
>
>
>
> Agent is setup properly and is able to communicate with the server.
>
> *Is this configuration correct or am I missing something??*
>
> I have seeded the SystemVM with the proper 4.2 templates as per Prasanna's
> suggestion today. My Setup due to some reason is not able to start the
> console proxy & SSVMs.
>
>
> Thanks in advance for your suggestions.
>
>
> regards,
>
> Sarath
>


-- 
Ron Wheeler
President
Artifact Software Inc
email: rwheeler@artifact-software.com
skype: ronaldmwheeler
phone: 866-970-2435, ext 102


Help needed with Cloudstack Setup

Posted by Sarath Chandra <sa...@gmail.com>.
Hi All,

Thanks for your inputs. I have tried with the suggested changes but could
not get it working. I started from scratch again to see if it helps. But I
seem to be going wrong in some place.

Can some one kinldy go though the below setup and tell me if its right. I
am stuck since a week trying to get this running :(

I have the following setup:

Cloudstack Management Server

Port 20 of Switch (Trunk all + with necessary Vlans)

Hypervisor (Ubuntu + KVM)

Port 22 of Switch (Trunk all + with necessary Vlans)


I am thinking of having the following networks/sub-networks:
mgmt/public/private/storage - 172.16.10.0/24 network

Mangement

Server - 172.16.10.1, Hypervisor – 172.16.10.10

Public

172.16.10.20 - 172.16.10.30

Private (System VMs e.t.c)

172.16.10.31 - 172.16.10.200

Guest

10.1.1.0/24


*Server Side Configuration*

CloudStack Server:

  eth0

Corporate lab ip (lets say 1.1.1.1)

eth1.3100

Subinterface of Eth1 with Vlan 3100,  IP: 172.16.10.1


*Global settings*

system.vm.use.local.storage = true


*Zone Creation Wizard for Advanced Network
*

Name : Zone-1**

DNS1 : 8.8.8.8

Internal DNS1 : 8.8.8.8

Hypervisor : KVM

Guest CIDR = 10.1.1.0/24

Local Storage enabled = true


*Network Setup*

Physical Network 1 : Isolation Method Vlan

mgmt -- ???????? gave cloudbr0 (on the hypervisor, I have eth1.3100
assigned with IP 172.16.10.10 for mgmt traffic, cant add a bridge to it)

public -- cloudbr0

guest -- cloudbr1


*Public IP range
*

GW : 172.16.10.1/24  (ip of the CS server)

Vlan : 3200    (Public traffic Vlan)

IP range : 172.16.10.20 - 172.16.10.30


*POD*

GW : 172.16.10.1/24  (ip of the CS server)

IP Range (Private n/w) : 172.16.10.31 - 172.16.10.200


*Guest*

   - Skipped Vlan range for guest traffic

*Cluster*
Name : Cluster-1
Hypervisor : KVM

*Host*
Name : Corporate Lab IP for Host (lets say 2.2.2.2)
username & password

*Primary Storage*  : Gets skipped as I have selected local storage to true.

*Secondary Storage*
Provider : NFS
Name : SecondaryStorage-1
NFS Server : CS Server Corporate ip (1.1.1.1)
path : /mnt/secondary

*Hypervisor (Ubuntu 13.04 + KVM)*

  eth0

Corporate Lab ip (2.2.2.2)

eth1.3100

172.16.10.10   GW: 172.16.10.1

eth1.3200

Added to bridge Cloudbr0

eth1.3300

Added to bridge Cloudbr1





Agent is setup properly and is able to communicate with the server.

*Is this configuration correct or am I missing something??*

I have seeded the SystemVM with the proper 4.2 templates as per Prasanna's
suggestion today. My Setup due to some reason is not able to start the
console proxy & SSVMs.


Thanks in advance for your suggestions.


regards,

Sarath

Re: Help needed with Cloudstack Setup

Posted by Sarath Chandra <sa...@gmail.com>.
Hi All,

Thanks for your inputs. I have tried with the suggested changes but could
not get it working. I started from scratch again to see if it helps. But I
seem to be going wrong in some place.

Can some one kinldy go though the below setup and tell me if its right. I
am stuck since a week trying to get this running :(

I have the following setup:

Cloudstack Management Server

Port 20 of Switch (Trunk all + with necessary Vlans)

Hypervisor (Ubuntu + KVM)

Port 22 of Switch (Trunk all + with necessary Vlans)


I am thinking of having the following networks/sub-networks:
mgmt/public/private/storage - 172.16.10.0/24 network

Mangement

Server - 172.16.10.1, Hypervisor – 172.16.10.10

Public

172.16.10.20 - 172.16.10.30

Private (System VMs e.t.c)

172.16.10.31 - 172.16.10.200

Guest

10.1.1.0/24


*Server Side Configuration*

CloudStack Server:

  eth0

Corporate lab ip (lets say 1.1.1.1)

eth1.3100

Subinterface of Eth1 with Vlan 3100,  IP: 172.16.10.1


*Global settings*

system.vm.use.local.storage = true


*Zone Creation Wizard for Advanced Network
*

Name : Zone-1**

DNS1 : 8.8.8.8

Internal DNS1 : 8.8.8.8

Hypervisor : KVM

Guest CIDR = 10.1.1.0/24

Local Storage enabled = true


*Network Setup*

Physical Network 1 : Isolation Method Vlan

mgmt -- ???????? gave cloudbr0 (on the hypervisor, I have eth1.3100
assigned with IP 172.16.10.10 for mgmt traffic, cant add a bridge to it)

public -- cloudbr0

guest -- cloudbr1


*Public IP range
*

GW : 172.16.10.1/24  (ip of the CS server)

Vlan : 3200    (Public traffic Vlan)

IP range : 172.16.10.20 - 172.16.10.30


*POD*

GW : 172.16.10.1/24  (ip of the CS server)

IP Range (Private n/w) : 172.16.10.31 - 172.16.10.200


*Guest*

   - Skipped Vlan range for guest traffic

*Cluster*
Name : Cluster-1
Hypervisor : KVM

*Host*
Name : Corporate Lab IP for Host (lets say 2.2.2.2)
username & password

*Primary Storage*  : Gets skipped as I have selected local storage to true.

*Secondary Storage*
Provider : NFS
Name : SecondaryStorage-1
NFS Server : CS Server Corporate ip (1.1.1.1)
path : /mnt/secondary

*Hypervisor (Ubuntu 13.04 + KVM)*

  eth0

Corporate Lab ip (2.2.2.2)

eth1.3100

172.16.10.10   GW: 172.16.10.1

eth1.3200

Added to bridge Cloudbr0

eth1.3300

Added to bridge Cloudbr1





Agent is setup properly and is able to communicate with the server.

*Is this configuration correct or am I missing something??*

I have seeded the SystemVM with the proper 4.2 templates as per Prasanna's
suggestion today. My Setup due to some reason is not able to start the
console proxy & SSVMs.


Thanks in advance for your suggestions.


regards,

Sarath

RE: Help needed with Cloudstack Setup

Posted by Sailaja Mada <sa...@citrix.com>.
Hi,

Please use  Xenserver template which is updated @ http://download.cloud.com/templates/4.2/systemvmtemplate-2013-07-12-master-xen.vhd.bz2 

Thanks,
Sailaja.M

-----Original Message-----
From: Dave Cahill [mailto:dcahill@midokura.com] 
Sent: Wednesday, August 07, 2013 1:14 PM
To: dev@cloudstack.apache.org; Marcus Sorensen
Subject: Re: Help needed with Cloudstack Setup

Great stuff, thanks Prasanna!

On Wed, Aug 7, 2013 at 4:34 PM, Prasanna Santhanam <ts...@apache.org> wrote:

> I think Citrix has done this, at least that's why comes out of the db now:
>
> |
> http://download.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-ma
> ster-xen.vhd.bz2  |
> |
> http://download.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-ma
> ster-kvm.qcow2.bz2|
> | http://download.cloud.com/templates/4.2/systemvmtemplate-4.2-vh7.ova
>                   |
>
> On Wed, Aug 07, 2013 at 04:17:26PM +0900, Dave Cahill wrote:
> > Hi Marcus,
> >
> > I wonder could we take the most recent Jenkins-built System VM 
> > template
> and
> > get it hosted
> > somewhere, then let people know the URL? We could then replace the 
> > old acton systemvm URL [1] with the new URL wherever it appears in 
> > docs etc. I'd imagine the template doesn't change all that much from 
> > day to day, and anything would be better than people using the old 
> > acton System VM template.
> >
> > I know people can just navigate to Jenkins, find the most recent 
> > image,
> and
> > download it. However,
> > the URLs become invalid within days (maybe less?), so they have to 
> > go search for it every time, and can't build repeatable 
> > dev-environment setup scripts.
> >
> > What do you think?
> >
> > Thanks,
> > Dave.
> >
> > [1] Old template URL: http://download.cloud
> > .com/templates/acton/acton-systemvm-02062012.qcow2.bz2
> >
> >
> > On Wed, Aug 7, 2013 at 5:55 AM, Marcus Sorensen 
> > <sh...@gmail.com>
> wrote:
> >
> > > 4.2.0-SNAPSHOT <-- this will require a newer system vm than the 
> > > one you installed. see 
> > > http://jenkins.cloudstack.org/view/master/job/build-systemvm-maste
> > > r/
> > >
> > > On Tue, Aug 6, 2013 at 2:52 PM, Marcus Sorensen 
> > > <sh...@gmail.com>
> > > wrote:
> > > > Also, what version are you deploying? 4.1.1?
> > > >
> > > > On Tue, Aug 6, 2013 at 2:48 PM, Marcus Sorensen 
> > > > <shadowsor@gmail.com
> >
> > > wrote:
> > > >> Any reason why you aren't using the developer packages? I don't 
> > > >> see any info regarding the agent install.  Did you also set 
> > > >> your KVM traffic labels for the various networks (I'm assuming 
> > > >> cloubr0 and
> > > >> cloudbr1 are for management, public, guest bridges, but not 
> > > >> sure
> which
> > > >> is which, management is 3200, maybe?) whats the 3100 addr for?
> > > >>
> > > >> On Tue, Aug 6, 2013 at 2:41 PM, Chiradeep Vittal 
> > > >> <Ch...@citrix.com> wrote:
> > > >>> Why would your primary (local) storage have a different IP 
> > > >>> than
> > > host-corporate-ip?
> > > >>> There is also a flag system.vm.use.local.storage which tells
> > > CloudStack to use local storage for system vms.
> > > >>>
> > > >>> From: Sarath Chandra <sarath.cloudstack@gmail.com<mailto:
> > > sarath.cloudstack@gmail.com>>
> > > >>> Reply-To: "dev@cloudstack.apache.org<mailto:
> dev@cloudstack.apache.org>"
> > > <de...@cloudstack.apache.org>>
> > > >>> Date: Tuesday, August 6, 2013 4:33 AM
> > > >>> To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
> <
> > > dev@cloudstack.apache.org<ma...@cloudstack.apache.org>>
> > > >>> Subject: Help needed with Cloudstack Setup
> > > >>>
> > > >>> Hi All,
> > > >>>
> > > >>> I am doing a fresh cloudstack installation and am not able to
> > > instantiate any VMs (both system & guest vms). I am seeing the
> following
> > > errors:
> > > >>>
> > > >>> ERROR [network.element.SspElement] 
> > > >>> (consoleproxy-1:ctx-6d22b00c)
> > > ReservationContext was null for NicProfile[2-1-null-null-null 
> > > Ntwk[202|Control|3]
> > > >>> ERROR [network.element.SspElement] (secstorage-1:ctx-3f99cd9c)
> > > ReservationContext was null for 
> > > NicProfile[84-22-null-10.20.30.11-null
> > > Ntwk[200|Public|1]
> > > >>> ERROR [network.element.SspElement] 
> > > >>> (consoleproxy-1:ctx-6d22b00c)
> > > ReservationContext was null for NicProfile[3-1-null-null-null 
> > > Ntwk[201|Management|2]
> > > >>> WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl]
> > > (consoleproxy-1:ctx-6d22b00c) Exception while trying to start 
> > > console
> proxy
> > > >>> com.cloud.exception.InsufficientServerCapacityException: 
> > > >>> Unable to
> > > create a deployment for VM[ConsoleProxy|v-1-VM]Scope=interface
> > > com.cloud.dc.DataCenter; id=1
> > > >>>
> > > >>> at a later place
> > > >>> com.cloud.utils.exception.CloudRuntimeException: Failed to 
> > > >>> find
> > > template routing-3 in VMTemplateStoragePool
> > > >>>
> > > >>>
> > > >>> I suspect my configuration is wrong some where. Can anybody 
> > > >>> kindly
> > > check and confirm if my configuration is right. If its right, then
> please
> > > point me to the likely cause of this issue.
> > > >>>
> > > >>>
> > > >>> I have attached a picture to this mail which shows my lab 
> > > >>> setup. To
> > > give a brief, the following is my setup:
> > > >>>
> > > >>> Server <----------> Switch 1 <--------------> Switch 2
> > > <----------------> KVM Hypervisor
> > > >>>
> > > >>> The switches allow all Vlan traffic to pass through them 
> > > >>> (basically
> > > trunk all and have added vlans 3100,3200,3300 to both the 
> > > switches)
> > > >>>
> > > >>>
> > > >>> On my server I have done the following:
> > > >>>
> > > >>>
> > > >>>   *   Ubuntu 13.04 OS
> > > >>>   *   Started NFS and exported to /mnt/primary (not using this) and
> > > /mnt/secondary
> > > >>>   *   Installed the System template by executing the command  :
> > >  cloud-install-sys-tmplt -m /mnt/secondary -u
> > >
> http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow
> 2.bz2-hkvm -o localhost -r root -d
> > > >>>   *   $ mvn clean install -P developer,systemvm
> > > >>>   *   $ mvn -P developer -pl developer -Ddeploydb  (Deployed the
> db)
> > > >>>   *   $ mvn -pl :cloud-client-ui jetty:run  (Started the management
> > > server)
> > > >>>
> > > >>> On my hypervisor I have the following:
> > > >>>
> > > >>>   *   Ubuntu 13.04 OS
> > > >>>   *   KVM as hypervisor
> > > >>>
> > > >>> Server Interface configuration:
> > > >>> eth0 : Corporate Lab network ip (lets call it as
> server-corporate-ip)
> > > >>> eth1.3200 : 172.16.10.1 (assigned during CS setup)   [eth1.3200 is
> a
> > > subinterface on eth1]
> > > >>>
> > > >>> Global Settings:
> > > >>> system.vm.use.local.storage = true
> > > >>>
> > > >>> Zone Setup details:
> > > >>>         DNS 1    8.8.8.8
> > > >>> DNS 2    8.8.4.4
> > > >>> Internal DNS 1    172.16.10.1
> > > >>> Guest CIDR    10.1.1.0/24<http://10.1.1.0/24>
> > > >>> Local storage enabled    Yes
> > > >>>
> > > >>>
> > > >>> Pod Setup
> > > >>> Netmask    255.255.255.0
> > > >>> Start IP    172.16.20.10
> > > >>> End IP    172.16.20.100
> > > >>> Gateway    172.16.20.1
> > > >>> Allocation State    Enabled
> > > >>> Dedicated    No
> > > >>>
> > > >>> Cluster Setup
> > > >>> Zone    Zone-1
> > > >>> Pod    Pod-1
> > > >>> Hypervisor    KVM
> > > >>> Cluster Type    CloudManaged
> > > >>>
> > > >>> Host Setup
> > > >>> Resource state    Enabled
> > > >>> State    Up
> > > >>> Type    Routing  (?????? why routing????)
> > > >>> Host Tags
> > > >>> OS Preference    None
> > > >>> Zone    Zone-1
> > > >>> Pod    Pod-1
> > > >>> Cluster    Cluster-1
> > > >>> IP Address    172.16.10.10
> > > >>> Version    4.2.0-SNAPSHOT
> > > >>> Dedicated    No
> > > >>>
> > > >>> Primary Storage (Auto Configured) Name : <Hypervisor name> 
> > > >>> Local Storage
> > > >>> State    Up
> > > >>> Pod    Pod-1
> > > >>> Cluster    Cluster-1
> > > >>> Type    Filesystem
> > > >>> IP Address    172.16.10.10
> > > >>> Path    /var/lib/libvirt/images
> > > >>> Disk Total    221.23 GB
> > > >>>
> > > >>> Secondary Storage
> > > >>> Name : SecondaryStorage-1
> > > >>> URL    nfs://server-corporate-ip/mnt/secondary
> > > >>> Provider    NFS
> > > >>> Scope    ZONE
> > > >>> Zone    Zone-1
> > > >>>
> > > >>>
> > > >>> Hypervisor Interface configuration:
> > > >>> eth0 : Corporate Lab network ip (lets call it 
> > > >>> ashost-corporate-ip)
> > > >>> eth1.3100 : 172.16.10.10
> > > >>> eth1.3200 : assigned to cloudbr0
> > > >>> eth1.3300 : assigned to cloudbr1
> > > >>>
> > > >>> I have created the sub-interfaces as per CS hypervisor install
> guide.
> > > >>>
> > > >>> agent.properties (has got auto configured) #Storage #Tue Aug 
> > > >>> 06 15:20:15 IST 2013
> > > >>> guest.network.device=cloudbr0
> > > >>> workers=5
> > > >>> private.network.device=
> > > >>> cloudbr0
> > > >>> port=8250
> > > >>> resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingRes
> > > >>> ource
> > > >>> pod=1
> > > >>> zone=1
> > > >>> guid=acc23093-6630-3c1a-aeb0-39367415bf6b
> > > >>> cluster=1
> > > >>> public.network.device=cloudbr0
> > > >>> local.storage.uuid=7c7e70ab-7e5d-4766-8d5c-f51935b780c4
> > > >>> domr.scripts.dir=scripts/network/domr/kvm
> > > >>> host=server-corporate-ip
> > > >>> LibvirtComputingResource.id=1
> > > >>>
> > > >>>
> > > >>> thanks and regards,
> > > >>> Sarath
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > >
>
> --
> Prasanna.,
>
> ------------------------
> Powered by BigRock.com
>
>

Re: Help needed with Cloudstack Setup

Posted by Dave Cahill <dc...@midokura.com>.
Great stuff, thanks Prasanna!

On Wed, Aug 7, 2013 at 4:34 PM, Prasanna Santhanam <ts...@apache.org> wrote:

> I think Citrix has done this, at least that's why comes out of the db now:
>
> |
> http://download.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-master-xen.vhd.bz2  |
> |
> http://download.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-master-kvm.qcow2.bz2|
> | http://download.cloud.com/templates/4.2/systemvmtemplate-4.2-vh7.ova
>                   |
>
> On Wed, Aug 07, 2013 at 04:17:26PM +0900, Dave Cahill wrote:
> > Hi Marcus,
> >
> > I wonder could we take the most recent Jenkins-built System VM template
> and
> > get it hosted
> > somewhere, then let people know the URL? We could then replace the old
> > acton systemvm
> > URL [1] with the new URL wherever it appears in docs etc. I'd imagine the
> > template doesn't
> > change all that much from day to day, and anything would be better than
> > people using the
> > old acton System VM template.
> >
> > I know people can just navigate to Jenkins, find the most recent image,
> and
> > download it. However,
> > the URLs become invalid within days (maybe less?), so they have to go
> > search for it every time,
> > and can't build repeatable dev-environment setup scripts.
> >
> > What do you think?
> >
> > Thanks,
> > Dave.
> >
> > [1] Old template URL: http://download.cloud
> > .com/templates/acton/acton-systemvm-02062012.qcow2.bz2
> >
> >
> > On Wed, Aug 7, 2013 at 5:55 AM, Marcus Sorensen <sh...@gmail.com>
> wrote:
> >
> > > 4.2.0-SNAPSHOT <-- this will require a newer system vm than the one
> > > you installed. see
> > > http://jenkins.cloudstack.org/view/master/job/build-systemvm-master/
> > >
> > > On Tue, Aug 6, 2013 at 2:52 PM, Marcus Sorensen <sh...@gmail.com>
> > > wrote:
> > > > Also, what version are you deploying? 4.1.1?
> > > >
> > > > On Tue, Aug 6, 2013 at 2:48 PM, Marcus Sorensen <shadowsor@gmail.com
> >
> > > wrote:
> > > >> Any reason why you aren't using the developer packages? I don't see
> > > >> any info regarding the agent install.  Did you also set your KVM
> > > >> traffic labels for the various networks (I'm assuming cloubr0 and
> > > >> cloudbr1 are for management, public, guest bridges, but not sure
> which
> > > >> is which, management is 3200, maybe?) whats the 3100 addr for?
> > > >>
> > > >> On Tue, Aug 6, 2013 at 2:41 PM, Chiradeep Vittal
> > > >> <Ch...@citrix.com> wrote:
> > > >>> Why would your primary (local) storage have a different IP than
> > > host-corporate-ip?
> > > >>> There is also a flag system.vm.use.local.storage which tells
> > > CloudStack to use local storage for system vms.
> > > >>>
> > > >>> From: Sarath Chandra <sarath.cloudstack@gmail.com<mailto:
> > > sarath.cloudstack@gmail.com>>
> > > >>> Reply-To: "dev@cloudstack.apache.org<mailto:
> dev@cloudstack.apache.org>"
> > > <de...@cloudstack.apache.org>>
> > > >>> Date: Tuesday, August 6, 2013 4:33 AM
> > > >>> To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
> <
> > > dev@cloudstack.apache.org<ma...@cloudstack.apache.org>>
> > > >>> Subject: Help needed with Cloudstack Setup
> > > >>>
> > > >>> Hi All,
> > > >>>
> > > >>> I am doing a fresh cloudstack installation and am not able to
> > > instantiate any VMs (both system & guest vms). I am seeing the
> following
> > > errors:
> > > >>>
> > > >>> ERROR [network.element.SspElement] (consoleproxy-1:ctx-6d22b00c)
> > > ReservationContext was null for NicProfile[2-1-null-null-null
> > > Ntwk[202|Control|3]
> > > >>> ERROR [network.element.SspElement] (secstorage-1:ctx-3f99cd9c)
> > > ReservationContext was null for NicProfile[84-22-null-10.20.30.11-null
> > > Ntwk[200|Public|1]
> > > >>> ERROR [network.element.SspElement] (consoleproxy-1:ctx-6d22b00c)
> > > ReservationContext was null for NicProfile[3-1-null-null-null
> > > Ntwk[201|Management|2]
> > > >>> WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl]
> > > (consoleproxy-1:ctx-6d22b00c) Exception while trying to start console
> proxy
> > > >>> com.cloud.exception.InsufficientServerCapacityException: Unable to
> > > create a deployment for VM[ConsoleProxy|v-1-VM]Scope=interface
> > > com.cloud.dc.DataCenter; id=1
> > > >>>
> > > >>> at a later place
> > > >>> com.cloud.utils.exception.CloudRuntimeException: Failed to find
> > > template routing-3 in VMTemplateStoragePool
> > > >>>
> > > >>>
> > > >>> I suspect my configuration is wrong some where. Can anybody kindly
> > > check and confirm if my configuration is right. If its right, then
> please
> > > point me to the likely cause of this issue.
> > > >>>
> > > >>>
> > > >>> I have attached a picture to this mail which shows my lab setup. To
> > > give a brief, the following is my setup:
> > > >>>
> > > >>> Server <----------> Switch 1 <--------------> Switch 2
> > > <----------------> KVM Hypervisor
> > > >>>
> > > >>> The switches allow all Vlan traffic to pass through them (basically
> > > trunk all and have added vlans 3100,3200,3300 to both the switches)
> > > >>>
> > > >>>
> > > >>> On my server I have done the following:
> > > >>>
> > > >>>
> > > >>>   *   Ubuntu 13.04 OS
> > > >>>   *   Started NFS and exported to /mnt/primary (not using this) and
> > > /mnt/secondary
> > > >>>   *   Installed the System template by executing the command  :
> > >  cloud-install-sys-tmplt -m /mnt/secondary -u
> > >
> http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2-hkvm -o localhost -r root -d
> > > >>>   *   $ mvn clean install -P developer,systemvm
> > > >>>   *   $ mvn -P developer -pl developer -Ddeploydb  (Deployed the
> db)
> > > >>>   *   $ mvn -pl :cloud-client-ui jetty:run  (Started the management
> > > server)
> > > >>>
> > > >>> On my hypervisor I have the following:
> > > >>>
> > > >>>   *   Ubuntu 13.04 OS
> > > >>>   *   KVM as hypervisor
> > > >>>
> > > >>> Server Interface configuration:
> > > >>> eth0 : Corporate Lab network ip (lets call it as
> server-corporate-ip)
> > > >>> eth1.3200 : 172.16.10.1 (assigned during CS setup)   [eth1.3200 is
> a
> > > subinterface on eth1]
> > > >>>
> > > >>> Global Settings:
> > > >>> system.vm.use.local.storage = true
> > > >>>
> > > >>> Zone Setup details:
> > > >>>         DNS 1    8.8.8.8
> > > >>> DNS 2    8.8.4.4
> > > >>> Internal DNS 1    172.16.10.1
> > > >>> Guest CIDR    10.1.1.0/24<http://10.1.1.0/24>
> > > >>> Local storage enabled    Yes
> > > >>>
> > > >>>
> > > >>> Pod Setup
> > > >>> Netmask    255.255.255.0
> > > >>> Start IP    172.16.20.10
> > > >>> End IP    172.16.20.100
> > > >>> Gateway    172.16.20.1
> > > >>> Allocation State    Enabled
> > > >>> Dedicated    No
> > > >>>
> > > >>> Cluster Setup
> > > >>> Zone    Zone-1
> > > >>> Pod    Pod-1
> > > >>> Hypervisor    KVM
> > > >>> Cluster Type    CloudManaged
> > > >>>
> > > >>> Host Setup
> > > >>> Resource state    Enabled
> > > >>> State    Up
> > > >>> Type    Routing  (?????? why routing????)
> > > >>> Host Tags
> > > >>> OS Preference    None
> > > >>> Zone    Zone-1
> > > >>> Pod    Pod-1
> > > >>> Cluster    Cluster-1
> > > >>> IP Address    172.16.10.10
> > > >>> Version    4.2.0-SNAPSHOT
> > > >>> Dedicated    No
> > > >>>
> > > >>> Primary Storage (Auto Configured)
> > > >>> Name : <Hypervisor name> Local Storage
> > > >>> State    Up
> > > >>> Pod    Pod-1
> > > >>> Cluster    Cluster-1
> > > >>> Type    Filesystem
> > > >>> IP Address    172.16.10.10
> > > >>> Path    /var/lib/libvirt/images
> > > >>> Disk Total    221.23 GB
> > > >>>
> > > >>> Secondary Storage
> > > >>> Name : SecondaryStorage-1
> > > >>> URL    nfs://server-corporate-ip/mnt/secondary
> > > >>> Provider    NFS
> > > >>> Scope    ZONE
> > > >>> Zone    Zone-1
> > > >>>
> > > >>>
> > > >>> Hypervisor Interface configuration:
> > > >>> eth0 : Corporate Lab network ip (lets call it ashost-corporate-ip)
> > > >>> eth1.3100 : 172.16.10.10
> > > >>> eth1.3200 : assigned to cloudbr0
> > > >>> eth1.3300 : assigned to cloudbr1
> > > >>>
> > > >>> I have created the sub-interfaces as per CS hypervisor install
> guide.
> > > >>>
> > > >>> agent.properties (has got auto configured)
> > > >>> #Storage
> > > >>> #Tue Aug 06 15:20:15 IST 2013
> > > >>> guest.network.device=cloudbr0
> > > >>> workers=5
> > > >>> private.network.device=
> > > >>> cloudbr0
> > > >>> port=8250
> > > >>> resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
> > > >>> pod=1
> > > >>> zone=1
> > > >>> guid=acc23093-6630-3c1a-aeb0-39367415bf6b
> > > >>> cluster=1
> > > >>> public.network.device=cloudbr0
> > > >>> local.storage.uuid=7c7e70ab-7e5d-4766-8d5c-f51935b780c4
> > > >>> domr.scripts.dir=scripts/network/domr/kvm
> > > >>> host=server-corporate-ip
> > > >>> LibvirtComputingResource.id=1
> > > >>>
> > > >>>
> > > >>> thanks and regards,
> > > >>> Sarath
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > > >>>
> > >
>
> --
> Prasanna.,
>
> ------------------------
> Powered by BigRock.com
>
>

Re: Help needed with Cloudstack Setup

Posted by Prasanna Santhanam <ts...@apache.org>.
I think Citrix has done this, at least that's why comes out of the db now:

| http://download.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-master-xen.vhd.bz2   |
| http://download.cloud.com/templates/4.2/systemvmtemplate-2013-06-12-master-kvm.qcow2.bz2 |
| http://download.cloud.com/templates/4.2/systemvmtemplate-4.2-vh7.ova                     |

On Wed, Aug 07, 2013 at 04:17:26PM +0900, Dave Cahill wrote:
> Hi Marcus,
> 
> I wonder could we take the most recent Jenkins-built System VM template and
> get it hosted
> somewhere, then let people know the URL? We could then replace the old
> acton systemvm
> URL [1] with the new URL wherever it appears in docs etc. I'd imagine the
> template doesn't
> change all that much from day to day, and anything would be better than
> people using the
> old acton System VM template.
> 
> I know people can just navigate to Jenkins, find the most recent image, and
> download it. However,
> the URLs become invalid within days (maybe less?), so they have to go
> search for it every time,
> and can't build repeatable dev-environment setup scripts.
> 
> What do you think?
> 
> Thanks,
> Dave.
> 
> [1] Old template URL: http://download.cloud
> .com/templates/acton/acton-systemvm-02062012.qcow2.bz2
> 
> 
> On Wed, Aug 7, 2013 at 5:55 AM, Marcus Sorensen <sh...@gmail.com> wrote:
> 
> > 4.2.0-SNAPSHOT <-- this will require a newer system vm than the one
> > you installed. see
> > http://jenkins.cloudstack.org/view/master/job/build-systemvm-master/
> >
> > On Tue, Aug 6, 2013 at 2:52 PM, Marcus Sorensen <sh...@gmail.com>
> > wrote:
> > > Also, what version are you deploying? 4.1.1?
> > >
> > > On Tue, Aug 6, 2013 at 2:48 PM, Marcus Sorensen <sh...@gmail.com>
> > wrote:
> > >> Any reason why you aren't using the developer packages? I don't see
> > >> any info regarding the agent install.  Did you also set your KVM
> > >> traffic labels for the various networks (I'm assuming cloubr0 and
> > >> cloudbr1 are for management, public, guest bridges, but not sure which
> > >> is which, management is 3200, maybe?) whats the 3100 addr for?
> > >>
> > >> On Tue, Aug 6, 2013 at 2:41 PM, Chiradeep Vittal
> > >> <Ch...@citrix.com> wrote:
> > >>> Why would your primary (local) storage have a different IP than
> > host-corporate-ip?
> > >>> There is also a flag system.vm.use.local.storage which tells
> > CloudStack to use local storage for system vms.
> > >>>
> > >>> From: Sarath Chandra <sarath.cloudstack@gmail.com<mailto:
> > sarath.cloudstack@gmail.com>>
> > >>> Reply-To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
> > <de...@cloudstack.apache.org>>
> > >>> Date: Tuesday, August 6, 2013 4:33 AM
> > >>> To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>" <
> > dev@cloudstack.apache.org<ma...@cloudstack.apache.org>>
> > >>> Subject: Help needed with Cloudstack Setup
> > >>>
> > >>> Hi All,
> > >>>
> > >>> I am doing a fresh cloudstack installation and am not able to
> > instantiate any VMs (both system & guest vms). I am seeing the following
> > errors:
> > >>>
> > >>> ERROR [network.element.SspElement] (consoleproxy-1:ctx-6d22b00c)
> > ReservationContext was null for NicProfile[2-1-null-null-null
> > Ntwk[202|Control|3]
> > >>> ERROR [network.element.SspElement] (secstorage-1:ctx-3f99cd9c)
> > ReservationContext was null for NicProfile[84-22-null-10.20.30.11-null
> > Ntwk[200|Public|1]
> > >>> ERROR [network.element.SspElement] (consoleproxy-1:ctx-6d22b00c)
> > ReservationContext was null for NicProfile[3-1-null-null-null
> > Ntwk[201|Management|2]
> > >>> WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl]
> > (consoleproxy-1:ctx-6d22b00c) Exception while trying to start console proxy
> > >>> com.cloud.exception.InsufficientServerCapacityException: Unable to
> > create a deployment for VM[ConsoleProxy|v-1-VM]Scope=interface
> > com.cloud.dc.DataCenter; id=1
> > >>>
> > >>> at a later place
> > >>> com.cloud.utils.exception.CloudRuntimeException: Failed to find
> > template routing-3 in VMTemplateStoragePool
> > >>>
> > >>>
> > >>> I suspect my configuration is wrong some where. Can anybody kindly
> > check and confirm if my configuration is right. If its right, then please
> > point me to the likely cause of this issue.
> > >>>
> > >>>
> > >>> I have attached a picture to this mail which shows my lab setup. To
> > give a brief, the following is my setup:
> > >>>
> > >>> Server <----------> Switch 1 <--------------> Switch 2
> > <----------------> KVM Hypervisor
> > >>>
> > >>> The switches allow all Vlan traffic to pass through them (basically
> > trunk all and have added vlans 3100,3200,3300 to both the switches)
> > >>>
> > >>>
> > >>> On my server I have done the following:
> > >>>
> > >>>
> > >>>   *   Ubuntu 13.04 OS
> > >>>   *   Started NFS and exported to /mnt/primary (not using this) and
> > /mnt/secondary
> > >>>   *   Installed the System template by executing the command  :
> >  cloud-install-sys-tmplt -m /mnt/secondary -u
> > http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2-h kvm -o localhost -r root -d
> > >>>   *   $ mvn clean install -P developer,systemvm
> > >>>   *   $ mvn -P developer -pl developer -Ddeploydb  (Deployed the db)
> > >>>   *   $ mvn -pl :cloud-client-ui jetty:run  (Started the management
> > server)
> > >>>
> > >>> On my hypervisor I have the following:
> > >>>
> > >>>   *   Ubuntu 13.04 OS
> > >>>   *   KVM as hypervisor
> > >>>
> > >>> Server Interface configuration:
> > >>> eth0 : Corporate Lab network ip (lets call it as server-corporate-ip)
> > >>> eth1.3200 : 172.16.10.1 (assigned during CS setup)   [eth1.3200 is a
> > subinterface on eth1]
> > >>>
> > >>> Global Settings:
> > >>> system.vm.use.local.storage = true
> > >>>
> > >>> Zone Setup details:
> > >>>         DNS 1    8.8.8.8
> > >>> DNS 2    8.8.4.4
> > >>> Internal DNS 1    172.16.10.1
> > >>> Guest CIDR    10.1.1.0/24<http://10.1.1.0/24>
> > >>> Local storage enabled    Yes
> > >>>
> > >>>
> > >>> Pod Setup
> > >>> Netmask    255.255.255.0
> > >>> Start IP    172.16.20.10
> > >>> End IP    172.16.20.100
> > >>> Gateway    172.16.20.1
> > >>> Allocation State    Enabled
> > >>> Dedicated    No
> > >>>
> > >>> Cluster Setup
> > >>> Zone    Zone-1
> > >>> Pod    Pod-1
> > >>> Hypervisor    KVM
> > >>> Cluster Type    CloudManaged
> > >>>
> > >>> Host Setup
> > >>> Resource state    Enabled
> > >>> State    Up
> > >>> Type    Routing  (?????? why routing????)
> > >>> Host Tags
> > >>> OS Preference    None
> > >>> Zone    Zone-1
> > >>> Pod    Pod-1
> > >>> Cluster    Cluster-1
> > >>> IP Address    172.16.10.10
> > >>> Version    4.2.0-SNAPSHOT
> > >>> Dedicated    No
> > >>>
> > >>> Primary Storage (Auto Configured)
> > >>> Name : <Hypervisor name> Local Storage
> > >>> State    Up
> > >>> Pod    Pod-1
> > >>> Cluster    Cluster-1
> > >>> Type    Filesystem
> > >>> IP Address    172.16.10.10
> > >>> Path    /var/lib/libvirt/images
> > >>> Disk Total    221.23 GB
> > >>>
> > >>> Secondary Storage
> > >>> Name : SecondaryStorage-1
> > >>> URL    nfs://server-corporate-ip/mnt/secondary
> > >>> Provider    NFS
> > >>> Scope    ZONE
> > >>> Zone    Zone-1
> > >>>
> > >>>
> > >>> Hypervisor Interface configuration:
> > >>> eth0 : Corporate Lab network ip (lets call it ashost-corporate-ip)
> > >>> eth1.3100 : 172.16.10.10
> > >>> eth1.3200 : assigned to cloudbr0
> > >>> eth1.3300 : assigned to cloudbr1
> > >>>
> > >>> I have created the sub-interfaces as per CS hypervisor install guide.
> > >>>
> > >>> agent.properties (has got auto configured)
> > >>> #Storage
> > >>> #Tue Aug 06 15:20:15 IST 2013
> > >>> guest.network.device=cloudbr0
> > >>> workers=5
> > >>> private.network.device=
> > >>> cloudbr0
> > >>> port=8250
> > >>> resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
> > >>> pod=1
> > >>> zone=1
> > >>> guid=acc23093-6630-3c1a-aeb0-39367415bf6b
> > >>> cluster=1
> > >>> public.network.device=cloudbr0
> > >>> local.storage.uuid=7c7e70ab-7e5d-4766-8d5c-f51935b780c4
> > >>> domr.scripts.dir=scripts/network/domr/kvm
> > >>> host=server-corporate-ip
> > >>> LibvirtComputingResource.id=1
> > >>>
> > >>>
> > >>> thanks and regards,
> > >>> Sarath
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> > >>>
> >

-- 
Prasanna.,

------------------------
Powered by BigRock.com


Re: Help needed with Cloudstack Setup

Posted by Dave Cahill <dc...@midokura.com>.
Hi Marcus,

I wonder could we take the most recent Jenkins-built System VM template and
get it hosted
somewhere, then let people know the URL? We could then replace the old
acton systemvm
URL [1] with the new URL wherever it appears in docs etc. I'd imagine the
template doesn't
change all that much from day to day, and anything would be better than
people using the
old acton System VM template.

I know people can just navigate to Jenkins, find the most recent image, and
download it. However,
the URLs become invalid within days (maybe less?), so they have to go
search for it every time,
and can't build repeatable dev-environment setup scripts.

What do you think?

Thanks,
Dave.

[1] Old template URL: http://download.cloud
.com/templates/acton/acton-systemvm-02062012.qcow2.bz2


On Wed, Aug 7, 2013 at 5:55 AM, Marcus Sorensen <sh...@gmail.com> wrote:

> 4.2.0-SNAPSHOT <-- this will require a newer system vm than the one
> you installed. see
> http://jenkins.cloudstack.org/view/master/job/build-systemvm-master/
>
> On Tue, Aug 6, 2013 at 2:52 PM, Marcus Sorensen <sh...@gmail.com>
> wrote:
> > Also, what version are you deploying? 4.1.1?
> >
> > On Tue, Aug 6, 2013 at 2:48 PM, Marcus Sorensen <sh...@gmail.com>
> wrote:
> >> Any reason why you aren't using the developer packages? I don't see
> >> any info regarding the agent install.  Did you also set your KVM
> >> traffic labels for the various networks (I'm assuming cloubr0 and
> >> cloudbr1 are for management, public, guest bridges, but not sure which
> >> is which, management is 3200, maybe?) whats the 3100 addr for?
> >>
> >> On Tue, Aug 6, 2013 at 2:41 PM, Chiradeep Vittal
> >> <Ch...@citrix.com> wrote:
> >>> Why would your primary (local) storage have a different IP than
> host-corporate-ip?
> >>> There is also a flag system.vm.use.local.storage which tells
> CloudStack to use local storage for system vms.
> >>>
> >>> From: Sarath Chandra <sarath.cloudstack@gmail.com<mailto:
> sarath.cloudstack@gmail.com>>
> >>> Reply-To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>"
> <de...@cloudstack.apache.org>>
> >>> Date: Tuesday, August 6, 2013 4:33 AM
> >>> To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>" <
> dev@cloudstack.apache.org<ma...@cloudstack.apache.org>>
> >>> Subject: Help needed with Cloudstack Setup
> >>>
> >>> Hi All,
> >>>
> >>> I am doing a fresh cloudstack installation and am not able to
> instantiate any VMs (both system & guest vms). I am seeing the following
> errors:
> >>>
> >>> ERROR [network.element.SspElement] (consoleproxy-1:ctx-6d22b00c)
> ReservationContext was null for NicProfile[2-1-null-null-null
> Ntwk[202|Control|3]
> >>> ERROR [network.element.SspElement] (secstorage-1:ctx-3f99cd9c)
> ReservationContext was null for NicProfile[84-22-null-10.20.30.11-null
> Ntwk[200|Public|1]
> >>> ERROR [network.element.SspElement] (consoleproxy-1:ctx-6d22b00c)
> ReservationContext was null for NicProfile[3-1-null-null-null
> Ntwk[201|Management|2]
> >>> WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl]
> (consoleproxy-1:ctx-6d22b00c) Exception while trying to start console proxy
> >>> com.cloud.exception.InsufficientServerCapacityException: Unable to
> create a deployment for VM[ConsoleProxy|v-1-VM]Scope=interface
> com.cloud.dc.DataCenter; id=1
> >>>
> >>> at a later place
> >>> com.cloud.utils.exception.CloudRuntimeException: Failed to find
> template routing-3 in VMTemplateStoragePool
> >>>
> >>>
> >>> I suspect my configuration is wrong some where. Can anybody kindly
> check and confirm if my configuration is right. If its right, then please
> point me to the likely cause of this issue.
> >>>
> >>>
> >>> I have attached a picture to this mail which shows my lab setup. To
> give a brief, the following is my setup:
> >>>
> >>> Server <----------> Switch 1 <--------------> Switch 2
> <----------------> KVM Hypervisor
> >>>
> >>> The switches allow all Vlan traffic to pass through them (basically
> trunk all and have added vlans 3100,3200,3300 to both the switches)
> >>>
> >>>
> >>> On my server I have done the following:
> >>>
> >>>
> >>>   *   Ubuntu 13.04 OS
> >>>   *   Started NFS and exported to /mnt/primary (not using this) and
> /mnt/secondary
> >>>   *   Installed the System template by executing the command  :
>  cloud-install-sys-tmplt -m /mnt/secondary -u
> http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2-h kvm -o localhost -r root -d
> >>>   *   $ mvn clean install -P developer,systemvm
> >>>   *   $ mvn -P developer -pl developer -Ddeploydb  (Deployed the db)
> >>>   *   $ mvn -pl :cloud-client-ui jetty:run  (Started the management
> server)
> >>>
> >>> On my hypervisor I have the following:
> >>>
> >>>   *   Ubuntu 13.04 OS
> >>>   *   KVM as hypervisor
> >>>
> >>> Server Interface configuration:
> >>> eth0 : Corporate Lab network ip (lets call it as server-corporate-ip)
> >>> eth1.3200 : 172.16.10.1 (assigned during CS setup)   [eth1.3200 is a
> subinterface on eth1]
> >>>
> >>> Global Settings:
> >>> system.vm.use.local.storage = true
> >>>
> >>> Zone Setup details:
> >>>         DNS 1    8.8.8.8
> >>> DNS 2    8.8.4.4
> >>> Internal DNS 1    172.16.10.1
> >>> Guest CIDR    10.1.1.0/24<http://10.1.1.0/24>
> >>> Local storage enabled    Yes
> >>>
> >>>
> >>> Pod Setup
> >>> Netmask    255.255.255.0
> >>> Start IP    172.16.20.10
> >>> End IP    172.16.20.100
> >>> Gateway    172.16.20.1
> >>> Allocation State    Enabled
> >>> Dedicated    No
> >>>
> >>> Cluster Setup
> >>> Zone    Zone-1
> >>> Pod    Pod-1
> >>> Hypervisor    KVM
> >>> Cluster Type    CloudManaged
> >>>
> >>> Host Setup
> >>> Resource state    Enabled
> >>> State    Up
> >>> Type    Routing  (?????? why routing????)
> >>> Host Tags
> >>> OS Preference    None
> >>> Zone    Zone-1
> >>> Pod    Pod-1
> >>> Cluster    Cluster-1
> >>> IP Address    172.16.10.10
> >>> Version    4.2.0-SNAPSHOT
> >>> Dedicated    No
> >>>
> >>> Primary Storage (Auto Configured)
> >>> Name : <Hypervisor name> Local Storage
> >>> State    Up
> >>> Pod    Pod-1
> >>> Cluster    Cluster-1
> >>> Type    Filesystem
> >>> IP Address    172.16.10.10
> >>> Path    /var/lib/libvirt/images
> >>> Disk Total    221.23 GB
> >>>
> >>> Secondary Storage
> >>> Name : SecondaryStorage-1
> >>> URL    nfs://server-corporate-ip/mnt/secondary
> >>> Provider    NFS
> >>> Scope    ZONE
> >>> Zone    Zone-1
> >>>
> >>>
> >>> Hypervisor Interface configuration:
> >>> eth0 : Corporate Lab network ip (lets call it ashost-corporate-ip)
> >>> eth1.3100 : 172.16.10.10
> >>> eth1.3200 : assigned to cloudbr0
> >>> eth1.3300 : assigned to cloudbr1
> >>>
> >>> I have created the sub-interfaces as per CS hypervisor install guide.
> >>>
> >>> agent.properties (has got auto configured)
> >>> #Storage
> >>> #Tue Aug 06 15:20:15 IST 2013
> >>> guest.network.device=cloudbr0
> >>> workers=5
> >>> private.network.device=
> >>> cloudbr0
> >>> port=8250
> >>> resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
> >>> pod=1
> >>> zone=1
> >>> guid=acc23093-6630-3c1a-aeb0-39367415bf6b
> >>> cluster=1
> >>> public.network.device=cloudbr0
> >>> local.storage.uuid=7c7e70ab-7e5d-4766-8d5c-f51935b780c4
> >>> domr.scripts.dir=scripts/network/domr/kvm
> >>> host=server-corporate-ip
> >>> LibvirtComputingResource.id=1
> >>>
> >>>
> >>> thanks and regards,
> >>> Sarath
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>
>

Re: Help needed with Cloudstack Setup

Posted by Marcus Sorensen <sh...@gmail.com>.
4.2.0-SNAPSHOT <-- this will require a newer system vm than the one
you installed. see
http://jenkins.cloudstack.org/view/master/job/build-systemvm-master/

On Tue, Aug 6, 2013 at 2:52 PM, Marcus Sorensen <sh...@gmail.com> wrote:
> Also, what version are you deploying? 4.1.1?
>
> On Tue, Aug 6, 2013 at 2:48 PM, Marcus Sorensen <sh...@gmail.com> wrote:
>> Any reason why you aren't using the developer packages? I don't see
>> any info regarding the agent install.  Did you also set your KVM
>> traffic labels for the various networks (I'm assuming cloubr0 and
>> cloudbr1 are for management, public, guest bridges, but not sure which
>> is which, management is 3200, maybe?) whats the 3100 addr for?
>>
>> On Tue, Aug 6, 2013 at 2:41 PM, Chiradeep Vittal
>> <Ch...@citrix.com> wrote:
>>> Why would your primary (local) storage have a different IP than host-corporate-ip?
>>> There is also a flag system.vm.use.local.storage which tells CloudStack to use local storage for system vms.
>>>
>>> From: Sarath Chandra <sa...@gmail.com>>
>>> Reply-To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>" <de...@cloudstack.apache.org>>
>>> Date: Tuesday, August 6, 2013 4:33 AM
>>> To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>" <de...@cloudstack.apache.org>>
>>> Subject: Help needed with Cloudstack Setup
>>>
>>> Hi All,
>>>
>>> I am doing a fresh cloudstack installation and am not able to instantiate any VMs (both system & guest vms). I am seeing the following errors:
>>>
>>> ERROR [network.element.SspElement] (consoleproxy-1:ctx-6d22b00c) ReservationContext was null for NicProfile[2-1-null-null-null Ntwk[202|Control|3]
>>> ERROR [network.element.SspElement] (secstorage-1:ctx-3f99cd9c) ReservationContext was null for NicProfile[84-22-null-10.20.30.11-null Ntwk[200|Public|1]
>>> ERROR [network.element.SspElement] (consoleproxy-1:ctx-6d22b00c) ReservationContext was null for NicProfile[3-1-null-null-null Ntwk[201|Management|2]
>>> WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:ctx-6d22b00c) Exception while trying to start console proxy
>>> com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[ConsoleProxy|v-1-VM]Scope=interface com.cloud.dc.DataCenter; id=1
>>>
>>> at a later place
>>> com.cloud.utils.exception.CloudRuntimeException: Failed to find template routing-3 in VMTemplateStoragePool
>>>
>>>
>>> I suspect my configuration is wrong some where. Can anybody kindly check and confirm if my configuration is right. If its right, then please point me to the likely cause of this issue.
>>>
>>>
>>> I have attached a picture to this mail which shows my lab setup. To give a brief, the following is my setup:
>>>
>>> Server <----------> Switch 1 <--------------> Switch 2 <----------------> KVM Hypervisor
>>>
>>> The switches allow all Vlan traffic to pass through them (basically trunk all and have added vlans 3100,3200,3300 to both the switches)
>>>
>>>
>>> On my server I have done the following:
>>>
>>>
>>>   *   Ubuntu 13.04 OS
>>>   *   Started NFS and exported to /mnt/primary (not using this) and /mnt/secondary
>>>   *   Installed the System template by executing the command  :  cloud-install-sys-tmplt -m /mnt/secondary -u http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2 -h kvm -o localhost -r root -d
>>>   *   $ mvn clean install -P developer,systemvm
>>>   *   $ mvn -P developer -pl developer -Ddeploydb  (Deployed the db)
>>>   *   $ mvn -pl :cloud-client-ui jetty:run  (Started the management server)
>>>
>>> On my hypervisor I have the following:
>>>
>>>   *   Ubuntu 13.04 OS
>>>   *   KVM as hypervisor
>>>
>>> Server Interface configuration:
>>> eth0 : Corporate Lab network ip (lets call it as server-corporate-ip)
>>> eth1.3200 : 172.16.10.1 (assigned during CS setup)   [eth1.3200 is a subinterface on eth1]
>>>
>>> Global Settings:
>>> system.vm.use.local.storage = true
>>>
>>> Zone Setup details:
>>>         DNS 1    8.8.8.8
>>> DNS 2    8.8.4.4
>>> Internal DNS 1    172.16.10.1
>>> Guest CIDR    10.1.1.0/24<http://10.1.1.0/24>
>>> Local storage enabled    Yes
>>>
>>>
>>> Pod Setup
>>> Netmask    255.255.255.0
>>> Start IP    172.16.20.10
>>> End IP    172.16.20.100
>>> Gateway    172.16.20.1
>>> Allocation State    Enabled
>>> Dedicated    No
>>>
>>> Cluster Setup
>>> Zone    Zone-1
>>> Pod    Pod-1
>>> Hypervisor    KVM
>>> Cluster Type    CloudManaged
>>>
>>> Host Setup
>>> Resource state    Enabled
>>> State    Up
>>> Type    Routing  (?????? why routing????)
>>> Host Tags
>>> OS Preference    None
>>> Zone    Zone-1
>>> Pod    Pod-1
>>> Cluster    Cluster-1
>>> IP Address    172.16.10.10
>>> Version    4.2.0-SNAPSHOT
>>> Dedicated    No
>>>
>>> Primary Storage (Auto Configured)
>>> Name : <Hypervisor name> Local Storage
>>> State    Up
>>> Pod    Pod-1
>>> Cluster    Cluster-1
>>> Type    Filesystem
>>> IP Address    172.16.10.10
>>> Path    /var/lib/libvirt/images
>>> Disk Total    221.23 GB
>>>
>>> Secondary Storage
>>> Name : SecondaryStorage-1
>>> URL    nfs://server-corporate-ip/mnt/secondary
>>> Provider    NFS
>>> Scope    ZONE
>>> Zone    Zone-1
>>>
>>>
>>> Hypervisor Interface configuration:
>>> eth0 : Corporate Lab network ip (lets call it ashost-corporate-ip)
>>> eth1.3100 : 172.16.10.10
>>> eth1.3200 : assigned to cloudbr0
>>> eth1.3300 : assigned to cloudbr1
>>>
>>> I have created the sub-interfaces as per CS hypervisor install guide.
>>>
>>> agent.properties (has got auto configured)
>>> #Storage
>>> #Tue Aug 06 15:20:15 IST 2013
>>> guest.network.device=cloudbr0
>>> workers=5
>>> private.network.device=
>>> cloudbr0
>>> port=8250
>>> resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
>>> pod=1
>>> zone=1
>>> guid=acc23093-6630-3c1a-aeb0-39367415bf6b
>>> cluster=1
>>> public.network.device=cloudbr0
>>> local.storage.uuid=7c7e70ab-7e5d-4766-8d5c-f51935b780c4
>>> domr.scripts.dir=scripts/network/domr/kvm
>>> host=server-corporate-ip
>>> LibvirtComputingResource.id=1
>>>
>>>
>>> thanks and regards,
>>> Sarath
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>

Re: Help needed with Cloudstack Setup

Posted by Marcus Sorensen <sh...@gmail.com>.
Also, what version are you deploying? 4.1.1?

On Tue, Aug 6, 2013 at 2:48 PM, Marcus Sorensen <sh...@gmail.com> wrote:
> Any reason why you aren't using the developer packages? I don't see
> any info regarding the agent install.  Did you also set your KVM
> traffic labels for the various networks (I'm assuming cloubr0 and
> cloudbr1 are for management, public, guest bridges, but not sure which
> is which, management is 3200, maybe?) whats the 3100 addr for?
>
> On Tue, Aug 6, 2013 at 2:41 PM, Chiradeep Vittal
> <Ch...@citrix.com> wrote:
>> Why would your primary (local) storage have a different IP than host-corporate-ip?
>> There is also a flag system.vm.use.local.storage which tells CloudStack to use local storage for system vms.
>>
>> From: Sarath Chandra <sa...@gmail.com>>
>> Reply-To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>" <de...@cloudstack.apache.org>>
>> Date: Tuesday, August 6, 2013 4:33 AM
>> To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>" <de...@cloudstack.apache.org>>
>> Subject: Help needed with Cloudstack Setup
>>
>> Hi All,
>>
>> I am doing a fresh cloudstack installation and am not able to instantiate any VMs (both system & guest vms). I am seeing the following errors:
>>
>> ERROR [network.element.SspElement] (consoleproxy-1:ctx-6d22b00c) ReservationContext was null for NicProfile[2-1-null-null-null Ntwk[202|Control|3]
>> ERROR [network.element.SspElement] (secstorage-1:ctx-3f99cd9c) ReservationContext was null for NicProfile[84-22-null-10.20.30.11-null Ntwk[200|Public|1]
>> ERROR [network.element.SspElement] (consoleproxy-1:ctx-6d22b00c) ReservationContext was null for NicProfile[3-1-null-null-null Ntwk[201|Management|2]
>> WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:ctx-6d22b00c) Exception while trying to start console proxy
>> com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[ConsoleProxy|v-1-VM]Scope=interface com.cloud.dc.DataCenter; id=1
>>
>> at a later place
>> com.cloud.utils.exception.CloudRuntimeException: Failed to find template routing-3 in VMTemplateStoragePool
>>
>>
>> I suspect my configuration is wrong some where. Can anybody kindly check and confirm if my configuration is right. If its right, then please point me to the likely cause of this issue.
>>
>>
>> I have attached a picture to this mail which shows my lab setup. To give a brief, the following is my setup:
>>
>> Server <----------> Switch 1 <--------------> Switch 2 <----------------> KVM Hypervisor
>>
>> The switches allow all Vlan traffic to pass through them (basically trunk all and have added vlans 3100,3200,3300 to both the switches)
>>
>>
>> On my server I have done the following:
>>
>>
>>   *   Ubuntu 13.04 OS
>>   *   Started NFS and exported to /mnt/primary (not using this) and /mnt/secondary
>>   *   Installed the System template by executing the command  :  cloud-install-sys-tmplt -m /mnt/secondary -u http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2 -h kvm -o localhost -r root -d
>>   *   $ mvn clean install -P developer,systemvm
>>   *   $ mvn -P developer -pl developer -Ddeploydb  (Deployed the db)
>>   *   $ mvn -pl :cloud-client-ui jetty:run  (Started the management server)
>>
>> On my hypervisor I have the following:
>>
>>   *   Ubuntu 13.04 OS
>>   *   KVM as hypervisor
>>
>> Server Interface configuration:
>> eth0 : Corporate Lab network ip (lets call it as server-corporate-ip)
>> eth1.3200 : 172.16.10.1 (assigned during CS setup)   [eth1.3200 is a subinterface on eth1]
>>
>> Global Settings:
>> system.vm.use.local.storage = true
>>
>> Zone Setup details:
>>         DNS 1    8.8.8.8
>> DNS 2    8.8.4.4
>> Internal DNS 1    172.16.10.1
>> Guest CIDR    10.1.1.0/24<http://10.1.1.0/24>
>> Local storage enabled    Yes
>>
>>
>> Pod Setup
>> Netmask    255.255.255.0
>> Start IP    172.16.20.10
>> End IP    172.16.20.100
>> Gateway    172.16.20.1
>> Allocation State    Enabled
>> Dedicated    No
>>
>> Cluster Setup
>> Zone    Zone-1
>> Pod    Pod-1
>> Hypervisor    KVM
>> Cluster Type    CloudManaged
>>
>> Host Setup
>> Resource state    Enabled
>> State    Up
>> Type    Routing  (?????? why routing????)
>> Host Tags
>> OS Preference    None
>> Zone    Zone-1
>> Pod    Pod-1
>> Cluster    Cluster-1
>> IP Address    172.16.10.10
>> Version    4.2.0-SNAPSHOT
>> Dedicated    No
>>
>> Primary Storage (Auto Configured)
>> Name : <Hypervisor name> Local Storage
>> State    Up
>> Pod    Pod-1
>> Cluster    Cluster-1
>> Type    Filesystem
>> IP Address    172.16.10.10
>> Path    /var/lib/libvirt/images
>> Disk Total    221.23 GB
>>
>> Secondary Storage
>> Name : SecondaryStorage-1
>> URL    nfs://server-corporate-ip/mnt/secondary
>> Provider    NFS
>> Scope    ZONE
>> Zone    Zone-1
>>
>>
>> Hypervisor Interface configuration:
>> eth0 : Corporate Lab network ip (lets call it ashost-corporate-ip)
>> eth1.3100 : 172.16.10.10
>> eth1.3200 : assigned to cloudbr0
>> eth1.3300 : assigned to cloudbr1
>>
>> I have created the sub-interfaces as per CS hypervisor install guide.
>>
>> agent.properties (has got auto configured)
>> #Storage
>> #Tue Aug 06 15:20:15 IST 2013
>> guest.network.device=cloudbr0
>> workers=5
>> private.network.device=
>> cloudbr0
>> port=8250
>> resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
>> pod=1
>> zone=1
>> guid=acc23093-6630-3c1a-aeb0-39367415bf6b
>> cluster=1
>> public.network.device=cloudbr0
>> local.storage.uuid=7c7e70ab-7e5d-4766-8d5c-f51935b780c4
>> domr.scripts.dir=scripts/network/domr/kvm
>> host=server-corporate-ip
>> LibvirtComputingResource.id=1
>>
>>
>> thanks and regards,
>> Sarath
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>

Re: Help needed with Cloudstack Setup

Posted by Marcus Sorensen <sh...@gmail.com>.
Any reason why you aren't using the developer packages? I don't see
any info regarding the agent install.  Did you also set your KVM
traffic labels for the various networks (I'm assuming cloubr0 and
cloudbr1 are for management, public, guest bridges, but not sure which
is which, management is 3200, maybe?) whats the 3100 addr for?

On Tue, Aug 6, 2013 at 2:41 PM, Chiradeep Vittal
<Ch...@citrix.com> wrote:
> Why would your primary (local) storage have a different IP than host-corporate-ip?
> There is also a flag system.vm.use.local.storage which tells CloudStack to use local storage for system vms.
>
> From: Sarath Chandra <sa...@gmail.com>>
> Reply-To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>" <de...@cloudstack.apache.org>>
> Date: Tuesday, August 6, 2013 4:33 AM
> To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>" <de...@cloudstack.apache.org>>
> Subject: Help needed with Cloudstack Setup
>
> Hi All,
>
> I am doing a fresh cloudstack installation and am not able to instantiate any VMs (both system & guest vms). I am seeing the following errors:
>
> ERROR [network.element.SspElement] (consoleproxy-1:ctx-6d22b00c) ReservationContext was null for NicProfile[2-1-null-null-null Ntwk[202|Control|3]
> ERROR [network.element.SspElement] (secstorage-1:ctx-3f99cd9c) ReservationContext was null for NicProfile[84-22-null-10.20.30.11-null Ntwk[200|Public|1]
> ERROR [network.element.SspElement] (consoleproxy-1:ctx-6d22b00c) ReservationContext was null for NicProfile[3-1-null-null-null Ntwk[201|Management|2]
> WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:ctx-6d22b00c) Exception while trying to start console proxy
> com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[ConsoleProxy|v-1-VM]Scope=interface com.cloud.dc.DataCenter; id=1
>
> at a later place
> com.cloud.utils.exception.CloudRuntimeException: Failed to find template routing-3 in VMTemplateStoragePool
>
>
> I suspect my configuration is wrong some where. Can anybody kindly check and confirm if my configuration is right. If its right, then please point me to the likely cause of this issue.
>
>
> I have attached a picture to this mail which shows my lab setup. To give a brief, the following is my setup:
>
> Server <----------> Switch 1 <--------------> Switch 2 <----------------> KVM Hypervisor
>
> The switches allow all Vlan traffic to pass through them (basically trunk all and have added vlans 3100,3200,3300 to both the switches)
>
>
> On my server I have done the following:
>
>
>   *   Ubuntu 13.04 OS
>   *   Started NFS and exported to /mnt/primary (not using this) and /mnt/secondary
>   *   Installed the System template by executing the command  :  cloud-install-sys-tmplt -m /mnt/secondary -u http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2 -h kvm -o localhost -r root -d
>   *   $ mvn clean install -P developer,systemvm
>   *   $ mvn -P developer -pl developer -Ddeploydb  (Deployed the db)
>   *   $ mvn -pl :cloud-client-ui jetty:run  (Started the management server)
>
> On my hypervisor I have the following:
>
>   *   Ubuntu 13.04 OS
>   *   KVM as hypervisor
>
> Server Interface configuration:
> eth0 : Corporate Lab network ip (lets call it as server-corporate-ip)
> eth1.3200 : 172.16.10.1 (assigned during CS setup)   [eth1.3200 is a subinterface on eth1]
>
> Global Settings:
> system.vm.use.local.storage = true
>
> Zone Setup details:
>         DNS 1    8.8.8.8
> DNS 2    8.8.4.4
> Internal DNS 1    172.16.10.1
> Guest CIDR    10.1.1.0/24<http://10.1.1.0/24>
> Local storage enabled    Yes
>
>
> Pod Setup
> Netmask    255.255.255.0
> Start IP    172.16.20.10
> End IP    172.16.20.100
> Gateway    172.16.20.1
> Allocation State    Enabled
> Dedicated    No
>
> Cluster Setup
> Zone    Zone-1
> Pod    Pod-1
> Hypervisor    KVM
> Cluster Type    CloudManaged
>
> Host Setup
> Resource state    Enabled
> State    Up
> Type    Routing  (?????? why routing????)
> Host Tags
> OS Preference    None
> Zone    Zone-1
> Pod    Pod-1
> Cluster    Cluster-1
> IP Address    172.16.10.10
> Version    4.2.0-SNAPSHOT
> Dedicated    No
>
> Primary Storage (Auto Configured)
> Name : <Hypervisor name> Local Storage
> State    Up
> Pod    Pod-1
> Cluster    Cluster-1
> Type    Filesystem
> IP Address    172.16.10.10
> Path    /var/lib/libvirt/images
> Disk Total    221.23 GB
>
> Secondary Storage
> Name : SecondaryStorage-1
> URL    nfs://server-corporate-ip/mnt/secondary
> Provider    NFS
> Scope    ZONE
> Zone    Zone-1
>
>
> Hypervisor Interface configuration:
> eth0 : Corporate Lab network ip (lets call it ashost-corporate-ip)
> eth1.3100 : 172.16.10.10
> eth1.3200 : assigned to cloudbr0
> eth1.3300 : assigned to cloudbr1
>
> I have created the sub-interfaces as per CS hypervisor install guide.
>
> agent.properties (has got auto configured)
> #Storage
> #Tue Aug 06 15:20:15 IST 2013
> guest.network.device=cloudbr0
> workers=5
> private.network.device=
> cloudbr0
> port=8250
> resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
> pod=1
> zone=1
> guid=acc23093-6630-3c1a-aeb0-39367415bf6b
> cluster=1
> public.network.device=cloudbr0
> local.storage.uuid=7c7e70ab-7e5d-4766-8d5c-f51935b780c4
> domr.scripts.dir=scripts/network/domr/kvm
> host=server-corporate-ip
> LibvirtComputingResource.id=1
>
>
> thanks and regards,
> Sarath
>
>
>
>
>
>
>
>
>
>
>
>
>
>

Re: Help needed with Cloudstack Setup

Posted by Chiradeep Vittal <Ch...@citrix.com>.
Why would your primary (local) storage have a different IP than host-corporate-ip?
There is also a flag system.vm.use.local.storage which tells CloudStack to use local storage for system vms.

From: Sarath Chandra <sa...@gmail.com>>
Reply-To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>" <de...@cloudstack.apache.org>>
Date: Tuesday, August 6, 2013 4:33 AM
To: "dev@cloudstack.apache.org<ma...@cloudstack.apache.org>" <de...@cloudstack.apache.org>>
Subject: Help needed with Cloudstack Setup

Hi All,

I am doing a fresh cloudstack installation and am not able to instantiate any VMs (both system & guest vms). I am seeing the following errors:

ERROR [network.element.SspElement] (consoleproxy-1:ctx-6d22b00c) ReservationContext was null for NicProfile[2-1-null-null-null Ntwk[202|Control|3]
ERROR [network.element.SspElement] (secstorage-1:ctx-3f99cd9c) ReservationContext was null for NicProfile[84-22-null-10.20.30.11-null Ntwk[200|Public|1]
ERROR [network.element.SspElement] (consoleproxy-1:ctx-6d22b00c) ReservationContext was null for NicProfile[3-1-null-null-null Ntwk[201|Management|2]
WARN  [cloud.consoleproxy.ConsoleProxyManagerImpl] (consoleproxy-1:ctx-6d22b00c) Exception while trying to start console proxy
com.cloud.exception.InsufficientServerCapacityException: Unable to create a deployment for VM[ConsoleProxy|v-1-VM]Scope=interface com.cloud.dc.DataCenter; id=1

at a later place
com.cloud.utils.exception.CloudRuntimeException: Failed to find template routing-3 in VMTemplateStoragePool


I suspect my configuration is wrong some where. Can anybody kindly check and confirm if my configuration is right. If its right, then please point me to the likely cause of this issue.


I have attached a picture to this mail which shows my lab setup. To give a brief, the following is my setup:

Server <----------> Switch 1 <--------------> Switch 2 <----------------> KVM Hypervisor

The switches allow all Vlan traffic to pass through them (basically trunk all and have added vlans 3100,3200,3300 to both the switches)


On my server I have done the following:


  *   Ubuntu 13.04 OS
  *   Started NFS and exported to /mnt/primary (not using this) and /mnt/secondary
  *   Installed the System template by executing the command  :  cloud-install-sys-tmplt -m /mnt/secondary -u http://download.cloud.com/templates/acton/acton-systemvm-02062012.qcow2.bz2 -h kvm -o localhost -r root -d
  *   $ mvn clean install -P developer,systemvm
  *   $ mvn -P developer -pl developer -Ddeploydb  (Deployed the db)
  *   $ mvn -pl :cloud-client-ui jetty:run  (Started the management server)

On my hypervisor I have the following:

  *   Ubuntu 13.04 OS
  *   KVM as hypervisor

Server Interface configuration:
eth0 : Corporate Lab network ip (lets call it as server-corporate-ip)
eth1.3200 : 172.16.10.1 (assigned during CS setup)   [eth1.3200 is a subinterface on eth1]

Global Settings:
system.vm.use.local.storage = true

Zone Setup details:
        DNS 1    8.8.8.8
DNS 2    8.8.4.4
Internal DNS 1    172.16.10.1
Guest CIDR    10.1.1.0/24<http://10.1.1.0/24>
Local storage enabled    Yes


Pod Setup
Netmask    255.255.255.0
Start IP    172.16.20.10
End IP    172.16.20.100
Gateway    172.16.20.1
Allocation State    Enabled
Dedicated    No

Cluster Setup
Zone    Zone-1
Pod    Pod-1
Hypervisor    KVM
Cluster Type    CloudManaged

Host Setup
Resource state    Enabled
State    Up
Type    Routing  (?????? why routing????)
Host Tags
OS Preference    None
Zone    Zone-1
Pod    Pod-1
Cluster    Cluster-1
IP Address    172.16.10.10
Version    4.2.0-SNAPSHOT
Dedicated    No

Primary Storage (Auto Configured)
Name : <Hypervisor name> Local Storage
State    Up
Pod    Pod-1
Cluster    Cluster-1
Type    Filesystem
IP Address    172.16.10.10
Path    /var/lib/libvirt/images
Disk Total    221.23 GB

Secondary Storage
Name : SecondaryStorage-1
URL    nfs://server-corporate-ip/mnt/secondary
Provider    NFS
Scope    ZONE
Zone    Zone-1


Hypervisor Interface configuration:
eth0 : Corporate Lab network ip (lets call it ashost-corporate-ip)
eth1.3100 : 172.16.10.10
eth1.3200 : assigned to cloudbr0
eth1.3300 : assigned to cloudbr1

I have created the sub-interfaces as per CS hypervisor install guide.

agent.properties (has got auto configured)
#Storage
#Tue Aug 06 15:20:15 IST 2013
guest.network.device=cloudbr0
workers=5
private.network.device=
cloudbr0
port=8250
resource=com.cloud.hypervisor.kvm.resource.LibvirtComputingResource
pod=1
zone=1
guid=acc23093-6630-3c1a-aeb0-39367415bf6b
cluster=1
public.network.device=cloudbr0
local.storage.uuid=7c7e70ab-7e5d-4766-8d5c-f51935b780c4
domr.scripts.dir=scripts/network/domr/kvm
host=server-corporate-ip
LibvirtComputingResource.id=1


thanks and regards,
Sarath