AW: CloudStack related changes in Ansible 2.3

2017-04-12 Thread Jochim, Ingo
Thanks a lot.

Regards,
Ingo

Von: Rene Moser [m...@renemoser.net]
Gesendet: Mittwoch, 12. April 2017 17:12
An: users@cloudstack.apache.org; dev
Betreff: CloudStack related changes in Ansible 2.3

Hi CloudStack users

Ansible 2.3 is about to be released, I would like to summarize the
CloudStack related features and changes in this release.


New modules
---

- cs_host
- cs_nic
- cs_region
- cs_role
- cs_vpc

Examples and usage for these modules can be found in the docs,
http://docs.ansible.com/ansible/list_of_cloud_modules.html#cloudstack as
usual.


Docs


The CloudStack guide
http://docs.ansible.com/ansible/guide_cloudstack.html has been updated,
note the new feature "Environment Variables"
http://docs.ansible.com/ansible/guide_cloudstack.html#environment-variables


VPC
---

The VPC support has been improved in the related modules, but there is
still some work to do.


Integration tests
-

Soon, CloudStack related new Ansible PRs will be automatically tested
(~1.000 tasks) on a CI against a CloudStack Simulator running 4.9.x.


Future Module Development
-

Due some other side projects of mine (writing books takes more time than
one would might think), development of new modules is lagging a bit. One
module (cs_serviceoffer) is currently WIP
https://github.com/ansible/ansible/pull/19041.

But no worries, new modules are planed:
- cs_diskoffer
- modules for VPN setup


Cloud Role
--

At SWISS TXT, we created a Ansible role for setting up VMs in a
cloudstack cloud with advanced networking for different customer
projects, The role is open source (BSD) and can be found on GitHub
https://github.com/swisstxt/ansible-role-cloud-infra

Feel free to fork and improve it.


Goal of my Ansible CloudStack Project
-

I often get ask, why I am doing it.

My goal is to not only install and upgrade CloudStack by Ansible (that
is relatively easy... and can even be done without that much cloudstack
api interaction) but configure _and_ maintaining a cloud (basic or
advanced networking) in a reliable way!

It will install the OS and install cloudstack management server, install
the OS on the hosts, setup hypversisors, create zones, pods, clusters,
accounts, users, add configured hosts to cloudstack all this by a single
run and the best of it, you can re-run it safely again and again,
without fear breaking anything.

Have to add a new host? No problem, put the hardware in the rack and
connect it to the net, ansible will take care on the next run: it can be
that simple.

Also note, ansible can manage your network switches, routers and
firewalls too! http://docs.ansible.com/ansible/list_of_network_modules.html

The possibilities are endless...

Thanks
René


















issue downloading a copy template to different zone

2017-04-12 Thread Marco Giovannini
Hi guys,


I'm using the cloustack 4.6.2 and I'm hitting the following issue.

I created a new  secondary storage:

add imagestore zoneid=--xxx-xxx name=_Secondary_SATA1
provider=NFS url=nfs://ix/vol/x_Secondary_SATA1/ESX


When I create a new template which end up on this SS and I try to download
I get an error /userdata/x   access denied.


After investigating I found out the issue.


During the SS creation the field parent in the image_store table is not
initialized leaving the default value to NULL.


This value is used by the SSVM  in the path of the  link to download the
template.


Broken link:

lrwxrwxrwx 1 root root  84 Apr  5 09:06
e55f5761-2dab-4095-b426-fe72c296150e.ova ->
/mnt/SecStorage/null/template/tmpl/875/1603/8ce602e5-e920-335a-bb24-b9595722a49f.ova


Working link:

lrwxrwxrwx 1 root root 116 Jan 23 11:01
e64820a2-dc45-48f6-b17e-bdeb6d47e650.ova ->
/mnt/SecStorage/5597b498-9507-3df2-ad46-ca9da35c7f7d/template/tmpl/173/1516/7f07df49-a26f-3833-85da-68c89c97daa



This can be fixed by updating the table manually and fixing the broken link
created so far but it will reappear again when as new SS will be created.


Does anyone have this issue or know if it is fixed an next releases ?


I didn't find anyone reporting it so far.



Regards,
Marco


CloudStack related changes in Ansible 2.3

2017-04-12 Thread Rene Moser
Hi CloudStack users

Ansible 2.3 is about to be released, I would like to summarize the
CloudStack related features and changes in this release.


New modules
---

- cs_host
- cs_nic
- cs_region
- cs_role
- cs_vpc

Examples and usage for these modules can be found in the docs,
http://docs.ansible.com/ansible/list_of_cloud_modules.html#cloudstack as
usual.


Docs


