RE: Build fails on LocalTemplateDownloadTest

2015-10-30 Thread Josh Harshman
Oh wow, I feel dumb for not noticing that...
Builds fine now.  Thanks :)
Will submit a PR shortly.

From: Wido den Hollander <w...@widodh.nl>
Sent: Friday, October 30, 2015 1:01 AM
To: dev@cloudstack.apache.org
Subject: Re: Build fails on LocalTemplateDownloadTest



Josh Harshman
Cloud Engineer
Security+
Intrinium

On 29-10-15 15:36, Josh Harshman wrote:
> Build environment isn't Windows, it's Ubuntu 14.04 that I am getting this 
> build failure on.
>

Is there something special about the /tmp on your system? Eg not enough
space for example.

Wido

> 
> From: Wido den Hollander <w...@widodh.nl>
> Sent: Thursday, October 29, 2015 1:50 AM
> To: dev@cloudstack.apache.org
> Subject: Re: Build fails on LocalTemplateDownloadTest
>
>
>
> Josh Harshman
> Cloud Engineer
> Security+
> Intrinium
>
> On 29-10-15 00:34, Josh Harshman wrote:
>> Is anyone else experiencing the same behavior?
>>
>> Building off master, get the following build failure:
>>
>
> I think you are building on Windows?
>
> I send a PR for this: https://github.com/apache/cloudstack/pull/884
>
> This was reverted, but due to the code, but I merged it without the
> proper permissions.
>
> We would have to merge this one in to fix it.
>
> Wido
>
>>
>>
>> ---snip---
>>
>> [INFO] Apache CloudStack Framework - IPC . SUCCESS [5.250s]
>> [INFO] Apache CloudStack Cloud Engine  SUCCESS [0.042s]
>> [INFO] Apache CloudStack Cloud Engine API  SUCCESS [5.073s]
>> [INFO] Apache CloudStack Framework - Security  SUCCESS [2.782s]
>> [INFO] Apache CloudStack Core  FAILURE [15.655s]
>> [INFO] Apache CloudStack Agents .. SKIPPED
>> [INFO] Apache CloudStack Framework - Clustering .. SKIPPED
>> ---snip---
>>
>>
>> com.cloud.storage.template.LocalTemplateDownloaderTest.txt:
>>
>> ---
>> Test set: com.cloud.storage.template.LocalTemplateDownloaderTest
>> ---
>> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.028 sec 
>> <<< FAILURE! - in com.cloud.storage.template.LocalTemplateDownloaderTest
>> localTemplateDownloaderTest(com.cloud.storage.template.LocalTemplateDownloaderTest)
>>   Time elapsed: 0.026 sec  <<< FAILURE!
>> java.lang.AssertionError: Failed download
>> at org.junit.Assert.fail(Assert.java:88)
>> at 
>> com.cloud.storage.template.LocalTemplateDownloaderTest.localTemplateDownloaderTest(LocalTemplateDownloaderTest.java:37)
>>
>>
>>
>>
>> Josh Harshman
>>
>> Cloud Engineer
>> Security+
>>
>>
>> Intrinium
>> Tel: (509) 465-1234 x5259
>> Fax: (866) 565-4578
>> Lync / Skype: josh.harsh...@intrinium.com
>> Web: http://intrinium.com<http://intrinium.com/>
>>
>>
>> [Intrinium Long Sig Logo]<http://intrinium.com/>
>>
>>
>> [Facebook]<http://www.facebook.com/pages/intrinium/154891544582822> 
>> [Twitter] <http://twitter.com/intrinium>  [Linkedin] 
>> <http://www.linkedin.com/company/intrinium_networks_it_security?trk=fc_badge>
>>   [Youtube] <http://www.youtube.com/user/intrinium>  [Blog] 
>> <http://intrinium.com/blog/>
>>
>> Information Security and Compliance Consulting | Managed IT and Security 
>> Services | Cloud Services
>>
>>
>>
>>
>>
>> 
>>
>> This email and any files transmitted with it are confidential and intended 
>> solely for the use of the individual or entity to whom they are addressed. 
>> If you have received this email in error please notify the system manager. 
>> This message contains confidential information and is intended only for the 
>> individual named. If you are not the named addressee you should not 
>> disseminate, distribute or copy this e-mail. Please notify the sender 
>> immediately by e-mail if you have received this e-mail by mistake and delete 
>> this e-mail from your system. If you are not the intended recipient you are 
>> notified that disclosing, copying, distributing or taking any action in 
>> reliance on the contents of this information is strictly prohibited.
>>


