Re: [SOLVED] RE: Network Setup Problem 4.1.1

2013-10-23 Thread Marty Sweet
Ok that's cool,

Using Network Traffic Labels will allow the networks to bind to those
interfaces (which is probably what you needed to do).

Marty


On Thu, Oct 24, 2013 at 2:42 AM, Murugappan, Vairavan <
vmurugap...@miners.utep.edu> wrote:

> Hi Marty,
> I figured it out.
>
> The problem was when the cloud stack creates the bridge on the host
> machine, for some reason it's not mapping my physcial NIC to the correctly.
> My NIC's are called em1 and em2, not eth0 and eth1. And I have 2 NIC's but
> I am using only one, but I guess it's trying to use both or something like
> that.  And also in the network configuration page, I left everything as it
> was (default) - the network name to "Physical Network 1" and no labels for
> management and guest traffic, that could have also been a problem.
>
> So, this is what I did. I created a bridge called "Cloudbr1" on my host
> machine and assigned the ip address to it and mapped it to my NIC (em1).
> And on the add network page I mentioned the labels for both management and
> guest traffic as "Cloudbr1" and it worked.
>
> Thanks for the help.
>
> Regards,
> Vairavan M.
>
> -Original Message-
> From: Murugappan, Vairavan [mailto:vmurugap...@miners.utep.edu]
> Sent: Tuesday, October 22, 2013 5:03 PM
> To: users@cloudstack.apache.org
> Subject: RE: Network Setup Problem 4.1.1
>
> Hi Marty,
> No I don't own a range of public ip's and I am jus looking for a simple
> setup at this moment.
>
> I changed the ip's as you suggested.
> Management:
> Em1: publicip
> Em2: 10.10.0.1, netmas:255.255.255.0
>
> Agent:(host)
> And I assume by agent you mean the physical host (Compute Node) :
> Em1: 10.10.0.2, netmask: 255.255.255.0, gateway=10.10.0.1, dns=10.10.0.1
>
> And I also changed the switch ip to 10.10.0.254
>
> * I can ping my host from mgmt and vice versa. Host OS has internet.
> * I cannot ping any ip's of SSVM or Console VM from Mgmt server.
> * I  can ping the link local ip (169.*.*.*) of SSVM from the host, but not
> the other 10.10.*.* ip's
> * I still get the same "No Secondary Storage VM Error"
>
> This was the case in the previous configuration as well. And please note
> that I have not created any vlan's or bridges on host or switch or
> management server.
> So is there anything I should do  on switch (Dell 6248) and should I
> create any vlan's on host (which I already mentioned in my previous post)?
>
> Thank you.
>
> Regards,
> Vairavan M.
>
> -Original Message-
> From: Marty Sweet [mailto:msweet@gmail.com]
> Sent: Tuesday, October 22, 2013 1:14 PM
> To: users@cloudstack.apache.org
> Subject: Re: Network Setup Problem 4.1.1
>
> Hi Vairavan,
>
> The main highlight here is that you are using 20.xxx.xxx.xxx as your
> private network, this is not compliant with RFC1918 and would cause
> connectivity issues to public address in this subnet.
>
> Do you own a range of public IP address you wish to allocate to VMs? If
> so, this will effect the way you setup your Cloudstack Networking.
>
> If not, and you are looking for a simple setup,  I would recommend the
> following:
>
> Management:
> eth0: your.public.ip.addr
> eth1: 10.10.0.1/24 (Private Interface)
>
> Agent:
> eth0: 10.10.0.2/24
>
> If you wish to stick to your current setup (which I would advise against),
> can your agent ping your 20.1.1.1?
>
> Marty
>
>
>
> On Tue, Oct 22, 2013 at 7:28 PM, Murugappan, Vairavan <
> vmurugap...@miners.utep.edu> wrote:
>
> > Hi,
> > I am trying to setup a basic cloudstack 4.1.1 installation (test
> > setup) with
> > 1 Management (mgmt) server (centos 6.4), 1 host machine(cents 6.4) and
> > 1
> > dell6248 switch
> >
> > Mgmt has 2 NIC's
> > * One connected to the internet
> > * Another with local ip 20.1.1.1 (which acts a gateway)
> > net mask 255.0.0.0
> > * I have added NAT rules to forward internet
> > to rest of the network
> > * And this runs a dns server
> > * Also this hosts the Mysql and NFS
> > (/export/primary, /export/secondary)
> > * But No dhcp server
> > * I followed the instructions in the document and the
> > management server is running and I can access it through browser
> >
> > DELL6248 Switch
> > * I assigned ip as 20.2.1.1 netmask 255.0.0.0 gateway
> 20.1.1.1
> > * No Vlan configured, left it at default config
> >
> > Host Machine has 1 NIC
> > * It is connected to the Switch
> > * I followed the steps in the document (installation for
> > KVM) for creating bridges
> > * I Assigned ip 20.1.1.2 to the vlan em1.100 [ Netmask
> > 255.0.0.0 Gateway 20.1.1.1 ] (em is my eth) and no ip on em1, Amd
> > configured 2 bridges as said.
> > -> But, With this setup the host machine cannot even ping the switch
> > -> and
> > mgmt server.
> > -> I tried assigning the 192.*.*.* ip to em1.100 with the ip at
> > virbr0(192.*.*.1) as gateway but same result cannot ping 

Any Specified limits for Management Server in Cloudstack

2013-10-23 Thread Amar Krishna
Hi,

  I wanted to know that what is the max limit of guest vms that can be
managed from
single Management Server of CloudStack if we have huge number of esxi
servers to manage.

-- 
THANKS AND REGARDS
 AMAR KRISHNA
 MOB-9900618290


Unable to Build 4.2.0 From Source Using Maven 3.1

2013-10-23 Thread Ryan Shafer
Hello,

I am attempting to build CS 4.2.0 from source eventually using noss 
dependencies from vmware.  The problem is that I cannot resolve the 
dependencies for the other cloudstack projects to build.  In this specific case 
cloud-api cannot be built because.

[ERROR] Failed to execute goal on project cloud-api: Could not resolve 
dependencies for project org.apache.cloudstack:cloud-api:jar:4.2.0: Could not 
find artifact org.apache.cloudstack:cloud-utils:jar:4.2.0 in central 
(http://repo.maven.apache.org/maven2) -> [Help 1]

I cannot locate cloud-utils-4.2.0.jar or cloud-utils-4.2.0.pom in the central 
repository.  In fact I cannot find a couple of the files in 
http://repo.maven.apache.org/maven2.  Please confirm that I am using the 
correct repository and if it has changed, please provide some insight on where 
I can change this to work through my issues.  Because of the nature of our 
environment we must be able to build from source.  Any help would be 
appreciated.

Anyone who would like to contact me directly about potentially working with my 
company on our cloudstack related issues we would be willing to entertain any 
offers, thank you. 

-- 
Sincerely,
Ryan Shafer
System Engineer
Ecommerce Inc.
(800)861-9394 x4213
ryan.sha...@ecommerce.com


Re: Network not configured in VM

2013-10-23 Thread Chirag Choudhary
Thanks Lucian@Nux and Shankar, with your suggestions I was able to fix the
issue. For fixing the current running VM i did "dhclient eth0".
and for making it a template i changed the ONBOOT=yes and BOOTPROTO=dhcp
(also required for restart of machine/ network)
and it works well.
 :)

Thanks & Regards


On Wed, Oct 23, 2013 at 11:26 PM, Shanker Balan  wrote:

> On 23-Oct-2013, at 9:21 pm, Nux!  wrote:
>
> > On 23.10.2013 13:55, Chirag Choudhary wrote:
> >> Hi,
> >> I created a new instance of rhel 6.2 from iso in cloudstack.
> >> Cloudstack UI is showing the it has an IP assigned to it with the
> netmask ,
> >> gatway and other things but when I logged in to the VM, it only has one
> >> network interface running : lo
> >> I manually did the network configuration to the match that of
> cloudstack.
> >> I took its template and created one more instance but still in the new
> >> instance the only interface running was lo. Here are the logs while
> >> installing the VM from the iso :
> >> http://pastebin.com/1xvmV454
> >> what can be the possible reason behind it and how can it be rectified.
> >> ( I had previously created Ubuntu VM and it was properly configured , so
> >> the cloudstack network manager seems to be good. )
> >
> > I'm citing from distant memories here, but I believe the default EL6
> install does not activate the network unless you tell it so.
> > You just need to make sure eth0 starts at boot and is set up as dhcp, or
> manually do a "dhclient eth0".
>
>
> Yeah.
>
> Its an install time option to ensure that your ethernet is set to activate
> on boot. I have run into the same on a baremetal RHEL/CentOS setup where I
> forgot to tick the checkbox during the installation phase.
>
> Chirag, make sure the ONBOOT=yes flag is set in the ifcfg-eth0 file as
> below:
>
> [root@csman2-1 ~]# grep ONBOOT /etc/sysconfig/network-scripts/ifcfg-eth0
> ONBOOT=yes
>
>
> --
> @shankerbalan
>
> M: +91 98860 60539 | O: +91 (80) 67935867
> shanker.ba...@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
> ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre,
> Bangalore - 560 055
>
> CloudStack Bootcamp Training on 27/28 November, Bangalore
> http://www.shapeblue.com/cloudstack-training/
>
>
>
>
> This email and any attachments to it may be confidential and are intended
> solely for the use of the individual to whom it is addressed. Any views or
> opinions expressed are solely those of the author and do not necessarily
> represent those of Shape Blue Ltd or related companies. If you are not the
> intended recipient of this email, you must neither take any action based
> upon its contents, nor copy or show it to anyone. Please contact the sender
> if you believe you have received this email in error. Shape Blue Ltd is a
> company incorporated in England & Wales. ShapeBlue Services India LLP is a
> company incorporated in India and is operated under license from Shape Blue
> Ltd. Shape Blue Brasil Consultoria Ltda is a company incorporated in Brasil
> and is operated under license from Shape Blue Ltd. ShapeBlue is a
> registered trademark.
>



-- 
Chirag Choudhary,
Software Engineer


Re: Unable to reboot instance: "Unable to find service offering: [NUMBER] corresponding to the vm"

2013-10-23 Thread Indra Pramana
Dear all,

Wondering if anyone can advise on this? Or am I the only one who seem to
having this problem? :)

Looking forward to your reply, thank you.

Cheers.



On Wed, Oct 9, 2013 at 5:52 PM, Indra Pramana  wrote:

> Dear all,
>
> Anyone can advise on this?
>
>
> Looking forward to your reply, thank you.
>
> Cheers.
>
>
>
> On Mon, Oct 7, 2013 at 9:49 AM, Indra Pramana  wrote:
>
>> Dear all,
>>
>> After upgrading to CloudStack 4.2.0, I am not able to reboot a VM
>> instance. Error message: "Unable to find service offering:
>> [SOME-RANDOM-NUMBER] corresponding to the vm". This affects all the VM
>> instances that I want to reboot.
>>
>> Any idea what could be the cause of the problem? Seems that it cannot
>> find a certain service offering which corresponds to the VM, anyone can
>> shed a light on which service offering it is referring to?
>>
>> Looking forward to your reply, thank you.
>>
>> Cheers.
>>
>
>


Re: KVM and openvswitch

2013-10-23 Thread Nguyen Anh Tu
Okie. So you might be interesting with openvswitch 1.0.10. I deployed
success with that version. Instruction here:
http://n40lab.wordpress.com/2012/09/19/installing-openvswitch-in-centos-6-3/


2013/10/24 Bjoern Teipel 