The CloudStack guide
http://docs.ansible.com/ansible/guide_cloudstack.html has been updated,
note the new feature "Environment Variables"
http://docs.ansible.com/ansible/guide_cloudstack.html#environment-variables


VPC
---

The VPC support has been improved in the related modules, but there is
still some work to do.


Integration tests
-

Soon, CloudStack related new Ansible PRs will be automatically tested
(~1.000 tasks) on a CI against a CloudStack Simulator running 4.9.x.


Future Module Development
-

Due some other side projects of mine (writing books takes more time than
one would might think), development of new modules is lagging a bit. One
module (cs_serviceoffer) is currently WIP
https://github.com/ansible/ansible/pull/19041.

But no worries, new modules are planed:
- cs_diskoffer
- modules for VPN setup


Cloud Role
--

At SWISS TXT, we created a Ansible role for setting up VMs in a
cloudstack cloud with advanced networking for different customer
projects, The role is open source (BSD) and can be found on GitHub
https://github.com/swisstxt/ansible-role-cloud-infra

Feel free to fork and improve it.


Goal of my Ansible CloudStack Project
-

I often get ask, why I am doing it.

My goal is to not only install and upgrade CloudStack by Ansible (that
is relatively easy... and can even be done without that much cloudstack
api interaction) but configure _and_ maintaining a cloud (basic or
advanced networking) in a reliable way!

It will install the OS and install cloudstack management server, install
the OS on the hosts, setup hypversisors, create zones, pods, clusters,
accounts, users, add configured hosts to cloudstack all this by a single
run and the best of it, you can re-run it safely again and again,
without fear breaking anything.

Have to add a new host? No problem, put the hardware in the rack and
connect it to the net, ansible will take care on the next run: it can be
that simple.

Also note, ansible can manage your network switches, routers and
firewalls too! http://docs.ansible.com/ansible/list_of_network_modules.html

The possibilities are endless...

Thanks
René


















Re: OS Type: Windows Server 2016 - CS 4.9.2

2017-04-12 Thread Pierre-Luc Dion
Hi David,

When using pre xenserver 7, CloudStack deploy Windows 2016 vm as "Other (64
bit)".
I've made some test with XenServer 7.1  and Windows 2016 are default HVM
when using the new xenserver template  for Windows 2016.
My understanding is that if you run a VM in XenServer as HVM and you have
xentools installed and up-to-date, your VM run in PVHVM mode which seems to
be the best of both world.

The coming release of ACS (4.10) should have updated ostype so windows 2016
wouid use Windows 2016 template in xenserver 7+ instead of "Other (64 bit)".





On Wed, Apr 12, 2017 at 4:14 AM, David Amorín 
wrote:

> Hi all,
> In our test environment based on CS 4.9.2 and XS 7.0, we are deploying VMs
> with Windows Server 2016 as guest installation, using OS Type: "Other
> (64-bit)" and so far everything is working fine. We understand that using
> this option we are deploying full virtualized (HVM)
>
>
> Do you know if there is any issue (error, performance, etc.) for using
> "Other (64-bit))=HVM for Windows Server 2016 VMs?
>
>
> Do you know when will be available Windows Server 2016 as OS Type?
>
>
> Thanks
>
>
> David
>
>


Re: Template/iso

2017-04-12 Thread Gian Paolo Buono
Hi,

I have resolved restart service cloud on SSVM

Bye

On 04/11/2017 10:39 PM, Gian Paolo Buono wrote:


I have find many template from this query:

select * from template_store_ref\G

in status Creating and Allocated.  I dont think it is a good thing.
 Bye
On 04/11/2017 10:12 PM, Gian Paolo Buono wrote:

Hi all,

I have a trouble with a Template/iso, the template is in stuck and when a try 
to delete:

