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

2013-10-22 Thread Whyspirit
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 more commands found
2013-10-21 13:17:51,143 DEBUG [image.store.TemplateObject] 
(Job-Executor-8:job-126 = [ fed97281-7904-427c-b450-80fb32210cbc ]) failed 
to process event and answer
com.cloud.utils.exception.CloudRuntimeException: DB Exception on: 
com.mysql.jdbc.JDBC4PreparedStatement@5cdcbeb5: SELECT 
template_spool_ref.id, template_spool_ref.pool_id, 
template_spool_ref.template_id, template_spool_ref.created, 
template_spool_ref

Re: KVM and openvswitch

2013-10-22 Thread Nguyen Anh Tu
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


-- 

N.g.U.y.e.N.A.n.H.t.U


Re: KVM and openvswitch

2013-10-22 Thread Marty Sweet
What base OS are you using? Can you run # brctl show?

Marty


On Wed, Oct 23, 2013 at 7:36 AM, Bjoern Teipel <
bjoern.tei...@internetbrands.com> 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
>
>


KVM and openvswitch

2013-10-22 Thread Bjoern Teipel

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: ACS 4.2 Error adding S3/Ceph secondary storage

2013-10-22 Thread Sanjeev Neelarapu
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-22 Thread Nitin Mehta
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 my templates.
>> 
>>Thanks 
>> 
>> 
>>- Original Message -
>> 
>>From: "Nitin Mehta" 
>>To: users@cloudstack.apache.org
>>Sent: Tuesday, 22 October, 2013 4:01:06 PM
>>Subject: Re: Templates and ISOs are shown twice after upgrade to 4.2
>> 
>>Did you add a new zone or have multiple zones ? Are they showing up for
>>different zones ? Is the cross 

Re: Downloading templates loop

2013-10-22 Thread Nitin Mehta
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: Error building Cloudstack 4.2 RPMs

2013-10-22 Thread Zack Payton
On Tue, Oct 8, 2013 at 9:51 PM, Jamie Carranza  wrote:
> Hi All, I'm trying to build Cloudstack 4.2 RPMs and keep running up against
> the same error, this looks like the most important part:
>
> Failed tests:
> appendTest(org.apache.cloudstack.alert.snmp.SnmpTrapAppenderTest): error
> snmpHelper list size not as expected  expected:<0> but was:<2>

So I joined this list just to report the answer to your question
Jamie.  I found the solution after digging into the code.  Essentially
you need to configure your host to pass the hostname --fqdn test
before the SnmpAppenderTest class will pass the junit test.

I simply added my hostname to /etc/hosts and was able to build
successfully.  Just wanted to share so if anyone else caring to build
from source ran into this issue, that they would know what to do.
FYI, this was on Centos 6.4 64-bit with Cloudstack 4.2.


Sincerely,

Z


RE: Network Setup Problem 4.1.1

2013-10-22 Thread Murugappan, Vairavan
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
>
> * The Zone gets added successfully. No error on that.
>
> It creates cloubr0 bridge  on host by itself and moves the ip from em1 
> to
> cloudbr0 and also starts the SSVM and Console VM on the host machine. 
> But I get this "There is no secondary storage VM for secondary storage 
> host nfs:// 20.1.1.1/export/secondary"
> On the management server log.
>
> SSVM Guest Machine
>
> * I can log into the SSVM from host using iplink local and I ran
> the SSVM test script, it seems it cannot connect to the gateway (20.1.1.1).
>
> * Following are the ip assigned to SSVM
>
> oPublic - 20.1.1.30 (eth2) , Private - 20.1.111 (eth1) , Link Local -
> 169.254.2.151 (eth0) ,
>
> oAnd on eth3 20.1.1.20 (Not sure what this is for)
>
> Problems:
>
> * SSVM cannot access switch or gateway server (mgmt,nfs,mysql) or
> internet
>
> * And I cannot add any iso's or the cannot see the system default
> iso on the add instance screen.
>
> So there's something wrong in my network configuration over here but I 
> couldn't 

FW: [ACS421] closing resolved defects

2013-10-22 Thread Sudha Ponnaganti


From: Sudha Ponnaganti
Sent: Tuesday, October 22, 2013 3:19 PM
To: d...@cloudstack.apache.org
Subject: [ACS421] closing resolved defects

Hi All,

Below are the defects fixed for 4.2.1. Can you please review the fix, validate 
it  and see if the fix is what you are expecting??

Reporter  Total
Ahmad Emneina   1
Alena Prokharchyk  2
Alex Huang 1
angeline shen1
Chandan Purushothama   8
Daan Hoogland 1
Dave Cahill  1
Demetrius Tsitrelis  1
Donal Lafferty   1
Douglas Almquist 1
Francois Gaudreault   1
Harikrishna Patnala 1
Jayapal Reddy   2
Koushik Das2
manasaveloori  1
Marcus Sorensen 1
Milamber1
Min Chen4
Minying Bao   1
Naoki Sakamoto   1
Nitin Mehta4
Parth Jagirdar3
Paul Angus  1
Prachi Damle  1
prashant kumar mishra 3
Rayees Namathponnan4
sadhu suresh 1
Sailaja Mada   1
Saksham Srivastava 1
Sangeetha Hariharan  2
Sanjay Tripathi  1
Sanjeev N   1
Sateesh Chodapuneedi 1
Sheng Yang 4
shweta agarwal1
Sowmya Krishnan1
Sudha Ponnaganti   1
Valery Ciareszka   1
venkata swamybabu budumuru   2
Wei Zhou 1
Grand Total68

Thanks
/sudha


Re: Missing jar vmware-lib-jaxrpc.jar?

2013-10-22 Thread Daan Hoogland
H Fred,

Sorry for the late reply. I would say try moving the jars in and out.
As long as you don't delete them you are fine. The wiki page should be
up to date but the release documentation is the place to look.

On Fri, Oct 18, 2013 at 9:32 PM, Fred Messinger  wrote:
> Hi Daan,
>
> I was reluctant to do that because of this:  git commit: CLOUDSTACK-346:
> Replace vmware-lib-jaxrpc with axis-jaxrpc
>
> The fact that I was seeing something trying to load this class meant that
> something was very wrong.  Which makes me suspect the dependencies section
> on this page:
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/How+to+build+CloudStack#
>
> Is this documentation still good?
>
> Thanks,
> Fred
>
>
> On Thu, Oct 17, 2013 at 1:38 PM, Daan Hoogland wrote:
>
>> Fred,
>>
>> Attachements are stripped from maila to the list. It sounds like this
>> is your problem yes. Why don't you try adding the jar and restarting
>> the ms?
>>
>> regards,
>> Daan
>>
>> On Wed, Oct 16, 2013 at 3:04 PM, Fred Messinger 
>> wrote:
>> > Hi All,
>> >
>> > I'm trying to upgrade from 4.1.1 to 4.2 using vmware. And I think I am
>> > SO close!
>> >
>> > My management server log file is attached.  It describes some
>> > deserialization problems and it also shows that a VMware resource class
>> file
>> > cannot be loaded.  From googling the exception, I found this jira ticket:
>> >
>> > https://issues.apache.org/jira/browse/CLOUDSTACK-211
>> >
>> > Is the reason I can't start my ssvm because of this?
>> >
>> > Thanks,
>> > Fred
>>


Re: Downloading templates loop

2013-10-22 Thread David Comerford
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-e921
> >b8d00638","request":"GET_STATUS","hvm":true,"description":"RHEL
> >Server 6.3 32
> >Bit","checksum":"edd93cda6935bcf04c3381446764eb26","maxDownloadSizeInBytes
> >":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://other
> >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-e921b8d00638"
> >,"downloadPct":0,"errorString":"No
> >route to
> >host","downloadStatus":"NOT_DOWNLOADED","downloadPath":"/mnt/SecStorage/92
> >19e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/233/dnld195496888543789
> >6633tmp_","templateSize":0,"templatePhySicalSize":0,"checkSum":"edd93cda69
> >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: Public LAN inside CS

2013-10-22 Thread Marty Sweet
Awesome, let us know if you need any further assistance!

Marty


On Tue, Oct 22, 2013 at 8:13 PM, Andrija Panic wrote:

> Thanks Marty, I just needed confirmation of my work, I deployed CS 4.0.0.
> (from not knowing what it is, till fully operational and used in kind of
> production) in less than 15 days...so lot of stuff was done in kind of
> rush, but got 99% of networkng understood then. Now, 9 months later, I got
> that 1% I missed :)
>
> Thanks
>
>
> On 22 October 2013 21:04, Marty Sweet  wrote:
>
> > Hi Andrija,
> >
> > Your setup seems fine to me, I am not sure why you would want to get rid
> of
> > VLANs as it provides the flexibility you require when it comes to
> isolated
> > public/private networking all on the same infrastructure.
> > I run a shared network for our 'Public' addresses, on a set VLAN and also
> > have other vlans for certain servers for private networks, just like
> yours.
> > I hope that answers your question.
> >
> > Marty
> >
> >
> > On Tue, Oct 22, 2013 at 7:20 PM, Andrija Panic  > >wrote:
> >
> > > Or to post question other way:
> > >
> > > The only way to make public IP addresses available to VMs directly
> (call
> > it
> > > VPS style) (without VR), is using "guest network (bind it to
> ethX/bridgeX
> > > that has direct internet access) and create shared network offer... as
> I
> > > already done ?
> > >
> > >
> > >
> > >
> > > On 22 October 2013 18:09, Andrija Panic 
> wrote:
> > >
> > > > Hi,
> > > >
> > > > I have one question on "public network", used in Advance networking
> > > > scenario.
> > > >
> > > > As I understood from documentation, "Public network" is only used by
> > > > system VMs, and assigned to the public interface on VR(s).
> > > > What is recommended way if I want public IP address to be assigned to
> > > some
> > > > user VMs? I'm not deploying VR for customer VMs, just kind of "VPS"
> > VM...
> > > >
> > > > I have done the folowing, and wonder if this is good/correct method -
> > it
> > > > is working fine for now.
> > > >
> > > > In order to have public IPs assigned to single VM - I had to use
> > another
> > > > guest network with vlan tagged packets (so, I have one guest network,
> > > with
> > > > vlans 40-50 on eth0 for private IP range communication between VMs
> > (each
> > > > account get it's own vlan ID from range 40-60), and I HAD to have
> vlan
> > > 500
> > > > on eth1, on HOST.
> > > >
> > > > Then I deployed new Shared Network inside CS UI, with vlan 500 (that
> > can
> > > > be assigned to all acount VMs, in order to have public IP and direct
> > > > internet access), and CS created bridge cloudVrBb500, and joing
> > eth1.500
> > > to
> > > > that network...
> > > >
> > > > So, any other solution to have normal VMs get public IP address from
> > > > public IP range without using vlans for that guest network ???
> > > >
> > > > Thanks,
> > > > --
> > > >
> > > > Andrija Panić
> > > >
> > > >
> > >
> > >
> > > --
> > >
> > > Andrija Panić
> > > --
> > >   http://admintweets.com
> > > --
> > >
> >
>
>
>
> --
>
> Andrija Panić
> --
>   http://admintweets.com
> --
>


Re: Network Setup Problem 4.1.1

2013-10-22 Thread Marty Sweet
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
>
> * The Zone gets added successfully. No error on that.
>
> It creates cloubr0 bridge  on host by itself and moves the ip from em1 to
> cloudbr0 and also starts the SSVM and Console VM on the host machine. But I
> get this "There is no secondary storage VM for secondary storage host nfs://
> 20.1.1.1/export/secondary"
> On the management server log.
>
> SSVM Guest Machine
>
> * I can log into the SSVM from host using iplink local and I ran
> the SSVM test script, it seems it cannot connect to the gateway (20.1.1.1).
>
> * Following are the ip assigned to SSVM
>
> oPublic - 20.1.1.30 (eth2) , Private - 20.1.111 (eth1) , Link Local -
> 169.254.2.151 (eth0) ,
>
> oAnd on eth3 20.1.1.20 (Not sure what this is for)
>
> Problems:
>
> * SSVM cannot access switch or gateway server (mgmt,nfs,mysql) or
> internet
>
> * And I cannot add any iso's or the cannot see the system default
> iso on the add instance screen.
>
> So there's something wrong in my network configuration over here but I
> couldn't figure out what it is. So any help on this would be much
> appreciated.
>
> Regards,
> Vairavan M.
>


Re: Public LAN inside CS

2013-10-22 Thread Andrija Panic
Thanks Marty, I just needed confirmation of my work, I deployed CS 4.0.0.
(from not knowing what it is, till fully operational and used in kind of
production) in less than 15 days...so lot of stuff was done in kind of
rush, but got 99% of networkng understood then. Now, 9 months later, I got
that 1% I missed :)

Thanks


On 22 October 2013 21:04, Marty Sweet  wrote:

> Hi Andrija,
>
> Your setup seems fine to me, I am not sure why you would want to get rid of
> VLANs as it provides the flexibility you require when it comes to isolated
> public/private networking all on the same infrastructure.
> I run a shared network for our 'Public' addresses, on a set VLAN and also
> have other vlans for certain servers for private networks, just like yours.
> I hope that answers your question.
>
> Marty
>
>
> On Tue, Oct 22, 2013 at 7:20 PM, Andrija Panic  >wrote:
>
> > Or to post question other way:
> >
> > The only way to make public IP addresses available to VMs directly (call
> it
> > VPS style) (without VR), is using "guest network (bind it to ethX/bridgeX
> > that has direct internet access) and create shared network offer... as I
> > already done ?
> >
> >
> >
> >
> > On 22 October 2013 18:09, Andrija Panic  wrote:
> >
> > > Hi,
> > >
> > > I have one question on "public network", used in Advance networking
> > > scenario.
> > >
> > > As I understood from documentation, "Public network" is only used by
> > > system VMs, and assigned to the public interface on VR(s).
> > > What is recommended way if I want public IP address to be assigned to
> > some
> > > user VMs? I'm not deploying VR for customer VMs, just kind of "VPS"
> VM...
> > >
> > > I have done the folowing, and wonder if this is good/correct method -
> it
> > > is working fine for now.
> > >
> > > In order to have public IPs assigned to single VM - I had to use
> another
> > > guest network with vlan tagged packets (so, I have one guest network,
> > with
> > > vlans 40-50 on eth0 for private IP range communication between VMs
> (each
> > > account get it's own vlan ID from range 40-60), and I HAD to have vlan
> > 500
> > > on eth1, on HOST.
> > >
> > > Then I deployed new Shared Network inside CS UI, with vlan 500 (that
> can
> > > be assigned to all acount VMs, in order to have public IP and direct
> > > internet access), and CS created bridge cloudVrBb500, and joing
> eth1.500
> > to
> > > that network...
> > >
> > > So, any other solution to have normal VMs get public IP address from
> > > public IP range without using vlans for that guest network ???
> > >
> > > Thanks,
> > > --
> > >
> > > Andrija Panić
> > >
> > >
> >
> >
> > --
> >
> > Andrija Panić
> > --
> >   http://admintweets.com
> > --
> >
>



-- 

Andrija Panić
--
  http://admintweets.com
--


Re: Public LAN inside CS

2013-10-22 Thread Marty Sweet
Hi Andrija,

Your setup seems fine to me, I am not sure why you would want to get rid of
VLANs as it provides the flexibility you require when it comes to isolated
public/private networking all on the same infrastructure.
I run a shared network for our 'Public' addresses, on a set VLAN and also
have other vlans for certain servers for private networks, just like yours.
I hope that answers your question.

Marty


On Tue, Oct 22, 2013 at 7:20 PM, Andrija Panic wrote:

> Or to post question other way:
>
> The only way to make public IP addresses available to VMs directly (call it
> VPS style) (without VR), is using "guest network (bind it to ethX/bridgeX
> that has direct internet access) and create shared network offer... as I
> already done ?
>
>
>
>
> On 22 October 2013 18:09, Andrija Panic  wrote:
>
> > Hi,
> >
> > I have one question on "public network", used in Advance networking
> > scenario.
> >
> > As I understood from documentation, "Public network" is only used by
> > system VMs, and assigned to the public interface on VR(s).
> > What is recommended way if I want public IP address to be assigned to
> some
> > user VMs? I'm not deploying VR for customer VMs, just kind of "VPS" VM...
> >
> > I have done the folowing, and wonder if this is good/correct method - it
> > is working fine for now.
> >
> > In order to have public IPs assigned to single VM - I had to use another
> > guest network with vlan tagged packets (so, I have one guest network,
> with
> > vlans 40-50 on eth0 for private IP range communication between VMs (each
> > account get it's own vlan ID from range 40-60), and I HAD to have vlan
> 500
> > on eth1, on HOST.
> >
> > Then I deployed new Shared Network inside CS UI, with vlan 500 (that can
> > be assigned to all acount VMs, in order to have public IP and direct
> > internet access), and CS created bridge cloudVrBb500, and joing eth1.500
> to
> > that network...
> >
> > So, any other solution to have normal VMs get public IP address from
> > public IP range without using vlans for that guest network ???
> >
> > Thanks,
> > --
> >
> > Andrija Panić
> >
> >
>
>
> --
>
> Andrija Panić
> --
>   http://admintweets.com
> --
>


Network Setup Problem 4.1.1

2013-10-22 Thread Murugappan, Vairavan
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

* The Zone gets added successfully. No error on that.

It creates cloubr0 bridge  on host by itself and moves the ip from em1 to 
cloudbr0 and also starts the SSVM and Console VM on the host machine. But I get 
this "There is no secondary storage VM for secondary storage host 
nfs://20.1.1.1/export/secondary"
On the management server log.

SSVM Guest Machine

* I can log into the SSVM from host using iplink local and I ran the 
SSVM test script, it seems it cannot connect to the gateway (20.1.1.1).

* Following are the ip assigned to SSVM

oPublic - 20.1.1.30 (eth2) , Private - 20.1.111 (eth1) , Link Local - 
169.254.2.151 (eth0) ,

oAnd on eth3 20.1.1.20 (Not sure what this is for)

Problems:

* SSVM cannot access switch or gateway server (mgmt,nfs,mysql) or 
internet

* And I cannot add any iso's or the cannot see the system default iso 
on the add instance screen.

So there's something wrong in my network configuration over here but I couldn't 
figure out what it is. So any help on this would be much appreciated.

Regards,
Vairavan M.


Re: Public LAN inside CS

2013-10-22 Thread Andrija Panic
Or to post question other way:

The only way to make public IP addresses available to VMs directly (call it
VPS style) (without VR), is using "guest network (bind it to ethX/bridgeX
that has direct internet access) and create shared network offer... as I
already done ?




On 22 October 2013 18:09, Andrija Panic  wrote:

> Hi,
>
> I have one question on "public network", used in Advance networking
> scenario.
>
> As I understood from documentation, "Public network" is only used by
> system VMs, and assigned to the public interface on VR(s).
> What is recommended way if I want public IP address to be assigned to some
> user VMs? I'm not deploying VR for customer VMs, just kind of "VPS" VM...
>
> I have done the folowing, and wonder if this is good/correct method - it
> is working fine for now.
>
> In order to have public IPs assigned to single VM - I had to use another
> guest network with vlan tagged packets (so, I have one guest network, with
> vlans 40-50 on eth0 for private IP range communication between VMs (each
> account get it's own vlan ID from range 40-60), and I HAD to have vlan 500
> on eth1, on HOST.
>
> Then I deployed new Shared Network inside CS UI, with vlan 500 (that can
> be assigned to all acount VMs, in order to have public IP and direct
> internet access), and CS created bridge cloudVrBb500, and joing eth1.500 to
> that network...
>
> So, any other solution to have normal VMs get public IP address from
> public IP range without using vlans for that guest network ???
>
> Thanks,
> --
>
> Andrija Panić
>
>


-- 

Andrija Panić
--
  http://admintweets.com
--


Re: ACS 4.2 secondary storage strangeness

2013-10-22 Thread Andrei Mikhailovsky
Here is some more output from ssvm itself. Perhaps I am reading it wrongly... 


root@s-820-VM:~# /usr/local/cloud/systemvm/ssvm-check.sh 
 
First DNS server is 192.168.169.254 
PING 192.168.169.254 (192.168.169.254): 56 data bytes 
64 bytes from 192.168.169.254: icmp_seq=0 ttl=64 time=0.934 ms 
64 bytes from 192.168.169.254: icmp_seq=1 ttl=64 time=1.288 ms 
--- 192.168.169.254 ping statistics --- 
2 packets transmitted, 2 packets received, 0% packet loss 
round-trip min/avg/max/stddev = 0.934/1.111/1.288/0.177 ms 
Good: Can ping DNS server 
 
Good: DNS resolves download.cloud.com 
 
NFS is currently mounted 
Mount point is /mnt/SecStorage/f2208ff1-bb78-352a-97e3-a7dda0506d0d 
Good: Can write to mount point 
 
Management server is 192.168.169.250. Checking connectivity. 
Good: Can connect to management server port 8250 
 
Good: Java process is running 
 
Tests Complete. Look for ERROR or WARNING above. 


root@s-820-VM:~# ps aux |grep agent 
root 3671 2.0 21.6 348004 55212 ? Sl Oct21 21:18 java 
-Djavax.net.ssl.trustStore=./certs/realhostip.keystore 
-Dlog.home=/var/log/cloud/ -mx168m -cp 
./:./conf:activation-1.1.jar:antisamy-1.4.3.jar:aopalliance-1.0.jar:apache-log4j-extras-1.1.jar:aspectjrt-1.7.1.jar:aspectjweaver-1.7.1.jar:aws-java-sdk-1.3.22.jar:
 .. 

Cheers 

- Original Message -

From: "Nitin Mehta"  
To: users@cloudstack.apache.org 
Sent: Tuesday, 22 October, 2013 6:20:15 PM 
Subject: Re: ACS 4.2 secondary storage strangeness 

What does the agent state in the UI for SSVM - is it up ? As per me the 
ssvm check scripts shouldn't have succeeded for you. Following log message 
hints that to me. 

Agent status update: [id = 61; name = s-820-VM; old status = Connecting; 
event = AgentDisconnected; new status = Alert; old update count = 5283; 
new update count = 5284] 


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

>Also, Template creation from a snapshot doesn't work. Perhaps related? 
>I've double checked that ssvm is up and running and the check script does 
>not produce any errors. 
> 
>Here is the error while trying to create a template: 
> 
> 
>2013-10-22 17:13:28,474 DEBUG [cloud.network.NetworkUsageManagerImpl] 
>(AgentConnectTaskPool-3979:null) Disconnected called on 61 with status 
>Alert 
>2013-10-22 17:13:28,474 DEBUG [agent.manager.AgentManagerImpl] 
>(AgentConnectTaskPool-3979:null) Sending Disconnect to listener: 
>com.cloud.consoleproxy.ConsoleProxyListener 
>2013-10-22 17:13:28,476 DEBUG [cloud.host.Status] 
>(AgentConnectTaskPool-3979:null) Transition:[Resource state = Enabled, 
>Agent event = AgentDisconnected, Host id = 61, name = s-820-VM] 
>2013-10-22 17:13:28,593 DEBUG [cloud.host.Status] 
>(AgentConnectTaskPool-3979:null) Agent status update: [id = 61; name = 
>s-820-VM; old status = Connecting; event = AgentDisconnected; new status 
>= Alert; old update count = 5283; new update count = 5284] 
>2013-10-22 17:13:28,593 DEBUG [agent.manager.ClusteredAgentManagerImpl] 
>(AgentConnectTaskPool-3979:null) Notifying other nodes of to disconnect 
>2013-10-22 17:13:28,594 DEBUG [agent.manager.AgentManagerImpl] 
>(AgentConnectTaskPool-3979:null) Failed to handle host connection: 
>com.cloud.utils.exception.CloudRuntimeException: Unable to connect 61 
>2013-10-22 17:13:28,594 DEBUG [agent.manager.AgentManagerImpl] 
>(AgentConnectTaskPool-3979:null) Can not send command 
>com.cloud.agent.api.ReadyCommand due to Host 61 is not up 
>2013-10-22 17:13:28,649 DEBUG [cloud.template.TemplateManagerImpl] 
>(Job-Executor-103:job-6828 = [ 992cbb95-38ec-497e-bddc-1e90b67bcdb9 ]) 
>Failed to create templatecom.cloud.utils.exception.CloudRuntimeException: 
>Failed to send command, due to Agent:61, 
>com.cloud.exception.OperationTimedoutException: Commands 1024262150 to 
>Host 61 timed out after 21600 
>2013-10-22 17:13:28,764 ERROR [cloud.async.AsyncJobManagerImpl] 
>(Job-Executor-103:job-6828 = [ 992cbb95-38ec-497e-bddc-1e90b67bcdb9 ]) 
>Unexpected exception while executing 
>org.apache.cloudstack.api.command.user.template.CreateTemplateCmd 
>com.cloud.utils.exception.CloudRuntimeException: Failed to create 
>templatecom.cloud.utils.exception.CloudRuntimeException: Failed to send 
>command, due to Agent:61, com.cloud.exception.OperationTimedoutException: 
>Commands 1024262150 to Host 61 timed out after 21600 
>at 
>com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManag 
>erImpl.java:1395) 
>at 
>com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorD 
>ispatcher.intercept(ComponentInstantiationPostProcessor.java:125) 
>at 
>org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute( 
>CreateTemplateCmd.java:263) 
>at com.cloud.api.ApiDispatcher

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

2013-10-22 Thread Andrei Mikhailovsky
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-12.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 my templates. 
> 
>Thanks 
> 
> 
>- Original Message - 
> 
>From: "Nitin Mehta"  
>To: users@cloudstack.apache.org 
>Sent: Tuesday, 22 October, 2013 4:01:06 PM 
>Subject: Re: Templates and ISOs are shown twice after upgrade to 4.2 
> 
>Did you add a new zone or have multiple zones ? Are they showing up for 
>different zones ? Is the cross zone flag on ? 
> 
>On 22/10/13 6:57 AM, "Andrei Mikhailovsky"  wrote: 
> 
>>I was wondering if anyone else have noticed that the Templates and ISOs 
>>are shown twice in the ACS 4.2.0 GUI. I've looked at the duplicates and 
>>they have the same id/uuid and when I look in db, the templates which 
>>are 
>>shown twice have only a single entrance in the database. 
>> 
>>Any idea what is causing this? 
>> 
>>Cheers 
> 
> 




Re: ACS 4.2 secondary storage strangeness

2013-10-22 Thread Nitin Mehta
What does the agent state in the UI for SSVM - is it up ? As per me the
ssvm check scripts shouldn't have succeeded for you. Following log message
hints that to me.

Agent status update: [id = 61; name = s-820-VM; old status = Connecting;
event = AgentDisconnected; new status = Alert; old update count = 5283;
new update count = 5284]


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

>Also, Template creation from a snapshot doesn't work. Perhaps related?
>I've double checked that ssvm is up and running and the check script does
>not produce any errors.
>
>Here is the error while trying to create a template:
>
>
>2013-10-22 17:13:28,474 DEBUG [cloud.network.NetworkUsageManagerImpl]
>(AgentConnectTaskPool-3979:null) Disconnected called on 61 with status
>Alert 
>2013-10-22 17:13:28,474 DEBUG [agent.manager.AgentManagerImpl]
>(AgentConnectTaskPool-3979:null) Sending Disconnect to listener:
>com.cloud.consoleproxy.ConsoleProxyListener
>2013-10-22 17:13:28,476 DEBUG [cloud.host.Status]
>(AgentConnectTaskPool-3979:null) Transition:[Resource state = Enabled,
>Agent event = AgentDisconnected, Host id = 61, name = s-820-VM]
>2013-10-22 17:13:28,593 DEBUG [cloud.host.Status]
>(AgentConnectTaskPool-3979:null) Agent status update: [id = 61; name =
>s-820-VM; old status = Connecting; event = AgentDisconnected; new status
>= Alert; old update count = 5283; new update count = 5284]
>2013-10-22 17:13:28,593 DEBUG [agent.manager.ClusteredAgentManagerImpl]
>(AgentConnectTaskPool-3979:null) Notifying other nodes of to disconnect
>2013-10-22 17:13:28,594 DEBUG [agent.manager.AgentManagerImpl]
>(AgentConnectTaskPool-3979:null) Failed to handle host connection:
>com.cloud.utils.exception.CloudRuntimeException: Unable to connect 61
>2013-10-22 17:13:28,594 DEBUG [agent.manager.AgentManagerImpl]
>(AgentConnectTaskPool-3979:null) Can not send command
>com.cloud.agent.api.ReadyCommand due to Host 61 is not up
>2013-10-22 17:13:28,649 DEBUG [cloud.template.TemplateManagerImpl]
>(Job-Executor-103:job-6828 = [ 992cbb95-38ec-497e-bddc-1e90b67bcdb9 ])
>Failed to create templatecom.cloud.utils.exception.CloudRuntimeException:
>Failed to send command, due to Agent:61,
>com.cloud.exception.OperationTimedoutException: Commands 1024262150 to
>Host 61 timed out after 21600
>2013-10-22 17:13:28,764 ERROR [cloud.async.AsyncJobManagerImpl]
>(Job-Executor-103:job-6828 = [ 992cbb95-38ec-497e-bddc-1e90b67bcdb9 ])
>Unexpected exception while executing
>org.apache.cloudstack.api.command.user.template.CreateTemplateCmd
>com.cloud.utils.exception.CloudRuntimeException: Failed to create
>templatecom.cloud.utils.exception.CloudRuntimeException: Failed to send
>command, due to Agent:61, com.cloud.exception.OperationTimedoutException:
>Commands 1024262150 to Host 61 timed out after 21600
>at 
>com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManag
>erImpl.java:1395) 
>at 
>com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorD
>ispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
>at 
>org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(
>CreateTemplateCmd.java:263)
>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-22 17:13:28,765 DEBUG [cloud.async.AsyncJobManagerImpl]
>(Job-Executor-103:job-6828 = [ 992cbb95-38ec-497e-bddc-1e90b67bcdb9 ])
>Complete async job-6828 = [ 992cbb95-38ec-497e-bddc-1e90b67bcdb9 ],
>jobStatus: 2, resultCode: 530, result: Error Code: 530 Error text: Failed
>to create templatecom.cloud.utils.exception.CloudRuntimeException: Failed
>to send command, due to Agent:61,
>com.cloud.exception.OperationTimedoutException: Commands 1024262150 to
>Host 61 timed out after 21600
>
>Thanks 
>
>Andrei 
>- Original Message -
>
>From: "Andrei Mikhailovsky" 
>To: users@cloudstack.apache.org
>Sent: Tuesday, 22 October, 2013 2:35:15 PM
>Subject: ACS 4.2 secondary storage strangeness
>
>Hello guys, 
>
>I am having an issue after upgrading from 4.1.1 to 4.2.0. Every minute or
>so I have the following exception in my management server logs:
>
>- 
>
>
>2013-10-22 14:31:43,921 INFO [storage.image.TemplateServiceImpl]
>(AgentConnectTaskPool-3561:null) Template Sync found routing-8 already in
>the image store 
>2013-10-22 14:31:44,070 INFO [storage.image.TemplateServiceImpl]
>(AgentConnectTaskPool-3561:null) Template Sync found routing-1 already in
>the image store 
>2013-10-22 14:31:44,167 INFO [storage.image.TemplateServiceImpl]
>(AgentConnectTas

Re: Downloading templates loop

2013-10-22 Thread Nitin Mehta
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-e921
>b8d00638","request":"GET_STATUS","hvm":true,"description":"RHEL
>Server 6.3 32
>Bit","checksum":"edd93cda6935bcf04c3381446764eb26","maxDownloadSizeInBytes
>":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://other
>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-e921b8d00638"
>,"downloadPct":0,"errorString":"No
>route to
>host","downloadStatus":"NOT_DOWNLOADED","downloadPath":"/mnt/SecStorage/92
>19e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/233/dnld195496888543789
>6633tmp_","templateSize":0,"templatePhySicalSize":0,"checkSum":"edd93cda69
>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: Templates and ISOs are shown twice after upgrade to 4.2

2013-10-22 Thread Nitin Mehta
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 my templates.
>
>Thanks 
>
>
>- Original Message -
>
>From: "Nitin Mehta" 
>To: users@cloudstack.apache.org
>Sent: Tuesday, 22 October, 2013 4:01:06 PM
>Subject: Re: Templates and ISOs are shown twice after upgrade to 4.2
>
>Did you add a new zone or have multiple zones ? Are they showing up for
>different zones ? Is the cross zone flag on ?
>
>On 22/10/13 6:57 AM, "Andrei Mikhailovsky"  wrote:
>
>>I was wondering if anyone else have noticed that the Templates and ISOs
>>are shown twice in the ACS 4.2.0 GUI. I've looked at the duplicates and
>>they have the same id/uuid and when I look in db, the templates which
>>are 
>>shown twice have only a single entrance in the database.
>> 
>>Any idea what is causing this?
>> 
>>Cheers 
>
>



Re: ACS 4.2 secondary storage strangeness

2013-10-22 Thread Andrei Mikhailovsky
Also, Template creation from a snapshot doesn't work. Perhaps related? I've 
double checked that ssvm is up and running and the check script does not 
produce any errors. 

Here is the error while trying to create a template: 


2013-10-22 17:13:28,474 DEBUG [cloud.network.NetworkUsageManagerImpl] 
(AgentConnectTaskPool-3979:null) Disconnected called on 61 with status Alert 
2013-10-22 17:13:28,474 DEBUG [agent.manager.AgentManagerImpl] 
(AgentConnectTaskPool-3979:null) Sending Disconnect to listener: 
com.cloud.consoleproxy.ConsoleProxyListener 
2013-10-22 17:13:28,476 DEBUG [cloud.host.Status] 
(AgentConnectTaskPool-3979:null) Transition:[Resource state = Enabled, Agent 
event = AgentDisconnected, Host id = 61, name = s-820-VM] 
2013-10-22 17:13:28,593 DEBUG [cloud.host.Status] 
(AgentConnectTaskPool-3979:null) Agent status update: [id = 61; name = 
s-820-VM; old status = Connecting; event = AgentDisconnected; new status = 
Alert; old update count = 5283; new update count = 5284] 
2013-10-22 17:13:28,593 DEBUG [agent.manager.ClusteredAgentManagerImpl] 
(AgentConnectTaskPool-3979:null) Notifying other nodes of to disconnect 
2013-10-22 17:13:28,594 DEBUG [agent.manager.AgentManagerImpl] 
(AgentConnectTaskPool-3979:null) Failed to handle host connection: 
com.cloud.utils.exception.CloudRuntimeException: Unable to connect 61 
2013-10-22 17:13:28,594 DEBUG [agent.manager.AgentManagerImpl] 
(AgentConnectTaskPool-3979:null) Can not send command 
com.cloud.agent.api.ReadyCommand due to Host 61 is not up 
2013-10-22 17:13:28,649 DEBUG [cloud.template.TemplateManagerImpl] 
(Job-Executor-103:job-6828 = [ 992cbb95-38ec-497e-bddc-1e90b67bcdb9 ]) Failed 
to create templatecom.cloud.utils.exception.CloudRuntimeException: Failed to 
send command, due to Agent:61, com.cloud.exception.OperationTimedoutException: 
Commands 1024262150 to Host 61 timed out after 21600 
2013-10-22 17:13:28,764 ERROR [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-103:job-6828 = [ 992cbb95-38ec-497e-bddc-1e90b67bcdb9 ]) 
Unexpected exception while executing 
org.apache.cloudstack.api.command.user.template.CreateTemplateCmd 
com.cloud.utils.exception.CloudRuntimeException: Failed to create 
templatecom.cloud.utils.exception.CloudRuntimeException: Failed to send 
command, due to Agent:61, com.cloud.exception.OperationTimedoutException: 
Commands 1024262150 to Host 61 timed out after 21600 
at 
com.cloud.template.TemplateManagerImpl.createPrivateTemplate(TemplateManagerImpl.java:1395)
 
at 
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
 
at 
org.apache.cloudstack.api.command.user.template.CreateTemplateCmd.execute(CreateTemplateCmd.java:263)
 
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-22 17:13:28,765 DEBUG [cloud.async.AsyncJobManagerImpl] 
(Job-Executor-103:job-6828 = [ 992cbb95-38ec-497e-bddc-1e90b67bcdb9 ]) Complete 
async job-6828 = [ 992cbb95-38ec-497e-bddc-1e90b67bcdb9 ], jobStatus: 2, 
resultCode: 530, result: Error Code: 530 Error text: Failed to create 
templatecom.cloud.utils.exception.CloudRuntimeException: Failed to send 
command, due to Agent:61, com.cloud.exception.OperationTimedoutException: 
Commands 1024262150 to Host 61 timed out after 21600 

Thanks 

Andrei 
- Original Message -

From: "Andrei Mikhailovsky"  
To: users@cloudstack.apache.org 
Sent: Tuesday, 22 October, 2013 2:35:15 PM 
Subject: ACS 4.2 secondary storage strangeness 

Hello guys, 

I am having an issue after upgrading from 4.1.1 to 4.2.0. Every minute or so I 
have the following exception in my management server logs: 

- 


2013-10-22 14:31:43,921 INFO [storage.image.TemplateServiceImpl] 
(AgentConnectTaskPool-3561:null) Template Sync found routing-8 already in the 
image store 
2013-10-22 14:31:44,070 INFO [storage.image.TemplateServiceImpl] 
(AgentConnectTaskPool-3561:null) Template Sync found routing-1 already in the 
image store 
2013-10-22 14:31:44,167 INFO [storage.image.TemplateServiceImpl] 
(AgentConnectTaskPool-3561:null) Template Sync found centos55-x86_64 already in 
the image store 
2013-10-22 14:31:44,263 INFO [storage.image.TemplateServiceImpl] 
(AgentConnectTaskPool-3561:null) Template Sync did not find centos56-x86_64-xen 
on image store 42, may request download based on available hypervisor types 
2013-10-22 14:31:44,264 INFO [storage.image.TemplateServiceImpl] 
(AgentConnectTaskPool-3561:null) Template Sync did not find 

Public LAN inside CS

2013-10-22 Thread Andrija Panic
Hi,

I have one question on "public network", used in Advance networking
scenario.

As I understood from documentation, "Public network" is only used by system
VMs, and assigned to the public interface on VR(s).
What is recommended way if I want public IP address to be assigned to some
user VMs? I'm not deploying VR for customer VMs, just kind of "VPS" VM...

I have done the folowing, and wonder if this is good/correct method - it is
working fine for now.

In order to have public IPs assigned to single VM - I had to use another
guest network with vlan tagged packets (so, I have one guest network, with
vlans 40-50 on eth0 for private IP range communication between VMs (each
account get it's own vlan ID from range 40-60), and I HAD to have vlan 500
on eth1, on HOST.

Then I deployed new Shared Network inside CS UI, with vlan 500 (that can be
assigned to all acount VMs, in order to have public IP and direct internet
access), and CS created bridge cloudVrBb500, and joing eth1.500 to that
network...

So, any other solution to have normal VMs get public IP address from public
IP range without using vlans for that guest network ???

Thanks,
-- 

Andrija Panić


RE: upgrade xen 6.0.2 to 6.2

2013-10-22 Thread Suresh Sadhu


If you have single  host in the cluster:
--- Put the host in to maintenance mode from CS
---  once its successful, un-manage the cluster from cs
 Upgrade the xenver from 6.0.2 to 6.2
---cancel maintenance mode and Click on Manage Cluster fr0m CS.

If you have  multiple host  first put master into maintenance mode and make 
sure all vms migrated to other host and unmanage cluster from cs .
Upgrade host then manage cluster and then put other host (slave)into 
maintenance mode and upgrade host and cancel maintenance mode 


Regards
Sadhu




-Original Message-
From: Jaro 2079 [mailto:jaro2...@gmail.com] 
Sent: 22 October 2013 21:26
To: users@cloudstack.apache.org
Subject: upgrade xen 6.0.2 to 6.2

Hello
Did anyone know how is procedure to upgrade existing host in the cluster to 
xenserver 6.2 from xenserver 6.0.2 ?


upgrade xen 6.0.2 to 6.2

2013-10-22 Thread Jaro 2079
Hello
Did anyone know how is procedure to upgrade existing host in the cluster to
xenserver 6.2 from xenserver 6.0.2 ?


Re: Secondary Storage IP Subnet: Is it Optional or Mandatory?

2013-10-22 Thread Rob C.
Geoff, thanks again!
Rob


On Fri, Oct 18, 2013 at 4:40 PM, Geoff Higginbottom <
geoff.higginbot...@shapeblue.com> wrote:

>  Rob,
>
>  Answers in line prefixed GH
>
>
> Regards
>
>
>
> Geoff Higginbottom
>
> *CTO / Cloud Architect*
>
>
>
>
>
> D: +44 20 3603 0542 <+442036030542> | S: +44 20 3603 0540 <+442036030540> |
> M: +447968161581
>
>
>
> geoff.higginbot...@shapeblue.com | www.shapeblue.com
>
>
>
> ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS
>
>
>
>
> On 18 Oct 2013, at 18:18, "Rob C."  wrote:
>
>
>  Hi,
>
> Thanks Sanjeev and Geoff for your replies.  I have a few follow-up
> questions.
>
> A. The document I referenced states "if a physical storage interface was
> not
> specified when creating the zone this interface will not exist" in
> reference to eth3 (the SSVM storage network interface).  Is that no
> longer the case?  I don't see the logic of having a second virtual NIC on
> the same subnet.
>
> GH - there are always 4 vNICs, link local, management, storage and public.
>
>
>
>
> B. I know that having multiple NICs on the same system connected to the
> same subnet can sometimes cause network issues.  If this is to be the
> resulting configuration on the SSVM, is there anything I should watch out
> for?  What has been done to head off any issues that could result from this
> configuration?
>
>  GH - if the storage network is not configured CloudStack creates static
> routes mapping the IPs of the sec storage devices to the 'storage' vNIC.
>  Default gateway is the public interface.
>
>
>
>  C. Aside from performance/redundancy concerns, can you offer any general
> comments regarding the wisdom of opting not to have a secondary storage IP
> subnet?  Beyond being technically possible and permitted, is this a common
> and accepted approach?
>
>  GH -  I've been involved in lots of deployments and I'd say about half
> have used the storage network and half have not.  If you have hosts with
> lots of 1GB NICs you can dedicate some to Sec Storage to help with the
> transferring of Snapshot data.  If you only have 2x10GB NICs then the
> common approach is to simply put all traffic over a LACP bond.
>
>
>  For my better understanding, and because I am weighing the options, I'd
> still appreciate answers to my questions about the Secondary Storage
> network, re-posted below:
>
> 4. I haven't found any documentation that helps with planning the size of
> the Secondary Storage network -- besides the NFS server and the SSVM, what
> other devices must have an IP address on this network?
>
> GH - The IPs you allocate to the storage network for the POD are used by
> the SSVMs running in that POD.  Every Host also needs to have a connection
> to all Secondary Storage devices within the Zone, as do the Management
> Servers.
>
>
> 5. How are IP addresses for devices on the Secondary Storage network
> assigned?  In the case of the SSVM it must be dynamic, but if I were to
> manually put a CloudStack host onto this network (for convenience), what
> assures that the same IP address won't also get handed out to an SSVM?
>
>  GH - The IPs are for SSVM only.  The IPs you allocate to Hosts must be
> outside of the range you allocate to the POD.  FYI Hosts HAVE to have a
> connection to Sec storage, either directly or via their default gateway.
>
>
> 6. Is it permitted to place the Secondary Storage traffic onto its own
> dedicated vSwitch on ESXi?  According to the Installation Guide under
> section 8.3.5.1.1 Separating Traffic: "*CloudStack allows you to use
> vCenter to configure three separate networks per ESXi host. *...*  The
> allowed networks for configuration are public, guest, and private (for
> management and usually storage traffic).*"  This would suggest that storage
> traffic must share the same vSwitch as management traffic.
>
>  GH - when allocating the different traffic types to different NICs you
> map the traffic to the vSwitch so you have to configure a dedicated vSwitch
> for each network.
>
>  As a side note, if you have a zone with multiple hypervisors, say VMWare
> and XenServer, the networks need to be common across the Zone, so all your
> hosts should have the same number of NICs.  For VMware you map the traffic
> to the vSwitch, and for XenServer you map it to the name of the network or
> bond, and for KVM the bridge etc.
>
>
>  Thanks again,
> Rob
>
>
>
>   From: Geoff Higginbottom 
>> Date: Thu, Oct 17, 2013 at 2:56 AM
>> Subject: Re: Secondary Storage IP Subnet: Is it Optional or Mandatory?
>> To: "" 
>>
>>
>> Hi Rob,
>>
>> The 'storage' network is indeed optional so your plan to not use it is
>> perfectly valid.
>>
>> Simply put the NFS server on the management network or ensure there is a
>> route to it via the management network.
>>
>> The SSVM will still get a virtual interface dedicated to storage, but it
>> will be assigned an additional IP address from the management ip range.
>>
>> There is no need to configure any ip range for storage, and if using the
>> add zo

Downloading templates loop

2013-10-22 Thread David Comerford
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-e921b8d00638","request":"GET_STATUS","hvm":true,"description":"RHEL
Server 6.3 32
Bit","checksum":"edd93cda6935bcf04c3381446764eb26","maxDownloadSizeInBytes":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://othernas/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-e921b8d00638","downloadPct":0,"errorString":"No
route to
host","downloadStatus":"NOT_DOWNLOADED","downloadPath":"/mnt/SecStorage/9219e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/233/dnld1954968885437896633tmp_","templateSize":0,"templatePhySicalSize":0,"checkSum":"edd93cda6935bcf04c3381446764eb26","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/dnld1954968885437896633tmp_
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: Templates and ISOs are shown twice after upgrade to 4.2

2013-10-22 Thread Andrei Mikhailovsky
Nope, I only have a single zone and i've not added anything. I've simply 
upgraded from 4.1.1 to 4.2 and found it like that. 

Let me check the cross zone flag and come back 

Andrei 
- Original Message -

From: "Nitin Mehta"  
To: users@cloudstack.apache.org 
Sent: Tuesday, 22 October, 2013 4:01:06 PM 
Subject: Re: Templates and ISOs are shown twice after upgrade to 4.2 

Did you add a new zone or have multiple zones ? Are they showing up for 
different zones ? Is the cross zone flag on ? 

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

>I was wondering if anyone else have noticed that the Templates and ISOs 
>are shown twice in the ACS 4.2.0 GUI. I've looked at the duplicates and 
>they have the same id/uuid and when I look in db, the templates which are 
>shown twice have only a single entrance in the database. 
> 
>Any idea what is causing this? 
> 
>Cheers 




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

2013-10-22 Thread Andrei Mikhailovsky
Yeah, the cross_zones column has 1 for all of my templates. 

Thanks 


- Original Message -

From: "Nitin Mehta"  
To: users@cloudstack.apache.org 
Sent: Tuesday, 22 October, 2013 4:01:06 PM 
Subject: Re: Templates and ISOs are shown twice after upgrade to 4.2 

Did you add a new zone or have multiple zones ? Are they showing up for 
different zones ? Is the cross zone flag on ? 

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

>I was wondering if anyone else have noticed that the Templates and ISOs 
>are shown twice in the ACS 4.2.0 GUI. I've looked at the duplicates and 
>they have the same id/uuid and when I look in db, the templates which are 
>shown twice have only a single entrance in the database. 
> 
>Any idea what is causing this? 
> 
>Cheers 




RE: access instance's console using apikey failed

2013-10-22 Thread ramnivas indani
I think you need to have valid login to access console of vm
We wanted the same access from our webclient for that we used login API
to first login and same session of httpclient to access console
I dont assure that its the perfect way but I thought it can help

Sent from my Windows Phone From: yao hu
Sent: ‎22-‎10-‎2013 08:55 AM
To: d...@cloudstack.apache.org; users@cloudstack.apache.org
Subject: access instance's console using apikey failed
I compiled cloudstack 4.1.1 source code in cygwin, then test it using
jetty, it works fine. But, when I access instance's console through vnc
using apikey, it fails, the browser shows the follow message:
Access denied. Invalid web session or API key in request

my url:
http://localhost:8080/client/console?cmd=access&vm=b194369f-e0d4-45d8-a50f-09ec51095e68&apikey=fmS7oyThP6MGxN5X_CgeOCxQIqgTu5QFDz46r2Pv5kLp88EYYBquSu6_3s3d9MXdbUHPpxj5qDDy1jvhEpQWvQ&signature=y3dNHn580NJiCVRGwrBTR4JHImo%3D

I test the listAccounts api, it's ok.
my url:
http://localhost:8080/client/api?command=listAccounts&apikey=fmS7oyThP6MGxN5X_CgeOCxQIqgTu5QFDz46r2Pv5kLp88EYYBquSu6_3s3d9MXdbUHPpxj5qDDy1jvhEpQWvQ&signature=ALhJtw%2Bzi7Rcmo%2Bkk3xH3cTJgp4%3D

then, I debug the source code, find where it fails.
file: ConsoleProxyServlet.java
private boolean verifyRequest(Map requestParameters) {
try {
...
...

unsignedRequest = unsignedRequest.toLowerCase();

Mac mac = Mac.getInstance("HmacSHA1");
SecretKeySpec keySpec = new SecretKeySpec(secretKey.getBytes(),
"HmacSHA1");
mac.init(keySpec);
mac.update(unsignedRequest.getBytes());
byte[] encryptedBytes = mac.doFinal();
String computedSignature =
Base64.encodeBase64URLSafeString(encryptedBytes);
boolean equalSig = signature.equals(computedSignature);
if (!equalSig) {
s_logger.debug("User signature: " + signature + " is not equaled to
computed signature: " + computedSignature);
}
...
...
return equalSig;
} catch (Exception ex) {
s_logger.error("unable to verifty request signature", ex);
}
return false;
}

in this method, signature not equals to computedSignature, so it returns
false


then, I view ApiServer.java,the verifyRequest method:
public boolean verifyRequest(Map requestParameters, Long
userId) throws ServerApiException {
try {
...
...

unsignedRequest = unsignedRequest.toLowerCase();

Mac mac = Mac.getInstance("HmacSHA1");
SecretKeySpec keySpec = new SecretKeySpec(secretKey.getBytes(),
"HmacSHA1");
mac.init(keySpec);
mac.update(unsignedRequest.getBytes());
byte[] encryptedBytes = mac.doFinal();
String computedSignature = Base64.encodeBase64String(encryptedBytes);
boolean equalSig = signature.equals(computedSignature);
if (!equalSig) {
s_logger.debug("User signature: " + signature + " is not equaled to
computed signature: " + computedSignature);
}
...
...
return equalSig;
} catch (Exception ex) {
s_logger.error("unable to verifty request signature", ex);
}
return false;
}

these two verifyRequest method produce different signature, because the
former use :
String computedSignature =
Base64.encodeBase64URLSafeString(encryptedBytes);

while the later use:
String computedSignature = Base64.encodeBase64String(encryptedBytes);

this is why listAccouts works fine, but vnc console is failed.

when I replace Base64.encodeBase64URLSafeString by
Base64.encodeBase64String, vnc console is ok too.


so I am confused, why use different encode method? It is a bug?


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

2013-10-22 Thread Nitin Mehta
Did you add a new zone or have multiple zones ? Are they showing up for
different zones ? Is the cross zone flag on ?

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

>I was wondering if anyone else have noticed that the Templates and ISOs
>are shown twice in the ACS 4.2.0 GUI. I've looked at the duplicates and
>they have the same id/uuid and when I look in db, the templates which are
>shown twice have only a single entrance in the database.
>
>Any idea what is causing this?
>
>Cheers 



Re: ACS 4.3 RBD + KVM Snapshots not working

2013-10-22 Thread Andrei Mikhailovsky
Okay, I've tried doing VM snapshot and not the disk snapshot. 

After doing the disk snapshot it has started snapshotting, but it is taking a 
rather long time. I've noticed that initially my snapshot appeared in rbd and I 
could list it with "rbd snap ls" command. However, i've also noticed that the 
snapshot is being copied onto the secondary storage, which is not what I am 
after. I've set this option to false in the global settings. Anyways, it's been 
about 20 mins for a 20GB snapshot image and acs gui is still showing the 
snapshot being taken. However, i've noticed that my rbd snapshot has been 
removed and for the last 5 minutes there was nothing written to the secondary 
storage snapshot file. It looks like the copy to secodnary storage has 
finished, but CS still thinks it is doing the snapshot. 

Has anyone managed to leave the snapshots on the rbd storage without copying it 
to the secondary storage? 

Cheers 


- Original Message -

From: "Andrei Mikhailovsky"  
To: users@cloudstack.apache.org 
Sent: Tuesday, 22 October, 2013 3:06:30 PM 
Subject: ACS 4.3 RBD + KVM Snapshots not working 

Hello Guys, 

I've recently upgraded to CS 4.2 and tried to use the new RBD snapshot feature. 
When creating a snapshot I got the following error: 

VM snapshot is not enabled for hypervisor type: KVM 

Where can I enable this feature? 

Thanks 




ACS 4.2 Error adding S3/Ceph secondary storage

2013-10-22 Thread Andrei Mikhailovsky
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 


ACS 4.3 RBD + KVM Snapshots not working

2013-10-22 Thread Andrei Mikhailovsky
Hello Guys, 

I've recently upgraded to CS 4.2 and tried to use the new RBD snapshot feature. 
When creating a snapshot I got the following error: 

VM snapshot is not enabled for hypervisor type: KVM 

Where can I enable this feature? 

Thanks 



Templates and ISOs are shown twice after upgrade to 4.2

2013-10-22 Thread Andrei Mikhailovsky
I was wondering if anyone else have noticed that the Templates and ISOs are 
shown twice in the ACS 4.2.0 GUI. I've looked at the duplicates and they have 
the same id/uuid and when I look in db, the templates which are shown twice 
have only a single entrance in the database. 

Any idea what is causing this? 

Cheers 


ACS 4.2 secondary storage strangeness

2013-10-22 Thread Andrei Mikhailovsky
Hello guys, 

I am having an issue after upgrading from 4.1.1 to 4.2.0. Every minute or so I 
have the following exception in my management server logs: 

- 


2013-10-22 14:31:43,921 INFO [storage.image.TemplateServiceImpl] 
(AgentConnectTaskPool-3561:null) Template Sync found routing-8 already in the 
image store 
2013-10-22 14:31:44,070 INFO [storage.image.TemplateServiceImpl] 
(AgentConnectTaskPool-3561:null) Template Sync found routing-1 already in the 
image store 
2013-10-22 14:31:44,167 INFO [storage.image.TemplateServiceImpl] 
(AgentConnectTaskPool-3561:null) Template Sync found centos55-x86_64 already in 
the image store 
2013-10-22 14:31:44,263 INFO [storage.image.TemplateServiceImpl] 
(AgentConnectTaskPool-3561:null) Template Sync did not find centos56-x86_64-xen 
on image store 42, may request download based on available hypervisor types 
2013-10-22 14:31:44,264 INFO [storage.image.TemplateServiceImpl] 
(AgentConnectTaskPool-3561:null) Template Sync did not find centos53-x64 on 
image store 42, may request download based on available hypervisor types 
2013-10-22 14:31:44,264 INFO [storage.image.TemplateServiceImpl] 
(AgentConnectTaskPool-3561:null) Skip downloading template routing-10 since 
current data center does not have hypervisor LXC 
2013-10-22 14:31:44,264 INFO [storage.image.TemplateServiceImpl] 
(AgentConnectTaskPool-3561:null) Skip downloading template routing-9 since 
current data center does not have hypervisor Hyperv 
2013-10-22 14:31:44,264 INFO [storage.image.TemplateServiceImpl] 
(AgentConnectTaskPool-3561:null) Downloading template centos56-x86_64-xen to 
image store 5ebcfa59-279e-461f-a7fc-9cfd42157798 
2013-10-22 14:31:44,329 ERROR [agent.manager.AgentManagerImpl] 
(AgentConnectTaskPool-3561:null) Monitor DownloadListener says there is an 
error in the connect process for 61 due to null 
java.lang.NullPointerException 
at 
org.apache.cloudstack.storage.image.manager.ImageStoreProviderManagerImpl.getImageStore(ImageStoreProviderManagerImpl.java:65)
 
at 
org.apache.cloudstack.storage.datastore.DataStoreManagerImpl.getDataStore(DataStoreManagerImpl.java:47)
 
at 
org.apache.cloudstack.storage.image.TemplateDataFactoryImpl.getTemplate(TemplateDataFactoryImpl.java:90)
 
at 
org.apache.cloudstack.storage.image.TemplateServiceImpl.handleTemplateSync(TemplateServiceImpl.java:418)
 
at 
com.cloud.storage.download.DownloadListener.processConnect(DownloadListener.java:309)
 
at 
com.cloud.agent.manager.AgentManagerImpl.notifyMonitorsOfConnection(AgentManagerImpl.java:587)
 
at 
com.cloud.agent.manager.AgentManagerImpl.handleConnectedAgent(AgentManagerImpl.java:1085)
 
at 
com.cloud.agent.manager.AgentManagerImpl.access$100(AgentManagerImpl.java:144) 
at 
com.cloud.agent.manager.AgentManagerImpl$HandleAgentConnectTask.run(AgentManagerImpl.java:1160)
 
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-22 14:31:44,330 INFO [agent.manager.AgentManagerImpl] 
(AgentConnectTaskPool-3561:null) Host 61 is disconnecting with event 
AgentDisconnected 
2013-10-22 14:31:44,331 DEBUG [agent.manager.AgentManagerImpl] 
(AgentConnectTaskPool-3561:null) The next status of agent 61is Alert, current 
status is Connecting 
2013-10-22 14:31:44,331 DEBUG [agent.manager.AgentManagerImpl] 
(AgentConnectTaskPool-3561:null) Deregistering link for 61 with state Alert 
2013-10-22 14:31:44,331 DEBUG [agent.manager.AgentManagerImpl] 
(AgentConnectTaskPool-3561:null) Remove Agent : 61 
2013-10-22 14:31:44,331 DEBUG [agent.manager.ConnectedAgentAttache] 
(AgentConnectTaskPool-3561:null) Processing Disconnect. 
2013-10-22 14:31:44,331 DEBUG [agent.manager.AgentManagerImpl] 
(AgentConnectTaskPool-3561:null) Sending Disconnect to listener: 
com.cloud.hypervisor.xen.discoverer.XcpServerDiscoverer_EnhancerByCloudStack_c871fe36
 


- 

Host id 61 which the log refers to (2013-10-22 14:31:44,329) is the SSVM 
instance. I've logged in to SSVM and run a check using 
/usr/local/cloud/systemvm/ssvm-check.sh, which did not produce any 
problems/warnings/errors. 

Any idea how to fix this issue? 

Thanks 

Andrei 


Can not delete port forwarding rule with UI in 4.1.1 Is there a global parameter timeout for this?

2013-10-22 Thread Fred Messinger
This is what I did using the UI:

added a guest network in my advance zone,
added a guest to the network,
opened up a firewall on the network
added a port forwarding rule, specifying my guest

And this seemed to work.  Database updated as expected.   Log messages
seemed ok too.

THEN!  using the UI, I trieddeleting the port forwarding rule I just
created.

Internal Server error.

Pertinent log messages:

2013-10-22 08:14:14,087 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null)
===START===  192.168.220.1 -- GET
 
command=deletePortForwardingRule&response=json&sessionkey=YwEeHOyxyQa9chYMY4VtUbIQPe8%3D&id=2cbaa440-c4b1-4472-a27b-28c71f7c1dcf&_=1382444054170
2013-10-22 08:14:14,147 DEBUG [cloud.async.AsyncJobManagerImpl]
(catalina-exec-9:null) submit async job-39, details: AsyncJobVO {id:39,
userId: 2, accountId: 2, sessionKey: null, instanceType: FirewallRule,
instanceId: null, cmd:
org.apache.cloudstack.api.command.user.firewall.DeletePortForwardingRuleCmd,
cmdOriginator: null, cmdInfo:
{"response":"json","id":"2cbaa440-c4b1-4472-a27b-28c71f7c1dcf","sessionkey":"YwEeHOyxyQa9chYMY4VtUbIQPe8\u003d","ctxUserId":"2","_":"1382444054170","ctxAccountId":"2","ctxStartEventId":"178"},
cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
processStatus: 0, resultCode: 0, result: null, initMsid: 345052229336,
completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
2013-10-22 08:14:14,153 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-44:job-39) Executing
org.apache.cloudstack.api.command.user.firewall.DeletePortForwardingRuleCmd
for job-39
2013-10-22 08:14:14,155 DEBUG [cloud.api.ApiServlet] (catalina-exec-9:null)
===END===  192.168.220.1 -- GET
 
command=deletePortForwardingRule&response=json&sessionkey=YwEeHOyxyQa9chYMY4VtUbIQPe8%3D&id=2cbaa440-c4b1-4472-a27b-28c71f7c1dcf&_=1382444054170
2013-10-22 08:14:14,172 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-44:job-39) Sync job-39 execution on object network.212
2013-10-22 08:14:14,185 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-44:job-39) job
org.apache.cloudstack.api.command.user.firewall.DeletePortForwardingRuleCmd
for job-39 was queued, processing the queue.
2013-10-22 08:14:14,200 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-44:job-39) Executing sync queue item: SyncQueueItemVO {id:18,
queueId: 19, contentType: AsyncJob, contentId: 39, lastProcessMsid:
345052229336, lastprocessNumber: 5, lastProcessTime: Tue Oct 22 08:14:14
EDT 2013, created: Tue Oct 22 08:14:14 EDT 2013}
2013-10-22 08:14:14,202 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-44:job-39) Schedule queued job-39
2013-10-22 08:14:14,241 DEBUG [cloud.async.AsyncJobManagerImpl]
(Job-Executor-45:job-39) Executing
org.apache.cloudstack.api.command.user.firewall.DeletePortForwardingRuleCmd
for job-39
2013-10-22 08:14:14,242 DEBUG [cloud.async.SyncQueueManagerImpl]
(Job-Executor-44:job-39) There is a pending process in sync queue(id: 19)
2013-10-22 08:14:14,285 DEBUG [db.Transaction.Transaction]
(Job-Executor-45:job-39) Rolling back the transaction: Time = 5 Name =
 
-AsyncJobManagerImpl$1.run:401-Executors$RunnableAdapter.call:471-FutureTask$Sync.innerRun:334-FutureTask.run:166-ThreadPoolExecutor.runWorker:1146-ThreadPoolExecutor$Worker.run:615-Thread.run:679;
called by
-Transaction.rollback:890-Transaction.removeUpTo:833-Transaction.close:657-TransactionContextBuilder.interceptException:63-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:133-RulesManagerImpl.revokePortForwardingRuleInternal:571-RulesManagerImpl.revokePortForwardingRule:562-ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept:125-DeletePortForwardingRuleCmd.execute:98-ApiDispatcher.dispatch:162-AsyncJobManagerImpl$1.run:437-Executors$RunnableAdapter.call:471
2013-10-22 08:14:14,336 ERROR [cloud.async.AsyncJobManagerImpl]
(Job-Executor-45:job-39) Unexpected exception while executing
org.apache.cloudstack.api.command.user.firewall.DeletePortForwardingRuleCmd
java.lang.NullPointerException
at
com.cloud.event.UsageEventUtils.publishUsageEvent(UsageEventUtils.java:132)
at
com.cloud.event.UsageEventUtils.publishUsageEvent(UsageEventUtils.java:73)
at
com.cloud.network.firewall.FirewallManagerImpl.revokeRule(FirewallManagerImpl.java:710)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at
com.cloud.network.rules.RulesManagerImpl.revokePortForwardingRuleInternal(RulesManagerImpl.java:571)
at
com.cloud.network.rules.RulesManagerImpl.revokePortForwardingRule(RulesManagerImpl.java:562)
at
com.cloud.utils.component.ComponentInstantiationPostProcessor$InterceptorDispatcher.intercept(ComponentInstantiationPostProcessor.java:125)
at
org.apache.cloudstack.api.command.user.firewall.DeletePortForwardingRuleCmd.execute(DeletePortForwardingRuleCmd.java:98)
at com.cloud.api.ApiDispatcher.disp

RE: Public IPs on Guest VMs within CloudStack 4.2.0

2013-10-22 Thread 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, and default gateway; and I can configure
> > the VM with a proper IP config which never finds the default gateway
> > IP.  The arp cache sees the local MAC address and incomplete for the
> gateway.
> >
> > So now I'm thinking; according to cloudstack, is the default gateway
> > plumbed on a virtual router?  If so, how does THAT route out to the world?
> >
> > I also have a /64 of IPv6 space, /96 of which I have configured in a
> > network offering which has the same upstream infrastructure situation.
> > Same lack of functionality there.
> >
> > So how do I configure my Guest real IP netblocks?  Is it okay to be
> > looking for a default gateway IP on a my provider's core router or do
> > I need to have them statically route that netblock to something like
> > the cloudstack management host?
> >
> > Of course I could also have the network offering wrong or incomplete.
> >
> > Any thoughts or pointers to documentation would be appreciated.
> >
> > I can tell I'm making progress because I keep dealing with
> > progressively higher level errors. :)
> >
> > Thanks.
> >
> > Bryan Manske
> >
> >
> > ---
> > "Earnest falsehoods left unchallenged risk being accepted as fact."
> >  -- Monty "xiphmont" Montgomery - Xiph Foundation, on the Ogg format
> > ---
> >
>
>
> ---
> "Earnest falsehoods left unchallenged risk being accepted as fact."
>  -- Monty "xiphmont" Montgomery - Xiph Foundation, on the Ogg format
> ---
>


---
"Earnest falsehoods left unchallenged risk being accepted as fact."
 -- Monty "xiphmont" Montgomery - Xiph Foundation, on the Ogg format
---


Re: ACS 4.2 shibboleth

2013-10-22 Thread Erdősi Péter

Hi,

I'll need to auth by shibboleth cause impossible to connect all ldap 
servers in eduid alliance.

So yes, some kind of plugin would be very welcome :)