>
> Yup all done, did it multiple time now even with a clean host.
> As I said while I was looking into the code, the issue might just that my
> brif directory is empty at
> /sys/class/net//brif  I'm not sure if the open vswitch 1.0.9
> version has a bug...
>
>
> LibvirtComputingResource.java 1036:
>
>(f is an file object from this directory above)
>
>
> File[] interfaces = f.listFiles(); >>>  my array is basically
> empty.. <<<
>
> for (int i = 0; i < interfaces.length; i++) {
> String fname = interfaces[i].getName();
> s_logger.debug("**matchPifFileInDirectory: file name
> '"+fname+"'");
> if (fname.startsWith("eth") || fname.startsWith("bond")
> || fname.startsWith("vlan") || fname.startsWith("em")
> || fname.matches("^p\\d+p\\d+.*")**) {
> return fname;
> }
> }
>
>
> My  brif  directory is empty so I'm not sure if I have a configuration
> issue in openvswitch.
> Going to check this now.
>
> On 10/23/2013 10:36 AM, Francois Gaudreault wrote:
>
>> So brctl is likely to return a mess.
>>
>> How did you configure the agent? Did you put :
>> libvirt.vif.driver=com.cloud.**hypervisor.kvm.resource.**OvsVifDriver
>> and
>> network.bridge.type=**openvswitch
>>
>> in agent.properties?
>>
>> Francois
>>
>> On 10/23/2013, 1:24 PM, Bjoern Teipel wrote:
>>
>>> Yes I did.
>>>
>>> On 10/23/2013 09:27 AM, Francois Gaudreault wrote:
>>>
 Did you blacklist the linux bridge module? You have to blacklist it.

 FG

 On 10/23/2013, 12:24 PM, Bjoern Teipel wrote:

> Yes that's what I followed exactly.
>
> My OS is centos 6.4 and brctl
>
> bridge namebridge idSTP enabledinterfaces
> cloud0/sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> /sys/class/net/cloud0/bridge: No such file or directory
> .ba2d3a409d48no
> cloudbr0/sys/class/net/cloudbr0/**bridge: No such file or
> directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> /sys/class/net/cloudbr0/**bridge: No such file or directory
> .00219ba07885no
> cloudbr1/sys/class/net/cloudbr1/**bridge: No such file or
> directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> /sys/class/net/cloudbr1/**bridge: No such file or directory
> .00219ba07885no
>
> But the directories are there so it doesn't make a whole lot of sense
>
> /sys/class/net/cloud0/bridge
> [bteipel@hq-kvmhv-002 bridge]$ ll
> total 0
> -rw-r--r-- 1 root root 4096 Oct 23 00:32 ageing_time
> -r--r--r-- 1 root root 4096 Oct 23 00:32 bridge_id
> -rw-r--r-- 1 root root 4096 Oct 23 00:32 forward_delay
> -r--r--r-- 1 root root 4096 Oct 23 00:32 gc_timer
> -rw-r--r-- 1 root root 4096 Oct 23 09:23 group_addr
> -rw-r--r-- 1 root root 4096 Oct 23 00:32 hello_time
>

[SOLVED] RE: Network Setup Problem 4.1.1

2013-10-23 Thread Murugappan, Vairavan
Hi Marty,
I figured it out.

The problem was when the cloud stack creates the bridge on the host machine, 
for some reason it's not mapping my physcial NIC to the correctly. My NIC's are 
called em1 and em2, not eth0 and eth1. And I have 2 NIC's but I am using only 
one, but I guess it's trying to use both or something like that.  And also in 
the network configuration page, I left everything as it was (default) - the 
network name to "Physical Network 1" and no labels for management and guest 
traffic, that could have also been a problem.

So, this is what I did. I created a bridge called "Cloudbr1" on my host machine 
and assigned the ip address to it and mapped it to my NIC (em1). And on the add 
network page I mentioned the labels for both management and guest traffic as 
"Cloudbr1" and it worked.

Thanks for the help.

Regards,
Vairavan M.

-Original Message-
From: Murugappan, Vairavan [mailto:vmurugap...@miners.utep.edu] 
Sent: Tuesday, October 22, 2013 5:03 PM
To: users@cloudstack.apache.org
Subject: RE: Network Setup Problem 4.1.1

Hi Marty,
No I don't own a range of public ip's and I am jus looking for a simple setup 
at this moment.

I changed the ip's as you suggested.
Management:
Em1: publicip
Em2: 10.10.0.1, netmas:255.255.255.0

Agent:(host)
And I assume by agent you mean the physical host (Compute Node) :
Em1: 10.10.0.2, netmask: 255.255.255.0, gateway=10.10.0.1, dns=10.10.0.1

And I also changed the switch ip to 10.10.0.254

* I can ping my host from mgmt and vice versa. Host OS has internet.
* I cannot ping any ip's of SSVM or Console VM from Mgmt server.
* I  can ping the link local ip (169.*.*.*) of SSVM from the host, but not the 
other 10.10.*.* ip's
* I still get the same "No Secondary Storage VM Error"

This was the case in the previous configuration as well. And please note that I 
have not created any vlan's or bridges on host or switch or management server.
So is there anything I should do  on switch (Dell 6248) and should I create any 
vlan's on host (which I already mentioned in my previous post)?

Thank you.

Regards,
Vairavan M.

-Original Message-
From: Marty Sweet [mailto:msweet@gmail.com]
Sent: Tuesday, October 22, 2013 1:14 PM
To: users@cloudstack.apache.org
Subject: Re: Network Setup Problem 4.1.1

Hi Vairavan,

The main highlight here is that you are using 20.xxx.xxx.xxx as your private 
network, this is not compliant with RFC1918 and would cause connectivity issues 
to public address in this subnet.

Do you own a range of public IP address you wish to allocate to VMs? If so, 
this will effect the way you setup your Cloudstack Networking.

If not, and you are looking for a simple setup,  I would recommend the
following:

Management:
eth0: your.public.ip.addr
eth1: 10.10.0.1/24 (Private Interface)

Agent:
eth0: 10.10.0.2/24

If you wish to stick to your current setup (which I would advise against), can 
your agent ping your 20.1.1.1?

Marty



On Tue, Oct 22, 2013 at 7:28 PM, Murugappan, Vairavan < 
vmurugap...@miners.utep.edu> wrote:

> Hi,
> I am trying to setup a basic cloudstack 4.1.1 installation (test
> setup) with
> 1 Management (mgmt) server (centos 6.4), 1 host machine(cents 6.4) and
> 1
> dell6248 switch
>
> Mgmt has 2 NIC's
> * One connected to the internet
> * Another with local ip 20.1.1.1 (which acts a gateway) 
> net mask 255.0.0.0
> * I have added NAT rules to forward internet 
> to rest of the network
> * And this runs a dns server
> * Also this hosts the Mysql and NFS 
> (/export/primary, /export/secondary)
> * But No dhcp server
> * I followed the instructions in the document and the 
> management server is running and I can access it through browser
>
> DELL6248 Switch
> * I assigned ip as 20.2.1.1 netmask 255.0.0.0 gateway 20.1.1.1
> * No Vlan configured, left it at default config
>
> Host Machine has 1 NIC
> * It is connected to the Switch
> * I followed the steps in the document (installation for
> KVM) for creating bridges
> * I Assigned ip 20.1.1.2 to the vlan em1.100 [ Netmask
> 255.0.0.0 Gateway 20.1.1.1 ] (em is my eth) and no ip on em1, Amd 
> configured 2 bridges as said.
> -> But, With this setup the host machine cannot even ping the switch 
> -> and
> mgmt server.
> -> I tried assigning the 192.*.*.* ip to em1.100 with the ip at
> virbr0(192.*.*.1) as gateway but same result cannot ping the switch or 
> mgmt..
> * So removed all vlan's and bridges and just set 20.1.1.2 to em1 [ 
> Netmask
> 255.0.0.0 Gateway 20.1.1.1]. Now it works as expected and I can access 
> the internet as well.
>
> Setup:
>
> * I proceeded with the basic installation
>
> * Pod - Gateway:20.1.1.1, Netmask:255.0.0.0, iprange - 20.1.1.5 ->
> 20.1.1.20
>
> * Guest - Gateway:20.1.1.1, Netmask:255.0.0.0, iprange - 20.1.1.30
> -> 20.1.1.200
>

SSH Access to Guest VM without Public IP 4.1

2013-10-23 Thread Murugappan, Vairavan
Hi,
Is there a way to provide ssh into the guest vm on the basic networking mode. 
Where there is no Public IP's available on the guest OS. If So how?

If Not? Is there a way to attach a script or a hook when a Guest VM is started, 
stopped or destroyed?
So that I can setup some sort of port forwarding on the management server's 
public ip or any other separate server (login server) with public ip.
Say for vm 1 i assign port 50001 and forward all traffic to mgmt server's port 
50001 to internal private ip of guestvm's port 22.
And remove the forwarding when the vm is stopped.

Regards,
Vairavan M.


Re: How does HA work?

2013-10-23 Thread Chiradeep Vittal
https://cwiki.apache.org/confluence/x/dwn8AQ

On 10/23/13 10:51 AM, "Kelcey Jamison Damage"
 wrote:

>I can tell you it uses 'Storage-Heartbeat" method for HA, unless that's
>changed. That means the heartbeat ring is via the primary storage.
>
>
>- Original Message -
>
>From: "Nux!" 
>To: d...@cloudstack.apache.org
>Cc: users@cloudstack.apache.org
>Sent: Wednesday, October 23, 2013 10:48:40 AM
>Subject: How does HA work?
>
>Hello, 
>
>Since I'm not a programmer reading the code doesn't make too much sense
>to me. 
>Can anyone explain to me how HA works (for VMs expecially)?
>Who monitors these HA VMs? Can I run multiple monitors, for HA? Any
>recommendations, best practices, gotchas?
>
>Thanks, 
>Lucian 
>
>-- 
>Sent from the Delta quadrant using Borg technology!
>
>Nux! 
>www.nux.ro 
>



Re: VMWare storage overprovisioning

2013-10-23 Thread Nitin Mehta
Advise you to not keep pool.storage.capacity.disablethreshold as 1 (100%).
This captures the actual usage of the storage and you do not want it to
reach 100% especially possible when you have over provisioned.

On 23/10/13 1:14 PM, "Noel King"  wrote:

>Hi
>
>I am seeing an issue here with Cloudstack and VMWare storage and hope you
>can help.  VMWare is using dynamic storage so for a template of 20GB in
>reality only 3GB is being used, VMWare currently has the size of the VM of
>3GB and increases storage allocation to the VM as it requires it.  However
>Cloudstack thinks 20GB has been consumed
>
>So to overcome this we set
>
>storage.overprovisioning.factor to 5
>
>But we still had issues when we hit 85% (which is not 85% based on VMWare
>storage allocation).  The following values were set to .85 and increasing
>these has offered little benefit up to 100%
>
>
>   - pool.storage.capacity.disablethreshold
>   - pool.storage.allocated.capacity.disablethreshold
>
>
>Any advise on other settings on Cloudstack 4.1.1 that could help us.
>
>Kind regards
>
>Noel



Re: CS4.2 failed to deploy VM with custome Compute Offering KVM cluster

2013-10-23 Thread Marty Sweet
Hi Motty,

Looking in your management-server.log will yield more information.
This is most probably because your Agents do not have 2 cores at 4Ghz, but
the log will show the exact issue.

Marty


On Wed, Oct 23, 2013 at 8:46 PM, motty cruz  wrote:

> Hello, I created a Custom Compute Offering 2 cores 4000cpu; When I create a
> instance with that custom compute offer I get the following error "Failed
> to deploy Vm with Id: 66, on Host with Id: null" but if I create instance
> with default medium offering instance gets create it no problem.
>
> any suggestions?
> Thanks,
>


Re: Bridge issues after upgrade to 4.2

2013-10-23 Thread Bjoern Teipel

The bash skript renames iptables rules and the brdge names.
The problem might be it couldn't execute the ip link set XXX down 
command and renaming it afterwards.

You can execute the script again, see what it reports.

Bjoern


On 10/22/2013 12:16 AM, Andrija Panic wrote:

HI, I did not see it run, but I did run it manualy.

Still the problem is that the physical interface eth1 is plugged in in
cloudVrBr500, and it could not be renamed (this is bridge configured via
ifcfg scripts, not sure that is possible to be renamed by script...)

Also, does this /usr/bin/cloudstack-agent-**upgrade script, update the
cloudstack database to set new label for netowrks... not sure what is the
purpose of the script (I inspected source code) except renaming already
running bridges..at least some number of it...


On 22 October 2013 06:13, Bjoern Teipel wrote:


Didn't the script /usr/bin/cloudstack-agent-**upgrade run while you
updated the cloudstack-agent ?

Bjoern


On 10/21/2013 6:20 AM, Andrija Panic wrote:


HI,

I have done upgrade from 4.0.0 to 4.2, and it all went fine, until I
stoped
and tried to start VMs (Vm belongs to an account, which has it's on VLAN
dedicated for private network)... and got errors about not being able to
joint eth1.500 to breth1-500 because it is already joined to cloudVirBr500
(original bridge that I manualy created during original CS 4.0.0
installation, inside /etc/sysconfig/network-**scripts/).

So if I use brctl and remove interface from old bridhe and join it to new
bridgem, then all VMs DO have internet acces, and all fine.

But if I change/reconfigure OS, that is, renam cloudVirBr500 to breth1-500
(on host OS, /etc/sysconfig/network-**scripts/) than CloudStack agent
  give
me alert that it could not find public interface and does not start. Then
I
edit the CS agent conf file, and define new bridge "breth1-xxx" for public
network, and agent starts fine, but with alert state, and constantly
disconnecting from CS MGMT host...


Does anybody have good explanation on how to behave with this cloud bridge
naming convention now in 4.2 ?

BTW: using advanced networking, eth0-->cloudBr0, eth1-->cloudVirBr500,
this
is configured via /etc/sysconfig/network-**scripts/.

eth0 (management, storage, guest,,,) eth1 (guest, public)

Maybe I should NOT define cloudVirBr500 at all ?


Thanks,







--

Bjoern Teipel
System Operation Manager UNIX
Internet Brands
909 N. Sepulveda Blvd., 11th Floor
El Segundo, CA 90245
P: (310) 280- 5287

bjoern.tei...@internetbrands.com



VMWare storage overprovisioning

2013-10-23 Thread Noel King
Hi

I am seeing an issue here with Cloudstack and VMWare storage and hope you
can help.  VMWare is using dynamic storage so for a template of 20GB in
reality only 3GB is being used, VMWare currently has the size of the VM of
3GB and increases storage allocation to the VM as it requires it.  However
Cloudstack thinks 20GB has been consumed

So to overcome this we set

storage.overprovisioning.factor to 5

But we still had issues when we hit 85% (which is not 85% based on VMWare
storage allocation).  The following values were set to .85 and increasing
these has offered little benefit up to 100%


   - pool.storage.capacity.disablethreshold
   - pool.storage.allocated.capacity.disablethreshold


Any advise on other settings on Cloudstack 4.1.1 that could help us.

Kind regards

Noel


CS4.2 failed to deploy VM with custome Compute Offering KVM cluster

2013-10-23 Thread motty cruz
Hello, I created a Custom Compute Offering 2 cores 4000cpu; When I create a
instance with that custom compute offer I get the following error "Failed
to deploy Vm with Id: 66, on Host with Id: null" but if I create instance
with default medium offering instance gets create it no problem.

any suggestions?
Thanks,


RE: Public IPs on Guest VMs within CloudStack 4.2.0

2013-10-23 Thread Bryan Manske
All,

(This is an update on my ongoing network issues within CloudStack 4.2.0.
Please read the original messages below for more information.)

I've configured a network offering with no services this time, no virtual
router, no DNS or DCHP, just a live public IP network and default gateway.

A VM running on blade 1 (configured within CloudStack) can ping another VM
running on blade 1 but can't see VMs running on blade 2.  Nor can it see
the default gateway or other XenCenter-configured VMs running on that network
segment.  And VMs running on blade 2 can ping each other but can't ping VMs
running on blade 1, the default gateway, et cetera.

A VM configured within XenCenter on blade 1 or 2 using the "cloud-public"
labeled ethernet interface can see physical machines, the default gateway,
and other XenCenter VMs configured on other hosts with or without VLAN
configurations running on their network interfaces.  (The VLAN configs
didn't make any difference to speak of but, yes, I did verify that VLANs
were supported by the physical interface type, the kernel supported them,
and the interface was present and marked as "up".)  I've also verified the
routers and switches for proper VLAN configs.  IPTables have also been
disabled.  And the CloudStack 4.2.0 VMs are the only machines that can't
talk on the public network.

I don't think it's a tagged versus untagged VLAN issue.  And I've verified
that my two starter blades are configured and connected to both public and
private networks correctly.  And the public IPs for the CloudStack System
VMs work correctly.  I might have a network offering issue or a tagging
issue somewhere but this goes right back to CloudStack and probably something
I've missed.

Thanks to:
http://blog.remibergsma.com/2012/08/30/going-beyond-cloudstack-advanced-networking-how-i-replaced-the-virtual-router-with-my-own-physical-linux-router/

and

http://blog.remibergsma.com/2012/03/10/howto-create-a-network-in-cloudstack-without-a-virtual-router/

But I'm still non-functional and confused as to what I'm missing in the
CloudStack networking department.  Can anyone offer up more links or
advice please?

Thanks.

Bryan Manske




Quoting Bryan Manske :

>
> Sanjeev,
>
> I followed a YouTube video explanation and did specify the tags
> "cloud-public"
> to the guest and public networks - and "cloud-private" to the management
> network.  The "public" IPs work fine for things like SSVM and Console Proxy
> VM,
> hence my confusion.  I also used the "cloud-public" tag in two simple
> network service offerings, one with no services and one with just DSN, DHCP,
> and userdata.  No firewalls or security groups and default egress policy
> set to "allow", although I'm not sure it was needed there.
>
> Thanks.
>
> Bryan
>
>
> Quoting Sanjeev Neelarapu :
>
> > Hi Bryan Manske,
> >
> > Did you specify the tags cloud-public and cloud-private as traffic lables
> for
> > public and private trafifics in the physical network ?
> >
> > -Sanjeev
> >
> > -Original Message-
> > From: Bryan Manske [mailto:br...@manske.org]
> > Sent: Tuesday, October 22, 2013 3:30 AM
> > To: users@cloudstack.apache.org
> > Subject: Re: Public IPs on Guest VMs within CloudStack 4.2.0
> >
> > All,
> >
> > I'm still having issues with my CloudStack instances seeing the outside
> > network and vice versa.  I've verified that other non-CloudStack VMs in the
> > same IP subnet can see the default gateway and each other but they can't
> see
> > the CloudStack instances.  The CloudStack instances can ping the VR but not
> > the default gateway or any other non-CS VMs.  I'm using Xen Server 6.2 as
> the
> > only hypervisor for the moment and have set the network interface tags
> > (cloud-public and cloud-private) with "xe network-param-set
> > name-label=cloud-public uuid=" and "xe
> > network-
> > list" looks correct.  Am I missing tags in the network offering or
> somewhere
> > else?  I can't imagine that the CS VR would want to be the default gateway
> > itself but I suppose its possible.  I've even been looking at VLANs (tagged
> > versus untagged) at my network edge with no luck.
> > "xe-switch-network-backend" is set to bridged so maybe its an openvswitch
> > issue.  Big sigh.
> >
> > I've debugged as far as I can and need a few suggestions on where to look
> > next.
> >
> > Thanks.
> >
> > Regards,
> >
> > Bryan Manske
> >
> >
> > Quoting Bryan Manske :
> >
> > > All,
> > >
> > > Now I'm curious about public IPs on Guest VMs within CloudStack 4.2.0.
> > >
> > > I have one IPv4 /27 for Public IPs and that's working fine.  Now what
> > > I want to do is assign a live IP address from another /27 to a Guest
> > > VM, which appears to work but can't actually touch the default gateway.
> > >
> > > So here's the rub: The default gateway is actually provided as a
> > > virtual IP on two VRRP nodes (for A/B redundancy) by my upstream
> > > provider.  I can ping the two VRRP routers, I can see the VM has the
> > > proper IP address, netmask, 

Re: ACS 4.2 Error adding S3/Ceph secondary storage

2013-10-23 Thread Andrei Mikhailovsky
Thanks. I just don't know hot can I add it now. I've got the existing secondary 
storage over nfs and if i delete it, would I not loose the data? Most likely 
the data will not be removed from the storage server itself, but all references 
will be removed i suspect. So, what is the best way to proceed I wonder? 

Tha nks 
- Original Message -

From: "Sebastien Goasguen"  
To: users@cloudstack.apache.org, "John Burwell" , "Wido den 
Hollander"  
Sent: Wednesday, 23 October, 2013 6:19:49 PM 
Subject: Re: ACS 4.2 Error adding S3/Ceph secondary storage 

Adding John and Wido to the thread, they should know 

On Oct 23, 2013, at 7:25 AM, Andrei Mikhailovsky  wrote: 

> Sanjeev, 
> 
> Thanks for the information. Does anyone know of the best way to migrate from 
> nfs secondary storage to S3? At the moment, my NFS storage is used for 
> storing templates, including system vm templates. Is it safe for me to remove 
> it and create the new S3 secondary storage? Would it copy systemvm templates 
> onto a new storage automatically or do I have to manually do that? If so, how 
> would I copy the systemvm template onto a non-NFS storage? 
> 
> Many thanks 
> - Original Message - 
> 
> From: "Sanjeev Neelarapu"  
> To: users@cloudstack.apache.org 
> Sent: Wednesday, 23 October, 2013 6:35:38 AM 
> Subject: RE: ACS 4.2 Error adding S3/Ceph secondary storage 
> 
> That means one of the zones in your setup may be having NFS as the secondary 
> storage provider. Make sure that none of the zones use NFS for secondary 
> storage if you want to use S3 . 
> 
> -Original Message- 
> From: Andrei Mikhailovsky [mailto:and...@arhont.com] 
> Sent: Tuesday, October 22, 2013 7:43 PM 
> To: users@cloudstack.apache.org 
> Subject: ACS 4.2 Error adding S3/Ceph secondary storage 
> 
> Hello guys, 
> 
> I am trying to add a new secondary storage provided by Ceph's S3 radosgw, 
> which i've configured and tested. Right after adding it via the GUI I have 
> the following message/error: 
> 
> "You can only add new image stores from the same provider NFS already added" 
> 
> Does anyone know what this message means? I am a bit confused here as I am 
> not adding the NFS secondary storage, but instead adding the S3 storage. 
> 
> Cheers 
> 
> Andrei 
> 




RE: CS4.2 Security groups - need explaination

2013-10-23 Thread Clayton Weise
Security groups with advanced zones is for a pretty specific need.  In short, 
security groups are port filtering rules that are applied within a bridge so 
you can have separate ACLs for each instance.  This is generally used on basic 
networks because public IP addresses are assigned directly to the VM.  With 
advanced networks, the virtual router (or SRX firewall, or some other external 
device you have tied into CS) does NAT and provides all of the firewalling and 
port filtering.  There are specific use cases when you would want to combine 
the two but AFAIK it is only supported with KVM.  There's an overview here:

https://cwiki.apache.org/confluence/display/CLOUDSTACK/Security+Groups+Isolation+in+Advanced+Zone

-Clayton

-Original Message-
From: Jake G. [mailto:dj_dark_jungl...@yahoo.com] 
Sent: Tuesday, October 22, 2013 3:32 AM
To: users@cloudstack.apache.org
Subject: CS4.2 Security groups - need explaination 

Hi all,

I am trying to setup an advance zone. One the very first window of the wizard 
there is an option to use security groups.

What is the difference between using security groups and not using securty 
groups?
Does my network have to be setup differently for each?

Thank you,
Jake


Re: Network not configured in VM

2013-10-23 Thread Shanker Balan
On 23-Oct-2013, at 9:21 pm, Nux!  wrote:

> On 23.10.2013 13:55, Chirag Choudhary wrote:
>> Hi,
>> I created a new instance of rhel 6.2 from iso in cloudstack.
>> Cloudstack UI is showing the it has an IP assigned to it with the netmask ,
>> gatway and other things but when I logged in to the VM, it only has one
>> network interface running : lo
>> I manually did the network configuration to the match that of cloudstack.
>> I took its template and created one more instance but still in the new
>> instance the only interface running was lo. Here are the logs while
>> installing the VM from the iso :
>> http://pastebin.com/1xvmV454
>> what can be the possible reason behind it and how can it be rectified.
>> ( I had previously created Ubuntu VM and it was properly configured , so
>> the cloudstack network manager seems to be good. )
>
> I'm citing from distant memories here, but I believe the default EL6 install 
> does not activate the network unless you tell it so.
> You just need to make sure eth0 starts at boot and is set up as dhcp, or 
> manually do a "dhclient eth0".


Yeah.

Its an install time option to ensure that your ethernet is set to activate
on boot. I have run into the same on a baremetal RHEL/CentOS setup where I
forgot to tick the checkbox during the installation phase.

Chirag, make sure the ONBOOT=yes flag is set in the ifcfg-eth0 file as below:

[root@csman2-1 ~]# grep ONBOOT /etc/sysconfig/network-scripts/ifcfg-eth0
ONBOOT=yes


--
@shankerbalan

M: +91 98860 60539 | O: +91 (80) 67935867
shanker.ba...@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre, 
Bangalore - 560 055

CloudStack Bootcamp Training on 27/28 November, Bangalore
http://www.shapeblue.com/cloudstack-training/




This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England & Wales. ShapeBlue Services India LLP is a company 
incorporated in India and is operated under license from Shape Blue Ltd. Shape 
Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is 
operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: Missing support for LXC on CS 4.2

2013-10-23 Thread Shanker Balan
On 23-Oct-2013, at 9:55 pm, Francois Gaudreault  
wrote:

> I am not sure but, is it possible LXC only works with nonoss builds? If you 
> used community packages, they are oss only. Personally, I didn't try with the 
> oss build, but another user reported the same issue, and he switched to 
> nonoss with my fix and it worked.

Hi Curtis,

I did a nonoss RPM build with Francois’s suggested fix and am at
least able to add the Cluster and LXC host. I haven’t been able to spin
up an LXC instance though.

Will probably have to wait till the weekend before I revisit my setup.

All the best in the meantime with LXC. :)

>
> Francois
>
> On 10/23/2013, 12:23 PM, Old, Curtis wrote:
>> So I build it from source?  I'M not a developer (lowly SA type) in the
>> source I downloaded the file nonossComponentContext.xml doesn't exists
>>
>> [root@lab2-mgt-cloud-1 apache-cloudstack-4.2.0-src]# find . -name
>> nonossComponentContext.xml
>> [root@lab2-mgt-cloud-1 apache-cloudstack-4.2.0-src]#
>>
>> So do I have to git clone the repo and build from there?
>>
>> Dazed and confusedŠ..
>>
>>
>>
>>
>>
>> On 10/23/13 11:42 AM, "Francois Gaudreault" 
>> wrote:
>>
>>> This is how I solved this:
>>> https://issues.apache.org/jira/browse/CLOUDSTACK-4849
>>>
>>> Francois
>>>
>>> On 10/23/2013, 11:40 AM, Old, Curtis wrote:
 I installed CS 4.2 from the repo.  I went to install an LXC Cluser and
 got this:

 Could not find corresponding resource manager for LXC

 A little digging on the web and found and there is no plugin for LXC in
 the rpm:

 [root@lab2-mgt-cloud-1 lib]# rpm -ql cloudstack-management |grep
 hyperviso

 /usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
 hypervisor-baremetal-4.2.0.jar

 /usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
 hypervisor-kvm-4.2.0.jar

 /usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
 hypervisor-ovm-4.2.0.jar

 /usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
 hypervisor-ucs-4.2.0.jar

 /usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
 hypervisor-vmware-4.2.0.jar

 /usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
 hypervisor-xen-4.2.0.jar

 I downloaded the source from:


 http://mirror.symnds.com/software/Apache/cloudstack/releases/4.2.0/apache
 -cloudstack-4.2.0-src.tar.bz2

 Doesn't seem to be in there either, so what's the deal?  What is needed
 to get a CS Cluster to use LXC?



>>>
>>> --
>>> Francois Gaudreault
>>> Architecte de Solution Cloud | Cloud Solutions Architect
>>> fgaudrea...@cloudops.com
>>> 514-629-6775
>>> - - -
>>> CloudOps
>>> 420 rue Guy
>>> Montréal QC  H3J 1S6
>>> www.cloudops.com
>>> @CloudOps_
>>>
>>
>>
>
>
> --
> Francois Gaudreault
> Architecte de Solution Cloud | Cloud Solutions Architect
> fgaudrea...@cloudops.com
> 514-629-6775
> - - -
> CloudOps
> 420 rue Guy
> Montréal QC  H3J 1S6
> www.cloudops.com
> @CloudOps_
>

--
@shankerbalan

M: +91 98860 60539 | O: +91 (80) 67935867
shanker.ba...@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre, 
Bangalore - 560 055

CloudStack Bootcamp Training on 27/28 November, Bangalore
http://www.shapeblue.com/cloudstack-training/




This email and any attachments to it may be confidential and are intended 
solely for the use of the individual to whom it is addressed. Any views or 
opinions expressed are solely those of the author and do not necessarily 
represent those of Shape Blue Ltd or related companies. If you are not the 
intended recipient of this email, you must neither take any action based upon 
its contents, nor copy or show it to anyone. Please contact the sender if you 
believe you have received this email in error. Shape Blue Ltd is a company 
incorporated in England & Wales. ShapeBlue Services India LLP is a company 
incorporated in India and is operated under license from Shape Blue Ltd. Shape 
Blue Brasil Consultoria Ltda is a company incorporated in Brasil and is 
operated under license from Shape Blue Ltd. ShapeBlue is a registered trademark.


Re: How does HA work?

2013-10-23 Thread Kelcey Jamison Damage
I can tell you it uses 'Storage-Heartbeat" method for HA, unless that's 
changed. That means the heartbeat ring is via the primary storage. 


- Original Message -

From: "Nux!"  
To: d...@cloudstack.apache.org 
Cc: users@cloudstack.apache.org 
Sent: Wednesday, October 23, 2013 10:48:40 AM 
Subject: How does HA work? 

Hello, 

Since I'm not a programmer reading the code doesn't make too much sense 
to me. 
Can anyone explain to me how HA works (for VMs expecially)? 
Who monitors these HA VMs? Can I run multiple monitors, for HA? Any 
recommendations, best practices, gotchas? 

Thanks, 
Lucian 

-- 
Sent from the Delta quadrant using Borg technology! 

Nux! 
www.nux.ro 



Re: KVM and openvswitch

2013-10-23 Thread Bjoern Teipel


Yup all done, did it multiple time now even with a clean host.
As I said while I was looking into the code, the issue might just that 
my brif directory is empty at
/sys/class/net//brif  I'm not sure if the open vswitch 1.0.9 
version has a bug...



LibvirtComputingResource.java 1036:

   (f is an file object from this directory above)

File[] interfaces = f.listFiles(); >>>  my array is basically 
empty.. <<<


for (int i = 0; i < interfaces.length; i++) {
String fname = interfaces[i].getName();
s_logger.debug("matchPifFileInDirectory: file name 
'"+fname+"'");

if (fname.startsWith("eth") || fname.startsWith("bond")
|| fname.startsWith("vlan") || fname.startsWith("em")
|| fname.matches("^p\\d+p\\d+.*")) {
return fname;
}
}


My  brif  directory is empty so I'm not sure if I have a configuration 
issue in openvswitch.

Going to check this now.

On 10/23/2013 10:36 AM, Francois Gaudreault wrote:

So brctl is likely to return a mess.

How did you configure the agent? Did you put :
libvirt.vif.driver=com.cloud.hypervisor.kvm.resource.OvsVifDriver
and
network.bridge.type=openvswitch

in agent.properties?

Francois

On 10/23/2013, 1:24 PM, Bjoern Teipel wrote:

Yes I did.

On 10/23/2013 09:27 AM, Francois Gaudreault wrote:

Did you blacklist the linux bridge module? You have to blacklist it.

FG

On 10/23/2013, 12:24 PM, Bjoern Teipel wrote:

Yes that's what I followed exactly.

My OS is centos 6.4 and brctl

bridge namebridge idSTP enabledinterfaces
cloud0/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
.ba2d3a409d48no
cloudbr0/sys/class/net/cloudbr0/bridge: No such file or 
directory

/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
.00219ba07885no
cloudbr1/sys/class/net/cloudbr1/bridge: No such file or 
directory

/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
.00219ba07885no

But the directories are there so it doesn't make a whole lot of sense

/sys/class/net/cloud0/bridge
[bteipel@hq-kvmhv-002 bridge]$ ll
total 0
-rw-r--r-- 1 root root 4096 Oct 23 00:32 ageing_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 bridge_id
-rw-r--r-- 1 root root 4096 Oct 23 00:32 forward_delay
-r--r--r-- 1 root root 4096 Oct 23 00:32 gc_timer
-rw-r--r-- 1 root root 4096 Oct 23 09:23 group_addr
-rw-r--r-- 1 root root 4096 Oct 23 00:32 hello_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 hello_timer
-rw-r--r-- 1 root root 4096 Oct 23 00:32 max_age
-rw-r--r-- 1 root root 4096 Oct 23 09:23 priority
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_id
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_path_cost
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_port
-rw-r--r-- 1 root root 4096 Oct 23 00:32 stp_state
-r--r--r-- 1 root root 4096 Oct 23 00:32 tcn_timer
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_detected
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_timer


On 10/22/2013 11:42 PM, Nguyen Anh Tu wrote:

2013/10/23 Bjoern Teipel 


Is somebody using cloustack >= 4.1 and openvswitch ?


Hi, take a look 

How does HA work?

2013-10-23 Thread Nux!

Hello,

Since I'm not a programmer reading the code doesn't make too much sense 
to me.

Can anyone explain to me how HA works (for VMs expecially)?
Who monitors these HA VMs? Can I run multiple monitors, for HA? Any 
recommendations, best practices, gotchas?


Thanks,
Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


RE: Downloading templates loop

2013-10-23 Thread David Comerford
Sorry, restart MS.
I was surprised it didn't just stop when it was removed from the database.
And it wasn't in the async job queue or anything either.
 On 23 Oct 2013 18:33, "Nitin Mehta"  wrote:

> Great that it worked. You mean restart of the cloud agent on ssvm or MS
> restart ?
>
> Thanks,
> -Nitin
> 
> From: David Comerford [davest...@gmail.com]
> Sent: Wednesday, October 23, 2013 10:02 PM
> To: users@cloudstack.apache.org
> Subject: Re: Downloading templates loop
>
> I tried it on one row and CS stopped trying to download but it did require
> a restart of the service.
> Didn't need to restart SSVM.
>
> Thanks for your help :)
> Best regards,
> David Comerford
> 
> Tel: +353 87 1238295
> Email: davest...@gmail.com
> Website: http://dave.ie
> GPG key: http://gpg.dave.ie
>
>
> On 23 October 2013 17:10, Nitin Mehta  wrote:
>
> > Yes - it should be fine. That said, I would first try and do it only for
> > one entry (also keeping a backup) and see what happens.
> > You might also need to stop/start ssvm to cancel the job (do it only if
> > its not cancelled)
> >
> > On 23/10/13 5:08 AM, "David Comerford"  wrote:
> >
> > >Or a more exciting way of phrasing that last question, is the safe to
> > >delete all entries from template_host_ref where download_state is
> > >NOT_DOWNLOADED?
> > >
> > >DELETE FROM template_host_ref WHERE download_state='NOT_DOWNLOADED';
> > >
> > >Best regards,
> > >David Comerford
> > >
> > >Tel: +353 87 1238295
> > >Email: davest...@gmail.com
> > >Website: http://dave.ie
> > >GPG key: http://gpg.dave.ie
> > >
> > >
> > >On 23 October 2013 12:16, David Comerford  wrote:
> > >
> > >> Right sounds good.
> > >> In some cases I have a working template that has multiple entries in
> > >> template_host_ref. Usually there's a few failed download entries and
> the
> > >> one that succeded. Am I safe to just delete the rows that have the
> > >>failures
> > >> from this table?
> > >> Best regards,
> > >> David Comerford
> > >> 
> > >> Tel: +353 87 1238295
> > >> Email: davest...@gmail.com
> > >> Website: http://dave.ie
> > >> GPG key: http://gpg.dave.ie
> > >>
> > >>
> > >> On 23 October 2013 05:41, Nitin Mehta  wrote:
> > >>
> > >>> David - I don¹t think it should be a problem. The reference is the
> > >>>other
> > >>> way around.
> > >>> Also mark the vm_template table entry as removed. Try this for one of
> > >>>them
> > >>> and see.
> > >>>
> > >>> On 22/10/13 1:22 PM, "David Comerford"  wrote:
> > >>>
> > >>> >They aren't present in the UI.
> > >>> >Would deleting them from template_store_ref not cause a problem as
> > >>>they
> > >>> >are
> > >>> >referenced by template_host_ref and vm_template?
> > >>> >
> > >>> >Best regards,
> > >>> >David Comerford
> > >>> >
> > >>> >Tel: +353 87 1238295
> > >>> >Email: davest...@gmail.com
> > >>> >Website: http://dave.ie
> > >>> >GPG key: http://gpg.dave.ie
> > >>> >
> > >>> >
> > >>> >On 22 October 2013 17:42, Nitin Mehta 
> wrote:
> > >>> >
> > >>> >> If there is an option available in the UI to delete them then do
> > >>>that.
> > >>> >> Else you can remove the entry from template_store_ref, I think
> that
> > >>> >>should
> > >>> >> do
> > >>> >>
> > >>> >> On 22/10/13 8:20 AM, "David Comerford" 
> wrote:
> > >>> >>
> > >>> >> >Hi,
> > >>> >> >
> > >>> >> >I've noticed my logs are filled with what looks like attempts to
> > >>> >> >re-download old failed template downloads. The jobID's from the
> > >>>logs
> > >>> >>can
> > >>> >> >be
> > >>> >> >seen in the template_host_ref table.
> > >>> >> >I'm wondering why the jobs haven't timed out or otherwise given
> up.
> > >>> >>And If
> > >>> >> >they are going on go on forever then how do I stop/remove them.
> > >>> >> >
> > >>> >> >Thanks
> > >>> >> >
> > >>> >> >=== Extract from management-server.log ===
> > >>> >> >2013-10-21 16:46:55,202 DEBUG [agent.transport.Request]
> > >>> (Timer-13:null)
> > >>> >> >Seq
> > >>> >> >67-1910165348: Sending { Cmd , MgmtId: 345051854263, via: 67,
> Ver:
> > >>>v1,
> > >>> >> >Flags: 100011,
> > >>> >>
> > >>>
> > >>>
> >
> >>[{"storage.DownloadProgressCommand":{"jobId":"25d111cf-767d-40f2-9d3f
> > >>-e9
> > >>> >>>21
> > >>> >> >b8d00638","request":"GET_STATUS","hvm":true,"description":"RHEL
> > >>> >> >Server 6.3 32
> > >>> >>
> > >>>
> > >>>
> >
> >>Bit","checksum":"edd93cda6935bcf04c3381446764eb26","maxDownloadSizeIn
> > >>Byt
> > >>> >>>es
> > >>> >> >":53687091200,"id":233,"resourceType":"TEMPLATE","url":"
> > >>> >> >http://bignas01/rhel-server-6.3-i386-dvd.iso
> > >>> >> ","format":"ISO","accountId":2
> > >>> >>
> > >>>
> > >>>
> >
> >>,"name":"233-2-03f4e933-fc90-3056-8ccd-78b4a1b27dfb","secUrl":"nfs://
> > >>oth
> > >>> >>>er
> > >>> >> >nas/export/sec2","wait":0}}]
> > >>> >> >}
> > >>> >> >2013-10-21 16:46:55,254 DEBUG [agent.transport.Request]
> > >>> >> >(AgentManager-Handler-2:null) Seq 67-

Re: KVM and openvswitch

2013-10-23 Thread Francois Gaudreault

So brctl is likely to return a mess.

How did you configure the agent? Did you put :
libvirt.vif.driver=com.cloud.hypervisor.kvm.resource.OvsVifDriver
and
network.bridge.type=openvswitch

in agent.properties?

Francois

On 10/23/2013, 1:24 PM, Bjoern Teipel wrote:

Yes I did.

On 10/23/2013 09:27 AM, Francois Gaudreault wrote:

Did you blacklist the linux bridge module? You have to blacklist it.

FG

On 10/23/2013, 12:24 PM, Bjoern Teipel wrote:

Yes that's what I followed exactly.

My OS is centos 6.4 and brctl

bridge namebridge idSTP enabledinterfaces
cloud0/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
.ba2d3a409d48no
cloudbr0/sys/class/net/cloudbr0/bridge: No such file or 
directory

/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
.00219ba07885no
cloudbr1/sys/class/net/cloudbr1/bridge: No such file or 
directory

/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
.00219ba07885no

But the directories are there so it doesn't make a whole lot of sense

/sys/class/net/cloud0/bridge
[bteipel@hq-kvmhv-002 bridge]$ ll
total 0
-rw-r--r-- 1 root root 4096 Oct 23 00:32 ageing_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 bridge_id
-rw-r--r-- 1 root root 4096 Oct 23 00:32 forward_delay
-r--r--r-- 1 root root 4096 Oct 23 00:32 gc_timer
-rw-r--r-- 1 root root 4096 Oct 23 09:23 group_addr
-rw-r--r-- 1 root root 4096 Oct 23 00:32 hello_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 hello_timer
-rw-r--r-- 1 root root 4096 Oct 23 00:32 max_age
-rw-r--r-- 1 root root 4096 Oct 23 09:23 priority
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_id
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_path_cost
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_port
-rw-r--r-- 1 root root 4096 Oct 23 00:32 stp_state
-r--r--r-- 1 root root 4096 Oct 23 00:32 tcn_timer
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_detected
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_timer


On 10/22/2013 11:42 PM, Nguyen Anh Tu wrote:

2013/10/23 Bjoern Teipel 


Is somebody using cloustack >= 4.1 and openvswitch ?


Hi, take a look here:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/KVM+with+OpenVSwitch 


















--
Francois Gaudreault
Architecte de Solution Cloud | Cloud Solutions Architect
fgaudrea...@cloudops.com
514-629-6775
- - -
CloudOps
420 rue Guy
Montréal QC  H3J 1S6
www.cloudops.com
@CloudOps_



RE: Downloading templates loop

2013-10-23 Thread Nitin Mehta
Great that it worked. You mean restart of the cloud agent on ssvm or MS restart 
?

Thanks,
-Nitin

From: David Comerford [davest...@gmail.com]
Sent: Wednesday, October 23, 2013 10:02 PM
To: users@cloudstack.apache.org
Subject: Re: Downloading templates loop

I tried it on one row and CS stopped trying to download but it did require
a restart of the service.
Didn't need to restart SSVM.

Thanks for your help :)
Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 23 October 2013 17:10, Nitin Mehta  wrote:

> Yes - it should be fine. That said, I would first try and do it only for
> one entry (also keeping a backup) and see what happens.
> You might also need to stop/start ssvm to cancel the job (do it only if
> its not cancelled)
>
> On 23/10/13 5:08 AM, "David Comerford"  wrote:
>
> >Or a more exciting way of phrasing that last question, is the safe to
> >delete all entries from template_host_ref where download_state is
> >NOT_DOWNLOADED?
> >
> >DELETE FROM template_host_ref WHERE download_state='NOT_DOWNLOADED';
> >
> >Best regards,
> >David Comerford
> >
> >Tel: +353 87 1238295
> >Email: davest...@gmail.com
> >Website: http://dave.ie
> >GPG key: http://gpg.dave.ie
> >
> >
> >On 23 October 2013 12:16, David Comerford  wrote:
> >
> >> Right sounds good.
> >> In some cases I have a working template that has multiple entries in
> >> template_host_ref. Usually there's a few failed download entries and the
> >> one that succeded. Am I safe to just delete the rows that have the
> >>failures
> >> from this table?
> >> Best regards,
> >> David Comerford
> >> 
> >> Tel: +353 87 1238295
> >> Email: davest...@gmail.com
> >> Website: http://dave.ie
> >> GPG key: http://gpg.dave.ie
> >>
> >>
> >> On 23 October 2013 05:41, Nitin Mehta  wrote:
> >>
> >>> David - I don¹t think it should be a problem. The reference is the
> >>>other
> >>> way around.
> >>> Also mark the vm_template table entry as removed. Try this for one of
> >>>them
> >>> and see.
> >>>
> >>> On 22/10/13 1:22 PM, "David Comerford"  wrote:
> >>>
> >>> >They aren't present in the UI.
> >>> >Would deleting them from template_store_ref not cause a problem as
> >>>they
> >>> >are
> >>> >referenced by template_host_ref and vm_template?
> >>> >
> >>> >Best regards,
> >>> >David Comerford
> >>> >
> >>> >Tel: +353 87 1238295
> >>> >Email: davest...@gmail.com
> >>> >Website: http://dave.ie
> >>> >GPG key: http://gpg.dave.ie
> >>> >
> >>> >
> >>> >On 22 October 2013 17:42, Nitin Mehta  wrote:
> >>> >
> >>> >> If there is an option available in the UI to delete them then do
> >>>that.
> >>> >> Else you can remove the entry from template_store_ref, I think that
> >>> >>should
> >>> >> do
> >>> >>
> >>> >> On 22/10/13 8:20 AM, "David Comerford"  wrote:
> >>> >>
> >>> >> >Hi,
> >>> >> >
> >>> >> >I've noticed my logs are filled with what looks like attempts to
> >>> >> >re-download old failed template downloads. The jobID's from the
> >>>logs
> >>> >>can
> >>> >> >be
> >>> >> >seen in the template_host_ref table.
> >>> >> >I'm wondering why the jobs haven't timed out or otherwise given up.
> >>> >>And If
> >>> >> >they are going on go on forever then how do I stop/remove them.
> >>> >> >
> >>> >> >Thanks
> >>> >> >
> >>> >> >=== Extract from management-server.log ===
> >>> >> >2013-10-21 16:46:55,202 DEBUG [agent.transport.Request]
> >>> (Timer-13:null)
> >>> >> >Seq
> >>> >> >67-1910165348: Sending { Cmd , MgmtId: 345051854263, via: 67, Ver:
> >>>v1,
> >>> >> >Flags: 100011,
> >>> >>
> >>>
> >>>
> >>[{"storage.DownloadProgressCommand":{"jobId":"25d111cf-767d-40f2-9d3f
> >>-e9
> >>> >>>21
> >>> >> >b8d00638","request":"GET_STATUS","hvm":true,"description":"RHEL
> >>> >> >Server 6.3 32
> >>> >>
> >>>
> >>>
> >>Bit","checksum":"edd93cda6935bcf04c3381446764eb26","maxDownloadSizeIn
> >>Byt
> >>> >>>es
> >>> >> >":53687091200,"id":233,"resourceType":"TEMPLATE","url":"
> >>> >> >http://bignas01/rhel-server-6.3-i386-dvd.iso
> >>> >> ","format":"ISO","accountId":2
> >>> >>
> >>>
> >>>
> >>,"name":"233-2-03f4e933-fc90-3056-8ccd-78b4a1b27dfb","secUrl":"nfs://
> >>oth
> >>> >>>er
> >>> >> >nas/export/sec2","wait":0}}]
> >>> >> >}
> >>> >> >2013-10-21 16:46:55,254 DEBUG [agent.transport.Request]
> >>> >> >(AgentManager-Handler-2:null) Seq 67-1910165348: Processing: {
> >>>Ans: ,
> >>> >> >MgmtId: 345051854263, via: 67, Ver: v1, Flags: 10,
> >>> >>
> >>>
> >>>
> >>[{"storage.DownloadAnswer":{"jobId":"25d111cf-767d-40f2-9d3f-e921b8d0
> >>063
> >>> >>>8"
> >>> >> >,"downloadPct":0,"errorString":"No
> >>> >> >route to
> >>> >>
> >>>
> >>>
> >>host","downloadStatus":"NOT_DOWNLOADED","downloadPath":"/mnt/SecStora
> >>ge/
> >>> >>>92
> >>> >>
> >>>
> >>>
> >>19e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/233/dnld1954968885

Re: KVM and openvswitch

2013-10-23 Thread Bjoern Teipel

Yes I did.

On 10/23/2013 09:27 AM, Francois Gaudreault wrote:

Did you blacklist the linux bridge module? You have to blacklist it.

FG

On 10/23/2013, 12:24 PM, Bjoern Teipel wrote:

Yes that's what I followed exactly.

My OS is centos 6.4 and brctl

bridge namebridge idSTP enabledinterfaces
cloud0/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
.ba2d3a409d48no
cloudbr0/sys/class/net/cloudbr0/bridge: No such file or 
directory

/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
.00219ba07885no
cloudbr1/sys/class/net/cloudbr1/bridge: No such file or 
directory

/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
.00219ba07885no

But the directories are there so it doesn't make a whole lot of sense

/sys/class/net/cloud0/bridge
[bteipel@hq-kvmhv-002 bridge]$ ll
total 0
-rw-r--r-- 1 root root 4096 Oct 23 00:32 ageing_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 bridge_id
-rw-r--r-- 1 root root 4096 Oct 23 00:32 forward_delay
-r--r--r-- 1 root root 4096 Oct 23 00:32 gc_timer
-rw-r--r-- 1 root root 4096 Oct 23 09:23 group_addr
-rw-r--r-- 1 root root 4096 Oct 23 00:32 hello_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 hello_timer
-rw-r--r-- 1 root root 4096 Oct 23 00:32 max_age
-rw-r--r-- 1 root root 4096 Oct 23 09:23 priority
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_id
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_path_cost
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_port
-rw-r--r-- 1 root root 4096 Oct 23 00:32 stp_state
-r--r--r-- 1 root root 4096 Oct 23 00:32 tcn_timer
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_detected
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_timer


On 10/22/2013 11:42 PM, Nguyen Anh Tu wrote:

2013/10/23 Bjoern Teipel 


Is somebody using cloustack >= 4.1 and openvswitch ?


Hi, take a look here:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/KVM+with+OpenVSwitch 















--

Bjoern Teipel
System Operation Manager UNIX
Internet Brands
909 N. Sepulveda Blvd., 11th Floor
El Segundo, CA 90245
P: (310) 280- 5287

bjoern.tei...@internetbrands.com



Re: ACS 4.2 Error adding S3/Ceph secondary storage

2013-10-23 Thread Sebastien Goasguen
Adding John and Wido to the thread, they should know

On Oct 23, 2013, at 7:25 AM, Andrei Mikhailovsky  wrote:

> Sanjeev, 
> 
> Thanks for the information. Does anyone know of the best way to migrate from 
> nfs secondary storage to S3? At the moment, my NFS storage is used for 
> storing templates, including system vm templates. Is it safe for me to remove 
> it and create the new S3 secondary storage? Would it copy systemvm templates 
> onto a new storage automatically or do I have to manually do that? If so, how 
> would I copy the systemvm template onto a non-NFS storage? 
> 
> Many thanks 
> - Original Message -
> 
> From: "Sanjeev Neelarapu"  
> To: users@cloudstack.apache.org 
> Sent: Wednesday, 23 October, 2013 6:35:38 AM 
> Subject: RE: ACS 4.2 Error adding S3/Ceph secondary storage 
> 
> That means one of the zones in your setup may be having NFS as the secondary 
> storage provider. Make sure that none of the zones use NFS for secondary 
> storage if you want to use S3 . 
> 
> -Original Message- 
> From: Andrei Mikhailovsky [mailto:and...@arhont.com] 
> Sent: Tuesday, October 22, 2013 7:43 PM 
> To: users@cloudstack.apache.org 
> Subject: ACS 4.2 Error adding S3/Ceph secondary storage 
> 
> Hello guys, 
> 
> I am trying to add a new secondary storage provided by Ceph's S3 radosgw, 
> which i've configured and tested. Right after adding it via the GUI I have 
> the following message/error: 
> 
> "You can only add new image stores from the same provider NFS already added" 
> 
> Does anyone know what this message means? I am a bit confused here as I am 
> not adding the NFS secondary storage, but instead adding the S3 storage. 
> 
> Cheers 
> 
> Andrei 
> 



Out of disk space on XenServer hosts managed by CS.

2013-10-23 Thread Carlos Reategui
Anyone else running out of disk space in a XS cluster using CloudStack?

I found the following on Citrix's site:
http://support.citrix.com/article/CTX138064 which applies to their version
of CS (CloudPlatform -- although doc also says it applies to CS 3.0) but it
seems to be a problem with CloudStack 4.1 too.

In looking at my XS 6.1 hosts the logrotate script is already hourly
however it is missing the line
"/opt/xensource/bin/delete_old_logs_by_space" suggested by the article in
that script.

Should this be a documentation JIRA in the preping XS Hosts section or is
there something that can be done in the setupxenserver.sh to do this
reliably when adding a host?

regards,
-Carlos


Re: Templates and ISOs are shown twice after upgrade to 4.2

2013-10-23 Thread Andrei Mikhailovsky
Nitin, 

They were a few months back, but i've removed all of them and left just the 
one. Prior to upgrading to 4.2 i've not seen the double templates/isos. They 
appeared after the upgrade. Is there a way for me to remove them? If so, what 
tables should I look at? I've tried to find the replicas in the database table 
vm_template, but they all seems to have a single entry. Am I looking in the 
wrong place? 

Thanks 
- Original Message -

From: "Nitin Mehta"  
To: users@cloudstack.apache.org 
Sent: Wednesday, 23 October, 2013 5:24:04 PM 
Subject: Re: Templates and ISOs are shown twice after upgrade to 4.2 

For the two ISOs one of them has two entries in template store ref, the 
other one doesn't. Were/Are there multiple secondary storages ? 


On 23/10/13 4:22 AM, "Andrei Mikhailovsky"  wrote: 

>Nitin, here you go: http://ur1.ca/fxe1h 
> 
>Thanks for your help 
> 
>Andrei - Original Message - 
> 
>From: "Nitin Mehta"  
>To: users@cloudstack.apache.org 
>Sent: Wednesday, 23 October, 2013 5:47:24 AM 
>Subject: Re: Templates and ISOs are shown twice after upgrade to 4.2 
> 
>Hi Andrei - its hard to read the sql output. 
>Can you run them with \G at the end ? select * from vm_template where 
>uuid='b9dc8160-3052-4fdb-9beb-da02be0922df' or 
>uuid='0c5064cd-db17-46cf-8cf0-d6f5d98ae2b0'\G; 
> 
>I would also suggest to dump corresponding template_store_ref entries / 
>API response(get it from api.log) as well. Put all this and anything else 
>you think might be useful on paste bin. 
> 
>Thanks, 
>-Nitin 
> 
>On 22/10/13 10:21 AM, "Andrei Mikhailovsky"  wrote: 
> 
>>I can't comment on the Templates as every single template is shown 
>>twice. 
>>However, i do have several ISOs which are shown once. For example below, 
>>the iso id 203 is shown twice, but the iso with id 326 is shown once. 
>> 
>>>select * from vm_template where 
>>>uuid='b9dc8160-3052-4fdb-9beb-da02be0922df' or 
>>>uuid='0c5064cd-db17-46cf-8cf0-d6f5d98ae2b0'; 
>>+-++- 
>>- 
>>-+--++--+--+- 
>>- 
>>---+--+-- 
>>- 
>>--++-+--- 
>>- 
>>-++--+--- 
>>- 
>>---+-+---+-+--+-- 
>>- 
>>--+-+-+-+ 
>>+ 
>>--+--+---+---+--+ 
>>- 
>>+--+ 
>>| id | unique_name | name | uuid | public | featured | type | hvm | bits 
>>| url | format | created | removed | account_id | checksum | 
>>display_text 
>>| enable_password | enable_sshkey | guest_os_id | bootable | prepopulate 
>>| cross_zones | extractable | hypervisor_type | source_template_id | 
>>template_tag | sort_key | size | state | update_count | updated | 
>>dynamically_scalable | 
>>+-++- 
>>- 
>>-+--++--+--+- 
>>- 
>>---+--+-- 
>>- 
>>--++-+--- 
>>- 
>>-++--+--- 
>>- 
>>---+-+---+-+--+-- 
>>- 
>>--+-+-+-+ 
>>+ 
>>--+--+---+---+--+ 
>>- 
>>+--+ 
>>| 203 | 203-2-11fab458-0170-3d8d-bdac-979c0ca80399 | Ubuntu 12.10 64bit 
>>Server | 0c5064cd-db17-46cf-8cf0-d6f5d98ae2b0 | 1 | 0 | USER | 1 | 64 | 
>>http://mirror.ox.ac.uk/sites/releases.ubuntu.com/releases/quantal/ubuntu- 
>>1 
>>2.10-server-amd64+mac.iso | ISO | 2012-10-30 15:20:04 | NULL | 2 | 
>>b8a4d9513ed53dc1be05576113b113e8 | Ubuntu 12.10 64bit Server | 0 | 0 | 
>>157 | 1 | 0 | 1 | 0 | None | NULL | NULL | 0 | 723517440 | Allocated | 0 
>>| NULL | 0 | 
>>| 326 | 326-2-c2a59a20-80a9-3e63-9466-3a1172db0a8f | Ubuntu Server 
>>10.04.4 LTS | b9dc8160-3052-4fdb-9beb-da02be0922df | 1 | 0 | USER | 1 | 
>>64 | 
>>http://mirror.ox.ac.uk/sites/releases.ubuntu.com/releases/10.04/ubuntu-10 
>>. 
>>04.4-server-amd64.iso | ISO | 2013-05-29 10:30:51 | NULL | 2 | 
>>9b218654cdcdf9722171648c52f8a088 | Ubuntu Server 10.04.4 LTS | 0 | 0 | 
>>126 | 1 | 0 | 1 | 0 | None | NULL | NULL | 0 | 714567680 | Allocated | 0 
>>| NULL | 0 | 
>>+-++- 
>>- 
>>-+--++--+--+- 
>>- 
>>---+--+-- 
>>- 
>>--++-+--- 
>>-

Re: Downloading templates loop

2013-10-23 Thread David Comerford
I tried it on one row and CS stopped trying to download but it did require
a restart of the service.
Didn't need to restart SSVM.

Thanks for your help :)
Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 23 October 2013 17:10, Nitin Mehta  wrote:

> Yes - it should be fine. That said, I would first try and do it only for
> one entry (also keeping a backup) and see what happens.
> You might also need to stop/start ssvm to cancel the job (do it only if
> its not cancelled)
>
> On 23/10/13 5:08 AM, "David Comerford"  wrote:
>
> >Or a more exciting way of phrasing that last question, is the safe to
> >delete all entries from template_host_ref where download_state is
> >NOT_DOWNLOADED?
> >
> >DELETE FROM template_host_ref WHERE download_state='NOT_DOWNLOADED';
> >
> >Best regards,
> >David Comerford
> >
> >Tel: +353 87 1238295
> >Email: davest...@gmail.com
> >Website: http://dave.ie
> >GPG key: http://gpg.dave.ie
> >
> >
> >On 23 October 2013 12:16, David Comerford  wrote:
> >
> >> Right sounds good.
> >> In some cases I have a working template that has multiple entries in
> >> template_host_ref. Usually there's a few failed download entries and the
> >> one that succeded. Am I safe to just delete the rows that have the
> >>failures
> >> from this table?
> >> Best regards,
> >> David Comerford
> >> 
> >> Tel: +353 87 1238295
> >> Email: davest...@gmail.com
> >> Website: http://dave.ie
> >> GPG key: http://gpg.dave.ie
> >>
> >>
> >> On 23 October 2013 05:41, Nitin Mehta  wrote:
> >>
> >>> David - I don¹t think it should be a problem. The reference is the
> >>>other
> >>> way around.
> >>> Also mark the vm_template table entry as removed. Try this for one of
> >>>them
> >>> and see.
> >>>
> >>> On 22/10/13 1:22 PM, "David Comerford"  wrote:
> >>>
> >>> >They aren't present in the UI.
> >>> >Would deleting them from template_store_ref not cause a problem as
> >>>they
> >>> >are
> >>> >referenced by template_host_ref and vm_template?
> >>> >
> >>> >Best regards,
> >>> >David Comerford
> >>> >
> >>> >Tel: +353 87 1238295
> >>> >Email: davest...@gmail.com
> >>> >Website: http://dave.ie
> >>> >GPG key: http://gpg.dave.ie
> >>> >
> >>> >
> >>> >On 22 October 2013 17:42, Nitin Mehta  wrote:
> >>> >
> >>> >> If there is an option available in the UI to delete them then do
> >>>that.
> >>> >> Else you can remove the entry from template_store_ref, I think that
> >>> >>should
> >>> >> do
> >>> >>
> >>> >> On 22/10/13 8:20 AM, "David Comerford"  wrote:
> >>> >>
> >>> >> >Hi,
> >>> >> >
> >>> >> >I've noticed my logs are filled with what looks like attempts to
> >>> >> >re-download old failed template downloads. The jobID's from the
> >>>logs
> >>> >>can
> >>> >> >be
> >>> >> >seen in the template_host_ref table.
> >>> >> >I'm wondering why the jobs haven't timed out or otherwise given up.
> >>> >>And If
> >>> >> >they are going on go on forever then how do I stop/remove them.
> >>> >> >
> >>> >> >Thanks
> >>> >> >
> >>> >> >=== Extract from management-server.log ===
> >>> >> >2013-10-21 16:46:55,202 DEBUG [agent.transport.Request]
> >>> (Timer-13:null)
> >>> >> >Seq
> >>> >> >67-1910165348: Sending { Cmd , MgmtId: 345051854263, via: 67, Ver:
> >>>v1,
> >>> >> >Flags: 100011,
> >>> >>
> >>>
> >>>
> >>[{"storage.DownloadProgressCommand":{"jobId":"25d111cf-767d-40f2-9d3f
> >>-e9
> >>> >>>21
> >>> >> >b8d00638","request":"GET_STATUS","hvm":true,"description":"RHEL
> >>> >> >Server 6.3 32
> >>> >>
> >>>
> >>>
> >>Bit","checksum":"edd93cda6935bcf04c3381446764eb26","maxDownloadSizeIn
> >>Byt
> >>> >>>es
> >>> >> >":53687091200,"id":233,"resourceType":"TEMPLATE","url":"
> >>> >> >http://bignas01/rhel-server-6.3-i386-dvd.iso
> >>> >> ","format":"ISO","accountId":2
> >>> >>
> >>>
> >>>
> >>,"name":"233-2-03f4e933-fc90-3056-8ccd-78b4a1b27dfb","secUrl":"nfs://
> >>oth
> >>> >>>er
> >>> >> >nas/export/sec2","wait":0}}]
> >>> >> >}
> >>> >> >2013-10-21 16:46:55,254 DEBUG [agent.transport.Request]
> >>> >> >(AgentManager-Handler-2:null) Seq 67-1910165348: Processing: {
> >>>Ans: ,
> >>> >> >MgmtId: 345051854263, via: 67, Ver: v1, Flags: 10,
> >>> >>
> >>>
> >>>
> >>[{"storage.DownloadAnswer":{"jobId":"25d111cf-767d-40f2-9d3f-e921b8d0
> >>063
> >>> >>>8"
> >>> >> >,"downloadPct":0,"errorString":"No
> >>> >> >route to
> >>> >>
> >>>
> >>>
> >>host","downloadStatus":"NOT_DOWNLOADED","downloadPath":"/mnt/SecStora
> >>ge/
> >>> >>>92
> >>> >>
> >>>
> >>>
> >>19e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/233/dnld1954968885
> >>437
> >>> >>>89
> >>> >>
> >>>
> >>>
> >>6633tmp_","templateSize":0,"templatePhySicalSize":0,"checkSum":"edd93
> >>cda
> >>> >>>69
> >>> >> >35bcf04c3381446764eb26","result":false,"details":"No
> >>> >> >route to host","wait":0}}] }
> >>> >> >
> >>> >> >=== Example JobID from databas

Re: KVM and openvswitch

2013-10-23 Thread Francois Gaudreault

Did you blacklist the linux bridge module? You have to blacklist it.

FG

On 10/23/2013, 12:24 PM, Bjoern Teipel wrote:

Yes that's what I followed exactly.

My OS is centos 6.4 and brctl

bridge namebridge idSTP enabledinterfaces
cloud0/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
.ba2d3a409d48no
cloudbr0/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
.00219ba07885no
cloudbr1/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
.00219ba07885no

But the directories are there so it doesn't make a whole lot of sense

/sys/class/net/cloud0/bridge
[bteipel@hq-kvmhv-002 bridge]$ ll
total 0
-rw-r--r-- 1 root root 4096 Oct 23 00:32 ageing_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 bridge_id
-rw-r--r-- 1 root root 4096 Oct 23 00:32 forward_delay
-r--r--r-- 1 root root 4096 Oct 23 00:32 gc_timer
-rw-r--r-- 1 root root 4096 Oct 23 09:23 group_addr
-rw-r--r-- 1 root root 4096 Oct 23 00:32 hello_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 hello_timer
-rw-r--r-- 1 root root 4096 Oct 23 00:32 max_age
-rw-r--r-- 1 root root 4096 Oct 23 09:23 priority
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_id
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_path_cost
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_port
-rw-r--r-- 1 root root 4096 Oct 23 00:32 stp_state
-r--r--r-- 1 root root 4096 Oct 23 00:32 tcn_timer
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_detected
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_timer


On 10/22/2013 11:42 PM, Nguyen Anh Tu wrote:

2013/10/23 Bjoern Teipel 


Is somebody using cloustack >= 4.1 and openvswitch ?


Hi, take a look here:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/KVM+with+OpenVSwitch 












--
Francois Gaudreault
Architecte de Solution Cloud | Cloud Solutions Architect
fgaudrea...@cloudops.com
514-629-6775
- - -
CloudOps
420 rue Guy
Montréal QC  H3J 1S6
www.cloudops.com
@CloudOps_



Re: Missing support for LXC on CS 4.2

2013-10-23 Thread Francois Gaudreault
I am not sure but, is it possible LXC only works with nonoss builds? If 
you used community packages, they are oss only. Personally, I didn't try 
with the oss build, but another user reported the same issue, and he 
switched to nonoss with my fix and it worked.


Francois

On 10/23/2013, 12:23 PM, Old, Curtis wrote:

So I build it from source?  I'M not a developer (lowly SA type) in the
source I downloaded the file nonossComponentContext.xml doesn't exists

[root@lab2-mgt-cloud-1 apache-cloudstack-4.2.0-src]# find . -name
nonossComponentContext.xml
[root@lab2-mgt-cloud-1 apache-cloudstack-4.2.0-src]#

So do I have to git clone the repo and build from there?

Dazed and confusedŠ..





On 10/23/13 11:42 AM, "Francois Gaudreault" 
wrote:


This is how I solved this:
https://issues.apache.org/jira/browse/CLOUDSTACK-4849

Francois

On 10/23/2013, 11:40 AM, Old, Curtis wrote:

I installed CS 4.2 from the repo.  I went to install an LXC Cluser and
got this:

Could not find corresponding resource manager for LXC

A little digging on the web and found and there is no plugin for LXC in
the rpm:

[root@lab2-mgt-cloud-1 lib]# rpm -ql cloudstack-management |grep
hyperviso

/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
hypervisor-baremetal-4.2.0.jar

/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
hypervisor-kvm-4.2.0.jar

/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
hypervisor-ovm-4.2.0.jar

/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
hypervisor-ucs-4.2.0.jar

/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
hypervisor-vmware-4.2.0.jar

/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
hypervisor-xen-4.2.0.jar

I downloaded the source from:


http://mirror.symnds.com/software/Apache/cloudstack/releases/4.2.0/apache
-cloudstack-4.2.0-src.tar.bz2

Doesn't seem to be in there either, so what's the deal?  What is needed
to get a CS Cluster to use LXC?





--
Francois Gaudreault
Architecte de Solution Cloud | Cloud Solutions Architect
fgaudrea...@cloudops.com
514-629-6775
- - -
CloudOps
420 rue Guy
Montréal QC  H3J 1S6
www.cloudops.com
@CloudOps_







--
Francois Gaudreault
Architecte de Solution Cloud | Cloud Solutions Architect
fgaudrea...@cloudops.com
514-629-6775
- - -
CloudOps
420 rue Guy
Montréal QC  H3J 1S6
www.cloudops.com
@CloudOps_



Re: KVM and openvswitch

2013-10-23 Thread Bjoern Teipel

Yes that's what I followed exactly.

My OS is centos 6.4 and brctl

bridge namebridge idSTP enabledinterfaces
cloud0/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
/sys/class/net/cloud0/bridge: No such file or directory
.ba2d3a409d48no
cloudbr0/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
/sys/class/net/cloudbr0/bridge: No such file or directory
.00219ba07885no
cloudbr1/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
/sys/class/net/cloudbr1/bridge: No such file or directory
.00219ba07885no

But the directories are there so it doesn't make a whole lot of sense

/sys/class/net/cloud0/bridge
[bteipel@hq-kvmhv-002 bridge]$ ll
total 0
-rw-r--r-- 1 root root 4096 Oct 23 00:32 ageing_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 bridge_id
-rw-r--r-- 1 root root 4096 Oct 23 00:32 forward_delay
-r--r--r-- 1 root root 4096 Oct 23 00:32 gc_timer
-rw-r--r-- 1 root root 4096 Oct 23 09:23 group_addr
-rw-r--r-- 1 root root 4096 Oct 23 00:32 hello_time
-r--r--r-- 1 root root 4096 Oct 23 00:32 hello_timer
-rw-r--r-- 1 root root 4096 Oct 23 00:32 max_age
-rw-r--r-- 1 root root 4096 Oct 23 09:23 priority
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_id
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_path_cost
-r--r--r-- 1 root root 4096 Oct 23 00:32 root_port
-rw-r--r-- 1 root root 4096 Oct 23 00:32 stp_state
-r--r--r-- 1 root root 4096 Oct 23 00:32 tcn_timer
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_detected
-r--r--r-- 1 root root 4096 Oct 23 00:32 topology_change_timer


On 10/22/2013 11:42 PM, Nguyen Anh Tu wrote:

2013/10/23 Bjoern Teipel 


Is somebody using cloustack >= 4.1 and openvswitch ?


Hi, take a look here:
https://cwiki.apache.org/confluence/display/CLOUDSTACK/KVM+with+OpenVSwitch







Re: Templates and ISOs are shown twice after upgrade to 4.2

2013-10-23 Thread Nitin Mehta
For the two ISOs one of them has two entries in template store ref, the
other one doesn't. Were/Are there multiple secondary storages ?


On 23/10/13 4:22 AM, "Andrei Mikhailovsky"  wrote:

>Nitin, here you go: http://ur1.ca/fxe1h
>
>Thanks for your help
>
>Andrei - Original Message -
>
>From: "Nitin Mehta" 
>To: users@cloudstack.apache.org
>Sent: Wednesday, 23 October, 2013 5:47:24 AM
>Subject: Re: Templates and ISOs are shown twice after upgrade to 4.2
>
>Hi Andrei - its hard to read the sql output.
>Can you run them with \G at the end ? select * from vm_template where
>uuid='b9dc8160-3052-4fdb-9beb-da02be0922df' or
>uuid='0c5064cd-db17-46cf-8cf0-d6f5d98ae2b0'\G;
>
>I would also suggest to dump corresponding template_store_ref entries /
>API response(get it from api.log) as well. Put all this and anything else
>you think might be useful on paste bin.
>
>Thanks, 
>-Nitin 
>
>On 22/10/13 10:21 AM, "Andrei Mikhailovsky"  wrote:
>
>>I can't comment on the Templates as every single template is shown
>>twice. 
>>However, i do have several ISOs which are shown once. For example below,
>>the iso id 203 is shown twice, but the iso with id 326 is shown once.
>> 
>>>select * from vm_template where
>>>uuid='b9dc8160-3052-4fdb-9beb-da02be0922df' or
>>>uuid='0c5064cd-db17-46cf-8cf0-d6f5d98ae2b0';
>>+-++-
>>- 
>>-+--++--+--+-
>>- 
>>---+--+--
>>- 
>>--++-+---
>>- 
>>-++--+---
>>- 
>>---+-+---+-+--+--
>>- 
>>--+-+-+-+
>>+ 
>>--+--+---+---+--+
>>- 
>>+--+
>>| id | unique_name | name | uuid | public | featured | type | hvm | bits
>>| url | format | created | removed | account_id | checksum |
>>display_text 
>>| enable_password | enable_sshkey | guest_os_id | bootable | prepopulate
>>| cross_zones | extractable | hypervisor_type | source_template_id |
>>template_tag | sort_key | size | state | update_count | updated |
>>dynamically_scalable |
>>+-++-
>>- 
>>-+--++--+--+-
>>- 
>>---+--+--
>>- 
>>--++-+---
>>- 
>>-++--+---
>>- 
>>---+-+---+-+--+--
>>- 
>>--+-+-+-+
>>+ 
>>--+--+---+---+--+
>>- 
>>+--+
>>| 203 | 203-2-11fab458-0170-3d8d-bdac-979c0ca80399 | Ubuntu 12.10 64bit
>>Server | 0c5064cd-db17-46cf-8cf0-d6f5d98ae2b0 | 1 | 0 | USER | 1 | 64 |
>>http://mirror.ox.ac.uk/sites/releases.ubuntu.com/releases/quantal/ubuntu-
>>1 
>>2.10-server-amd64+mac.iso | ISO | 2012-10-30 15:20:04 | NULL | 2 |
>>b8a4d9513ed53dc1be05576113b113e8 | Ubuntu 12.10 64bit Server | 0 | 0 |
>>157 | 1 | 0 | 1 | 0 | None | NULL | NULL | 0 | 723517440 | Allocated | 0
>>| NULL | 0 | 
>>| 326 | 326-2-c2a59a20-80a9-3e63-9466-3a1172db0a8f | Ubuntu Server
>>10.04.4 LTS | b9dc8160-3052-4fdb-9beb-da02be0922df | 1 | 0 | USER | 1 |
>>64 | 
>>http://mirror.ox.ac.uk/sites/releases.ubuntu.com/releases/10.04/ubuntu-10
>>. 
>>04.4-server-amd64.iso | ISO | 2013-05-29 10:30:51 | NULL | 2 |
>>9b218654cdcdf9722171648c52f8a088 | Ubuntu Server 10.04.4 LTS | 0 | 0 |
>>126 | 1 | 0 | 1 | 0 | None | NULL | NULL | 0 | 714567680 | Allocated | 0
>>| NULL | 0 | 
>>+-++-
>>- 
>>-+--++--+--+-
>>- 
>>---+--+--
>>- 
>>--++-+---
>>- 
>>-++--+---
>>- 
>>---+-+---+-+--+--
>>- 
>>--+-+-+-+
>>+ 
>>--+--+---+---+--+
>>- 
>>+--+
>>2 rows in set (0.00 sec)
>> 
>>I would be happy to produce some more information. Please let me know
>>you 
>>need to investigate this further.
>> 
>>Thanks 
>> 
>> 
>>- Original Message -
>> 
>>From: "Nitin Mehta" 
>>To: users@cloudstack.apache.org
>>Sent: Tuesday, 22 October, 2013 5:41:59 PM
>>Subject: Re: Templates and ISOs are s

Re: Missing support for LXC on CS 4.2

2013-10-23 Thread Old, Curtis
So I build it from source?  I'M not a developer (lowly SA type) in the
source I downloaded the file nonossComponentContext.xml doesn't exists

[root@lab2-mgt-cloud-1 apache-cloudstack-4.2.0-src]# find . -name
nonossComponentContext.xml
[root@lab2-mgt-cloud-1 apache-cloudstack-4.2.0-src]#

So do I have to git clone the repo and build from there?

Dazed and confusedŠ..





On 10/23/13 11:42 AM, "Francois Gaudreault" 
wrote:

>This is how I solved this:
>https://issues.apache.org/jira/browse/CLOUDSTACK-4849
>
>Francois
>
>On 10/23/2013, 11:40 AM, Old, Curtis wrote:
>> I installed CS 4.2 from the repo.  I went to install an LXC Cluser and
>>got this:
>>
>> Could not find corresponding resource manager for LXC
>>
>> A little digging on the web and found and there is no plugin for LXC in
>>the rpm:
>>
>> [root@lab2-mgt-cloud-1 lib]# rpm -ql cloudstack-management |grep
>>hyperviso
>> 
>>/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
>>hypervisor-baremetal-4.2.0.jar
>> 
>>/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
>>hypervisor-kvm-4.2.0.jar
>> 
>>/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
>>hypervisor-ovm-4.2.0.jar
>> 
>>/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
>>hypervisor-ucs-4.2.0.jar
>> 
>>/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
>>hypervisor-vmware-4.2.0.jar
>> 
>>/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-
>>hypervisor-xen-4.2.0.jar
>>
>> I downloaded the source from:
>>
>> 
>>http://mirror.symnds.com/software/Apache/cloudstack/releases/4.2.0/apache
>>-cloudstack-4.2.0-src.tar.bz2
>>
>> Doesn't seem to be in there either, so what's the deal?  What is needed
>>to get a CS Cluster to use LXC?
>>
>>
>>
>
>
>-- 
>Francois Gaudreault
>Architecte de Solution Cloud | Cloud Solutions Architect
>fgaudrea...@cloudops.com
>514-629-6775
>- - -
>CloudOps
>420 rue Guy
>Montréal QC  H3J 1S6
>www.cloudops.com
>@CloudOps_
>



Re: ISO problem after upgrade to 4.2

2013-10-23 Thread Nitin Mehta
Try step 1,2,3 @ 
https://cwiki.apache.org/confluence/display/CLOUDSTACK/SSVM,+templates,+Sec
ondary+storage+troubleshooting

On 23/10/13 6:56 AM, "Paolo De Marco"  wrote:

>Hello,
>i've upgraded cloudstak from 4.0.2 to 4.2 using yum update.
>Everything seem working but i cannot upload ISO.
>In log i see "No running ssvm is found, so command will be sent to
>LocalHostEndPoint". Is it this error related to iso's problem? Any
>ideas? Thanks



Re: Downloading templates loop

2013-10-23 Thread Nitin Mehta
Yes - it should be fine. That said, I would first try and do it only for
one entry (also keeping a backup) and see what happens.
You might also need to stop/start ssvm to cancel the job (do it only if
its not cancelled)

On 23/10/13 5:08 AM, "David Comerford"  wrote:

>Or a more exciting way of phrasing that last question, is the safe to
>delete all entries from template_host_ref where download_state is
>NOT_DOWNLOADED?
>
>DELETE FROM template_host_ref WHERE download_state='NOT_DOWNLOADED';
>
>Best regards,
>David Comerford
>
>Tel: +353 87 1238295
>Email: davest...@gmail.com
>Website: http://dave.ie
>GPG key: http://gpg.dave.ie
>
>
>On 23 October 2013 12:16, David Comerford  wrote:
>
>> Right sounds good.
>> In some cases I have a working template that has multiple entries in
>> template_host_ref. Usually there's a few failed download entries and the
>> one that succeded. Am I safe to just delete the rows that have the
>>failures
>> from this table?
>> Best regards,
>> David Comerford
>> 
>> Tel: +353 87 1238295
>> Email: davest...@gmail.com
>> Website: http://dave.ie
>> GPG key: http://gpg.dave.ie
>>
>>
>> On 23 October 2013 05:41, Nitin Mehta  wrote:
>>
>>> David - I don¹t think it should be a problem. The reference is the
>>>other
>>> way around.
>>> Also mark the vm_template table entry as removed. Try this for one of
>>>them
>>> and see.
>>>
>>> On 22/10/13 1:22 PM, "David Comerford"  wrote:
>>>
>>> >They aren't present in the UI.
>>> >Would deleting them from template_store_ref not cause a problem as
>>>they
>>> >are
>>> >referenced by template_host_ref and vm_template?
>>> >
>>> >Best regards,
>>> >David Comerford
>>> >
>>> >Tel: +353 87 1238295
>>> >Email: davest...@gmail.com
>>> >Website: http://dave.ie
>>> >GPG key: http://gpg.dave.ie
>>> >
>>> >
>>> >On 22 October 2013 17:42, Nitin Mehta  wrote:
>>> >
>>> >> If there is an option available in the UI to delete them then do
>>>that.
>>> >> Else you can remove the entry from template_store_ref, I think that
>>> >>should
>>> >> do
>>> >>
>>> >> On 22/10/13 8:20 AM, "David Comerford"  wrote:
>>> >>
>>> >> >Hi,
>>> >> >
>>> >> >I've noticed my logs are filled with what looks like attempts to
>>> >> >re-download old failed template downloads. The jobID's from the
>>>logs
>>> >>can
>>> >> >be
>>> >> >seen in the template_host_ref table.
>>> >> >I'm wondering why the jobs haven't timed out or otherwise given up.
>>> >>And If
>>> >> >they are going on go on forever then how do I stop/remove them.
>>> >> >
>>> >> >Thanks
>>> >> >
>>> >> >=== Extract from management-server.log ===
>>> >> >2013-10-21 16:46:55,202 DEBUG [agent.transport.Request]
>>> (Timer-13:null)
>>> >> >Seq
>>> >> >67-1910165348: Sending { Cmd , MgmtId: 345051854263, via: 67, Ver:
>>>v1,
>>> >> >Flags: 100011,
>>> >>
>>>
>>> 
>>[{"storage.DownloadProgressCommand":{"jobId":"25d111cf-767d-40f2-9d3f
>>-e9
>>> >>>21
>>> >> >b8d00638","request":"GET_STATUS","hvm":true,"description":"RHEL
>>> >> >Server 6.3 32
>>> >>
>>>
>>> 
>>Bit","checksum":"edd93cda6935bcf04c3381446764eb26","maxDownloadSizeIn
>>Byt
>>> >>>es
>>> >> >":53687091200,"id":233,"resourceType":"TEMPLATE","url":"
>>> >> >http://bignas01/rhel-server-6.3-i386-dvd.iso
>>> >> ","format":"ISO","accountId":2
>>> >>
>>>
>>> 
>>,"name":"233-2-03f4e933-fc90-3056-8ccd-78b4a1b27dfb","secUrl":"nfs://
>>oth
>>> >>>er
>>> >> >nas/export/sec2","wait":0}}]
>>> >> >}
>>> >> >2013-10-21 16:46:55,254 DEBUG [agent.transport.Request]
>>> >> >(AgentManager-Handler-2:null) Seq 67-1910165348: Processing: {
>>>Ans: ,
>>> >> >MgmtId: 345051854263, via: 67, Ver: v1, Flags: 10,
>>> >>
>>>
>>> 
>>[{"storage.DownloadAnswer":{"jobId":"25d111cf-767d-40f2-9d3f-e921b8d0
>>063
>>> >>>8"
>>> >> >,"downloadPct":0,"errorString":"No
>>> >> >route to
>>> >>
>>>
>>> 
>>host","downloadStatus":"NOT_DOWNLOADED","downloadPath":"/mnt/SecStora
>>ge/
>>> >>>92
>>> >>
>>>
>>> 
>>19e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/233/dnld1954968885
>>437
>>> >>>89
>>> >>
>>>
>>> 
>>6633tmp_","templateSize":0,"templatePhySicalSize":0,"checkSum":"edd93
>>cda
>>> >>>69
>>> >> >35bcf04c3381446764eb26","result":false,"details":"No
>>> >> >route to host","wait":0}}] }
>>> >> >
>>> >> >=== Example JobID from database 
>>> >> >mysql> select * from template_host_ref where job_id =
>>> >> >'25d111cf-767d-40f2-9d3f-e921b8d00638' \G
>>> >> >*** 1. row ***
>>> >> >id: 385
>>> >> >host_id: 55
>>> >> >template_id: 233
>>> >> >created: 2012-10-29 23:09:28
>>> >> >last_updated: 2013-10-21 15:54:55
>>> >> >job_id: 25d111cf-767d-40f2-9d3f-e921b8d00638
>>> >> >download_pct: 0
>>> >> >size: 0
>>> >> >physical_size: 0
>>> >> >download_state: NOT_DOWNLOADED
>>> >> >error_str: No route to host
>>> >> >local_path:
>>> >>
>>>
>>> 
>>/mnt/SecStorage/9219e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/
>>233
>>> >>>/d
>>> >

Re: Network not configured in VM

2013-10-23 Thread Nux!

On 23.10.2013 13:55, Chirag Choudhary wrote:

Hi,
 I created a new instance of rhel 6.2 from iso in cloudstack.
Cloudstack UI is showing the it has an IP assigned to it with the 
netmask ,
gatway and other things but when I logged in to the VM, it only has 
one

network interface running : lo
I manually did the network configuration to the match that of 
cloudstack.

I took its template and created one more instance but still in the new
instance the only interface running was lo. Here are the logs while
installing the VM from the iso :
http://pastebin.com/1xvmV454
what can be the possible reason behind it and how can it be rectified.

( I had previously created Ubuntu VM and it was properly configured , 
so

the cloudstack network manager seems to be good. )


I'm citing from distant memories here, but I believe the default EL6 
install does not activate the network unless you tell it so.
You just need to make sure eth0 starts at boot and is set up as dhcp, 
or manually do a "dhclient eth0".


HTH
Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Re: Missing support for LXC on CS 4.2

2013-10-23 Thread Francois Gaudreault

This is how I solved this:
https://issues.apache.org/jira/browse/CLOUDSTACK-4849

Francois

On 10/23/2013, 11:40 AM, Old, Curtis wrote:

I installed CS 4.2 from the repo.  I went to install an LXC Cluser and got this:

Could not find corresponding resource manager for LXC

A little digging on the web and found and there is no plugin for LXC in the rpm:

[root@lab2-mgt-cloud-1 lib]# rpm -ql cloudstack-management |grep hyperviso
/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-hypervisor-baremetal-4.2.0.jar
/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-hypervisor-kvm-4.2.0.jar
/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-hypervisor-ovm-4.2.0.jar
/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-hypervisor-ucs-4.2.0.jar
/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-hypervisor-vmware-4.2.0.jar
/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-hypervisor-xen-4.2.0.jar

I downloaded the source from:

http://mirror.symnds.com/software/Apache/cloudstack/releases/4.2.0/apache-cloudstack-4.2.0-src.tar.bz2

Doesn't seem to be in there either, so what's the deal?  What is needed to get 
a CS Cluster to use LXC?






--
Francois Gaudreault
Architecte de Solution Cloud | Cloud Solutions Architect
fgaudrea...@cloudops.com
514-629-6775
- - -
CloudOps
420 rue Guy
Montréal QC  H3J 1S6
www.cloudops.com
@CloudOps_



Missing support for LXC on CS 4.2

2013-10-23 Thread Old, Curtis

I installed CS 4.2 from the repo.  I went to install an LXC Cluser and got this:

Could not find corresponding resource manager for LXC

A little digging on the web and found and there is no plugin for LXC in the rpm:

[root@lab2-mgt-cloud-1 lib]# rpm -ql cloudstack-management |grep hyperviso
/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-hypervisor-baremetal-4.2.0.jar
/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-hypervisor-kvm-4.2.0.jar
/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-hypervisor-ovm-4.2.0.jar
/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-hypervisor-ucs-4.2.0.jar
/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-hypervisor-vmware-4.2.0.jar
/usr/share/cloudstack-management/webapps/client/WEB-INF/lib/cloud-plugin-hypervisor-xen-4.2.0.jar

I downloaded the source from:

http://mirror.symnds.com/software/Apache/cloudstack/releases/4.2.0/apache-cloudstack-4.2.0-src.tar.bz2

Doesn't seem to be in there either, so what's the deal?  What is needed to get 
a CS Cluster to use LXC?




ISO problem after upgrade to 4.2

2013-10-23 Thread Paolo De Marco

Hello,
i've upgraded cloudstak from 4.0.2 to 4.2 using yum update.
Everything seem working but i cannot upload ISO.
In log i see "No running ssvm is found, so command will be sent to 
LocalHostEndPoint". Is it this error related to iso's problem? Any 
ideas? Thanks


Network not configured in VM

2013-10-23 Thread Chirag Choudhary
Hi,
 I created a new instance of rhel 6.2 from iso in cloudstack.
Cloudstack UI is showing the it has an IP assigned to it with the netmask ,
gatway and other things but when I logged in to the VM, it only has one
network interface running : lo
I manually did the network configuration to the match that of cloudstack.
I took its template and created one more instance but still in the new
instance the only interface running was lo. Here are the logs while
installing the VM from the iso :
http://pastebin.com/1xvmV454
what can be the possible reason behind it and how can it be rectified.

( I had previously created Ubuntu VM and it was properly configured , so
the cloudstack network manager seems to be good. )


Thanks & Regards,
-- 
Chirag Choudhary,
Software Engineer


Re: Downloading templates loop

2013-10-23 Thread David Comerford
Or a more exciting way of phrasing that last question, is the safe to
delete all entries from template_host_ref where download_state is
NOT_DOWNLOADED?

DELETE FROM template_host_ref WHERE download_state='NOT_DOWNLOADED';

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 23 October 2013 12:16, David Comerford  wrote:

> Right sounds good.
> In some cases I have a working template that has multiple entries in
> template_host_ref. Usually there's a few failed download entries and the
> one that succeded. Am I safe to just delete the rows that have the failures
> from this table?
> Best regards,
> David Comerford
> 
> Tel: +353 87 1238295
> Email: davest...@gmail.com
> Website: http://dave.ie
> GPG key: http://gpg.dave.ie
>
>
> On 23 October 2013 05:41, Nitin Mehta  wrote:
>
>> David - I don¹t think it should be a problem. The reference is the other
>> way around.
>> Also mark the vm_template table entry as removed. Try this for one of them
>> and see.
>>
>> On 22/10/13 1:22 PM, "David Comerford"  wrote:
>>
>> >They aren't present in the UI.
>> >Would deleting them from template_store_ref not cause a problem as they
>> >are
>> >referenced by template_host_ref and vm_template?
>> >
>> >Best regards,
>> >David Comerford
>> >
>> >Tel: +353 87 1238295
>> >Email: davest...@gmail.com
>> >Website: http://dave.ie
>> >GPG key: http://gpg.dave.ie
>> >
>> >
>> >On 22 October 2013 17:42, Nitin Mehta  wrote:
>> >
>> >> If there is an option available in the UI to delete them then do that.
>> >> Else you can remove the entry from template_store_ref, I think that
>> >>should
>> >> do
>> >>
>> >> On 22/10/13 8:20 AM, "David Comerford"  wrote:
>> >>
>> >> >Hi,
>> >> >
>> >> >I've noticed my logs are filled with what looks like attempts to
>> >> >re-download old failed template downloads. The jobID's from the logs
>> >>can
>> >> >be
>> >> >seen in the template_host_ref table.
>> >> >I'm wondering why the jobs haven't timed out or otherwise given up.
>> >>And If
>> >> >they are going on go on forever then how do I stop/remove them.
>> >> >
>> >> >Thanks
>> >> >
>> >> >=== Extract from management-server.log ===
>> >> >2013-10-21 16:46:55,202 DEBUG [agent.transport.Request]
>> (Timer-13:null)
>> >> >Seq
>> >> >67-1910165348: Sending { Cmd , MgmtId: 345051854263, via: 67, Ver: v1,
>> >> >Flags: 100011,
>> >>
>>
>> >>>[{"storage.DownloadProgressCommand":{"jobId":"25d111cf-767d-40f2-9d3f-e9
>> >>>21
>> >> >b8d00638","request":"GET_STATUS","hvm":true,"description":"RHEL
>> >> >Server 6.3 32
>> >>
>>
>> >>>Bit","checksum":"edd93cda6935bcf04c3381446764eb26","maxDownloadSizeInByt
>> >>>es
>> >> >":53687091200,"id":233,"resourceType":"TEMPLATE","url":"
>> >> >http://bignas01/rhel-server-6.3-i386-dvd.iso
>> >> ","format":"ISO","accountId":2
>> >>
>>
>> >>>,"name":"233-2-03f4e933-fc90-3056-8ccd-78b4a1b27dfb","secUrl":"nfs://oth
>> >>>er
>> >> >nas/export/sec2","wait":0}}]
>> >> >}
>> >> >2013-10-21 16:46:55,254 DEBUG [agent.transport.Request]
>> >> >(AgentManager-Handler-2:null) Seq 67-1910165348: Processing: { Ans: ,
>> >> >MgmtId: 345051854263, via: 67, Ver: v1, Flags: 10,
>> >>
>>
>> >>>[{"storage.DownloadAnswer":{"jobId":"25d111cf-767d-40f2-9d3f-e921b8d0063
>> >>>8"
>> >> >,"downloadPct":0,"errorString":"No
>> >> >route to
>> >>
>>
>> >>>host","downloadStatus":"NOT_DOWNLOADED","downloadPath":"/mnt/SecStorage/
>> >>>92
>> >>
>>
>> >>>19e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/233/dnld1954968885437
>> >>>89
>> >>
>>
>> >>>6633tmp_","templateSize":0,"templatePhySicalSize":0,"checkSum":"edd93cda
>> >>>69
>> >> >35bcf04c3381446764eb26","result":false,"details":"No
>> >> >route to host","wait":0}}] }
>> >> >
>> >> >=== Example JobID from database 
>> >> >mysql> select * from template_host_ref where job_id =
>> >> >'25d111cf-767d-40f2-9d3f-e921b8d00638' \G
>> >> >*** 1. row ***
>> >> >id: 385
>> >> >host_id: 55
>> >> >template_id: 233
>> >> >created: 2012-10-29 23:09:28
>> >> >last_updated: 2013-10-21 15:54:55
>> >> >job_id: 25d111cf-767d-40f2-9d3f-e921b8d00638
>> >> >download_pct: 0
>> >> >size: 0
>> >> >physical_size: 0
>> >> >download_state: NOT_DOWNLOADED
>> >> >error_str: No route to host
>> >> >local_path:
>> >>
>>
>> >>>/mnt/SecStorage/9219e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/233
>> >>>/d
>> >> >nld1954968885437896633tmp_
>> >> >install_path: NULL
>> >> >url: http://bignas01/rhel-server-6.3-i386-dvd.iso
>> >> >destroyed: 0
>> >> >is_copy: 0
>> >> >1 row in set (0.00 sec)
>> >> >Cheers!
>> >> >
>> >> >Best regards,
>> >> >David Comerford
>> >> >
>> >> >Tel: +353 87 1238295
>> >> >Email: davest...@gmail.com
>> >> >Website: http://dave.ie
>> >> >GPG key: http://gpg.dave.ie
>> >>
>> >>
>>
>>
>


Re: ACS 4.2 Error adding S3/Ceph secondary storage

2013-10-23 Thread Andrei Mikhailovsky
Sanjeev, 

Thanks for the information. Does anyone know of the best way to migrate from 
nfs secondary storage to S3? At the moment, my NFS storage is used for storing 
templates, including system vm templates. Is it safe for me to remove it and 
create the new S3 secondary storage? Would it copy systemvm templates onto a 
new storage automatically or do I have to manually do that? If so, how would I 
copy the systemvm template onto a non-NFS storage? 

Many thanks 
- Original Message -

From: "Sanjeev Neelarapu"  
To: users@cloudstack.apache.org 
Sent: Wednesday, 23 October, 2013 6:35:38 AM 
Subject: RE: ACS 4.2 Error adding S3/Ceph secondary storage 

That means one of the zones in your setup may be having NFS as the secondary 
storage provider. Make sure that none of the zones use NFS for secondary 
storage if you want to use S3 . 

-Original Message- 
From: Andrei Mikhailovsky [mailto:and...@arhont.com] 
Sent: Tuesday, October 22, 2013 7:43 PM 
To: users@cloudstack.apache.org 
Subject: ACS 4.2 Error adding S3/Ceph secondary storage 

Hello guys, 

I am trying to add a new secondary storage provided by Ceph's S3 radosgw, which 
i've configured and tested. Right after adding it via the GUI I have the 
following message/error: 

"You can only add new image stores from the same provider NFS already added" 

Does anyone know what this message means? I am a bit confused here as I am not 
adding the NFS secondary storage, but instead adding the S3 storage. 

Cheers 

Andrei 



Re: Templates and ISOs are shown twice after upgrade to 4.2

2013-10-23 Thread Andrei Mikhailovsky
Nitin, here you go: http://ur1.ca/fxe1h 

Thanks for your help 

Andrei - Original Message -

From: "Nitin Mehta"  
To: users@cloudstack.apache.org 
Sent: Wednesday, 23 October, 2013 5:47:24 AM 
Subject: Re: Templates and ISOs are shown twice after upgrade to 4.2 

Hi Andrei - its hard to read the sql output. 
Can you run them with \G at the end ? select * from vm_template where 
uuid='b9dc8160-3052-4fdb-9beb-da02be0922df' or 
uuid='0c5064cd-db17-46cf-8cf0-d6f5d98ae2b0'\G; 

I would also suggest to dump corresponding template_store_ref entries / 
API response(get it from api.log) as well. Put all this and anything else 
you think might be useful on paste bin. 

Thanks, 
-Nitin 

On 22/10/13 10:21 AM, "Andrei Mikhailovsky"  wrote: 

>I can't comment on the Templates as every single template is shown twice. 
>However, i do have several ISOs which are shown once. For example below, 
>the iso id 203 is shown twice, but the iso with id 326 is shown once. 
> 
>>select * from vm_template where 
>>uuid='b9dc8160-3052-4fdb-9beb-da02be0922df' or 
>>uuid='0c5064cd-db17-46cf-8cf0-d6f5d98ae2b0'; 
>+-++-- 
>-+--++--+--+-- 
>---+--+--- 
>--++-+ 
>-++--+ 
>---+-+---+-+--+--- 
>--+-+-+-++ 
>--+--+---+---+--+- 
>+--+ 
>| id | unique_name | name | uuid | public | featured | type | hvm | bits 
>| url | format | created | removed | account_id | checksum | display_text 
>| enable_password | enable_sshkey | guest_os_id | bootable | prepopulate 
>| cross_zones | extractable | hypervisor_type | source_template_id | 
>template_tag | sort_key | size | state | update_count | updated | 
>dynamically_scalable | 
>+-++-- 
>-+--++--+--+-- 
>---+--+--- 
>--++-+ 
>-++--+ 
>---+-+---+-+--+--- 
>--+-+-+-++ 
>--+--+---+---+--+- 
>+--+ 
>| 203 | 203-2-11fab458-0170-3d8d-bdac-979c0ca80399 | Ubuntu 12.10 64bit 
>Server | 0c5064cd-db17-46cf-8cf0-d6f5d98ae2b0 | 1 | 0 | USER | 1 | 64 | 
>http://mirror.ox.ac.uk/sites/releases.ubuntu.com/releases/quantal/ubuntu-1 
>2.10-server-amd64+mac.iso | ISO | 2012-10-30 15:20:04 | NULL | 2 | 
>b8a4d9513ed53dc1be05576113b113e8 | Ubuntu 12.10 64bit Server | 0 | 0 | 
>157 | 1 | 0 | 1 | 0 | None | NULL | NULL | 0 | 723517440 | Allocated | 0 
>| NULL | 0 | 
>| 326 | 326-2-c2a59a20-80a9-3e63-9466-3a1172db0a8f | Ubuntu Server 
>10.04.4 LTS | b9dc8160-3052-4fdb-9beb-da02be0922df | 1 | 0 | USER | 1 | 
>64 | 
>http://mirror.ox.ac.uk/sites/releases.ubuntu.com/releases/10.04/ubuntu-10. 
>04.4-server-amd64.iso | ISO | 2013-05-29 10:30:51 | NULL | 2 | 
>9b218654cdcdf9722171648c52f8a088 | Ubuntu Server 10.04.4 LTS | 0 | 0 | 
>126 | 1 | 0 | 1 | 0 | None | NULL | NULL | 0 | 714567680 | Allocated | 0 
>| NULL | 0 | 
>+-++-- 
>-+--++--+--+-- 
>---+--+--- 
>--++-+ 
>-++--+ 
>---+-+---+-+--+--- 
>--+-+-+-++ 
>--+--+---+---+--+- 
>+--+ 
>2 rows in set (0.00 sec) 
> 
>I would be happy to produce some more information. Please let me know you 
>need to investigate this further. 
> 
>Thanks 
> 
> 
>- Original Message - 
> 
>From: "Nitin Mehta"  
>To: users@cloudstack.apache.org 
>Sent: Tuesday, 22 October, 2013 5:41:59 PM 
>Subject: Re: Templates and ISOs are shown twice after upgrade to 4.2 
> 
>This is strange Andrei. Do you see any attribute different in the 
>duplicate entries ? 
>Why don¹t u paste the logs/DB/snapshots of UI somewhere so that we can 
>help you further. 
> 
>On 22/10/13 8:15 AM, "Andrei Mikhailovsky"  wrote: 
> 
>>Yeah, the cross_zones column has 1 for all of

Re: Downloading templates loop

2013-10-23 Thread David Comerford
Right sounds good.
In some cases I have a working template that has multiple entries in
template_host_ref. Usually there's a few failed download entries and the
one that succeded. Am I safe to just delete the rows that have the failures
from this table?
Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 23 October 2013 05:41, Nitin Mehta  wrote:

> David - I don¹t think it should be a problem. The reference is the other
> way around.
> Also mark the vm_template table entry as removed. Try this for one of them
> and see.
>
> On 22/10/13 1:22 PM, "David Comerford"  wrote:
>
> >They aren't present in the UI.
> >Would deleting them from template_store_ref not cause a problem as they
> >are
> >referenced by template_host_ref and vm_template?
> >
> >Best regards,
> >David Comerford
> >
> >Tel: +353 87 1238295
> >Email: davest...@gmail.com
> >Website: http://dave.ie
> >GPG key: http://gpg.dave.ie
> >
> >
> >On 22 October 2013 17:42, Nitin Mehta  wrote:
> >
> >> If there is an option available in the UI to delete them then do that.
> >> Else you can remove the entry from template_store_ref, I think that
> >>should
> >> do
> >>
> >> On 22/10/13 8:20 AM, "David Comerford"  wrote:
> >>
> >> >Hi,
> >> >
> >> >I've noticed my logs are filled with what looks like attempts to
> >> >re-download old failed template downloads. The jobID's from the logs
> >>can
> >> >be
> >> >seen in the template_host_ref table.
> >> >I'm wondering why the jobs haven't timed out or otherwise given up.
> >>And If
> >> >they are going on go on forever then how do I stop/remove them.
> >> >
> >> >Thanks
> >> >
> >> >=== Extract from management-server.log ===
> >> >2013-10-21 16:46:55,202 DEBUG [agent.transport.Request] (Timer-13:null)
> >> >Seq
> >> >67-1910165348: Sending { Cmd , MgmtId: 345051854263, via: 67, Ver: v1,
> >> >Flags: 100011,
> >>
> >>>[{"storage.DownloadProgressCommand":{"jobId":"25d111cf-767d-40f2-9d3f-e9
> >>>21
> >> >b8d00638","request":"GET_STATUS","hvm":true,"description":"RHEL
> >> >Server 6.3 32
> >>
> >>>Bit","checksum":"edd93cda6935bcf04c3381446764eb26","maxDownloadSizeInByt
> >>>es
> >> >":53687091200,"id":233,"resourceType":"TEMPLATE","url":"
> >> >http://bignas01/rhel-server-6.3-i386-dvd.iso
> >> ","format":"ISO","accountId":2
> >>
> >>>,"name":"233-2-03f4e933-fc90-3056-8ccd-78b4a1b27dfb","secUrl":"nfs://oth
> >>>er
> >> >nas/export/sec2","wait":0}}]
> >> >}
> >> >2013-10-21 16:46:55,254 DEBUG [agent.transport.Request]
> >> >(AgentManager-Handler-2:null) Seq 67-1910165348: Processing: { Ans: ,
> >> >MgmtId: 345051854263, via: 67, Ver: v1, Flags: 10,
> >>
> >>>[{"storage.DownloadAnswer":{"jobId":"25d111cf-767d-40f2-9d3f-e921b8d0063
> >>>8"
> >> >,"downloadPct":0,"errorString":"No
> >> >route to
> >>
> >>>host","downloadStatus":"NOT_DOWNLOADED","downloadPath":"/mnt/SecStorage/
> >>>92
> >>
> >>>19e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/233/dnld1954968885437
> >>>89
> >>
> >>>6633tmp_","templateSize":0,"templatePhySicalSize":0,"checkSum":"edd93cda
> >>>69
> >> >35bcf04c3381446764eb26","result":false,"details":"No
> >> >route to host","wait":0}}] }
> >> >
> >> >=== Example JobID from database 
> >> >mysql> select * from template_host_ref where job_id =
> >> >'25d111cf-767d-40f2-9d3f-e921b8d00638' \G
> >> >*** 1. row ***
> >> >id: 385
> >> >host_id: 55
> >> >template_id: 233
> >> >created: 2012-10-29 23:09:28
> >> >last_updated: 2013-10-21 15:54:55
> >> >job_id: 25d111cf-767d-40f2-9d3f-e921b8d00638
> >> >download_pct: 0
> >> >size: 0
> >> >physical_size: 0
> >> >download_state: NOT_DOWNLOADED
> >> >error_str: No route to host
> >> >local_path:
> >>
> >>>/mnt/SecStorage/9219e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/233
> >>>/d
> >> >nld1954968885437896633tmp_
> >> >install_path: NULL
> >> >url: http://bignas01/rhel-server-6.3-i386-dvd.iso
> >> >destroyed: 0
> >> >is_copy: 0
> >> >1 row in set (0.00 sec)
> >> >Cheers!
> >> >
> >> >Best regards,
> >> >David Comerford
> >> >
> >> >Tel: +353 87 1238295
> >> >Email: davest...@gmail.com
> >> >Website: http://dave.ie
> >> >GPG key: http://gpg.dave.ie
> >>
> >>
>
>


Re: KVM and openvswitch

2013-10-23 Thread Bjoern Teipel

Guess I can narrow it down in the code at

LibvirtComputingResource.java 1036:

File[] interfaces = f.listFiles(); >>>  my array is basically 
empty.. <<<


for (int i = 0; i < interfaces.length; i++) {
String fname = interfaces[i].getName();
s_logger.debug("matchPifFileInDirectory: file name 
'"+fname+"'");

if (fname.startsWith("eth") || fname.startsWith("bond")
|| fname.startsWith("vlan") || fname.startsWith("em")
|| fname.matches("^p\\d+p\\d+.*")) {
return fname;
}
}


My  brif  directory is empty so I'm not sure if I have a configuration 
issue in openvswitch.

Going to check this now.

Bjoern

On 10/22/2013 11:36 PM, Bjoern Teipel wrote:

Is somebody using cloustack >= 4.1 and openvswitch ?

I configured everything according the cloudstack wiki and openswitch 
seems to work fine but the management server refuses to add the host with:


2013-10-22 23:30:52,742 DEBUG [agent.manager.AgentManagerImpl] 
(AgentConnectTaskPool-1320:null) Failed to handle host connection: 
com.cloud.exception.ConnectionException: Incorrect Network setup on 
agent, Reinitialize agent after network names are setup, details :*Can 
not find network: cloudbr0*


But it appears to work fine in ovs:

sudo ovs-vsctl show
15e04687-6948-4866-922a-031e5d86672e
Bridge "cloud0"
Port "cloud0"
Interface "cloud0"
type: internal
Bridge "cloudbr1"
Port "bond0.501"
Interface "bond0.501"
Port "cloudbr1"
Interface "cloudbr1"
type: internal
Bridge "cloudbr0"
Port "bond0"
Interface "bond0"
Port "cloudbr0"
Interface "cloudbr0"
type: internal
ovs_version: "1.9.0"

Any ideas ? I'm using a 4.2.1 snapshot build btw.

Thanks,
Bjoern





Re: 4.2.1-snapshot : com.cloud.exception.InsufficientServerCapacityException:

2013-10-23 Thread Bjoern Teipel

Yes I had and I changed the delay to 1h.
I also got link communication failures and the secondary storage was 
stuck during this time so I decided to rebuild the zone and change the 
NFS storage from Gluster to a standard NFS server removing the iptables 
rules etc. But I'm still rebuilding it and testing right now KVM with 
openvswitch though ...


Bjoern

On 10/22/2013 11:54 PM, Whyspirit wrote:
Hello. Do you have any VMs that needs to be expunged. If it is the 
case, please reduce number of them by changing parameters in 
cloudstack UI (reduce expunge.delay and expunge. Interval).



Envoyé avec AquaMail pour Android
http://www.aqua-mail.com


Le 21 octobre 2013 22:24:46 Bjoern Teipel 
 a écrit :

Hi,

my cstk deployment stopped working and I can't figure out why, 
because all capacity related metrics are ok.


2013-10-21 13:17:51,412 INFO  [user.vm.DeployVMCmd] 
(Job-Executor-8:job-126 = [ fed97281-7904-427c-b450-80fb32210cbc ]) 
com.cloud.exception.InsufficientServerCapacityException: Unable to 
create a deployment for
VM[User|d0bc4ffd-7850-4503-a62b-482895b4b08a]Scope=interface 
com.cloud.dc.DataCenter; id=1
2013-10-21 13:17:51,412 INFO  [user.vm.DeployVMCmd] 
(Job-Executor-8:job-126 = [ fed97281-7904-427c-b450-80fb32210cbc ]) 
Unable to create a deployment for 
VM[User|d0bc4ffd-7850-4503-a62b-482895b4b08a]
com.cloud.exception.InsufficientServerCapacityException: Unable to 
create a deployment for 
VM[User|d0bc4ffd-7850-4503-a62b-482895b4b08a]Scope=interface 
com.cloud.dc.DataCenter; id=1

 at
com.cloud.vm.VirtualMachineManagerImpl.advanceStart(VirtualMachineManagerImpl.java:841) 


 at
com.cloud.vm.VirtualMachineManagerImpl.start(VirtualMachineManagerImpl.java:577) 


 at
org.apache.cloudstack.engine.cloud.entity.api.VMEntityManagerImpl.deployVirtualMachine(VMEntityManagerImpl.java:237) 


 at
org.apache.cloudstack.engine.cloud.entity.api.VirtualMachineEntityImpl.deploy(VirtualMachineEntityImpl.java:209) 


 at
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:3404) 


 at
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2964) 


 at
com.cloud.vm.UserVmManagerImpl.startVirtualMachine(UserVmManagerImpl.java:2950) 


 at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125) 


 at
org.apache.cloudstack.api.command.user.vm.DeployVMCmd.execute(DeployVMCmd.java:420) 


 at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:158)
 at
com.cloud.async.AsyncJobManagerImpl$1.run(AsyncJobManagerImpl.java:531)
 at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
 at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
 at java.util.concurrent.FutureTask.run(FutureTask.java:166)
 at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) 


 at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) 


 at java.lang.Thread.run(Thread.java:679)
2013-10-21 13:17:51,413 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-8:job-126 = [ fed97281-7904-427c-b450-80fb32210cbc ]) 
Complete async job-126 = [ fed97281-7904-427c-b450-80fb32210cbc ], 
jobStatus: 2
, resultCode: 530, result: Error Code: 533 Error text: Unable to 
create a deployment for VM[User|d0bc4ffd-7850-4503-a62b-482895b4b08a]


but this is what I saw before this error:


2013-10-21 13:17:50,617 DEBUG [cloud.server.StatsCollector] 
(StatsCollector-1:null) StorageCollector is running...
2013-10-21 13:17:50,620 INFO 
[storage.endpoint.DefaultEndPointSelector] (StatsCollector-1:null) No 
running ssvm is found, so command will be sent to LocalHostEndPoint
2013-10-21 13:17:50,674 DEBUG [agent.transport.Request] 
(StatsCollector-1:null) Seq 1-531890650: Received:  { Ans: , MgmtId: 
110493122496, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
2013-10-21 13:17:50,946 DEBUG [agent.transport.Request] 
(StatsCollector-1:null) Seq 1-531890651: Received:  { Ans: , MgmtId: 
110493122496, via: 1, Ver: v1, Flags: 10, { GetStorageStatsAnswer } }
2013-10-21 13:17:51,142 DEBUG [agent.transport.Request] 
(AgentManager-Handler-15:null) Seq 1-531890647: Processing:  { Ans: , 
MgmtId: 110493122496, via: 1, Ver: v1, Flags: 110, 
[{"org.apache.cloudstack.storage.command.CopyCmdAnswer":{"newData":{"org.apache.cloudstack.storage.to.TemplateObjectTO":{"path":"3000605a-b528-400c-8ff2-a894c20b0705","id":0,"format":"QCOW2","accountId":0,"hvm":false}},"result":true,"wait":0}}] 
}
2013-10-21 13:17:51,142 DEBUG [agent.transport.Request] 
(Job-Executor-8:job-126 = [ fed97281-7904-427c-b450-80fb32210cbc ]) 
Seq 1-531890647: Received:  { Ans: , MgmtId: 110493122496, via: 1, 
Ver: v1, Flags: 110, { CopyCmdAnswer } }
2013-10-21 13:17:51,142 DEBUG [agent.manager.AgentAttache] 
(AgentManager-Handler-15:null) Seq 1-531890647: No