Re: [Where are the snapshot file]

2016-03-19 Thread Stavros Konstantaras
It seems that CS 4.6 does not have enough logic to handle correctly the 
snapshots. In my case, it was an expunged volume that used to create the 
problem as snapshots of this volume still existed (both in DB and in secondary 
storage). So I created a manual workaround to bypass this problem by making our 
hands dirty in MySQL:

- Stop CS service

- In MySQL find the expunged volume in “volumes" table and keep the volume_id

- In “snapshot_store_ref" table get the location of the snapshots by using the 
mentioned volume_id. Then go to the secondary storage and delete all the 
relevant files (since now we know the exact location)

- Now it’s time to update the tables by running the following SQL commands:  
   where XXX is the volume id of 
the second step. 

- Start CS service and check the snapshots output. The problem should be gone.

Hope that helps some fellows.

Regards
Stavros



Stavros Konstantaras
Science faculty Research IT support (FEIOG) 
University of Amsterdam, Science Park 904, 1098 XH

Fingerprint: E5E5 9B19 D1CD 88CD 4763  3465 A8DC 7C92 330F D59A

> On 16 Mar 2016, at 11:05, Stavros Konstantaras  wrote:
> 
> Hi Adrian,
> 
> Firstly, thanks for your extensive answer and the trick. My problem is 
> similar to the CLOUDSTACK-8845 issue. In our case we just try to view the 
> snapshots from cloudstack UI instead of listing them in cloud monkey. My 
> first thoughts are that probably  some inconsistencies exist in the database 
> but unfortunately after running the following mysql commands I don’t get any 
> results. 
> 
> < select volume_id,name,status from cloud.snapshots where volume_id not in 
> (select id from cloud.volumes); >
> < select * from cloud.snapshot_store_ref where volume_id not in (select id 
> from cloud.volumes); >
> 
> Any other ideas to find out the inconsistencies and get rid of them? In 
> addition, I checked the log file of cloudstack-management server and I don’t 
> see the error you mentioned. I use CS 4.6 and XenServer 6.5
> 
> Thanks again.
> 
> Regards
> Stavros
> 
> 
> Stavros Konstantaras
> Science faculty Research IT support (FEIOG) 
> University of Amsterdam, Science Park 904, 1098 XH
> 
> Fingerprint: E5E5 9B19 D1CD 88CD 4763  3465 A8DC 7C92 330F D59A
> 
>> On 16 Mar 2016, at 07:43, Adrian Sender  wrote:
>> 
>> Hi Stravos,
>> 
>> A bit more info with ongoing snapshot issues with Xenserver.. your snapshots
>> may also be failing if your chain depth exceeds 30.
>> 
>> Assuming your using LVMoHBA (hardware hba), easiest way to check this is as
>> follows:
>> 
>> If the xenserver snapshot chain depth exceeds 30, you will not be able to 
>> take
>> any new snapshots.
>> 
>> You may see a similar error: (note exact error will depend on CCP / CS 
>> version..
>> 
>> 2015-11-18 10:57:42,133 WARN  [c.c.h.x.r.XenServerStorageProcessor]
>> (DirectAgent-243:ctx-341ac146) (logid:65b51cbd) create snapshot operation
>> Failed for snapshotId: 36709, reason: SR_BACKEND_FAILURE_109The snapshot 
>> chain
>> is too long
>> SR_BACKEND_FAILURE_109The snapshot chain is too long
>> 
>> 
>> Example
>> ===
>> [root@qh2-nsp04 ~]# vhd-util query -vsfd -n
>> /dev/VG_XenStorage-3965cb14-960e-d9d5-4ab9-608425f3ee20/VHD-7bf051ee-7762-4902-84be-4962e70a4e3e
>> -p
>> 10240
>> 1145303552
>> /dev/mapper/VG_XenStorage--3965cb14--960e--d9d5--4ab9--608425f3ee20-VHD--811a34ff--731a--4c36--92be--286831ab7393
>> hidden: 0
>> chain depth: 30
>> 
>> The best way to get the LVM path is as follows:
>> 
>> mysql> select * from volumes where name='ROOT-3230' \G
>> 
>> We are looking for the path, in this case 
>> "7bf051ee-7762-4902-84be-4962e70a4e3e"
>> 
>> Login to Xenserver console and do "lvscan | grep
>> 7bf051ee-7762-4902-84be-4962e70a4e3e" This will give us VG and LV.
>> 
>> Then you can execute vhd-util query -vsfd -n
>> /dev/VG_XenStorage-3965cb14-960e-d9d5-4ab9-608425f3ee20/VHD-e00cd7a7-ae20-4b5d-a0e3-1c215d432ed4
>> 
>> Delete the broken snapshots from the primary storage in XenCenter.
>> 
>> Regards,
>> Adrian Sender
>> 
>> Testlabs Australia
>> Research Platform Services
>> M: +61. 487-440-732
>> E: asen...@testlabs.com.au
>> W: http://www.testlabs.com.au
>> 
>> -- Original Message ---
>> From: "Adrian Sender" 
>> To: users@cloudstack.apache.org
>> Sent: Wed, 16 Mar 2016 09:59:34 +1000
>> Subject: Re: [Where are the snapshot file]
>> 
>>> Hi Stravos,
>>> 
>>> Jumping in a bit late on this thread...Can you share the exact 
>>> management log error.
>>> 
>>> We have ran CCP 4.3 with Xenserver, everything is generally ok; most 
>>> common snapshot issues are as follows:
>>> 
>>> Snapshot failing
>>> 
>>> 
>>> The snapshotting on data volume DATA-3230 Failing. UI shows "Error"
>>> 
>>> 2014-08-26 10:51:32,884 DEBUG [o.a.c.s.m.AncientDataMotionStrategy]
>>> 
>>> (Work-Job-Executor-6:ctx-274b0a29 job-31179/job-31180 ctx-8511b016) 
>>> 

Changing VPC network domain name details

2016-03-19 Thread Andrei Mikhailovsky
Hello everyone, 

I need to change the network domain name of one of the VPC networks and I am 
unable to find the way to do it. When I click on the VPC network and click the 
Edit button, it gives me the ability to change the network name, however, the 
Network Domain name field is not changeable. How can I change it? 

Many thanks for your help 

Andrei 


Re: Unable to create a New VM - Error message: Unable to start instance due to Unable to get answer that is of class com.cloud.agent.api.StartAnswer

2016-03-19 Thread Simon Weller
Nexar,

That's normal behaviour. You can only ssh to the link local on the host where 
the VM resides.

Can you screenshot and post somewhere your secondary storage configuration and 
your primary storage configuration from the UI with the details?

- Si


From: Nezar Madbouh 
Sent: Thursday, March 17, 2016 8:19 PM
To: users@cloudstack.apache.org
Subject: Re: Unable to create a New VM - Error message: Unable to start 
instance due to Unable to get answer that is of class 
com.cloud.agent.api.StartAnswer

Hi Simon,

I just noticed that from other Hosts I can't ssh into the SSVM:

[root@eqx-cs-cmp-01 ~]# ssh -i /root/.ssh/id_rsa.cloud -p 3922
root@169.254.3.161
ssh: connect to host 169.254.3.161 port 3922: No route to host


I can only ssh from one Host:
[root@eqx-cs-cmp-06 ~]# ssh -i /root/.ssh/id_rsa.cloud -p 3922
root@169.254.3.161
Linux s-11-VM 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3 x86_64

Thanks & Regards,
Nezar.

On 18 March 2016 at 10:36, Nezar Madbouh 
wrote:

> Hi Simon,
>
> Yes existing VMs are successfully running. Yesterday I was able to create
> a VM in Dev Environment but I can't create VMs in Prod environment.
>
> Thanks,
> Nezar.
>
> On 18 March 2016 at 09:12, Simon Weller  wrote:
>
>> I'm assuming you have other VMs successfully running, correct? So you can
>> write to your primary storage.
>>
>>
>>
>> 
>> From: Nezar Madbouh 
>> Sent: Thursday, March 17, 2016 4:43 PM
>> To: users@cloudstack.apache.org
>> Subject: Re: Unable to create a New VM - Error message: Unable to start
>> instance due to Unable to get answer that is of class
>> com.cloud.agent.api.StartAnswer
>>
>> Hi Simon and Shweta,
>>
>> Please see the result below:
>>
>> root@s-11-VM:~# /usr/local/cloud/systemvm/ssvm-check.sh
>> 
>> First DNS server is  8.8.8.8
>> PING 8.8.8.8 (8.8.8.8): 48 data bytes
>> 56 bytes from 8.8.8.8: icmp_seq=0 ttl=57 time=5.209 ms
>> 56 bytes from 8.8.8.8: icmp_seq=1 ttl=57 time=0.936 ms
>> --- 8.8.8.8 ping statistics ---
>> 2 packets transmitted, 2 packets received, 0% packet loss
>> round-trip min/avg/max/stddev = 0.936/3.072/5.209/2.137 ms
>> Good: Can ping DNS server
>> 
>> Good: DNS resolves download.cloud.com
>> 
>> nfs is currently mounted
>> Mount point is /mnt/SecStorage/d11d5c92-6950-30e8-a0b5-3cd46a17ec14
>> Good: Can write to mount point
>> 
>> Management server is 10.61.153.20. 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-11-VM:~#
>>
>> Thanks & Regards,
>> Nezar.
>>
>> On 17 March 2016 at 09:42, Simon Weller  wrote:
>>
>> > Nezar,
>> >
>> > Log into the Cloudstack UI.
>> >
>> > Click on "Infrastructure" on the left menu. Click on  View All below
>> > "System VMs". find the item marked "Secondary Storage VM"  and then
>> click
>> > on the Name of that VM on the left (it will be s--VM). You'll see a
>> > bunch of information about the VM. Find the Host line and also the Link
>> > Local IP Address line and then follow the original instructions in my
>> > previous email.
>> >
>> > - Si
>> >
>> >
>> >
>> >
>> >
>> > 
>> > From: Shweta Agarwal 
>> > Sent: Wednesday, March 16, 2016 12:16 AM
>> > To: users@cloudstack.apache.org
>> > Subject: Re: Unable to create a New VM - Error message: Unable to start
>> > instance due to Unable to get answer that is of class
>> > com.cloud.agent.api.StartAnswer
>> >
>> > Hi Nezar,
>> >
>> > You can find host name on detail view of SSVM in UI .
>> > You can also use list api command listSystemVms to get the host details
>> of
>> > system vms.
>> >
>> > Thanks
>> > Shweta
>> >
>> >
>> > 
>> > From: Nezar Madbouh 
>> > Sent: Wednesday, March 16, 2016 9:58 AM
>> > To: users@cloudstack.apache.org
>> > Subject: Re: Unable to create a New VM - Error message: Unable to start
>> > instance due to Unable to get answer that is of class
>> > com.cloud.agent.api.StartAnswer
>> >
>> > Hi Simon,
>> >
>> > How can I find out which host the SSVM is on?
>> >
>> > Thanks & Regards,
>> > Nezar.
>> >
>> > On 16 March 2016 at 12:28, Simon Weller  wrote:
>> >
>> > > Can you ssh into the Secondary Storage VM?
>> > >
>> > > This can be done by getting the link-local-ip address from the
>> > > infrastructure menu in the UI and then sshing into the host the SSVM
>> is
>> > on
>> > > and issuing this command as 

Re: [database relationship diagram]

2016-03-19 Thread ilya
Tried making one sometime ago - i could not fit on several screens - so
i gave up.

Also from my experience key constraints may not always be enforced.

On 3/19/16 3:22 AM, Rafael Weingärtner wrote:
> I believe the easier way would be a reverse engineering.
> 
> You can do that with MYSQL workbench
> 
> On Sat, Mar 19, 2016 at 5:10 AM, Gian Paolo Buono 
> wrote:
> 
>> Hi all,
>> where I can find database relationship diagram and  specification ?
>>
>> redards
>> Gian Paolo
>>
> 
> 
> 


Re: unable to create a VPC 4.8.0 after upgrading 4.3.1

2016-03-19 Thread Simon Weller
Venkatesh,

Have you opened a jira issue on this? If not, please do - 
https://issues.apache.org/jira/browse/CLOUDSTACK

- Si


From: kotipalli venkatesh 
Sent: Thursday, March 17, 2016 4:29 AM
To: users@cloudstack.apache.org
Subject: unable to create a VPC 4.8.0 after upgrading 4.3.1

Hi All,

Our cloud information:

CS version: 4.3.1
Xenserver Version : 6.2

we are using 4.6 Template to upgrade from 4.3.1 to 4.8.0.

After upgrade 4.3.1 to 4.8.0 we are unable to create a network(VPC) and if
we are rebooting an existing  VPC router is then we are getting below error:

*r-14VM login: Traceback (most recent call last):*

* File "/opt/cloud/bin/baremetal-vr.py", line 28, in *
* from flask import flask*
*ImportError: No module named flask*


Is there any one facing this type of same scenario please give me
suggestions so we can step in to the next level.

Since we are keep on posting 2 months back. but still we are facing the
same issue now a days all guys are full busy to  share the mutual knowledge.

we are suspecting that  instead of 4.8 template 4.6 template using it might
be cause.
Please release the 4.8.0 Template as soon as possible.

Regards,
Venkatesh.k


Re: Certification info

2016-03-19 Thread kotipalli venkatesh
Hi Dag,

I have one more doubt regarding exam,Cloud stack underlying different
flours of hypervisors right? so is there any question on hypervisors
related(VMWARE/XENSERVER/HYPER-V/KVM/LXC)

I am already seen that example questions, but i need some more questions to
practice before going to exam.

Regards,
Venkatesh.k


On Thu, Mar 17, 2016 at 5:00 PM, Dag Sonstebo 
wrote:

> Hi Venkatesh,
>
> Version 4.4 was the most recent when the exam was written. With regards to
> materials I can only advise you to read the CloudStack documentation and
> Wiki. If you want to see example questions please see the official ones on
> https://www.accel-exam.jp/en/sample.html. Please do not ask for dumps -
> the certification is based on your own studies and effort.
>
> Dag Sonstebo
> Cloud Architect
> ShapeBlue
>
>
>
>
>
>
> On 17/03/2016, 09:46, "kotipalli venkatesh" 
> wrote:
>
> >Hi Sonstebo,
> >
> >Really very helpful which you send previous mail attached  links.
> >
> >Is there any reason 4.4 version on exam point.
> >
> >I am good & playing hands on 4.4, but i need dumps. please help me.
> >
> >Regards,
> >Venkatesh.k
> >
> >
> >On Tue, Mar 15, 2016 at 4:00 PM, Dag Sonstebo  >
> >wrote:
> >
> >> Hi Venkatesh,
> >>
> >> first of all keep in mind the exam is written against CloudStack 4.4 -
> so
> >> concentrate on the documentation for this.
> >>
> >> You have probably already reviewed the information on the exam site:
> >> https://www.accel-exam.jp/en/index.html
> >>
> >> https://www.accel-exam.jp/en/objectives.html
> >>
> >> https://www.accel-exam.jp/en/exam.html#about-accel
> >>
> >> https://www.accel-exam.jp/en/downloads/ACCEL_brochure_en.pdf
> >>
> >>
> >>
> >> With regards to what to study - you probably want to cover all
> CloudStack
> >> documentation as well as playing with this in the lab.
> >>
> >> For starters:
> >> http://docs.cloudstack.apache.org/en/master/concepts.html
> >>
> >>
> >>
> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.4/
> >>
> >>
> >>
> >>
> http://docs.cloudstack.apache.org/projects/cloudstack-administration/en/4.4/
> >>
> >>
> >>
> >>
> http://docs.cloudstack.apache.org/projects/cloudstack-release-notes/en/4.4.4/
> >>
> >>
> >> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Home
> >>
> >>
> >>
> >> Dag Sonstebo
> >> Cloud Architect
> >> ShapeBlue
> >>
> >>
> >>
> >>
> >>
> >>
> >> [image: ShapeBlue] 
> >> Dag Sonstebo
> >> ShapeBlue
> >> d:  * | s: +44 203 603 0540* <%7C%20s:%20+44%20203%20603%200540>
> >> e:  *dag.sonst...@shapeblue.com | t: *
> >>   |  w:  *www.shapeblue.com*
> >> 
> >> a:  53 Chandos Place, Covent Garden London WC2N 4HS UK
> >> Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue
> >> Services India LLP is a company incorporated in India and is operated
> under
> >> license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a
> >> company incorporated in Brasil and is operated under license from Shape
> >> Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic
> of
> >> South Africa and is traded under license from Shape Blue Ltd. ShapeBlue
> is
> >> a registered trademark.
> >> This email and any attachments to it may be confidential and are
> intended
> >> solely for the use of the individual to whom it is addressed. Any views
> or
> >> opinions expressed are solely those of the author and do not necessarily
> >> represent those of Shape Blue Ltd or related companies. If you are not
> the
> >> intended recipient of this email, you must neither take any action based
> >> upon its contents, nor copy or show it to anyone. Please contact the
> sender
> >> if you believe you have received this email in error.
> >>
> >>
> >> On 14/03/2016, 08:20, "kotipalli venkatesh" <
> venkateshcloudt...@gmail.com>
> >> wrote:
> >>
> >> >Hi All,
> >> >
> >> >I am planning write ACCEL.
> >> >
> >> >Is any one completed exam, Please share the knowledge.
> >> >
> >> >Please suggest some tips to clear the exam.
> >> >
> >> >Regards,
> >> >Venkatesh.k
> >> Find out more about ShapeBlue and our range of CloudStack related
> services:
> >> IaaS Cloud Design & Build
> >>  | CSForge – rapid
> >> IaaS deployment framework 
> >> CloudStack Consulting  |
> CloudStack
> >> Software Engineering
> >> 
> >> CloudStack Infrastructure Support
> >>  | CloudStack
> >> Bootcamp Training Courses 
> >>
> Find out more about ShapeBlue and our range of CloudStack related services:
> IaaS Cloud Design & Build<
> http://shapeblue.com/iaas-cloud-design-and-build//> | CSForge – rapid

Re: unable to create a VPC 4.8.0 after upgrading 4.3.1

2016-03-19 Thread kotipalli venkatesh
Hi Glenn,

Now its working good.

I appreciated your helping.

Regards,
Venkatesh.k

On Thu, Mar 17, 2016 at 5:51 PM, Glenn Wagner 
wrote:

> Hi,
>
> What is the name of your new 4.6 system template you uploaded for the
> upgrade.
>
> Example.
> systemvm-xenserver-4.6
>
> That is the name you add into the Global Setting for the router template.
>
> router.template.xenserver Name of the default router template on xenserver
> systemvm-xenserver-4.6
>
> Thanks
> Glenn
>
>
>
> [image: ShapeBlue] 
> Glenn Wagner
> Senior Consultant ,  ShapeBlue
> d:  * | s: +27 21 527 0091* <%7C%20s:%20+27%2021%20527%200091>  |  m:
> *+27 73 917 4111* <+27%2073%20917%204111>
> e:  *glenn.wag...@shapeblue.com | t: *
>   |  w:  *www.shapeblue.com*
> 
> a:
> 2nd Floor, Oudehuis Centre, 122 Main Rd, Somerset West Cape Town 7130 South 
> Africa
> Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue
> Services India LLP is a company incorporated in India and is operated under
> license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a
> company incorporated in Brasil and is operated under license from Shape
> Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of
> South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is
> a registered trademark.
> This email and any attachments to it may be confidential and are intended
> solely for the use of the individual to whom it is addressed. Any views or
> opinions expressed are solely those of the author and do not necessarily
> represent those of Shape Blue Ltd or related companies. If you are not the
> intended recipient of this email, you must neither take any action based
> upon its contents, nor copy or show it to anyone. Please contact the sender
> if you believe you have received this email in error.
>
>
> -Original Message-
> From: kotipalli venkatesh [mailto:venkateshcloudt...@gmail.com]
> Sent: Thursday, 17 March 2016 2:07 PM
> To: users@cloudstack.apache.org
> Subject: Re: unable to create a VPC 4.8.0 after upgrading 4.3.1
>
> Hi Glenn,
>
> Thank you for your quick response.
>
> 1. Yes, we have upgrade the ssvm,console proxy and routers and we have
> checked the version also it is showing 4.6.0.
>
> But the problem is when ever rebooted the existing router getting flask
> error and router destroyed and we are unable to create a new network.
>
> coming to 3 point your saying global settings :
>
> Please let us know what changes we need to do in global settings regarding
> router.template.xenserver.
>
> please look in to this below messages in our present global settings
> router.template.xenserver
>
> *Name* *Description* *Value*
>
>
> router.template.xenserver Name of the default router template on xenserver
> SystemVMtemplate(Xenserver)
>
> Regards,
> Venkatesh.k
>
> On Thu, Mar 17, 2016 at 5:13 PM, Simon Weller  wrote:
>
> > Venkatesh,
> >
> > Have you opened a jira issue on this? If not, please do -
> > https://issues.apache.org/jira/browse/CLOUDSTACK
> >
> > - Si
> >
> > 
> > From: kotipalli venkatesh 
> > Sent: Thursday, March 17, 2016 4:29 AM
> > To: users@cloudstack.apache.org
> > Subject: unable to create a VPC 4.8.0 after upgrading 4.3.1
> >
> > Hi All,
> >
> > Our cloud information:
> >
> > CS version: 4.3.1
> > Xenserver Version : 6.2
> >
> > we are using 4.6 Template to upgrade from 4.3.1 to 4.8.0.
> >
> > After upgrade 4.3.1 to 4.8.0 we are unable to create a network(VPC)
> > and if we are rebooting an existing VPC router is then we are getting
> > below
> > error:
> >
> > *r-14VM login: Traceback (most recent call last):*
> >
> > * File "/opt/cloud/bin/baremetal-vr.py", line 28, in *
> > * from flask import flask*
> > *ImportError: No module named flask*
> >
> >
> > Is there any one facing this type of same scenario please give me
> > suggestions so we can step in to the next level.
> >
> > Since we are keep on posting 2 months back. but still we are facing
> > the same issue now a days all guys are full busy to share the mutual
> > knowledge.
> >
> > we are suspecting that instead of 4.8 template 4.6 template using it
> > might be cause.
> > Please release the 4.8.0 Template as soon as possible.
> >
> > Regards,
> > Venkatesh.k
> >
> Find out more about ShapeBlue and our range of CloudStack related services:
> IaaS Cloud Design & Build
>  | CSForge – rapid
> IaaS deployment framework 
> CloudStack Consulting  | 
> CloudStack
> Software Engineering
> 
> CloudStack Infrastructure Support
>  | CloudStack
> Bootcamp Training Courses 

RE: Persisting Source IP on Load Balancers

2016-03-19 Thread Len Bellemore
OK, thanks everyone.

-Original Message-
From: S. Brüseke - proIO GmbH [mailto:s.brues...@proio.com] 
Sent: 17 March 2016 08:32
To: Bellemore, Len - Data Analytics; users@cloudstack.apache.org
Subject: AW: Persisting Source IP on Load Balancers

Hi Len,

I am not aware of a solutions for ssl traffic for this. 
A workaround would be to delete loadbalancing for ssl on the VR and create a 
nginx instance running ssl lb.

Mit freundlichen Grüßen / With kind regards,

Swen


-Ursprüngliche Nachricht-
Von: Len Bellemore [mailto:len.bellem...@alternativenetworks.com]
Gesendet: Mittwoch, 16. März 2016 18:22
An: S. Brüseke - proIO GmbH; users@cloudstack.apache.org
Betreff: RE: Persisting Source IP on Load Balancers

Thanks Swen,

OK, then I suppose my next question would be, could I then terminate the SSL on 
the virtual router, and then follow your suggestion?

Thanks
Len

-Original Message-
From: S. Brüseke - proIO GmbH [mailto:s.brues...@proio.com]
Sent: 16 March 2016 16:53
To: users@cloudstack.apache.org
Cc: Bellemore, Len - Data Analytics
Subject: AW: Persisting Source IP on Load Balancers

Hi Len,

you need to change the LogFormat on the target servers behind the LB.

If you are using apache2 do the this:

1. open your apache2 conf file
2. add "LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %O" common_lb" to 
the LogFormat section 3. open your vhost file and swap "common" to "common_lb" 
in your CustomLog line.
4. Restart apache2

Now you can see the client IP in the log.

This will only work with http and not with https traffic because LB cannot open 
https traffic.

Mit freundlichen Grüßen / With kind regards,

Swen


-Ursprüngliche Nachricht-
Von: Len Bellemore [mailto:len.bellem...@alternativenetworks.com]
Gesendet: Mittwoch, 16. März 2016 16:15
An: users@cloudstack.apache.org
Betreff: Persisting Source IP on Load Balancers

Hi Guys,

Does anyone know if it is possible to preserve the source IP that is coming in 
to servers behind the virtual router load balancer?

In my web servers logs, every connection is from the virtual router.

Thanks
Len


- proIO GmbH -
Geschäftsführer: Swen Brüseke
Sitz der Gesellschaft: Frankfurt am Main

USt-IdNr. DE 267 075 918
Registergericht: Frankfurt am Main - HRB 86239

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht 
gestattet. 

This e-mail may contain confidential and/or privileged information. 
If you are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail.  
Any unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden. 




- proIO GmbH -
Geschäftsführer: Swen Brüseke
Sitz der Gesellschaft: Frankfurt am Main

USt-IdNr. DE 267 075 918
Registergericht: Frankfurt am Main - HRB 86239

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht 
gestattet. 

This e-mail may contain confidential and/or privileged information. 
If you are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail.  
Any unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden. 




[CloudStack Netscaler]

2016-03-19 Thread Gian Paolo Buono
Hi all,

is there a guide to deploy netscaler on ClousStack ?

Regards
Gian Paolo

Re: unable to create a VPC 4.8.0 after upgrading 4.3.1

2016-03-19 Thread kotipalli venkatesh
Hi Glenn,

Thank you for your quick response.

1. Yes, we have upgrade the ssvm,console proxy and routers and we have
checked the version also it is showing 4.6.0.

But the problem is when ever rebooted the existing router getting flask
error and router destroyed and we are unable to create a new network.

coming to 3 point your saying global settings :

Please let us know what changes we need to do in global settings regarding
router.template.xenserver.

please look in to this below messages in our present global settings
router.template.xenserver

*Name*   *Description* *Value*

router.template.xenserver Name of the default router template on xenserver
SystemVMtemplate(Xenserver)

Regards,
Venkatesh.k

On Thu, Mar 17, 2016 at 5:13 PM, Simon Weller  wrote:

> Venkatesh,
>
> Have you opened a jira issue on this? If not, please do -
> https://issues.apache.org/jira/browse/CLOUDSTACK
>
> - Si
>
> 
> From: kotipalli venkatesh 
> Sent: Thursday, March 17, 2016 4:29 AM
> To: users@cloudstack.apache.org
> Subject: unable to create a VPC 4.8.0 after upgrading 4.3.1
>
> Hi All,
>
> Our cloud information:
>
> CS version: 4.3.1
> Xenserver Version : 6.2
>
> we are using 4.6 Template to upgrade from 4.3.1 to 4.8.0.
>
> After upgrade 4.3.1 to 4.8.0 we are unable to create a network(VPC) and if
> we are rebooting an existing  VPC router is then we are getting below
> error:
>
> *r-14VM login: Traceback (most recent call last):*
>
> * File "/opt/cloud/bin/baremetal-vr.py", line 28, in *
> * from flask import flask*
> *ImportError: No module named flask*
>
>
> Is there any one facing this type of same scenario please give me
> suggestions so we can step in to the next level.
>
> Since we are keep on posting 2 months back. but still we are facing the
> same issue now a days all guys are full busy to  share the mutual
> knowledge.
>
> we are suspecting that  instead of 4.8 template 4.6 template using it might
> be cause.
> Please release the 4.8.0 Template as soon as possible.
>
> Regards,
> Venkatesh.k
>


Re: Certification info

2016-03-19 Thread Dag Sonstebo
Hi Venkatesh,

Version 4.4 was the most recent when the exam was written. With regards to 
materials I can only advise you to read the CloudStack documentation and Wiki. 
If you want to see example questions please see the official ones on 
https://www.accel-exam.jp/en/sample.html. Please do not ask for dumps - the 
certification is based on your own studies and effort.

Dag Sonstebo
Cloud Architect
ShapeBlue






On 17/03/2016, 09:46, "kotipalli venkatesh"  
wrote:

>Hi Sonstebo,
>
>Really very helpful which you send previous mail attached  links.
>
>Is there any reason 4.4 version on exam point.
>
>I am good & playing hands on 4.4, but i need dumps. please help me.
>
>Regards,
>Venkatesh.k
>
>
>On Tue, Mar 15, 2016 at 4:00 PM, Dag Sonstebo 
>wrote:
>
>> Hi Venkatesh,
>>
>> first of all keep in mind the exam is written against CloudStack 4.4 - so
>> concentrate on the documentation for this.
>>
>> You have probably already reviewed the information on the exam site:
>> https://www.accel-exam.jp/en/index.html
>>
>> https://www.accel-exam.jp/en/objectives.html
>>
>> https://www.accel-exam.jp/en/exam.html#about-accel
>>
>> https://www.accel-exam.jp/en/downloads/ACCEL_brochure_en.pdf
>>
>>
>>
>> With regards to what to study - you probably want to cover all CloudStack
>> documentation as well as playing with this in the lab.
>>
>> For starters:
>> http://docs.cloudstack.apache.org/en/master/concepts.html
>>
>>
>> http://docs.cloudstack.apache.org/projects/cloudstack-installation/en/4.4/
>>
>>
>>
>> http://docs.cloudstack.apache.org/projects/cloudstack-administration/en/4.4/
>>
>>
>>
>> http://docs.cloudstack.apache.org/projects/cloudstack-release-notes/en/4.4.4/
>>
>>
>> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Home
>>
>>
>>
>> Dag Sonstebo
>> Cloud Architect
>> ShapeBlue
>>
>>
>>
>>
>>
>>
>> [image: ShapeBlue] 
>> Dag Sonstebo
>> ShapeBlue
>> d:  * | s: +44 203 603 0540* <%7C%20s:%20+44%20203%20603%200540>
>> e:  *dag.sonst...@shapeblue.com | t: *
>>   |  w:  *www.shapeblue.com*
>> 
>> a:  53 Chandos Place, Covent Garden London WC2N 4HS UK
>> Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue
>> Services India LLP is a company incorporated in India and is operated under
>> license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is a
>> company incorporated in Brasil and is operated under license from Shape
>> Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The Republic of
>> South Africa and is traded under license from Shape Blue Ltd. ShapeBlue is
>> a registered trademark.
>> This email and any attachments to it may be confidential and are intended
>> solely for the use of the individual to whom it is addressed. Any views or
>> opinions expressed are solely those of the author and do not necessarily
>> represent those of Shape Blue Ltd or related companies. If you are not the
>> intended recipient of this email, you must neither take any action based
>> upon its contents, nor copy or show it to anyone. Please contact the sender
>> if you believe you have received this email in error.
>>
>>
>> On 14/03/2016, 08:20, "kotipalli venkatesh" 
>> wrote:
>>
>> >Hi All,
>> >
>> >I am planning write ACCEL.
>> >
>> >Is any one completed exam, Please share the knowledge.
>> >
>> >Please suggest some tips to clear the exam.
>> >
>> >Regards,
>> >Venkatesh.k
>> Find out more about ShapeBlue and our range of CloudStack related services:
>> IaaS Cloud Design & Build
>>  | CSForge – rapid
>> IaaS deployment framework 
>> CloudStack Consulting  | 
>> CloudStack
>> Software Engineering
>> 
>> CloudStack Infrastructure Support
>>  | CloudStack
>> Bootcamp Training Courses 
>>
Find out more about ShapeBlue and our range of CloudStack related services:
IaaS Cloud Design & Build | 
CSForge – rapid IaaS deployment framework
CloudStack Consulting | 
CloudStack Software 
Engineering
CloudStack Infrastructure 
Support | CloudStack 
Bootcamp Training Courses


Re: bash script to create, start, stop and destroy a large number of VM in CloudStack

2016-03-19 Thread Thomas Schneider
Thanks for your answer, any feedback are greatly appreciated. I will
work to improve it.

Le 16/03/2016 22:01, ilya a écrit :
> +1, looked through the script - looks good.
>
> Over past few years, many wrote bunch of handy utilities to administer
> cloudstack. We need to somehow merge all the scripts into 1 github repo..
>
>
>
> On 3/16/16 12:29 PM, Thomas Schneider wrote:
>> Hi all,
>>
>> I created a small bash script to create, start, stop and destroy a large
>> number of VM in CloudStack.
>> I use it to do some test on new Cloudstack setup. It work with Cloudmonkey.
>> If it can help someone.
>> https://github.com/vascodaroxor/cloudstack-cloudzor
>>
>> Regards,
>>

-- 
*Thomas Schneider*
Directeur des Services Cloud


Web: www.euskill.com
Tel: +33 (0)3 67 24 99 90 - Ligne directe: +33 (0)3 67 24 99 86
Mobile: +33 (0)6 19 26 47 76
Mail: thomas.schnei...@euskill.com
17 rue de la Haute Montée
F-67000 Strasbourg


Re: [Where are the snapshot file]

2016-03-19 Thread Gian Paolo Buono

 Hello,
how can i rebuild a chain snaphot (xenserver) in other xenserver hypervisor ? 
try to explain with below example.

On secondary storage have two file:

xxx.vhd   18 GB   - (18 March) Full Snap
yyy.vhd   300MB   - (19 March) Incremental Snap


If I copy the above file on another xenserver installation, how can merge both 
files for attach to other virtual machine ?
Is there a command to merge like vhd-util ?

Regards

On 03/18/2016 11:35 AM, Stavros Konstantaras wrote:

It seems that CS 4.6 does not have enough logic to handle correctly the 
snapshots. In my case, it was an expunged volume that used to create the 
problem as snapshots of this volume still existed (both in DB and in secondary 
storage). So I created a manual workaround to bypass this problem by making our 
hands dirty in MySQL:

- Stop CS service

- In MySQL find the expunged volume in “volumes" table and keep the volume_id

- In “snapshot_store_ref" table get the location of the snapshots by using the 
mentioned volume_id. Then go to the secondary storage and delete all the 
relevant files (since now we know the exact location)

- Now it’s time to update the tables by running the following SQL commands:  
   where XXX is the volume id of 
the second step.

- Start CS service and check the snapshots output. The problem should be gone.

Hope that helps some fellows.

Regards
Stavros



Stavros Konstantaras
Science faculty Research IT support (FEIOG)
University of Amsterdam, Science Park 904, 1098 XH

Fingerprint: E5E5 9B19 D1CD 88CD 4763  3465 A8DC 7C92 330F D59A



On 16 Mar 2016, at 11:05, Stavros Konstantaras 
 wrote:

Hi Adrian,

Firstly, thanks for your extensive answer and the trick. My problem is similar 
to the CLOUDSTACK-8845 issue. In our case we just try to view the snapshots 
from cloudstack UI instead of listing them in cloud monkey. My first thoughts 
are that probably  some inconsistencies exist in the database but unfortunately 
after running the following mysql commands I don’t get any results.

< select volume_id,name,status from cloud.snapshots where volume_id not in 
(select id from cloud.volumes); >
< select * from cloud.snapshot_store_ref where volume_id not in (select id from 
cloud.volumes); >

Any other ideas to find out the inconsistencies and get rid of them? In 
addition, I checked the log file of cloudstack-management server and I don’t 
see the error you mentioned. I use CS 4.6 and XenServer 6.5

Thanks again.

Regards
Stavros


Stavros Konstantaras
Science faculty Research IT support (FEIOG)
University of Amsterdam, Science Park 904, 1098 XH

Fingerprint: E5E5 9B19 D1CD 88CD 4763  3465 A8DC 7C92 330F D59A



On 16 Mar 2016, at 07:43, Adrian Sender 
 wrote:

Hi Stravos,

A bit more info with ongoing snapshot issues with Xenserver.. your snapshots
may also be failing if your chain depth exceeds 30.

Assuming your using LVMoHBA (hardware hba), easiest way to check this is as
follows:

If the xenserver snapshot chain depth exceeds 30, you will not be able to take
any new snapshots.

You may see a similar error: (note exact error will depend on CCP / CS version..

2015-11-18 10:57:42,133 WARN  [c.c.h.x.r.XenServerStorageProcessor]
(DirectAgent-243:ctx-341ac146) (logid:65b51cbd) create snapshot operation
Failed for snapshotId: 36709, reason: SR_BACKEND_FAILURE_109The snapshot chain
is too long
SR_BACKEND_FAILURE_109The snapshot chain is too long


Example
===
[root@qh2-nsp04 ~]# vhd-util query -vsfd -n
/dev/VG_XenStorage-3965cb14-960e-d9d5-4ab9-608425f3ee20/VHD-7bf051ee-7762-4902-84be-4962e70a4e3e
-p
10240
1145303552
/dev/mapper/VG_XenStorage--3965cb14--960e--d9d5--4ab9--608425f3ee20-VHD--811a34ff--731a--4c36--92be--286831ab7393
hidden: 0
chain depth: 30

The best way to get the LVM path is as follows:

mysql> select * from volumes where name='ROOT-3230' \G

We are looking for the path, in this case "7bf051ee-7762-4902-84be-4962e70a4e3e"

Login to Xenserver console and do "lvscan | grep
7bf051ee-7762-4902-84be-4962e70a4e3e" This will give us VG and LV.

Then you can execute vhd-util query -vsfd -n
/dev/VG_XenStorage-3965cb14-960e-d9d5-4ab9-608425f3ee20/VHD-e00cd7a7-ae20-4b5d-a0e3-1c215d432ed4

Delete the broken snapshots from the primary storage in XenCenter.

Regards,
Adrian Sender

Testlabs Australia
Research Platform Services
M: +61. 487-440-732
E: asen...@testlabs.com.au
W: http://www.testlabs.com.au

-- Original Message ---
From: "Adrian Sender" 
To: users@cloudstack.apache.org
Sent: Wed, 16 Mar 2016 09:59:34 +1000
Subject: Re: [Where are the snapshot file]



Hi Stravos,

Jumping in a bit late on this thread...Can you share the exact
management log error.

We have 

Hyper-V Agent log files.

2016-03-19 Thread Rodrigo Marques
Hello,
I am trying to install and run the Hyper-V Agent provided here.

I installed and it appears to be running (at least it appears in Windows
Services). The problem is that I would like to access its log files and I
cannot find them.
Does anyone know where it is?
I looked in the source code and found a "cloudstack-agent.log". I have
tried to look for this file in the server using the command *dir -r
"cloudstack-agent.log" *but it returned nothing.

Can anybody help me?

Thanks.

Best Regards,
Rodrigo.
-- 
Atenciosamente,

Rodrigo Marques.


Re: Changing VPC network domain name details

2016-03-19 Thread ilya
from cloudmonkey output

> update network -h

(updateNetwork) Updates a network
This API is asynchronous.
Required params are id
Parameters
==
displaytext = (string) the new display text for the network
networkofferingid = (uuid) network offering ID
guestvmcidr = (string) CIDR for Guest VMs,Cloudstack allocates IPs to
Guest VMs only from this CIDR
id = (uuid) the ID of the network
name = (string) the new name for the network
displaynetwork = (boolean) an optional field, whether to the display the
network to the end user or not.
changecidr = (boolean) Force update even if cidr type is different
customid = (string) an optional field, in case you want to set a custom
id to the resource. Allowed to Root Admins only
networkdomain = (string) network domain



Network domain is an option, give it a try..


On 3/16/16 5:27 AM, Andrei Mikhailovsky wrote:
> Hello everyone, 
> 
> I need to change the network domain name of one of the VPC networks and I am 
> unable to find the way to do it. When I click on the VPC network and click 
> the Edit button, it gives me the ability to change the network name, however, 
> the Network Domain name field is not changeable. How can I change it? 
> 
> Many thanks for your help 
> 
> Andrei 
> 


RE: unable to create a VPC 4.8.0 after upgrading 4.3.1

2016-03-19 Thread Glenn Wagner
Hi,

What is the name of your new 4.6 system template you uploaded for the upgrade.

Example.
systemvm-xenserver-4.6

That is the name you add into the Global Setting for the router template.

router.template.xenserver Name of the default router template on xenserver 
systemvm-xenserver-4.6

Thanks
Glenn



[ShapeBlue]
Glenn Wagner
Senior Consultant   ,   ShapeBlue


d:   | s: +27 21 527 0091|  
m:  +27 73 917 4111

e:  glenn.wag...@shapeblue.com | t: 
 |  w:  
www.shapeblue.com

a:  2nd Floor, Oudehuis Centre, 122 Main Rd, Somerset West Cape Town 7130 
South Africa


[cid:image8cf0d9.png@f7add65f.4b835791]


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




-Original Message-
From: kotipalli venkatesh [mailto:venkateshcloudt...@gmail.com]
Sent: Thursday, 17 March 2016 2:07 PM
To: users@cloudstack.apache.org
Subject: Re: unable to create a VPC 4.8.0 after upgrading 4.3.1

Hi Glenn,

Thank you for your quick response.

1. Yes, we have upgrade the ssvm,console proxy and routers and we have checked 
the version also it is showing 4.6.0.

But the problem is when ever rebooted the existing router getting flask error 
and router destroyed and we are unable to create a new network.

coming to 3 point your saying global settings :

Please let us know what changes we need to do in global settings regarding 
router.template.xenserver.

please look in to this below messages in our present global settings 
router.template.xenserver

*Name* *Description* *Value*

router.template.xenserver Name of the default router template on xenserver
SystemVMtemplate(Xenserver)

Regards,
Venkatesh.k

On Thu, Mar 17, 2016 at 5:13 PM, Simon Weller  wrote:

> Venkatesh,
>
> Have you opened a jira issue on this? If not, please do -
> https://issues.apache.org/jira/browse/CLOUDSTACK
>
> - Si
>
> 
> From: kotipalli venkatesh 
> Sent: Thursday, March 17, 2016 4:29 AM
> To: users@cloudstack.apache.org
> Subject: unable to create a VPC 4.8.0 after upgrading 4.3.1
>
> Hi All,
>
> Our cloud information:
>
> CS version: 4.3.1
> Xenserver Version : 6.2
>
> we are using 4.6 Template to upgrade from 4.3.1 to 4.8.0.
>
> After upgrade 4.3.1 to 4.8.0 we are unable to create a network(VPC)
> and if we are rebooting an existing VPC router is then we are getting
> below
> error:
>
> *r-14VM login: Traceback (most recent call last):*
>
> * File "/opt/cloud/bin/baremetal-vr.py", line 28, in *
> * from flask import flask*
> *ImportError: No module named flask*
>
>
> Is there any one facing this type of same scenario please give me
> suggestions so we can step in to the next level.
>
> Since we are keep on posting 2 months back. but still we are facing
> the same issue now a days all guys are full busy to share the mutual
> knowledge.
>
> we are suspecting that instead of 4.8 template 4.6 template using it
> might be cause.
> Please release the 4.8.0 Template as soon as possible.
>
> Regards,
> Venkatesh.k
>
Find out more about ShapeBlue and our range of CloudStack related services:
IaaS Cloud Design & Build | 
CSForge – rapid IaaS deployment framework
CloudStack Consulting | 
CloudStack Software 
Engineering
CloudStack Infrastructure 
Support | CloudStack 
Bootcamp Training Courses


[POLL] Interest for EU based event/collab

2016-03-19 Thread Erik Weber
[Cross posted to users@ and dev@]

As you may be aware, a conference has been announced in Brazil later this
year.

I guess there are more than me having a hard time travelling that far and
long, so I would like to check the interest for an EU based event.

Unless someone comes up with a big money jar it won't be as fancy as the
previous ones.

If you could fill out this poll[1] and/or respond to this email, that would
be great.

[1] https://no.surveymonkey.com/r/CX3K5T3


-- 
Erik


Re: Unable to create a New VM - Error message: Unable to start instance due to Unable to get answer that is of class com.cloud.agent.api.StartAnswer

2016-03-19 Thread Simon Weller
Also, what is the Cloudstack version you are running and what is the OS you're 
running it on?

Are you using actimeo=0 in your NFS mount line?


From: Simon Weller 
Sent: Friday, March 18, 2016 7:40 AM
To: users@cloudstack.apache.org
Subject: Re: Unable to create a New VM - Error message: Unable to start 
instance due to Unable to get answer that is of class 
com.cloud.agent.api.StartAnswer

Nexar,

That's normal behaviour. You can only ssh to the link local on the host where 
the VM resides.

Can you screenshot and post somewhere your secondary storage configuration and 
your primary storage configuration from the UI with the details?

- Si


From: Nezar Madbouh 
Sent: Thursday, March 17, 2016 8:19 PM
To: users@cloudstack.apache.org
Subject: Re: Unable to create a New VM - Error message: Unable to start 
instance due to Unable to get answer that is of class 
com.cloud.agent.api.StartAnswer

Hi Simon,

I just noticed that from other Hosts I can't ssh into the SSVM:

[root@eqx-cs-cmp-01 ~]# ssh -i /root/.ssh/id_rsa.cloud -p 3922
root@169.254.3.161
ssh: connect to host 169.254.3.161 port 3922: No route to host


I can only ssh from one Host:
[root@eqx-cs-cmp-06 ~]# ssh -i /root/.ssh/id_rsa.cloud -p 3922
root@169.254.3.161
Linux s-11-VM 3.2.0-4-amd64 #1 SMP Debian 3.2.57-3 x86_64

Thanks & Regards,
Nezar.

On 18 March 2016 at 10:36, Nezar Madbouh 
wrote:

> Hi Simon,
>
> Yes existing VMs are successfully running. Yesterday I was able to create
> a VM in Dev Environment but I can't create VMs in Prod environment.
>
> Thanks,
> Nezar.
>
> On 18 March 2016 at 09:12, Simon Weller  wrote:
>
>> I'm assuming you have other VMs successfully running, correct? So you can
>> write to your primary storage.
>>
>>
>>
>> 
>> From: Nezar Madbouh 
>> Sent: Thursday, March 17, 2016 4:43 PM
>> To: users@cloudstack.apache.org
>> Subject: Re: Unable to create a New VM - Error message: Unable to start
>> instance due to Unable to get answer that is of class
>> com.cloud.agent.api.StartAnswer
>>
>> Hi Simon and Shweta,
>>
>> Please see the result below:
>>
>> root@s-11-VM:~# /usr/local/cloud/systemvm/ssvm-check.sh
>> 
>> First DNS server is  8.8.8.8
>> PING 8.8.8.8 (8.8.8.8): 48 data bytes
>> 56 bytes from 8.8.8.8: icmp_seq=0 ttl=57 time=5.209 ms
>> 56 bytes from 8.8.8.8: icmp_seq=1 ttl=57 time=0.936 ms
>> --- 8.8.8.8 ping statistics ---
>> 2 packets transmitted, 2 packets received, 0% packet loss
>> round-trip min/avg/max/stddev = 0.936/3.072/5.209/2.137 ms
>> Good: Can ping DNS server
>> 
>> Good: DNS resolves download.cloud.com
>> 
>> nfs is currently mounted
>> Mount point is /mnt/SecStorage/d11d5c92-6950-30e8-a0b5-3cd46a17ec14
>> Good: Can write to mount point
>> 
>> Management server is 10.61.153.20. 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-11-VM:~#
>>
>> Thanks & Regards,
>> Nezar.
>>
>> On 17 March 2016 at 09:42, Simon Weller  wrote:
>>
>> > Nezar,
>> >
>> > Log into the Cloudstack UI.
>> >
>> > Click on "Infrastructure" on the left menu. Click on  View All below
>> > "System VMs". find the item marked "Secondary Storage VM"  and then
>> click
>> > on the Name of that VM on the left (it will be s--VM). You'll see a
>> > bunch of information about the VM. Find the Host line and also the Link
>> > Local IP Address line and then follow the original instructions in my
>> > previous email.
>> >
>> > - Si
>> >
>> >
>> >
>> >
>> >
>> > 
>> > From: Shweta Agarwal 
>> > Sent: Wednesday, March 16, 2016 12:16 AM
>> > To: users@cloudstack.apache.org
>> > Subject: Re: Unable to create a New VM - Error message: Unable to start
>> > instance due to Unable to get answer that is of class
>> > com.cloud.agent.api.StartAnswer
>> >
>> > Hi Nezar,
>> >
>> > You can find host name on detail view of SSVM in UI .
>> > You can also use list api command listSystemVms to get the host details
>> of
>> > system vms.
>> >
>> > Thanks
>> > Shweta
>> >
>> >
>> > 
>> > From: Nezar Madbouh 
>> > Sent: Wednesday, March 16, 2016 9:58 AM
>> > To: users@cloudstack.apache.org
>> > Subject: Re: Unable to create a New VM - Error message: Unable to start
>> > instance due to Unable to get answer that is of class
>> > 

Persisting Source IP on Load Balancers

2016-03-19 Thread Len Bellemore
Hi Guys,

Does anyone know if it is possible to preserve the source IP that is coming in 
to servers behind the virtual router load balancer?

In my web servers logs, every connection is from the virtual router.

Thanks
Len


RE: Windows 7 Template

2016-03-19 Thread Cristian Ciobanu
Hello,

     I figured out how to fix :

     1. Install Windows   
     2. install VMware tools ( reboot ) 
     3. Install CloudInstanceManager 
     4. Enable local user account Administrator and set password.
After step 4 i added a script to remove the Cloud.com (uninstall) after first 
logon ( in this case you can not reset the password anymore but you have 
generated password and works after restart/shutdown, also you can change if 
needed from Windows. )


     5. Create template 
     6. Deploy from template 
     7. Log in on VM using generated password ( works ) 
     8. Reboot  VM, no password on VM, able to log in without password.  ( 
fixed with removal script )

Regards,
Cristian
On 16.03.2016 16:40:10, Timothy Lothering  wrote:
Hi Cristian,

Prior to #5, you need to specify the out-of-box experience for the machine, 
this should then in conjunction with the Cloud Instance Manager reset the 
password.

Kind Regards,
Timothy Lothering
Timothy Lothering
Solutions Architect
Managed Services

T: +27877415535
F: +27877415100
C: +27824904099
E: tlother...@datacentrix.co.za


DISCLAIMER NOTICE:

Everything in this e-mail and any attachments relating to the official business 
of Datacentrix Holdings Ltd. and its subsidiaries
('Datacentrix') is proprietary to Datacentrix. It is confidential, legally 
privileged and protected by law. Datacentrix does not
own and endorse any other content. Views and opinions are those of the sender 
unless clearly stated as being that of Datacentrix.
The person addressed in the e-mail is the sole authorised recipient. Please 
notify the sender immediately if it has unintentionally
reached you and do not read, disclose or use the content in any way. 
Datacentrix cannot assure that the integrity of this communication
has been maintained nor that it is free of errors, virus, interception or 
interference.
-Original Message-
From: Cristian Ciobanu [mailto:cristian.c@istream.today]
Sent: Wednesday, 16 March 2016 4:02 PM
To: users@cloudstack.apache.org
Subject: Windows 7 Template

Hello,

     I tried to crate a Windows 7 Template for ACS 4.5.2 on VMware, everything 
is ok till first reboot of VM.

     1. Install Windows 7 
     2. install VMware tools ( reboot )
     3. Install CloudInstanceManager
     4. Enable local user account Administrator and set password.
     5. Create template
     6. Deploy from template
     7. Log in on VM using generated password ( works )
     8. Reboot  VM, no password on VM, able to log in without password.

   Did someone tested the same thing ?


Regards,
Cristian


RE: Changing VPC network domain name details

2016-03-19 Thread Sanjeev Neelarapu
Hi Andrei,

You can also try using updateNetwork API if you don’t have cloud monkey setup.

-Sanjeev

-Original Message-
From: ilya [mailto:ilya.mailing.li...@gmail.com] 
Sent: Thursday, March 17, 2016 2:35 AM
To: users@cloudstack.apache.org
Subject: Re: Changing VPC network domain name details

from cloudmonkey output

> update network -h

(updateNetwork) Updates a network
This API is asynchronous.
Required params are id
Parameters
==
displaytext = (string) the new display text for the network networkofferingid = 
(uuid) network offering ID guestvmcidr = (string) CIDR for Guest VMs,Cloudstack 
allocates IPs to Guest VMs only from this CIDR id = (uuid) the ID of the 
network name = (string) the new name for the network displaynetwork = (boolean) 
an optional field, whether to the display the network to the end user or not.
changecidr = (boolean) Force update even if cidr type is different customid = 
(string) an optional field, in case you want to set a custom id to the 
resource. Allowed to Root Admins only networkdomain = (string) network domain



Network domain is an option, give it a try..


On 3/16/16 5:27 AM, Andrei Mikhailovsky wrote:
> Hello everyone,
> 
> I need to change the network domain name of one of the VPC networks and I am 
> unable to find the way to do it. When I click on the VPC network and click 
> the Edit button, it gives me the ability to change the network name, however, 
> the Network Domain name field is not changeable. How can I change it? 
> 
> Many thanks for your help
> 
> Andrei
> 



DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Accelerite, a Persistent Systems business. It is intended only for 
the use of the individual or entity to which it is addressed. If you are not 
the intended recipient, you are not authorized to read, retain, copy, print, 
distribute or use this message. If you have received this communication in 
error, please notify the sender and delete all copies of this message. 
Accelerite, a Persistent Systems business does not accept any liability for 
virus infected mails.


RE: bash script to create, start, stop and destroy a large number of VM in CloudStack

2016-03-19 Thread Sanjeev Neelarapu
+1

-Original Message-
From: ilya [mailto:ilya.mailing.li...@gmail.com] 
Sent: Thursday, March 17, 2016 2:31 AM
To: users@cloudstack.apache.org
Subject: Re: bash script to create, start, stop and destroy a large number of 
VM in CloudStack

+1, looked through the script - looks good.

Over past few years, many wrote bunch of handy utilities to administer 
cloudstack. We need to somehow merge all the scripts into 1 github repo..



On 3/16/16 12:29 PM, Thomas Schneider wrote:
> Hi all,
> 
> I created a small bash script to create, start, stop and destroy a 
> large number of VM in CloudStack.
> I use it to do some test on new Cloudstack setup. It work with Cloudmonkey.
> If it can help someone.
> https://github.com/vascodaroxor/cloudstack-cloudzor
> 
> Regards,
> 



DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Accelerite, a Persistent Systems business. It is intended only for 
the use of the individual or entity to which it is addressed. If you are not 
the intended recipient, you are not authorized to read, retain, copy, print, 
distribute or use this message. If you have received this communication in 
error, please notify the sender and delete all copies of this message. 
Accelerite, a Persistent Systems business does not accept any liability for 
virus infected mails.


AW: Persisting Source IP on Load Balancers

2016-03-19 Thread S . Brüseke - proIO GmbH
Hi Len,

I am not aware of a solutions for ssl traffic for this. 
A workaround would be to delete loadbalancing for ssl on the VR and create a 
nginx instance running ssl lb.

Mit freundlichen Grüßen / With kind regards,

Swen


-Ursprüngliche Nachricht-
Von: Len Bellemore [mailto:len.bellem...@alternativenetworks.com] 
Gesendet: Mittwoch, 16. März 2016 18:22
An: S. Brüseke - proIO GmbH; users@cloudstack.apache.org
Betreff: RE: Persisting Source IP on Load Balancers

Thanks Swen,

OK, then I suppose my next question would be, could I then terminate the SSL on 
the virtual router, and then follow your suggestion?

Thanks
Len

-Original Message-
From: S. Brüseke - proIO GmbH [mailto:s.brues...@proio.com] 
Sent: 16 March 2016 16:53
To: users@cloudstack.apache.org
Cc: Bellemore, Len - Data Analytics
Subject: AW: Persisting Source IP on Load Balancers

Hi Len,

you need to change the LogFormat on the target servers behind the LB.

If you are using apache2 do the this:

1. open your apache2 conf file
2. add "LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %O" common_lb" to 
the LogFormat section 3. open your vhost file and swap "common" to "common_lb" 
in your CustomLog line.
4. Restart apache2

Now you can see the client IP in the log.

This will only work with http and not with https traffic because LB cannot open 
https traffic.

Mit freundlichen Grüßen / With kind regards,

Swen


-Ursprüngliche Nachricht-
Von: Len Bellemore [mailto:len.bellem...@alternativenetworks.com]
Gesendet: Mittwoch, 16. März 2016 16:15
An: users@cloudstack.apache.org
Betreff: Persisting Source IP on Load Balancers

Hi Guys,

Does anyone know if it is possible to preserve the source IP that is coming in 
to servers behind the virtual router load balancer?

In my web servers logs, every connection is from the virtual router.

Thanks
Len


- proIO GmbH -
Geschäftsführer: Swen Brüseke
Sitz der Gesellschaft: Frankfurt am Main

USt-IdNr. DE 267 075 918
Registergericht: Frankfurt am Main - HRB 86239

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht 
gestattet. 

This e-mail may contain confidential and/or privileged information. 
If you are not the intended recipient (or have received this e-mail in error) 
please notify the sender immediately and destroy this e-mail.  
Any unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden. 




- proIO GmbH -
Geschäftsführer: Swen Brüseke
Sitz der Gesellschaft: Frankfurt am Main

USt-IdNr. DE 267 075 918
Registergericht: Frankfurt am Main - HRB 86239

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, 
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht 
gestattet. 

This e-mail may contain confidential and/or privileged information. 
If you are not the intended recipient (or have received this e-mail in error) 
please notify 
the sender immediately and destroy this e-mail.  
Any unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden. 




Re: Unable to create a New VM - Error message: Unable to start instance due to Unable to get answer that is of class com.cloud.agent.api.StartAnswer

2016-03-19 Thread Nezar Madbouh
Hi Simon and Shweta,

Please see the result below:

root@s-11-VM:~# /usr/local/cloud/systemvm/ssvm-check.sh

First DNS server is  8.8.8.8
PING 8.8.8.8 (8.8.8.8): 48 data bytes
56 bytes from 8.8.8.8: icmp_seq=0 ttl=57 time=5.209 ms
56 bytes from 8.8.8.8: icmp_seq=1 ttl=57 time=0.936 ms
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.936/3.072/5.209/2.137 ms
Good: Can ping DNS server

Good: DNS resolves download.cloud.com

nfs is currently mounted
Mount point is /mnt/SecStorage/d11d5c92-6950-30e8-a0b5-3cd46a17ec14
Good: Can write to mount point

Management server is 10.61.153.20. 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-11-VM:~#

Thanks & Regards,
Nezar.

On 17 March 2016 at 09:42, Simon Weller  wrote:

> Nezar,
>
> Log into the Cloudstack UI.
>
> Click on "Infrastructure" on the left menu. Click on  View All below
> "System VMs". find the item marked "Secondary Storage VM"  and then click
> on the Name of that VM on the left (it will be s--VM). You'll see a
> bunch of information about the VM. Find the Host line and also the Link
> Local IP Address line and then follow the original instructions in my
> previous email.
>
> - Si
>
>
>
>
>
> 
> From: Shweta Agarwal 
> Sent: Wednesday, March 16, 2016 12:16 AM
> To: users@cloudstack.apache.org
> Subject: Re: Unable to create a New VM - Error message: Unable to start
> instance due to Unable to get answer that is of class
> com.cloud.agent.api.StartAnswer
>
> Hi Nezar,
>
> You can find host name on detail view of SSVM in UI .
> You can also use list api command listSystemVms to get the host details of
> system vms.
>
> Thanks
> Shweta
>
>
> 
> From: Nezar Madbouh 
> Sent: Wednesday, March 16, 2016 9:58 AM
> To: users@cloudstack.apache.org
> Subject: Re: Unable to create a New VM - Error message: Unable to start
> instance due to Unable to get answer that is of class
> com.cloud.agent.api.StartAnswer
>
> Hi Simon,
>
> How can I find out which host the SSVM is on?
>
> Thanks & Regards,
> Nezar.
>
> On 16 March 2016 at 12:28, Simon Weller  wrote:
>
> > Can you ssh into the Secondary Storage VM?
> >
> > This can be done by getting the link-local-ip address from the
> > infrastructure menu in the UI and then sshing into the host the SSVM is
> on
> > and issuing this command as root: ssh -i /root/.ssh/id_rsa.cloud -p 3922
> > root@link-local-ip  (replace link-local-ip with the link local ip).
> >
> > Try  running the SSVM diangnostic script:
> > usr/local/cloud/systemvm/ssvm-check.sh
> >
> > - Si
> > 
> > From: Nezar Madbouh 
> > Sent: Tuesday, March 15, 2016 7:49 PM
> > To: users@cloudstack.apache.org
> > Subject: Re: Unable to create a New VM - Error message: Unable to start
> > instance due to Unable to get answer that is of class
> > com.cloud.agent.api.StartAnswer
> >
> > Hi Simon,
> >
> > Please see details below:
> >
> >
> > mysql> use cloud; select id, name, status, type from host where id = 5;
> > Reading table information for completion of table and column names
> > You can turn off this feature to get a quicker startup with -A
> >
> > Database changed
> > ++--++-+
> > | id | name | status | type|
> > ++--++-+
> > | 5 | eqx-cs-cmp-02.ipscape.com.au | up | routing |
> > ++--++-+
> > 1 row in set (0.00 sec)
> >
> >
> >
> > cat /var/log/cloudstack/agent/agent.log
> > com.cloud.utils.exception.CloudRuntimeException:
> > com.cloud.utils.exception.CloudRuntimeException: Can't find
> > volume:089ff3ca-9bff-402c-a14e-ea7a35aaad5c
> > at
> >
> >
> com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.getPhysicalDisk(KVMStoragePoolManager.java:262)
> > at
> >
> >
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.createVbd(LibvirtComputingResource.java:3921)
> > at
> >
> >
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(LibvirtComputingResource.java:3789)
> > at
> >
> >
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1333)
> > at com.cloud.agent.Agent.processRequest(Agent.java:501)
> > at
> 

Re: Unable to create a New VM - Error message: Unable to start instance due to Unable to get answer that is of class com.cloud.agent.api.StartAnswer

2016-03-19 Thread Simon Weller
I'm assuming you have other VMs successfully running, correct? So you can write 
to your primary storage.




From: Nezar Madbouh 
Sent: Thursday, March 17, 2016 4:43 PM
To: users@cloudstack.apache.org
Subject: Re: Unable to create a New VM - Error message: Unable to start 
instance due to Unable to get answer that is of class 
com.cloud.agent.api.StartAnswer

Hi Simon and Shweta,

Please see the result below:

root@s-11-VM:~# /usr/local/cloud/systemvm/ssvm-check.sh

First DNS server is  8.8.8.8
PING 8.8.8.8 (8.8.8.8): 48 data bytes
56 bytes from 8.8.8.8: icmp_seq=0 ttl=57 time=5.209 ms
56 bytes from 8.8.8.8: icmp_seq=1 ttl=57 time=0.936 ms
--- 8.8.8.8 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max/stddev = 0.936/3.072/5.209/2.137 ms
Good: Can ping DNS server

Good: DNS resolves download.cloud.com

nfs is currently mounted
Mount point is /mnt/SecStorage/d11d5c92-6950-30e8-a0b5-3cd46a17ec14
Good: Can write to mount point

Management server is 10.61.153.20. 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-11-VM:~#

Thanks & Regards,
Nezar.

On 17 March 2016 at 09:42, Simon Weller  wrote:

> Nezar,
>
> Log into the Cloudstack UI.
>
> Click on "Infrastructure" on the left menu. Click on  View All below
> "System VMs". find the item marked "Secondary Storage VM"  and then click
> on the Name of that VM on the left (it will be s--VM). You'll see a
> bunch of information about the VM. Find the Host line and also the Link
> Local IP Address line and then follow the original instructions in my
> previous email.
>
> - Si
>
>
>
>
>
> 
> From: Shweta Agarwal 
> Sent: Wednesday, March 16, 2016 12:16 AM
> To: users@cloudstack.apache.org
> Subject: Re: Unable to create a New VM - Error message: Unable to start
> instance due to Unable to get answer that is of class
> com.cloud.agent.api.StartAnswer
>
> Hi Nezar,
>
> You can find host name on detail view of SSVM in UI .
> You can also use list api command listSystemVms to get the host details of
> system vms.
>
> Thanks
> Shweta
>
>
> 
> From: Nezar Madbouh 
> Sent: Wednesday, March 16, 2016 9:58 AM
> To: users@cloudstack.apache.org
> Subject: Re: Unable to create a New VM - Error message: Unable to start
> instance due to Unable to get answer that is of class
> com.cloud.agent.api.StartAnswer
>
> Hi Simon,
>
> How can I find out which host the SSVM is on?
>
> Thanks & Regards,
> Nezar.
>
> On 16 March 2016 at 12:28, Simon Weller  wrote:
>
> > Can you ssh into the Secondary Storage VM?
> >
> > This can be done by getting the link-local-ip address from the
> > infrastructure menu in the UI and then sshing into the host the SSVM is
> on
> > and issuing this command as root: ssh -i /root/.ssh/id_rsa.cloud -p 3922
> > root@link-local-ip  (replace link-local-ip with the link local ip).
> >
> > Try  running the SSVM diangnostic script:
> > usr/local/cloud/systemvm/ssvm-check.sh
> >
> > - Si
> > 
> > From: Nezar Madbouh 
> > Sent: Tuesday, March 15, 2016 7:49 PM
> > To: users@cloudstack.apache.org
> > Subject: Re: Unable to create a New VM - Error message: Unable to start
> > instance due to Unable to get answer that is of class
> > com.cloud.agent.api.StartAnswer
> >
> > Hi Simon,
> >
> > Please see details below:
> >
> >
> > mysql> use cloud; select id, name, status, type from host where id = 5;
> > Reading table information for completion of table and column names
> > You can turn off this feature to get a quicker startup with -A
> >
> > Database changed
> > ++--++-+
> > | id | name | status | type|
> > ++--++-+
> > | 5 | eqx-cs-cmp-02.ipscape.com.au | up | routing |
> > ++--++-+
> > 1 row in set (0.00 sec)
> >
> >
> >
> > cat /var/log/cloudstack/agent/agent.log
> > com.cloud.utils.exception.CloudRuntimeException:
> > com.cloud.utils.exception.CloudRuntimeException: Can't find
> > volume:089ff3ca-9bff-402c-a14e-ea7a35aaad5c
> > at
> >
> >
> com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.getPhysicalDisk(KVMStoragePoolManager.java:262)
> > at
> >
> >
> 

Windows 7 Template

2016-03-19 Thread Cristian Ciobanu
Hello,

     I tried to crate a Windows 7 Template for ACS 4.5.2 on VMware, everything 
is ok till first reboot of VM.

     1. Install Windows 7 
     2. install VMware tools ( reboot )
     3. Install CloudInstanceManager
     4. Enable local user account Administrator and set password.
     5. Create template
     6. Deploy from template
     7. Log in on VM using generated password ( works )
     8. Reboot  VM, no password on VM, able to log in without password.

   Did someone tested the same thing ?


Regards,
Cristian

[database relationship diagram]

2016-03-19 Thread Gian Paolo Buono
Hi all,
where I can find database relationship diagram and  specification ?

redards
Gian Paolo


AW: Persisting Source IP on Load Balancers

2016-03-19 Thread S . Brüseke - proIO GmbH
Hi Len,

you need to change the LogFormat on the target servers behind the LB.

If you are using apache2 do the this:

1. open your apache2 conf file
2. add "LogFormat "%{X-Forwarded-For}i %l %u %t \"%r\" %>s %O" common_lb" to 
the LogFormat section
3. open your vhost file and swap "common" to "common_lb" in your CustomLog line.
4. Restart apache2

Now you can see the client IP in the log.

This will only work with http and not with https traffic because LB cannot open 
https traffic.

Mit freundlichen Grüßen / With kind regards,

Swen


-Ursprüngliche Nachricht-
Von: Len Bellemore [mailto:len.bellem...@alternativenetworks.com] 
Gesendet: Mittwoch, 16. März 2016 16:15
An: users@cloudstack.apache.org
Betreff: Persisting Source IP on Load Balancers

Hi Guys,

Does anyone know if it is possible to preserve the source IP that is coming in 
to servers behind the virtual router load balancer?

In my web servers logs, every connection is from the virtual router.

Thanks
Len


- proIO GmbH -
Geschäftsführer: Swen Brüseke
Sitz der Gesellschaft: Frankfurt am Main

USt-IdNr. DE 267 075 918
Registergericht: Frankfurt am Main - HRB 86239

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. 
Wenn Sie nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten 
haben, 
informieren Sie bitte sofort den Absender und vernichten Sie diese Mail. 
Das unerlaubte Kopieren sowie die unbefugte Weitergabe dieser Mail sind nicht 
gestattet. 

This e-mail may contain confidential and/or privileged information. 
If you are not the intended recipient (or have received this e-mail in error) 
please notify 
the sender immediately and destroy this e-mail.  
Any unauthorized copying, disclosure or distribution of the material in this 
e-mail is strictly forbidden. 




Re: [Migrate from Citrix CloudPlatform 4.3 to CloudStack 4.8]

2016-03-19 Thread ilya
Many folks on this list have migrated to Apache CloudStack from CCP.

Backup your environment, you can use this script, it will dump the 3 DBs
cloudstack needs and contents of /etc/ into a tar.gz file

Before you start, make sure you can test DBPASS decryption process
run
> DBPASS=$(java -classpath /usr/share/cloudstack-common/lib/jasypt-1.9.0.jar 
> org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI input="$(cat 
> /etc/cloudstack/management/db.properties | grep db.cloud.password | awk -F'(' 
> '{print $2}' | sed 's/)//g')" password="$(cat 
> /etc/cloudstack/management/key)" | grep -A2 OUTPUT | tail -1
> echo $DBPASS



Backup script..

---
> #!/bin/bash
>
> HOSTNAME=$(hostname -s)
> if rpm -q cloudstack-management >/dev/null 2>&1
> then
> VERSION=$(rpm -q cloudstack-management | sed 
> 's/cloudstack-management-//g' | sed 's/.el6.x86_64//g')
> echo "NOTE: Identified cloudstack-management version as $VERSION"
> else
> echo "ERROR: cloudstack-management RPM is not installed, exiting"
> exit 1
> fi
> 
> DATESTAMP=$(date +%m%d%y-%H%M%S)
> DBPASS=$(java -classpath /usr/share/cloudstack-common/lib/jasypt-1.9.0.jar 
> org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI input="$(cat 
> /etc/cloudstack/management/db.properties | grep db.cloud.password | awk -F'(' 
> '{print $2}' | sed 's/)//g')" password="$(cat 
> /etc/cloudstack/management/key)" | grep -A2 OUTPUT | tail -1)
> DBHOST=$(cat /etc/cloudstack/management/db.properties | grep db.cloud.host | 
> awk -F'=' '{print $2}' | tail -1 )
> DBUSER=$(cat /etc/cloudstack/management/db.properties | grep 
> db.cloud.username | awk -F'=' '{print $2}')
> DB=$(cat /etc/cloudstack/management/db.properties | grep db.cloud.name | awk 
> -F'=' '{print $2}')
> DBPORT=$(cat /etc/cloudstack/management/db.properties | grep db.cloud.port | 
> awk -F'=' '{print $2}')
> 
> cd /root/cloudstack-db-backups/
> echo "NOTE: Your MySQL Configs are - DBPASS: $DBPASS , DBHOST: $DBHOST , 
> DBUSER: $DBUSER , DBNAME: $DB , DBPORT: $DBPORT"
> for db in "cloud" "cloud_usage" "cloudbridge"
> do
> printf "NOTE: Creating backup of database $db as 
> $db-$VERSION.$DATESTAMP.sql "
> mysqldump -h $DBHOST -u $DBUSER -P $DBPORT -p$DBPASS $db > 
> $db-$VERSION.$DATESTAMP.sql && echo "... done" || echo "... error"
> done
> printf "NOTE: Compressing all files *-$VERSION.$DATESTAMP.sql as and 
> /etc/cloudstack/ into 
> $HOSTNAME-bundle-cloud-dbs-and-config-$VERSION.$DATESTAMP.tgz"
> tar -zcvf  $HOSTNAME-bundle-cloud-dbs-and-config-$VERSION.$DATESTAMP.tgz 
> *-$VERSION.$DATESTAMP.sql /etc/cloudstack/ > /dev/null 2>&1 && echo "... 
> done" || echo "... error"



---

With the backup above, you can move to next version. In case something
goes bad, install old CCP RPMs, restore mysql DBs, revert
/etc/cloudstack/ - you should be able to start your cloudstack.

Or you can just stop cloudstack service, stop mysql and take a
vmware/xen type of snapshot.

My personal opinion, I'd say goto 4.5.x first - i can attest its the
most large scale tested version so far.

Bake it, and then try 4.8, if not, you can fallback to functional 4.5..

Regards
ilya



On 3/15/16 6:02 AM, Glenn Wagner wrote:
> Hi Gian,
> 
> Yes this can be done without breaking your environment,
> I would suggest you test this in a Lab first with a copy of your
> production DB.
> 
> Have a look at the upgrade from 4.3 Doc with regard to the template you
> need to use for XenServer or VMware (Update System-VM templates)
> http://docs.cloudstack.apache.org/projects/cloudstack-release-notes/en/4.8.0/upgrade/upgrade-4.3.html
> 
> Thanks
> Glenn
> 
> 
> 
> 
> ShapeBlue   
> Glenn Wagner
> Senior Consultant ,   ShapeBlue
> 
> d:* | s: +27 21 527 0091* 
>  |m:  *+27 73 917 4111* 
> 
> e:*glenn.wag...@shapeblue.com | t: *
>    |  w: 
> *www.shapeblue.com* 
> 
> a: 
> 2nd Floor, Oudehuis Centre, 122 Main Rd, Somerset West Cape Town 7130 South 
> Africa
> 
> 
> Shape Blue Ltd is a company incorporated in England & Wales. ShapeBlue
> Services India LLP is a company incorporated in India and is operated
> under license from Shape Blue Ltd. Shape Blue Brasil Consultoria Ltda is
> a company incorporated in Brasil and is operated under license from
> Shape Blue Ltd. ShapeBlue SA Pty Ltd is a company registered by The
> Republic of South Africa and is traded under license from Shape Blue
> Ltd. ShapeBlue is a registered trademark.
> This email and any attachments to it may be confidential and are
> intended solely for the use of the individual to whom it is addressed.
> Any views or opinions expressed are solely those of the author and do
> not necessarily represent those of Shape Blue Ltd or related companies.
> If you are not the intended recipient of this email, you 

RE: unable to create a VPC 4.8.0 after upgrading 4.3.1

2016-03-19 Thread Glenn Wagner
Hi, Venkatesh

When you upgraded to 4.8.0 did you upgrade all your System VM's to the latest 
4.6 template?
I you create a new shared network and start a VM on that network is the Virtual 
router created?

Did you update the router template settings in the Global Settings

router.template.vmware
router.template.xenserver
router.template.kvm

Thanks
Glenn




[ShapeBlue]
Glenn Wagner
Senior Consultant   ,   ShapeBlue


d:   | s: +27 21 527 0091|  
m:  +27 73 917 4111

e:  glenn.wag...@shapeblue.com | t: 
 |  w:  
www.shapeblue.com

a:  2nd Floor, Oudehuis Centre, 122 Main Rd, Somerset West Cape Town 7130 
South Africa


[cid:imaged4cf85.png@ab040830.43b9b647]


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




-Original Message-
From: kotipalli venkatesh [mailto:venkateshcloudt...@gmail.com]
Sent: Thursday, 17 March 2016 11:30 AM
To: users@cloudstack.apache.org
Subject: unable to create a VPC 4.8.0 after upgrading 4.3.1

Hi All,

Our cloud information:

CS version: 4.3.1
Xenserver Version : 6.2

we are using 4.6 Template to upgrade from 4.3.1 to 4.8.0.

After upgrade 4.3.1 to 4.8.0 we are unable to create a network(VPC) and if we 
are rebooting an existing VPC router is then we are getting below error:

*r-14VM login: Traceback (most recent call last):*

* File "/opt/cloud/bin/baremetal-vr.py", line 28, in *
* from flask import flask*
*ImportError: No module named flask*


Is there any one facing this type of same scenario please give me suggestions 
so we can step in to the next level.

Since we are keep on posting 2 months back. but still we are facing the same 
issue now a days all guys are full busy to share the mutual knowledge.

we are suspecting that instead of 4.8 template 4.6 template using it might be 
cause.
Please release the 4.8.0 Template as soon as possible.

Regards,
Venkatesh.k
Find out more about ShapeBlue and our range of CloudStack related services:
IaaS Cloud Design & Build | 
CSForge – rapid IaaS deployment framework
CloudStack Consulting | 
CloudStack Software 
Engineering
CloudStack Infrastructure 
Support | CloudStack 
Bootcamp Training Courses


bash script to create, start, stop and destroy a large number of VM in CloudStack

2016-03-19 Thread Thomas Schneider
Hi all,

I created a small bash script to create, start, stop and destroy a large
number of VM in CloudStack.
I use it to do some test on new Cloudstack setup. It work with Cloudmonkey.
If it can help someone.
https://github.com/vascodaroxor/cloudstack-cloudzor

Regards,
-- 
*Thomas Schneider*


RE: Windows 7 Template

2016-03-19 Thread Timothy Lothering
Hi Cristian,

Prior to #5, you need to specify the out-of-box experience for the machine, 
this should then in conjunction with the Cloud Instance Manager reset the 
password.

Kind Regards,
Timothy Lothering
Timothy Lothering
Solutions Architect
Managed Services

T: +27877415535
F: +27877415100
C: +27824904099
E: tlother...@datacentrix.co.za


DISCLAIMER NOTICE: 

Everything in this e-mail and any attachments relating to the official business 
of Datacentrix Holdings Ltd. and its subsidiaries 
('Datacentrix') is proprietary to Datacentrix. It is confidential, legally 
privileged and protected by law. Datacentrix does not 
own and endorse any other content. Views and opinions are those of the sender 
unless clearly stated as being that of Datacentrix. 
The person addressed in the e-mail is the sole authorised recipient. Please 
notify the sender immediately if it has unintentionally 
reached you and do not read, disclose or use the content in any way. 
Datacentrix cannot assure that the integrity of this communication 
has been maintained nor that it is free of errors, virus, interception or 
interference.
-Original Message-
From: Cristian Ciobanu [mailto:cristian.c@istream.today] 
Sent: Wednesday, 16 March 2016 4:02 PM
To: users@cloudstack.apache.org
Subject: Windows 7 Template

Hello,

     I tried to crate a Windows 7 Template for ACS 4.5.2 on VMware, everything 
is ok till first reboot of VM.

     1. Install Windows 7 
     2. install VMware tools ( reboot )
     3. Install CloudInstanceManager
     4. Enable local user account Administrator and set password.
     5. Create template
     6. Deploy from template
     7. Log in on VM using generated password ( works )
     8. Reboot  VM, no password on VM, able to log in without password.

   Did someone tested the same thing ?


Regards,
Cristian


Re: Windows 7 Template

2016-03-19 Thread Todd Pigram
How about old fashion sysprep with AutoUnattened.xml? As most of my
customers are fully managed, I use that process for all w2012r2, w2k8r2, &
win7 templates. I actually create them on standalone HVs, then upload them
as templates into ACS (old CCP).

Use Windows System Image maker, out of the windows deployment toolkit, to
create the AutoUnattened.xml files. Place that in the
%WINDIR%\system32\sysprep dir. when ready run this

Sysprep /generalize /oobe /shutdown
/unattend:c:\windows\system32\sysprep\Autounattend.xml. then create the
template.

You can even put the Chef client, puppet client, chocolatey or boxstarter
on the images if need be.

The images that I use have Chef client and chocolatey installed. These are
vanilla builds. I do everything thing on them with Chef after i spin them
up. (I install the choclatey apps with Chef from an in house nuget server
and chocolatey gallery).

just my $0.02


On Thu, Mar 17, 2016 at 5:59 PM, Cristian Ciobanu 
wrote:

> Hello,
>
>  I figured out how to fix :
>
>  1. Install Windows
>  2. install VMware tools ( reboot )
>  3. Install CloudInstanceManager
>  4. Enable local user account Administrator and set password.
> After step 4 i added a script to remove the Cloud.com (uninstall) after
> first logon ( in this case you can not reset the password anymore but you
> have generated password and works after restart/shutdown, also you can
> change if needed from Windows. )
>
>
>  5. Create template
>  6. Deploy from template
>  7. Log in on VM using generated password ( works )
>  8. Reboot  VM, no password on VM, able to log in without password.  (
> fixed with removal script )
>
> Regards,
> Cristian
> On 16.03.2016 16:40:10, Timothy Lothering 
> wrote:
> Hi Cristian,
>
> Prior to #5, you need to specify the out-of-box experience for the
> machine, this should then in conjunction with the Cloud Instance Manager
> reset the password.
>
> Kind Regards,
> Timothy Lothering
> Timothy Lothering
> Solutions Architect
> Managed Services
>
> T: +27877415535
> F: +27877415100
> C: +27824904099
> E: tlother...@datacentrix.co.za
>
>
> DISCLAIMER NOTICE:
>
> Everything in this e-mail and any attachments relating to the official
> business of Datacentrix Holdings Ltd. and its subsidiaries
> ('Datacentrix') is proprietary to Datacentrix. It is confidential, legally
> privileged and protected by law. Datacentrix does not
> own and endorse any other content. Views and opinions are those of the
> sender unless clearly stated as being that of Datacentrix.
> The person addressed in the e-mail is the sole authorised recipient.
> Please notify the sender immediately if it has unintentionally
> reached you and do not read, disclose or use the content in any way.
> Datacentrix cannot assure that the integrity of this communication
> has been maintained nor that it is free of errors, virus, interception or
> interference.
> -Original Message-
> From: Cristian Ciobanu [mailto:cristian.c@istream.today]
> Sent: Wednesday, 16 March 2016 4:02 PM
> To: users@cloudstack.apache.org
> Subject: Windows 7 Template
>
> Hello,
>
>  I tried to crate a Windows 7 Template for ACS 4.5.2 on VMware,
> everything is ok till first reboot of VM.
>
>  1. Install Windows 7
>  2. install VMware tools ( reboot )
>  3. Install CloudInstanceManager
>  4. Enable local user account Administrator and set password.
>  5. Create template
>  6. Deploy from template
>  7. Log in on VM using generated password ( works )
>  8. Reboot  VM, no password on VM, able to log in without password.
>
>Did someone tested the same thing ?
>
>
> Regards,
> Cristian
>



-- 


Todd Pigram
http://about.me/ToddPigram
www.linkedin.com/in/toddpigram/
@pigram86 on twitter
https://plus.google.com/+ToddPigram86
Mobile - 216-224-5769

PGP Public Key



Re: Unable to create a New VM - Error message: Unable to start instance due to Unable to get answer that is of class com.cloud.agent.api.StartAnswer

2016-03-19 Thread Simon Weller
Nezar,

Log into the Cloudstack UI.

Click on "Infrastructure" on the left menu. Click on  View All below "System 
VMs". find the item marked "Secondary Storage VM"  and then click on the Name 
of that VM on the left (it will be s--VM). You'll see a bunch of 
information about the VM. Find the Host line and also the Link Local IP Address 
line and then follow the original instructions in my previous email.

- Si






From: Shweta Agarwal 
Sent: Wednesday, March 16, 2016 12:16 AM
To: users@cloudstack.apache.org
Subject: Re: Unable to create a New VM - Error message: Unable to start 
instance due to Unable to get answer that is of class 
com.cloud.agent.api.StartAnswer

Hi Nezar,

You can find host name on detail view of SSVM in UI .
You can also use list api command listSystemVms to get the host details of 
system vms.

Thanks
Shweta



From: Nezar Madbouh 
Sent: Wednesday, March 16, 2016 9:58 AM
To: users@cloudstack.apache.org
Subject: Re: Unable to create a New VM - Error message: Unable to start 
instance due to Unable to get answer that is of class 
com.cloud.agent.api.StartAnswer

Hi Simon,

How can I find out which host the SSVM is on?

Thanks & Regards,
Nezar.

On 16 March 2016 at 12:28, Simon Weller  wrote:

> Can you ssh into the Secondary Storage VM?
>
> This can be done by getting the link-local-ip address from the
> infrastructure menu in the UI and then sshing into the host the SSVM is on
> and issuing this command as root: ssh -i /root/.ssh/id_rsa.cloud -p 3922
> root@link-local-ip  (replace link-local-ip with the link local ip).
>
> Try  running the SSVM diangnostic script:
> usr/local/cloud/systemvm/ssvm-check.sh
>
> - Si
> 
> From: Nezar Madbouh 
> Sent: Tuesday, March 15, 2016 7:49 PM
> To: users@cloudstack.apache.org
> Subject: Re: Unable to create a New VM - Error message: Unable to start
> instance due to Unable to get answer that is of class
> com.cloud.agent.api.StartAnswer
>
> Hi Simon,
>
> Please see details below:
>
>
> mysql> use cloud; select id, name, status, type from host where id = 5;
> Reading table information for completion of table and column names
> You can turn off this feature to get a quicker startup with -A
>
> Database changed
> ++--++-+
> | id | name | status | type|
> ++--++-+
> | 5 | eqx-cs-cmp-02.ipscape.com.au | up | routing |
> ++--++-+
> 1 row in set (0.00 sec)
>
>
>
> cat /var/log/cloudstack/agent/agent.log
> com.cloud.utils.exception.CloudRuntimeException:
> com.cloud.utils.exception.CloudRuntimeException: Can't find
> volume:089ff3ca-9bff-402c-a14e-ea7a35aaad5c
> at
>
> com.cloud.hypervisor.kvm.storage.KVMStoragePoolManager.getPhysicalDisk(KVMStoragePoolManager.java:262)
> at
>
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.createVbd(LibvirtComputingResource.java:3921)
> at
>
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.execute(LibvirtComputingResource.java:3789)
> at
>
> com.cloud.hypervisor.kvm.resource.LibvirtComputingResource.executeRequest(LibvirtComputingResource.java:1333)
> at com.cloud.agent.Agent.processRequest(Agent.java:501)
> at com.cloud.agent.Agent$AgentRequestHandler.doTask(Agent.java:808)
> at com.cloud.utils.nio.Task.run(Task.java:84)
> at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> agent.log.2016-03-03.gz (END)
>
>
>
> [root@eqx-cs-cmp-02 agent]# virsh pool-list
> Name State  Autostart
> -
> 2d0967f8-50d6-4d6d-87b7-4da0596f6924 active no
> b3647480-5709-36eb-9ddd-e2c666f30b57 active no
> e3831246-ff55-4af4-9964-a17565edaccc active no
>
>
>
>
> [Root @ eqx-cs-cmp-02 agent] # df -h
> FilesystemSize  Used Avail Use% Mounted on
> /dev/mapper/vg_root-lv_root
>   203G 215G 1.3G 1% /
> tmpfs 48g 48g 0 0% / dev / shm
> / Dev / sda1 477m 427m 25M 6% / boot
> xx.xx.xx.xx:/Cloudstack/primary
>   7.6T  4.1T  3.5T  54%
> /mnt/b3647480-5709-36eb-9ddd-e2c666f30b57
>
>
>
>
> I also noticed the following in cloudstack-agent.err
>
> libvirt: QEMU Driver error : Domain not found: no domain with matching name
> 'i-11-600-VM'
> libvirt: Storage Driver error : Storage volume not found: no storage vol
> with matching name '089ff3ca-9bff-402c-a14e-ea7a35aaad5c'
>
> Your help is much appreciated,
> Nezar
>
>
> On 16 March 2016 at 11:03, Simon Weller