RE: Build fails on LocalTemplateDownloadTest

2015-10-29 Thread Josh Harshman
Build environment isn't Windows, it's Ubuntu 14.04 that I am getting this build 
failure on.


From: Wido den Hollander <w...@widodh.nl>
Sent: Thursday, October 29, 2015 1:50 AM
To: dev@cloudstack.apache.org
Subject: Re: Build fails on LocalTemplateDownloadTest



Josh Harshman
Cloud Engineer
Security+
Intrinium

On 29-10-15 00:34, Josh Harshman wrote:
> Is anyone else experiencing the same behavior?
>
> Building off master, get the following build failure:
>

I think you are building on Windows?

I send a PR for this: https://github.com/apache/cloudstack/pull/884

This was reverted, but due to the code, but I merged it without the
proper permissions.

We would have to merge this one in to fix it.

Wido

>
>
> ---snip---
>
> [INFO] Apache CloudStack Framework - IPC . SUCCESS [5.250s]
> [INFO] Apache CloudStack Cloud Engine  SUCCESS [0.042s]
> [INFO] Apache CloudStack Cloud Engine API  SUCCESS [5.073s]
> [INFO] Apache CloudStack Framework - Security  SUCCESS [2.782s]
> [INFO] Apache CloudStack Core  FAILURE [15.655s]
> [INFO] Apache CloudStack Agents .. SKIPPED
> [INFO] Apache CloudStack Framework - Clustering .. SKIPPED
> ---snip---
>
>
> com.cloud.storage.template.LocalTemplateDownloaderTest.txt:
>
> ---
> Test set: com.cloud.storage.template.LocalTemplateDownloaderTest
> ---
> Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.028 sec <<< 
> FAILURE! - in com.cloud.storage.template.LocalTemplateDownloaderTest
> localTemplateDownloaderTest(com.cloud.storage.template.LocalTemplateDownloaderTest)
>   Time elapsed: 0.026 sec  <<< FAILURE!
> java.lang.AssertionError: Failed download
> at org.junit.Assert.fail(Assert.java:88)
> at 
> com.cloud.storage.template.LocalTemplateDownloaderTest.localTemplateDownloaderTest(LocalTemplateDownloaderTest.java:37)
>
>
>
>
> Josh Harshman
>
> Cloud Engineer
> Security+
>
>
> Intrinium
> Tel: (509) 465-1234 x5259
> Fax: (866) 565-4578
> Lync / Skype: josh.harsh...@intrinium.com
> Web: http://intrinium.com<http://intrinium.com/>
>
>
> [Intrinium Long Sig Logo]<http://intrinium.com/>
>
>
> [Facebook]<http://www.facebook.com/pages/intrinium/154891544582822> [Twitter] 
> <http://twitter.com/intrinium>  [Linkedin] 
> <http://www.linkedin.com/company/intrinium_networks_it_security?trk=fc_badge> 
>  [Youtube] <http://www.youtube.com/user/intrinium>  [Blog] 
> <http://intrinium.com/blog/>
>
> Information Security and Compliance Consulting | Managed IT and Security 
> Services | Cloud Services
>
>
>
>
>
> 
>
> This email and any files transmitted with it are confidential and intended 
> solely for the use of the individual or entity to whom they are addressed. If 
> you have received this email in error please notify the system manager. This 
> message contains confidential information and is intended only for the 
> individual named. If you are not the named addressee you should not 
> disseminate, distribute or copy this e-mail. Please notify the sender 
> immediately by e-mail if you have received this e-mail by mistake and delete 
> this e-mail from your system. If you are not the intended recipient you are 
> notified that disclosing, copying, distributing or taking any action in 
> reliance on the contents of this information is strictly prohibited.
>