Regards,
 Fazy



2013.10.22. 11:20 keltezéssel, Sebastien Goasguen írta:

On Oct 21, 2013, at 2:02 PM, Ian Duffy  wrote:


Hi,

As far as I'm aware there is no shibboleth authentication.


A shibboleth plugin would be very welcome :)


However, you can hook directly up to LDAP.


On 21 October 2013 18:27, Erdősi Péter  wrote:


Dear,

Does anyone know about working shibboleth authentication in ACS (4.2)?

Thanks,
Peter






CS4.2 Security groups - need explaination

2013-10-22 Thread Jake G.
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: ACS 4.2 shibboleth

2013-10-22 Thread Sebastien Goasguen

On Oct 21, 2013, at 2:02 PM, Ian Duffy  wrote:

> Hi,
> 
> As far as I'm aware there is no shibboleth authentication.
> 

A shibboleth plugin would be very welcome :)

> However, you can hook directly up to LDAP.
> 
> 
> On 21 October 2013 18:27, Erdősi Péter  wrote:
> 
>> Dear,
>> 
>> Does anyone know about working shibboleth authentication in ACS (4.2)?
>> 
>> Thanks,
>> Peter
>> 
>> 



Re: Bridge issues after upgrade to 4.2

2013-10-22 Thread Andrija Panic
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,
>>
>>
>


-- 

Andrija Panić
--
  http://admintweets.com
--