VR DNS open to the world by default, used in amplification attacks

2016-06-24 Thread Nux!
Hello,

Seems like we have some sort of regression, I know this was fixed at some 
point, but all my new 4.8 Cloudstack deployments with Security Groups got 
exploited and used in attacks.

Some related issue to which I've added some more info
https://issues.apache.org/jira/browse/CLOUDSTACK-6432

This needs to be fixed..

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Question regarding the Agent & reconnect()

2016-06-24 Thread ma...@exoscale.ch
Hi,

I'm reading the code of the Agent and I'm wondering why we don't allowit  to 
reconnect if it has some remaining commands in progress with the ServerResource 
since on completion of the command, the result will go nowhere, the Link being 
terminated, and the new one is not yet open. Anyone has an hint on that?

Marco

Re: Xenserver 6.5 live migration with local volumes

2016-06-24 Thread Remi Bergsma
Hi Anshul,

Thanks! Did you ever try live migrating from CloudStack with storage between 
clusters? I can't get that to work. I'll collect some details in the next days 
but was wondering if it was supposed to work. 

Regards, Remi 

Sent from my iPhone

> On 24 Jun 2016, at 06:30, Anshul Gangwar  
> wrote:
> 
> Created the PR https://github.com/apache/cloudstack/pull/1596. 
> 
> Regards,
> Anshul 
> 
> On 24/06/16, 2:33 AM, "Dave Garbus"  wrote:
> 
> Is there anybody that wants to take this on?
> 
> Thanks,
> 
> - Dave
> 
>> On May 24, 2016, at 10:57 AM, Dave Garbus  wrote:
>> 
>> I updated the issue referenced in this email 
>> (https://issues.apache.org/jira/browse/CLOUDSTACK-9353) to include 
>> CloudStack 4.8 as an affected version. If we could at least get someone 
>> assigned to it, that’d be a good start.
>> 
>> Thanks,
>> 
>> - Dave
>> 
>> On May 24, 2016, at 9:42 AM, Ivan Derbenev 
>> mailto:ivan.derbe...@tech-corps.com>> wrote:
>> 
>> Is there a way I can fix this on my installation, without recompiling jar 
>> files?
>> 
>> Regards,
>> IT engineer
>> Farheap, Russia
>> Ivan Derbenev
>> 
>> -Original Message-
>> From: Koushik Das [mailto:koushik@accelerite.com]
>> Sent: Tuesday, May 24, 2016 2:06 PM
>> To: us...@cloudstack.apache.org
>> Subject: Re: Xenserver 6.5 live migration with local volumes
>> 
>> This is a product bug and needs to be fixed. There is some serialization 
>> issue that needs fixing.
>> 
>> In the below code volumeToFiler is null as Map is not a serializable type. 
>> It needs to be replaced with getVolumeToFilerAsList() and then the data 
>> needs to be read appropriately.
>> 
>>  final Map volumeToFiler = 
>> command.getVolumeToFiler();
>> 
>> -Koushik
>> 
>> On 24/05/16, 3:23 PM, "Ivan Derbenev" 
>> mailto:ivan.derbe...@tech-corps.com>> wrote:
>> 
>> Hello!
>> After the migration onto XS 6.5 (and installing all the updates) and CS
>> 4.8 I can't migrate VMs with Local Storage
>> 
>> The issue is similar to this:
>> https://issues.apache.org/jira/browse/CLOUDSTACK-9353, but it doesn't have 
>> any solutions Any ideas?
>> 
>> Errors:
>> 
>> 2016-05-24 12:10:16,440 DEBUG [c.c.v.VirtualMachinePowerStateSyncImpl]
>> (DirectAgentCronJob-26:ctx-ab4250ff) (logid:4fa92c13) Done with process
>> of VM state report. host: 136592
>> 2016-05-24 12:10:16,450 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-132:ctx-a97d60fa) (logid:8748bffe) Looking for network
>> named cloud-main
>> 2016-05-24 12:10:16,466 DEBUG [c.c.h.x.r.XsLocalNetwork]
>> (DirectAgent-132:ctx-a97d60fa) (logid:8748bffe) Found a network called
>> cloud-main on host=10.7.130.103;
>> Network=9632020b-4d98-1bed-9ae8-477e0993cab0;
>> pif=3c7d1121-2bde-26cf-9478-18e51ffca75f
>> 2016-05-24 12:10:16,477 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-132:ctx-a97d60fa) (logid:8748bffe) Creating VLAN 1007 on
>> host 10.7.130.103 on device eth0
>> 2016-05-24 12:10:17,163 DEBUG [c.c.h.x.r.CitrixResourceBase]
>> (DirectAgent-132:ctx-a97d60fa) (logid:8748bffe) VLAN is created for
>> 1007.  The uuid is ec053fee-0426-9665-150a-77399562196b
>> 2016-05-24 12:10:17,170 WARN
>> [c.c.h.x.r.w.x.XenServer610MigrateWithStorageCommandWrapper] 
>> (DirectAgent-132:ctx-a97d60fa) (logid:8748bffe) Catch Exception 
>> java.lang.NullPointerException. Storage motion failed due to 
>> java.lang.NullPointerException java.lang.NullPointerException
>> at 
>> com.cloud.hypervisor.xenserver.resource.wrapper.xen610.XenServer610MigrateWithStorageCommandWrapper.execute(XenServer610MigrateWithStorageCommandWrapper.java:86)
>> at 
>> com.cloud.hypervisor.xenserver.resource.wrapper.xen610.XenServer610MigrateWithStorageCommandWrapper.execute(XenServer610MigrateWithStorageCommandWrapper.java:54)
>> at 
>> com.cloud.hypervisor.xenserver.resource.wrapper.xenbase.CitrixRequestWrapper.execute(CitrixRequestWrapper.java:122)
>> at 
>> com.cloud.hypervisor.xenserver.resource.CitrixResourceBase.executeRequest(CitrixResourceBase.java:1677)
>> at 
>> com.cloud.agent.manager.DirectAgentAttache$Task.runInContext(DirectAgentAttache.java:315)
>> at 
>> org.apache.cloudstack.managed.context.ManagedContextRunnable$1.run(ManagedContextRunnable.java:49)
>> at 
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext$1.call(DefaultManagedContext.java:56)
>> at 
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.callWithContext(DefaultManagedContext.java:103)
>> at 
>> org.apache.cloudstack.managed.context.impl.DefaultManagedContext.runWithContext(DefaultManagedContext.java:53)
>> at 
>> org.apache.cloudstack.managed.context.ManagedContextRunnable.run(ManagedContextRunnable.java:46)
>> at 
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>> at 
>> java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java

[GitHub] cloudstack pull request #1597: added constant for magic code

2016-06-24 Thread vcharmcaster
GitHub user vcharmcaster opened a pull request:

https://github.com/apache/cloudstack/pull/1597

added constant for magic code

"=" was used in lots of space extracted it as constant

You can merge this pull request into a Git repository by running:

$ git pull https://github.com/vcharmcaster/cloudstack master

Alternatively you can review and apply these changes as the patch at:

https://github.com/apache/cloudstack/pull/1597.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

This closes #1597


commit bddeafbf4184d822b2b3968cd55dd1b74413cf7f
Author: Vaibhav kulkarni 
Date:   2016-06-25T04:55:07Z

added constant for magic code

"=" was used in lots of space extracted it as constant




---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---