RE: Hyper-V clock on KVM node - CLOUDSTACK-8978

2015-10-29 Thread Josh Harshman
I think I figured it out.
Started working on a subtask CLOUDSTACK-9004 to re-factor and add some needed 
features to HyperVEnlightenmentFeatureDef.
I'll submit a PR for it once I finish and then start working on the 
implementation mentioned in the parent task CLOUDSTACK-8978

From: Wido den Hollander <w...@widodh.nl>
Sent: Thursday, October 29, 2015 1:48 AM
To: dev@cloudstack.apache.org
Subject: Re: Hyper-V clock on KVM node - CLOUDSTACK-8978



Josh Harshman
Cloud Engineer
Security+
Intrinium

On 27-10-15 23:42, Josh Harshman wrote:
> I noticed around line 1949 in LibvirtComputingResource.java, there is some 
> commented out code for enabling hyperV enlightenment.  Was there an issue 
> with enabling this behavior?
>

I don't know why this was disabled. Maybe somebody else knows, but I
can't tell for sure.

Wido

> Code Snip:
> //for rhel 6.5 and above, hyperv enlightment feature is added
> /*
>   * if (vmTO.getOs().contains("Windows Server 2008") && hostOsVersion != null 
> && ((hostOsVersion.first() == 6 && hostOsVersion.second()   >= 5) || 
> (hostOsVersion.first() >= 7))) {
>*LibvirtVMDef.HyperVEnlightenmentFeatureDef hyv = new 
> LibvirtVMDef.HyperVEnlightenmentFeatureDef();
>*hyv.setRelaxed(true);
>*features.addHyperVFeature(hyv);
>* }
>*/
>
>
>
> 
> From: Wido den Hollander <w...@widodh.nl>
> Sent: Monday, October 26, 2015 9:05 AM
> To: dev@cloudstack.apache.org
> Subject: Re: Hyper-V clock on KVM node - CLOUDSTACK-8978
>
>
>
> Josh Harshman
> Cloud Engineer
> Security+
> Intrinium
>
> On 24-10-15 02:15, Josh Harshman wrote:
>> Just looking for some feedback on this idea for an improvement.
>>
>>
>> Currently, for any windows guest OS, we set RTC for the clock source. This 
>> seems to contribute to clock-drift issues leading to BSODs on Windows Server 
>> 2008 R2 Guests.
>>
>> I believe a possible improvement would be to set Windows guests to use the 
>> hyper-v clock. To do this we will need CloudStack to generate the 
>> appropriate Libvirt XML which would look somewhat like the following:
>>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>>
>>
>> I believe the following code snippet from LibvirtComputingResource.java 
>> could be a starting place to implement this.
>>
>>
>> if (vmTO.getOs().startsWith("Windows")) {
>> clock.setClockOffset(ClockDef.ClockOffset.LOCALTIME);
>> clock.setTimer("rtc", "catchup", null);
>>
>>
>> Let me know what you all think about this change.
>> Is there a better place / way to implement this?
>>
>
> That would indeed be the place to fix this. It's currently rather
> hardcoded, but that would be the place to go.
>
> Wido
>
>>
>>
>>
>>
>> Josh Harshman
>>
>> Cloud Engineer
>> Security+
>>
>>
>> Intrinium
>> Tel: (509) 465-1234 x5259
>> Fax: (866) 565-4578
>> Lync / Skype: josh.harsh...@intrinium.com
>> Web: http://intrinium.com<http://intrinium.com/>
>>
>>
>> [Intrinium Long Sig Logo]<http://intrinium.com/>
>>
>>
>> [Facebook]<http://www.facebook.com/pages/intrinium/154891544582822> 
>> [Twitter] <http://twitter.com/intrinium>  [Linkedin] 
>> <http://www.linkedin.com/company/intrinium_networks_it_security?trk=fc_badge>
>>   [Youtube] <http://www.youtube.com/user/intrinium>  [Blog] 
>> <http://intrinium.com/blog/>
>>
>> Information Security and Compliance Consulting | Managed IT and Security 
>> Services | Cloud Services
>>
>>
>>
>>
>>
>> 
>>
>> This email and any files transmitted with it are confidential and intended 
>> solely for the use of the individual or entity to whom they are addressed. 
>> If you have received this email in error please notify the system manager. 
>> This message contains confidential information and is intended only for the 
>> individual named. If you are not the named addressee you should not 
>> disseminate, distribute or copy this e-mail. Please notify the sender 
>> immediately by e-mail if you have received this e-mail by mistake and delete 
>> this e-mail from your system. If you are not the intended recipient you are 
>> notified that disclosing, copying, distributing or taking any action in 
>> reliance on the contents of this information is strictly prohibited.
>>


Build fails on LocalTemplateDownloadTest

2015-10-28 Thread Josh Harshman
Is anyone else experiencing the same behavior?

Building off master, get the following build failure:



---snip---

[INFO] Apache CloudStack Framework - IPC . SUCCESS [5.250s]
[INFO] Apache CloudStack Cloud Engine  SUCCESS [0.042s]
[INFO] Apache CloudStack Cloud Engine API  SUCCESS [5.073s]
[INFO] Apache CloudStack Framework - Security  SUCCESS [2.782s]
[INFO] Apache CloudStack Core  FAILURE [15.655s]
[INFO] Apache CloudStack Agents .. SKIPPED
[INFO] Apache CloudStack Framework - Clustering .. SKIPPED
---snip---


com.cloud.storage.template.LocalTemplateDownloaderTest.txt:

---
Test set: com.cloud.storage.template.LocalTemplateDownloaderTest
---
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.028 sec <<< 
FAILURE! - in com.cloud.storage.template.LocalTemplateDownloaderTest
localTemplateDownloaderTest(com.cloud.storage.template.LocalTemplateDownloaderTest)
  Time elapsed: 0.026 sec  <<< FAILURE!
java.lang.AssertionError: Failed download
at org.junit.Assert.fail(Assert.java:88)
at 
com.cloud.storage.template.LocalTemplateDownloaderTest.localTemplateDownloaderTest(LocalTemplateDownloaderTest.java:37)




Josh Harshman

Cloud Engineer
Security+


Intrinium
Tel: (509) 465-1234 x5259
Fax: (866) 565-4578
Lync / Skype: josh.harsh...@intrinium.com
Web: http://intrinium.com<http://intrinium.com/>


[Intrinium Long Sig Logo]<http://intrinium.com/>


[Facebook]<http://www.facebook.com/pages/intrinium/154891544582822> [Twitter] 
<http://twitter.com/intrinium>  [Linkedin] 
<http://www.linkedin.com/company/intrinium_networks_it_security?trk=fc_badge>  
[Youtube] <http://www.youtube.com/user/intrinium>  [Blog] 
<http://intrinium.com/blog/>

Information Security and Compliance Consulting | Managed IT and Security 
Services | Cloud Services







This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the system manager. This 
message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. If you are not the intended recipient you are 
notified that disclosing, copying, distributing or taking any action in 
reliance on the contents of this information is strictly prohibited.


RE: Hyper-V clock on KVM node - CLOUDSTACK-8978

2015-10-27 Thread Josh Harshman
I noticed around line 1949 in LibvirtComputingResource.java, there is some 
commented out code for enabling hyperV enlightenment.  Was there an issue with 
enabling this behavior?

Code Snip:
//for rhel 6.5 and above, hyperv enlightment feature is added
/*
  * if (vmTO.getOs().contains("Windows Server 2008") && hostOsVersion != null 
&& ((hostOsVersion.first() == 6 && hostOsVersion.second()   >= 5) || 
(hostOsVersion.first() >= 7))) {
   *LibvirtVMDef.HyperVEnlightenmentFeatureDef hyv = new 
LibvirtVMDef.HyperVEnlightenmentFeatureDef();
   *hyv.setRelaxed(true);
   *features.addHyperVFeature(hyv);
   * }
   */




From: Wido den Hollander <w...@widodh.nl>
Sent: Monday, October 26, 2015 9:05 AM
To: dev@cloudstack.apache.org
Subject: Re: Hyper-V clock on KVM node - CLOUDSTACK-8978



Josh Harshman
Cloud Engineer
Security+
Intrinium

On 24-10-15 02:15, Josh Harshman wrote:
> Just looking for some feedback on this idea for an improvement.
>
>
> Currently, for any windows guest OS, we set RTC for the clock source. This 
> seems to contribute to clock-drift issues leading to BSODs on Windows Server 
> 2008 R2 Guests.
>
> I believe a possible improvement would be to set Windows guests to use the 
> hyper-v clock. To do this we will need CloudStack to generate the appropriate 
> Libvirt XML which would look somewhat like the following:
>
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>
>
> I believe the following code snippet from LibvirtComputingResource.java could 
> be a starting place to implement this.
>
>
> if (vmTO.getOs().startsWith("Windows")) {
> clock.setClockOffset(ClockDef.ClockOffset.LOCALTIME);
> clock.setTimer("rtc", "catchup", null);
>
>
> Let me know what you all think about this change.
> Is there a better place / way to implement this?
>

That would indeed be the place to fix this. It's currently rather
hardcoded, but that would be the place to go.

Wido

>
>
>
>
> Josh Harshman
>
> Cloud Engineer
> Security+
>
>
> Intrinium
> Tel: (509) 465-1234 x5259
> Fax: (866) 565-4578
> Lync / Skype: josh.harsh...@intrinium.com
> Web: http://intrinium.com<http://intrinium.com/>
>
>
> [Intrinium Long Sig Logo]<http://intrinium.com/>
>
>
> [Facebook]<http://www.facebook.com/pages/intrinium/154891544582822> [Twitter] 
> <http://twitter.com/intrinium>  [Linkedin] 
> <http://www.linkedin.com/company/intrinium_networks_it_security?trk=fc_badge> 
>  [Youtube] <http://www.youtube.com/user/intrinium>  [Blog] 
> <http://intrinium.com/blog/>
>
> Information Security and Compliance Consulting | Managed IT and Security 
> Services | Cloud Services
>
>
>
>
>
> 
>
> This email and any files transmitted with it are confidential and intended 
> solely for the use of the individual or entity to whom they are addressed. If 
> you have received this email in error please notify the system manager. This 
> message contains confidential information and is intended only for the 
> individual named. If you are not the named addressee you should not 
> disseminate, distribute or copy this e-mail. Please notify the sender 
> immediately by e-mail if you have received this e-mail by mistake and delete 
> this e-mail from your system. If you are not the intended recipient you are 
> notified that disclosing, copying, distributing or taking any action in 
> reliance on the contents of this information is strictly prohibited.
>


Hyper-V clock on KVM node - CLOUDSTACK-8978

2015-10-23 Thread Josh Harshman
Just looking for some feedback on this idea for an improvement.


Currently, for any windows guest OS, we set RTC for the clock source. This 
seems to contribute to clock-drift issues leading to BSODs on Windows Server 
2008 R2 Guests.

I believe a possible improvement would be to set Windows guests to use the 
hyper-v clock. To do this we will need CloudStack to generate the appropriate 
Libvirt XML which would look somewhat like the following:













I believe the following code snippet from LibvirtComputingResource.java could 
be a starting place to implement this.


if (vmTO.getOs().startsWith("Windows")) {
clock.setClockOffset(ClockDef.ClockOffset.LOCALTIME);
clock.setTimer("rtc", "catchup", null);


Let me know what you all think about this change.
Is there a better place / way to implement this?





Josh Harshman

Cloud Engineer
Security+


Intrinium
Tel: (509) 465-1234 x5259
Fax: (866) 565-4578
Lync / Skype: josh.harsh...@intrinium.com
Web: http://intrinium.com<http://intrinium.com/>


[Intrinium Long Sig Logo]<http://intrinium.com/>


[Facebook]<http://www.facebook.com/pages/intrinium/154891544582822> [Twitter] 
<http://twitter.com/intrinium>  [Linkedin] 
<http://www.linkedin.com/company/intrinium_networks_it_security?trk=fc_badge>  
[Youtube] <http://www.youtube.com/user/intrinium>  [Blog] 
<http://intrinium.com/blog/>

Information Security and Compliance Consulting | Managed IT and Security 
Services | Cloud Services







This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the system manager. This 
message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. If you are not the intended recipient you are 
notified that disclosing, copying, distributing or taking any action in 
reliance on the contents of this information is strictly prohibited.


goal failed on cloudstack-service-console-proxy-rdpclient

2015-09-18 Thread Josh Harshman
Anyone else experience this error when building from source?


[ERROR] Failed to execute goal 
org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on 
project cloudstack-service-console-proxy-rdpclient: There are test failures.
[ERROR]
[ERROR] Please refer to 
/home/jharshman/apache-cloudstack-4.5.2-src/services/console-proxy-rdp/rdpconsole/target/surefire-reports
 for the individual test results.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e 
switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please 
read the following articles:
[ERROR] [Help 1] 
http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn  -rf :cloudstack-service-console-proxy-rdpclient





Josh Harshman

Cloud Engineer


Intrinium
Tel: (509) 465-1234 x5259
Fax: (866) 565-4578
Lync / Skype: josh.harsh...@intrinium.com
Web: http://intrinium.com<http://intrinium.com/>


[Intrinium Long Sig Logo]<http://intrinium.com/>


[Facebook]<http://www.facebook.com/pages/intrinium/154891544582822> [Twitter] 
<http://twitter.com/intrinium>  [Linkedin] 
<http://www.linkedin.com/company/intrinium_networks_it_security?trk=fc_badge>  
[Youtube] <http://www.youtube.com/user/intrinium>  [Blog] 
<http://intrinium.com/blog/>

Information Security and Compliance Consulting | Managed IT and Security 
Services | Cloud Services







This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the system manager. This 
message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. If you are not the intended recipient you are 
notified that disclosing, copying, distributing or taking any action in 
reliance on the contents of this information is strictly prohibited.


RE: Discuss reserving memory on KVM hypervisors ref: CLOUDSTACK-8678

2015-08-28 Thread Josh Harshman
Wido -
Looks like the problem resides in the logic that does the detection of the host 
resources.  It looks like most, if not all, the KVM host detection occurs in 
the LibvirtComputingResource class.  Here I can modify it so it will take the 
value stored in dom0MinMem into account when calculating the ram available.

I've forked the repo and am working on a fix.
Does anyone have anything to add?  Suggestions?


From: Wido den Hollander w...@widodh.nl
Sent: Friday, August 28, 2015 12:38 AM
To: dev@cloudstack.apache.org
Subject: Re: Discuss reserving memory on KVM hypervisors ref: CLOUDSTACK-8678



Josh Harshman
Cloud Engineer

Intrinium

On 27-08-15 18:36, Josh Harshman wrote:
 In a KVM cluster, CloudStack sees 100% of the compute node's RAM and treats 
 it as allocatable space which eventually leads to OOM killing guests.


 There is an agent property named host.reserved.mem.mb which is able to be set 
 in the agent.properties file and passed to the management server.  This value 
 is stored as dom0MinMem, however, it appears to be ignored.


 If we could tweak the host capacity calculation and have it take this into 
 account, I believe that would be ideal.


 Side note: the variable dom0MinMem is declared as an int and can be 
 overflowed. Suggested change would be make it a long and add a check 
 especially if we are going to make this a configurable parameter.



Yes, that seems like a sane thing to do. We should be able to say that
eg 8GB of memory should stay available for the HV.

Don't know where the problem lies though. A PR is welcome :)

Wido



 Josh Harshman

 Cloud Engineer


 Intrinium
 Tel: (509) 465-1234 x5259
 Fax: (866) 565-4578
 Lync / Skype: josh.harsh...@intrinium.com
 Web: http://intrinium.comhttp://intrinium.com/


 [Intrinium Long Sig Logo]http://intrinium.com/


 [Facebook]http://www.facebook.com/pages/intrinium/154891544582822 [Twitter] 
 http://twitter.com/intrinium  [Linkedin] 
 http://www.linkedin.com/company/intrinium_networks_it_security?trk=fc_badge 
  [Youtube] http://www.youtube.com/user/intrinium  [Blog] 
 http://intrinium.com/blog/

 Information Security and Compliance Consulting | Managed IT and Security 
 Services | Cloud Services





 

 This email and any files transmitted with it are confidential and intended 
 solely for the use of the individual or entity to whom they are addressed. If 
 you have received this email in error please notify the system manager. This 
 message contains confidential information and is intended only for the 
 individual named. If you are not the named addressee you should not 
 disseminate, distribute or copy this e-mail. Please notify the sender 
 immediately by e-mail if you have received this e-mail by mistake and delete 
 this e-mail from your system. If you are not the intended recipient you are 
 notified that disclosing, copying, distributing or taking any action in 
 reliance on the contents of this information is strictly prohibited.



Discuss reserving memory on KVM hypervisors ref: CLOUDSTACK-8678

2015-08-27 Thread Josh Harshman
In a KVM cluster, CloudStack sees 100% of the compute node's RAM and treats it 
as allocatable space which eventually leads to OOM killing guests.


There is an agent property named host.reserved.mem.mb which is able to be set 
in the agent.properties file and passed to the management server.  This value 
is stored as dom0MinMem, however, it appears to be ignored.


If we could tweak the host capacity calculation and have it take this into 
account, I believe that would be ideal.


Side note: the variable dom0MinMem is declared as an int and can be overflowed. 
Suggested change would be make it a long and add a check especially if we are 
going to make this a configurable parameter.




Josh Harshman

Cloud Engineer


Intrinium
Tel: (509) 465-1234 x5259
Fax: (866) 565-4578
Lync / Skype: josh.harsh...@intrinium.com
Web: http://intrinium.comhttp://intrinium.com/


[Intrinium Long Sig Logo]http://intrinium.com/


[Facebook]http://www.facebook.com/pages/intrinium/154891544582822 [Twitter] 
http://twitter.com/intrinium  [Linkedin] 
http://www.linkedin.com/company/intrinium_networks_it_security?trk=fc_badge  
[Youtube] http://www.youtube.com/user/intrinium  [Blog] 
http://intrinium.com/blog/

Information Security and Compliance Consulting | Managed IT and Security 
Services | Cloud Services







This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed. If 
you have received this email in error please notify the system manager. This 
message contains confidential information and is intended only for the 
individual named. If you are not the named addressee you should not 
disseminate, distribute or copy this e-mail. Please notify the sender 
immediately by e-mail if you have received this e-mail by mistake and delete 
this e-mail from your system. If you are not the intended recipient you are 
notified that disclosing, copying, distributing or taking any action in 
reliance on the contents of this information is strictly prohibited.