2017-04-11 21:59:01,084 ERROR [c.c.a.ApiAsyncJobDispatcher] 
(API-Job-Executor-66:ctx-e3b54e00 job-55008) (logid:b4253eaa) Unexpected 
exception while executing 
org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd
com.cloud.utils.exception.CloudRuntimeException: Failed to update state
at 
org.apache.cloudstack.storage.image.store.TemplateObject.processEvent(TemplateObject.java:174)
at 
org.apache.cloudstack.storage.image.TemplateServiceImpl.deleteTemplateAsync(TemplateServiceImpl.java:698)
at 
com.cloud.template.HypervisorTemplateAdapter.delete(HypervisorTemplateAdapter.java:401)
at 
com.cloud.template.TemplateManagerImpl.deleteIso(TemplateManagerImpl.java:1219)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at 
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at 
org.apache.cloudstack.network.contrail.management.EventUtils$EventInterceptor.invoke(EventUtils.java:106)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at 
com.cloud.event.ActionEventInterceptor.invoke(ActionEventInterceptor.java:51)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at 
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
at 
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at 
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy185.deleteIso(Unknown Source)
at 
org.apache.cloudstack.api.command.user.iso.DeleteIsoCmd.execute(DeleteIsoCmd.java:114)
at com.cloud.api.ApiDispatcher.dispatch(ApiDispatcher.java:150)
at 
com.cloud.api.ApiAsyncJobDispatcher.runJob(ApiAsyncJobDispatcher.java:108)
at 
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.runInContext(AsyncJobManagerImpl.java:554)
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 
http://mail01.gesca.it:32224/?dmVyPTEuMDAxJiY4NzYxMTlkN2I0NTgzNjBkNj01OEVEMzhCRF8yMzAxXzE0MV8xJiY2YTdmZGQ4N2U1NGJiNGE9MTIyMyYmdXJsPW9yZyUyRWFwYWNoZSUyRWNsb3Vkc3RhY2slMkVtYW5hZ2VkJTJFY29udGV4dCUyRU1hbmFnZWRDb250ZXh0UnVubmFibGUlMkVydW4=(ManagedContextRunnable.java:46)
at 
org.apache.cloudstack.framework.jobs.impl.AsyncJobManagerImpl$5.run(AsyncJobManagerImpl.java:502)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at 
http://mail01.gesca.it:32224/?dmVyPTEuMDAxJiY4YjYzMTVkN2EyNTkyNzAyNz01OEVEMzhCRF8yMzAxXzE0MV8xJiYxZTI5NWMwNmI0ZmE4NDg9MTIyMyYmdXJsPWphdmElMkV1dGlsJTJFY29uY3VycmVudCUyRUZ1dHVyZVRhc2slMkVydW4=(FutureTask.java:266)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at 
http://mail01.gesca.it:32224/?dmVyPTEuMDAxJiY4ZTZjMDBjM2ZlNDcyMzAyNj01OEVEMzhCRF8yMzAxXzE0MV8xJiYyZTI4N2RkNmQ1ZmJiNDk9MTIyMyYmdXJsPWphdmElMkVsYW5nJTJFVGhyZWFkJTJFcnVu(Thread.java:745)
Caused by: com.cloud.utils.fsm.NoTransitionException: Unable to transition to a 
new state from Creating via DestroyRequested
at com.cloud.utils.fsm.StateMachine2.getTransition(StateMachine2.java:108)
at com.cloud.utils.fsm.StateMachine2.getNextState(StateMachine2.java:94)
at com.cloud.utils.fsm.StateMachine2.transitTo(StateMachine2.java:124)

thanks, bye
Gian Paolo






RE: Remote VPN not working on 4.7.1

2017-04-12 Thread Sean Lair
Hello, I remember that issue.  It was fixed by this pull request:

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

This is a related bug that hasn't been committed yet:

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


From: Vijay Sachdeva [mailto:vijay.sachd...@indiqus.com]
Sent: Monday, April 10, 2017 3:56 AM
To: users@cloudstack.apache.org
Subject: Remote VPN not working on 4.7.1

Dear Team,

Trying to enable to Remote VPN in cloudstack 4.7.1, it gets create but in VR 
IPsec service shows stopped. Once you manually start the Ipsec service in VR, 
remote VPN gets connected. But there is also one thing when you disable VPN 
from UI and again re-enable it, remote VPN stops working.

Any help or suggestion is highly appreciated..!!

Thanks

Vijay Sachdeva
Consultant - Cloud & Virtualisation

[cid:image001.png@01D2B367.75D914D0]
A-98, LGF, C.R.Park, New Delhi - 110019
24x7 011-40551409 | M +918826699409
www.indiqus.com



Re: VMware workstation integration with cloudstack

2017-04-12 Thread Felipe Arturo Polanco
You may have better luck with nested virtualization for your VMs in
workstation, enable VT-x in CPU settings for each host server and use KVM
inside the VM.

On Wed, Apr 12, 2017 at 9:02 AM, Sergey Levitskiy <
sergey.levits...@autodesk.com> wrote:

> Vmware workstation is not a supported hypervisor for Cloudstack. You need
> VMware ESX that is managed by vCenter.
>
>   You can see detailed requirements here:
>
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.9/
> hypervisor/vsphere.html#system-requirements-for-vsphere-hosts
>
>
>


Re: VMware workstation integration with cloudstack

2017-04-12 Thread Sergey Levitskiy
Vmware workstation is not a supported hypervisor for Cloudstack. You need 
VMware ESX that is managed by vCenter.

  You can see detailed requirements here:

http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.9/hypervisor/vsphere.html#system-requirements-for-vsphere-hosts




VMware workstation integration with cloudstack

2017-04-12 Thread Ahmet Orkun Gedik
Hi,

I am developing a private cloud application on Cloudstack framework. I 
installed Cloudstack 4.10.0.0 on Windows environment and integration with 
VMware Workstation 12.5.4 on the same physical host.

I faced while adding a new VMware cluster into zone definitions, as below;
[cid:image003.png@01D2B3A4.50815F70]

After that I face with the error, below;

[cid:image008.png@01D2B3A4.1A1C33B0]

Please note that I applied the steps in the link, below;

https://cwiki.apache.org/confluence/display/CLOUDSTACK/Hypervisor+VMWare

What may cause the problem?

Saygılarımla/Best regards/Mit freundlichen Grüßen,

Orkun Gedik
SAP Teknoloji Alan Lideri / SAP Technology Principal Consultant
Veri Merkezi Çözüm ve Hizmetleri / Datacenter Solutions and Services
ERP Uygulamaları Birimi / ERP Applications
[Description: Description: Description: logo3]
KoçSistem Bilgi ve İletişim Hizmetleri A.Ş.
E-Posta: orkun.ge...@kocsistem.com.tr
   ksvm...@kocsistem.com.tr


[cid:image002.jpg@01D2B3A4.533F6E00]

[SAP_Certified_inSAPHANAOperations_scrn_R]  
[http://ww1.prweb.com/prfiles/2012/05/11/9498942/hosting-sap-logo.png] 

   
[http://www.monoclesys.com/wp-content/uploads/2014/02/SAP_Certified_Monocle_SMaMS.png]
 

   [cid:image003.png@01D282EC.86C86B20]


Bilgi Gizlilik Sınıflandırması : Genel Paylaşım
Information Confidentiality : Public Use

[https://www.kocsistem.com.tr/tr/PublishingImages/email-01.jpg] 
[https://www.kocsistem.com.tr/tr/PublishingImages/email-02.jpg]  

[https://www.kocsistem.com.tr/tr/PublishingImages/email-04-01.jpg] 
  
[https://www.kocsistem.com.tr/tr/PublishingImages/email-04-03.jpg]  

[https://www.kocsistem.com.tr/tr/PublishingImages/email-04-02.jpg] 
 
[https://www.kocsistem.com.tr/tr/PublishingImages/email-04-04.jpg]  


Bu e-posta mesaji kisiye özel olup, gizli bilgiler iceriyor olabilir. Eger bu 
e-posta mesaji size yanlislikla ulasmissa,  icerigini hic bir sekilde 
kullanmayiniz ve ekli dosyalari acmayiniz. Bu durumda lutfen e-posta mesajini 
kullaniciya hemen geri gonderiniz  ve  tum kopyalarini mesaj kutunuzdan 
siliniz. Bu e-posta mesaji, hic bir sekilde, herhangi bir amac icin 
cogaltilamaz, yayinlanamaz ve para karsiligi satilamaz.  Bu e-posta mesaji 
viruslere karsi anti-virus sistemleri tarafindan taranmistir. Ancak yollayici, 
bu e-posta mesajinin - virus koruma sistemleri ile kontrol ediliyor olsa bile - 
virus icermedigini garanti etmez ve meydana gelebilecek zararlardan dogacak 
hicbir sorumlulugu kabul etmez.
This message is intended solely for the use of the individual or entity to whom 
it is addressed , and may contain confidential  information. If you are not the 
intended recipient of this message or you receive this mail in error, you 
should refrain from making any use of the contents and from opening any 
attachment. In that case, please notify the sender immediately and return the 
message to the sender, then, delete and destroy all copies. This e-mail 
message, can not be copied, published or sold for any reason. This e-mail 
message has been swept by anti-virus systems for the presence of computer 
viruses. In doing so, however,  sender  cannot warrant that virus or other 
forms of data corruption may not be present and do not take any responsibility 
in any occurrence.


OS Type: Windows Server 2016 - CS 4.9.2

2017-04-12 Thread David Amorín
Hi all,
In our test environment based on CS 4.9.2 and XS 7.0, we are deploying VMs with 
Windows Server 2016 as guest installation, using OS Type: "Other (64-bit)" and 
so far everything is working fine. We understand that using this option we are 
deploying full virtualized (HVM) 


Do you know if there is any issue (error, performance, etc.) for using "Other 
(64-bit))=HVM for Windows Server 2016 VMs?


Do you know when will be available Windows Server 2016 as OS Type?


Thanks 


David