RE: Downloading templates loop

2013-10-23 Thread David Comerford
Sorry, restart MS.
I was surprised it didn't just stop when it was removed from the database.
And it wasn't in the async job queue or anything either.
 On 23 Oct 2013 18:33, "Nitin Mehta"  wrote:

> Great that it worked. You mean restart of the cloud agent on ssvm or MS
> restart ?
>
> Thanks,
> -Nitin
> ________
> From: David Comerford [davest...@gmail.com]
> Sent: Wednesday, October 23, 2013 10:02 PM
> To: users@cloudstack.apache.org
> Subject: Re: Downloading templates loop
>
> I tried it on one row and CS stopped trying to download but it did require
> a restart of the service.
> Didn't need to restart SSVM.
>
> Thanks for your help :)
> Best regards,
> David Comerford
> 
> Tel: +353 87 1238295
> Email: davest...@gmail.com
> Website: http://dave.ie
> GPG key: http://gpg.dave.ie
>
>
> On 23 October 2013 17:10, Nitin Mehta  wrote:
>
> > Yes - it should be fine. That said, I would first try and do it only for
> > one entry (also keeping a backup) and see what happens.
> > You might also need to stop/start ssvm to cancel the job (do it only if
> > its not cancelled)
> >
> > On 23/10/13 5:08 AM, "David Comerford"  wrote:
> >
> > >Or a more exciting way of phrasing that last question, is the safe to
> > >delete all entries from template_host_ref where download_state is
> > >NOT_DOWNLOADED?
> > >
> > >DELETE FROM template_host_ref WHERE download_state='NOT_DOWNLOADED';
> > >
> > >Best regards,
> > >David Comerford
> > >
> > >Tel: +353 87 1238295
> > >Email: davest...@gmail.com
> > >Website: http://dave.ie
> > >GPG key: http://gpg.dave.ie
> > >
> > >
> > >On 23 October 2013 12:16, David Comerford  wrote:
> > >
> > >> Right sounds good.
> > >> In some cases I have a working template that has multiple entries in
> > >> template_host_ref. Usually there's a few failed download entries and
> the
> > >> one that succeded. Am I safe to just delete the rows that have the
> > >>failures
> > >> from this table?
> > >> Best regards,
> > >> David Comerford
> > >> 
> > >> Tel: +353 87 1238295
> > >> Email: davest...@gmail.com
> > >> Website: http://dave.ie
> > >> GPG key: http://gpg.dave.ie
> > >>
> > >>
> > >> On 23 October 2013 05:41, Nitin Mehta  wrote:
> > >>
> > >>> David - I don¹t think it should be a problem. The reference is the
> > >>>other
> > >>> way around.
> > >>> Also mark the vm_template table entry as removed. Try this for one of
> > >>>them
> > >>> and see.
> > >>>
> > >>> On 22/10/13 1:22 PM, "David Comerford"  wrote:
> > >>>
> > >>> >They aren't present in the UI.
> > >>> >Would deleting them from template_store_ref not cause a problem as
> > >>>they
> > >>> >are
> > >>> >referenced by template_host_ref and vm_template?
> > >>> >
> > >>> >Best regards,
> > >>> >David Comerford
> > >>> >
> > >>> >Tel: +353 87 1238295
> > >>> >Email: davest...@gmail.com
> > >>> >Website: http://dave.ie
> > >>> >GPG key: http://gpg.dave.ie
> > >>> >
> > >>> >
> > >>> >On 22 October 2013 17:42, Nitin Mehta 
> wrote:
> > >>> >
> > >>> >> If there is an option available in the UI to delete them then do
> > >>>that.
> > >>> >> Else you can remove the entry from template_store_ref, I think
> that
> > >>> >>should
> > >>> >> do
> > >>> >>
> > >>> >> On 22/10/13 8:20 AM, "David Comerford" 
> wrote:
> > >>> >>
> > >>> >> >Hi,
> > >>> >> >
> > >>> >> >I've noticed my logs are filled with what looks like attempts to
> > >>> >> >re-download old failed template downloads. The jobID's from the
> > >>>logs
> > >>> >>can
> > >>> >> >be
> > >>> >> >seen in the template_host_ref tabl

Re: Downloading templates loop

2013-10-23 Thread David Comerford
I tried it on one row and CS stopped trying to download but it did require
a restart of the service.
Didn't need to restart SSVM.

Thanks for your help :)
Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 23 October 2013 17:10, Nitin Mehta  wrote:

> Yes - it should be fine. That said, I would first try and do it only for
> one entry (also keeping a backup) and see what happens.
> You might also need to stop/start ssvm to cancel the job (do it only if
> its not cancelled)
>
> On 23/10/13 5:08 AM, "David Comerford"  wrote:
>
> >Or a more exciting way of phrasing that last question, is the safe to
> >delete all entries from template_host_ref where download_state is
> >NOT_DOWNLOADED?
> >
> >DELETE FROM template_host_ref WHERE download_state='NOT_DOWNLOADED';
> >
> >Best regards,
> >David Comerford
> >
> >Tel: +353 87 1238295
> >Email: davest...@gmail.com
> >Website: http://dave.ie
> >GPG key: http://gpg.dave.ie
> >
> >
> >On 23 October 2013 12:16, David Comerford  wrote:
> >
> >> Right sounds good.
> >> In some cases I have a working template that has multiple entries in
> >> template_host_ref. Usually there's a few failed download entries and the
> >> one that succeded. Am I safe to just delete the rows that have the
> >>failures
> >> from this table?
> >> Best regards,
> >> David Comerford
> >> 
> >> Tel: +353 87 1238295
> >> Email: davest...@gmail.com
> >> Website: http://dave.ie
> >> GPG key: http://gpg.dave.ie
> >>
> >>
> >> On 23 October 2013 05:41, Nitin Mehta  wrote:
> >>
> >>> David - I don¹t think it should be a problem. The reference is the
> >>>other
> >>> way around.
> >>> Also mark the vm_template table entry as removed. Try this for one of
> >>>them
> >>> and see.
> >>>
> >>> On 22/10/13 1:22 PM, "David Comerford"  wrote:
> >>>
> >>> >They aren't present in the UI.
> >>> >Would deleting them from template_store_ref not cause a problem as
> >>>they
> >>> >are
> >>> >referenced by template_host_ref and vm_template?
> >>> >
> >>> >Best regards,
> >>> >David Comerford
> >>> >
> >>> >Tel: +353 87 1238295
> >>> >Email: davest...@gmail.com
> >>> >Website: http://dave.ie
> >>> >GPG key: http://gpg.dave.ie
> >>> >
> >>> >
> >>> >On 22 October 2013 17:42, Nitin Mehta  wrote:
> >>> >
> >>> >> If there is an option available in the UI to delete them then do
> >>>that.
> >>> >> Else you can remove the entry from template_store_ref, I think that
> >>> >>should
> >>> >> do
> >>> >>
> >>> >> On 22/10/13 8:20 AM, "David Comerford"  wrote:
> >>> >>
> >>> >> >Hi,
> >>> >> >
> >>> >> >I've noticed my logs are filled with what looks like attempts to
> >>> >> >re-download old failed template downloads. The jobID's from the
> >>>logs
> >>> >>can
> >>> >> >be
> >>> >> >seen in the template_host_ref table.
> >>> >> >I'm wondering why the jobs haven't timed out or otherwise given up.
> >>> >>And If
> >>> >> >they are going on go on forever then how do I stop/remove them.
> >>> >> >
> >>> >> >Thanks
> >>> >> >
> >>> >> >=== Extract from management-server.log ===
> >>> >> >2013-10-21 16:46:55,202 DEBUG [agent.transport.Request]
> >>> (Timer-13:null)
> >>> >> >Seq
> >>> >> >67-1910165348: Sending { Cmd , MgmtId: 345051854263, via: 67, Ver:
> >>>v1,
> >>> >> >Flags: 100011,
> >>> >>
> >>>
> >>>
> >>>>>>[{"storage.DownloadProgressCommand":{"jobId":"25d111cf-767d-40f2-9d3f
> >>>>>>-e9
> >>> >>>21
> >>> >> >b8d00638","request":"GET_STATUS&

Re: Downloading templates loop

2013-10-23 Thread David Comerford
Or a more exciting way of phrasing that last question, is the safe to
delete all entries from template_host_ref where download_state is
NOT_DOWNLOADED?

DELETE FROM template_host_ref WHERE download_state='NOT_DOWNLOADED';

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 23 October 2013 12:16, David Comerford  wrote:

> Right sounds good.
> In some cases I have a working template that has multiple entries in
> template_host_ref. Usually there's a few failed download entries and the
> one that succeded. Am I safe to just delete the rows that have the failures
> from this table?
> Best regards,
> David Comerford
> 
> Tel: +353 87 1238295
> Email: davest...@gmail.com
> Website: http://dave.ie
> GPG key: http://gpg.dave.ie
>
>
> On 23 October 2013 05:41, Nitin Mehta  wrote:
>
>> David - I don¹t think it should be a problem. The reference is the other
>> way around.
>> Also mark the vm_template table entry as removed. Try this for one of them
>> and see.
>>
>> On 22/10/13 1:22 PM, "David Comerford"  wrote:
>>
>> >They aren't present in the UI.
>> >Would deleting them from template_store_ref not cause a problem as they
>> >are
>> >referenced by template_host_ref and vm_template?
>> >
>> >Best regards,
>> >David Comerford
>> >
>> >Tel: +353 87 1238295
>> >Email: davest...@gmail.com
>> >Website: http://dave.ie
>> >GPG key: http://gpg.dave.ie
>> >
>> >
>> >On 22 October 2013 17:42, Nitin Mehta  wrote:
>> >
>> >> If there is an option available in the UI to delete them then do that.
>> >> Else you can remove the entry from template_store_ref, I think that
>> >>should
>> >> do
>> >>
>> >> On 22/10/13 8:20 AM, "David Comerford"  wrote:
>> >>
>> >> >Hi,
>> >> >
>> >> >I've noticed my logs are filled with what looks like attempts to
>> >> >re-download old failed template downloads. The jobID's from the logs
>> >>can
>> >> >be
>> >> >seen in the template_host_ref table.
>> >> >I'm wondering why the jobs haven't timed out or otherwise given up.
>> >>And If
>> >> >they are going on go on forever then how do I stop/remove them.
>> >> >
>> >> >Thanks
>> >> >
>> >> >=== Extract from management-server.log ===
>> >> >2013-10-21 16:46:55,202 DEBUG [agent.transport.Request]
>> (Timer-13:null)
>> >> >Seq
>> >> >67-1910165348: Sending { Cmd , MgmtId: 345051854263, via: 67, Ver: v1,
>> >> >Flags: 100011,
>> >>
>>
>> >>>[{"storage.DownloadProgressCommand":{"jobId":"25d111cf-767d-40f2-9d3f-e9
>> >>>21
>> >> >b8d00638","request":"GET_STATUS","hvm":true,"description":"RHEL
>> >> >Server 6.3 32
>> >>
>>
>> >>>Bit","checksum":"edd93cda6935bcf04c3381446764eb26","maxDownloadSizeInByt
>> >>>es
>> >> >":53687091200,"id":233,"resourceType":"TEMPLATE","url":"
>> >> >http://bignas01/rhel-server-6.3-i386-dvd.iso
>> >> ","format":"ISO","accountId":2
>> >>
>>
>> >>>,"name":"233-2-03f4e933-fc90-3056-8ccd-78b4a1b27dfb","secUrl":"nfs://oth
>> >>>er
>> >> >nas/export/sec2","wait":0}}]
>> >> >}
>> >> >2013-10-21 16:46:55,254 DEBUG [agent.transport.Request]
>> >> >(AgentManager-Handler-2:null) Seq 67-1910165348: Processing: { Ans: ,
>> >> >MgmtId: 345051854263, via: 67, Ver: v1, Flags: 10,
>> >>
>>
>> >>>[{"storage.DownloadAnswer":{"jobId":"25d111cf-767d-40f2-9d3f-e921b8d0063
>> >>>8"
>> >> >,"downloadPct":0,"errorString":"No
>> >> >route to
>> >>
>>
>> >>>host","downloadStatus":"NOT_DOWNLOADED","downloadPath":"/mnt/SecStorage/
>> >>>92
>> >>
>>
>> >>>19e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/233/dnld1954968885437
>> >>>89
>> >>
>>
>> >>>6633tmp_","templateSize":0,"templatePhySicalSize":0,"checkSum":"edd93cda
>> >>>69
>> >> >35bcf04c3381446764eb26","result":false,"details":"No
>> >> >route to host","wait":0}}] }
>> >> >
>> >> >=== Example JobID from database 
>> >> >mysql> select * from template_host_ref where job_id =
>> >> >'25d111cf-767d-40f2-9d3f-e921b8d00638' \G
>> >> >*** 1. row ***
>> >> >id: 385
>> >> >host_id: 55
>> >> >template_id: 233
>> >> >created: 2012-10-29 23:09:28
>> >> >last_updated: 2013-10-21 15:54:55
>> >> >job_id: 25d111cf-767d-40f2-9d3f-e921b8d00638
>> >> >download_pct: 0
>> >> >size: 0
>> >> >physical_size: 0
>> >> >download_state: NOT_DOWNLOADED
>> >> >error_str: No route to host
>> >> >local_path:
>> >>
>>
>> >>>/mnt/SecStorage/9219e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/233
>> >>>/d
>> >> >nld1954968885437896633tmp_
>> >> >install_path: NULL
>> >> >url: http://bignas01/rhel-server-6.3-i386-dvd.iso
>> >> >destroyed: 0
>> >> >is_copy: 0
>> >> >1 row in set (0.00 sec)
>> >> >Cheers!
>> >> >
>> >> >Best regards,
>> >> >David Comerford
>> >> >
>> >> >Tel: +353 87 1238295
>> >> >Email: davest...@gmail.com
>> >> >Website: http://dave.ie
>> >> >GPG key: http://gpg.dave.ie
>> >>
>> >>
>>
>>
>


Re: Downloading templates loop

2013-10-23 Thread David Comerford
Right sounds good.
In some cases I have a working template that has multiple entries in
template_host_ref. Usually there's a few failed download entries and the
one that succeded. Am I safe to just delete the rows that have the failures
from this table?
Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 23 October 2013 05:41, Nitin Mehta  wrote:

> David - I don¹t think it should be a problem. The reference is the other
> way around.
> Also mark the vm_template table entry as removed. Try this for one of them
> and see.
>
> On 22/10/13 1:22 PM, "David Comerford"  wrote:
>
> >They aren't present in the UI.
> >Would deleting them from template_store_ref not cause a problem as they
> >are
> >referenced by template_host_ref and vm_template?
> >
> >Best regards,
> >David Comerford
> >
> >Tel: +353 87 1238295
> >Email: davest...@gmail.com
> >Website: http://dave.ie
> >GPG key: http://gpg.dave.ie
> >
> >
> >On 22 October 2013 17:42, Nitin Mehta  wrote:
> >
> >> If there is an option available in the UI to delete them then do that.
> >> Else you can remove the entry from template_store_ref, I think that
> >>should
> >> do
> >>
> >> On 22/10/13 8:20 AM, "David Comerford"  wrote:
> >>
> >> >Hi,
> >> >
> >> >I've noticed my logs are filled with what looks like attempts to
> >> >re-download old failed template downloads. The jobID's from the logs
> >>can
> >> >be
> >> >seen in the template_host_ref table.
> >> >I'm wondering why the jobs haven't timed out or otherwise given up.
> >>And If
> >> >they are going on go on forever then how do I stop/remove them.
> >> >
> >> >Thanks
> >> >
> >> >=== Extract from management-server.log ===
> >> >2013-10-21 16:46:55,202 DEBUG [agent.transport.Request] (Timer-13:null)
> >> >Seq
> >> >67-1910165348: Sending { Cmd , MgmtId: 345051854263, via: 67, Ver: v1,
> >> >Flags: 100011,
> >>
> >>>[{"storage.DownloadProgressCommand":{"jobId":"25d111cf-767d-40f2-9d3f-e9
> >>>21
> >> >b8d00638","request":"GET_STATUS","hvm":true,"description":"RHEL
> >> >Server 6.3 32
> >>
> >>>Bit","checksum":"edd93cda6935bcf04c3381446764eb26","maxDownloadSizeInByt
> >>>es
> >> >":53687091200,"id":233,"resourceType":"TEMPLATE","url":"
> >> >http://bignas01/rhel-server-6.3-i386-dvd.iso
> >> ","format":"ISO","accountId":2
> >>
> >>>,"name":"233-2-03f4e933-fc90-3056-8ccd-78b4a1b27dfb","secUrl":"nfs://oth
> >>>er
> >> >nas/export/sec2","wait":0}}]
> >> >}
> >> >2013-10-21 16:46:55,254 DEBUG [agent.transport.Request]
> >> >(AgentManager-Handler-2:null) Seq 67-1910165348: Processing: { Ans: ,
> >> >MgmtId: 345051854263, via: 67, Ver: v1, Flags: 10,
> >>
> >>>[{"storage.DownloadAnswer":{"jobId":"25d111cf-767d-40f2-9d3f-e921b8d0063
> >>>8"
> >> >,"downloadPct":0,"errorString":"No
> >> >route to
> >>
> >>>host","downloadStatus":"NOT_DOWNLOADED","downloadPath":"/mnt/SecStorage/
> >>>92
> >>
> >>>19e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/233/dnld1954968885437
> >>>89
> >>
> >>>6633tmp_","templateSize":0,"templatePhySicalSize":0,"checkSum":"edd93cda
> >>>69
> >> >35bcf04c3381446764eb26","result":false,"details":"No
> >> >route to host","wait":0}}] }
> >> >
> >> >=== Example JobID from database 
> >> >mysql> select * from template_host_ref where job_id =
> >> >'25d111cf-767d-40f2-9d3f-e921b8d00638' \G
> >> >*** 1. row ***
> >> >id: 385
> >> >host_id: 55
> >> >template_id: 233
> >> >created: 2012-10-29 23:09:28
> >> >last_updated: 2013-10-21 15:54:55
> >> >job_id: 25d111cf-767d-40f2-9d3f-e921b8d00638
> >> >download_pct: 0
> >> >size: 0
> >> >physical_size: 0
> >> >download_state: NOT_DOWNLOADED
> >> >error_str: No route to host
> >> >local_path:
> >>
> >>>/mnt/SecStorage/9219e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/233
> >>>/d
> >> >nld1954968885437896633tmp_
> >> >install_path: NULL
> >> >url: http://bignas01/rhel-server-6.3-i386-dvd.iso
> >> >destroyed: 0
> >> >is_copy: 0
> >> >1 row in set (0.00 sec)
> >> >Cheers!
> >> >
> >> >Best regards,
> >> >David Comerford
> >> >
> >> >Tel: +353 87 1238295
> >> >Email: davest...@gmail.com
> >> >Website: http://dave.ie
> >> >GPG key: http://gpg.dave.ie
> >>
> >>
>
>


Re: Downloading templates loop

2013-10-22 Thread David Comerford
They aren't present in the UI.
Would deleting them from template_store_ref not cause a problem as they are
referenced by template_host_ref and vm_template?

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 22 October 2013 17:42, Nitin Mehta  wrote:

> If there is an option available in the UI to delete them then do that.
> Else you can remove the entry from template_store_ref, I think that should
> do
>
> On 22/10/13 8:20 AM, "David Comerford"  wrote:
>
> >Hi,
> >
> >I've noticed my logs are filled with what looks like attempts to
> >re-download old failed template downloads. The jobID's from the logs can
> >be
> >seen in the template_host_ref table.
> >I'm wondering why the jobs haven't timed out or otherwise given up. And If
> >they are going on go on forever then how do I stop/remove them.
> >
> >Thanks
> >
> >=== Extract from management-server.log ===
> >2013-10-21 16:46:55,202 DEBUG [agent.transport.Request] (Timer-13:null)
> >Seq
> >67-1910165348: Sending { Cmd , MgmtId: 345051854263, via: 67, Ver: v1,
> >Flags: 100011,
> >[{"storage.DownloadProgressCommand":{"jobId":"25d111cf-767d-40f2-9d3f-e921
> >b8d00638","request":"GET_STATUS","hvm":true,"description":"RHEL
> >Server 6.3 32
> >Bit","checksum":"edd93cda6935bcf04c3381446764eb26","maxDownloadSizeInBytes
> >":53687091200,"id":233,"resourceType":"TEMPLATE","url":"
> >http://bignas01/rhel-server-6.3-i386-dvd.iso
> ","format":"ISO","accountId":2
> >,"name":"233-2-03f4e933-fc90-3056-8ccd-78b4a1b27dfb","secUrl":"nfs://other
> >nas/export/sec2","wait":0}}]
> >}
> >2013-10-21 16:46:55,254 DEBUG [agent.transport.Request]
> >(AgentManager-Handler-2:null) Seq 67-1910165348: Processing: { Ans: ,
> >MgmtId: 345051854263, via: 67, Ver: v1, Flags: 10,
> >[{"storage.DownloadAnswer":{"jobId":"25d111cf-767d-40f2-9d3f-e921b8d00638"
> >,"downloadPct":0,"errorString":"No
> >route to
> >host","downloadStatus":"NOT_DOWNLOADED","downloadPath":"/mnt/SecStorage/92
> >19e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/233/dnld195496888543789
> >6633tmp_","templateSize":0,"templatePhySicalSize":0,"checkSum":"edd93cda69
> >35bcf04c3381446764eb26","result":false,"details":"No
> >route to host","wait":0}}] }
> >
> >=== Example JobID from database 
> >mysql> select * from template_host_ref where job_id =
> >'25d111cf-767d-40f2-9d3f-e921b8d00638' \G
> >*** 1. row ***
> >id: 385
> >host_id: 55
> >template_id: 233
> >created: 2012-10-29 23:09:28
> >last_updated: 2013-10-21 15:54:55
> >job_id: 25d111cf-767d-40f2-9d3f-e921b8d00638
> >download_pct: 0
> >size: 0
> >physical_size: 0
> >download_state: NOT_DOWNLOADED
> >error_str: No route to host
> >local_path:
> >/mnt/SecStorage/9219e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/233/d
> >nld1954968885437896633tmp_
> >install_path: NULL
> >url: http://bignas01/rhel-server-6.3-i386-dvd.iso
> >destroyed: 0
> >is_copy: 0
> >1 row in set (0.00 sec)
> >Cheers!
> >
> >Best regards,
> >David Comerford
> >
> >Tel: +353 87 1238295
> >Email: davest...@gmail.com
> >Website: http://dave.ie
> >GPG key: http://gpg.dave.ie
>
>


Downloading templates loop

2013-10-22 Thread David Comerford
Hi,

I've noticed my logs are filled with what looks like attempts to
re-download old failed template downloads. The jobID's from the logs can be
seen in the template_host_ref table.
I'm wondering why the jobs haven't timed out or otherwise given up. And If
they are going on go on forever then how do I stop/remove them.

Thanks

=== Extract from management-server.log ===
2013-10-21 16:46:55,202 DEBUG [agent.transport.Request] (Timer-13:null) Seq
67-1910165348: Sending { Cmd , MgmtId: 345051854263, via: 67, Ver: v1,
Flags: 100011,
[{"storage.DownloadProgressCommand":{"jobId":"25d111cf-767d-40f2-9d3f-e921b8d00638","request":"GET_STATUS","hvm":true,"description":"RHEL
Server 6.3 32
Bit","checksum":"edd93cda6935bcf04c3381446764eb26","maxDownloadSizeInBytes":53687091200,"id":233,"resourceType":"TEMPLATE","url":"
http://bignas01/rhel-server-6.3-i386-dvd.iso","format":"ISO","accountId":2,"name":"233-2-03f4e933-fc90-3056-8ccd-78b4a1b27dfb","secUrl":"nfs://othernas/export/sec2","wait":0}}]
}
2013-10-21 16:46:55,254 DEBUG [agent.transport.Request]
(AgentManager-Handler-2:null) Seq 67-1910165348: Processing: { Ans: ,
MgmtId: 345051854263, via: 67, Ver: v1, Flags: 10,
[{"storage.DownloadAnswer":{"jobId":"25d111cf-767d-40f2-9d3f-e921b8d00638","downloadPct":0,"errorString":"No
route to
host","downloadStatus":"NOT_DOWNLOADED","downloadPath":"/mnt/SecStorage/9219e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/233/dnld1954968885437896633tmp_","templateSize":0,"templatePhySicalSize":0,"checkSum":"edd93cda6935bcf04c3381446764eb26","result":false,"details":"No
route to host","wait":0}}] }

=== Example JobID from database 
mysql> select * from template_host_ref where job_id =
'25d111cf-767d-40f2-9d3f-e921b8d00638' \G
*** 1. row ***
id: 385
host_id: 55
template_id: 233
created: 2012-10-29 23:09:28
last_updated: 2013-10-21 15:54:55
job_id: 25d111cf-767d-40f2-9d3f-e921b8d00638
download_pct: 0
size: 0
physical_size: 0
download_state: NOT_DOWNLOADED
error_str: No route to host
local_path:
/mnt/SecStorage/9219e7b2-1e8a-3b9c-bfba-fa05ffc80290/template/tmpl/2/233/dnld1954968885437896633tmp_
install_path: NULL
url: http://bignas01/rhel-server-6.3-i386-dvd.iso
destroyed: 0
is_copy: 0
1 row in set (0.00 sec)
Cheers!

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


Re: ICMP to system VMs?

2013-10-15 Thread David Comerford
Yeah your right. I got ICMP opened on the firewall and it didn't fix my
problem.
Turned out the load balancing from SSVM to CS server had a short TCP
timeout and was causing havoc.
Thanks!

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 14 October 2013 17:30, Clayton Weise  wrote:

> What CS considers a ping isn't just ICMP from my understanding.  It also
> entails a few other healthchecks related to the agent.  There's a nifty
> document here and CloudStack starts on page 3.
>
>
> http://support.citrix.com/servlet/KbServlet/download/2389-102-654859/CitrixPorts_by_Port_1103.pdf
>
> -Clayton
>
> -Original Message-
> From: David Comerford [mailto:davest...@gmail.com]
> Sent: Friday, October 11, 2013 9:18 AM
> To: users@cloudstack.apache.org
> Subject: ICMP to system VMs?
>
> Hi,
>
> Does CS need to be able to ping the system vm's? I'm noticing a lot of this
> in the logs but everything is working fine.
>
> [cloud.ha.HighAvailabilityManagerImpl] (AgentTaskPool-14:null)
> PingInvestigator was able to determine host 61 is in Disconnected
> [agent.manager.AgentManagerImpl] (AgentTaskPool-14:null) The state
> determined is Disconnected
> [agent.manager.AgentManagerImpl] (AgentTaskPool-14:null) Agent is
> disconnected but the host is still up: 61-s-400-VM
> Regards,
> David Comerford
> 
> Tel: +353 87 1238295
> Email: davest...@gmail.com
> Website: http://dave.ie
> GPG key: http://gpg.dave.ie
>


ICMP to system VMs?

2013-10-11 Thread David Comerford
Hi,

Does CS need to be able to ping the system vm's? I'm noticing a lot of this
in the logs but everything is working fine.

[cloud.ha.HighAvailabilityManagerImpl] (AgentTaskPool-14:null)
PingInvestigator was able to determine host 61 is in Disconnected
[agent.manager.AgentManagerImpl] (AgentTaskPool-14:null) The state
determined is Disconnected
[agent.manager.AgentManagerImpl] (AgentTaskPool-14:null) Agent is
disconnected but the host is still up: 61-s-400-VM
Regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


Re: Template storage

2013-10-08 Thread David Comerford
Smashing. Thanks guys.

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 8 October 2013 18:15, Nitin Mehta  wrote:

> Yes, they should get copied.
> Also to answer the question "If so, how are they copied around? Daily
> rsync or something similar?"
> Moment a public template is added, its download is requested on all the
> secondary storages.
>
> Thanks,
> -Nitin
>
> On 08/10/13 4:41 AM, "David Comerford"  wrote:
>
> >Thanks Sanjeev,
> >
> >If a new secondary storage volume is added then do existing public
> >templates get copied over so they're all in sync?
> >
> >Regards,
> >Dave
> >On Oct 8, 2013 6:55 AM, "Sanjeev Neelarapu"  >
> >wrote:
> >
> >> Hi David,
> >>
> >> If a zone has multiple secondary storages then all the public templates
> >> will be stored on all the secondary storages and private templates will
> >>be
> >> stored in one of the storages. Picking the storage for private
> >>templates is
> >> random.
> >>
> >> Thanks,
> >> Sanjeev
> >>
> >> -Original Message-
> >> From: David Comerford [mailto:davest...@gmail.com]
> >> Sent: Tuesday, October 08, 2013 4:39 AM
> >> To: users@cloudstack.apache.org
> >> Subject: Template storage
> >>
> >> Hi all,
> >>
> >> Are all templates stored on all secondary storage volumes?
> >> If so, how are they copied around? Daily rsync or something similar?
> >>
> >> Thanks
> >>
> >> David Comerford
> >> 
> >> Tel: +353 87 1238295
> >> Email: davest...@gmail.com
> >> Website: http://dave.ie
> >> GPG key: http://gpg.dave.ie
> >>
>
>


RE: Template storage

2013-10-08 Thread David Comerford
Thanks Sanjeev,

If a new secondary storage volume is added then do existing public
templates get copied over so they're all in sync?

Regards,
Dave
On Oct 8, 2013 6:55 AM, "Sanjeev Neelarapu" 
wrote:

> Hi David,
>
> If a zone has multiple secondary storages then all the public templates
> will be stored on all the secondary storages and private templates will be
> stored in one of the storages. Picking the storage for private templates is
> random.
>
> Thanks,
> Sanjeev
>
> -----Original Message-
> From: David Comerford [mailto:davest...@gmail.com]
> Sent: Tuesday, October 08, 2013 4:39 AM
> To: users@cloudstack.apache.org
> Subject: Template storage
>
> Hi all,
>
> Are all templates stored on all secondary storage volumes?
> If so, how are they copied around? Daily rsync or something similar?
>
> Thanks
>
> David Comerford
> 
> Tel: +353 87 1238295
> Email: davest...@gmail.com
> Website: http://dave.ie
> GPG key: http://gpg.dave.ie
>


Re: question about snapshots and Windows Volume Shadow Copy

2013-10-07 Thread David Comerford
Can't say I've tried it personally but the docs for XS 6.1 say that Tools
does have support for VSS but it's not enabled by default? Odd.

http://docs.vmd.citrix.com/XenServer/6.1.0/1.0/en_gb/guest.html#windows_vssdrivers

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 7 October 2013 22:39, Adrian Lewis  wrote:

> No answers I'm afraid Len but keen to hear what the definitive answer is
> regarding Xen guests. Anyone?
>
> -Original Message-
> From: Kelven Yang [mailto:kelven.y...@citrix.com]
> Sent: 07 October 2013 19:10
> To: users@cloudstack.apache.org
> Subject: Re: question about snapshots and Windows Volume Shadow Copy
>
>
>
> On 10/7/13 3:37 AM, "Len Bellemore" 
> wrote:
>
> >Hi Guys,
> >
> >I've been asked if Cloudstack snapshots integrate in any way with
> >Windows Volume Shadow Copy.  I guess the question is really about what
> >type of "backup" does cloudstack actually provide. Is it only crash
> consistent?
>
> It is only crash consistent. But with VMware, if guest OS (Windows server)
> has VSS enabled and VMware tools is installed in the guest OSS. Quiesce
> event will be notified to applications that are running in the guest
> before snapshot is taken.
>
>
> >I know with 4.2 we have VMWare snapshot support, which is a really
> >great feature addition, but with XenServer, what are my options?
>
> Not sure about XenServer, I think it is crash consistent only
>
> >
> >Thanks
> >Len
> >
> >
> >IMPORTANT NOTICE. This electronic message contains information from
> >Control Circle Ltd, which may be privileged or confidential. The
> >information is intended for use only by the individual(s) or entity
> >named above. If you are not the intended recipient, be aware that any
> >disclosure, copying, distribution or use of the contents of this
> >information is strictly prohibited. If you have received this
> >electronic message in error, please notify me by telephone or email (to
> >the number or email address above) immediately. Activity and use of the
> >ControlCircle e-mail system is monitored to secure its effective
> >operation and for other lawful business purposes. Communications using
> >this system will also be monitored and may be recorded to secure
> >effective operation and for other lawful business purposes
>


Template storage

2013-10-07 Thread David Comerford
Hi all,

Are all templates stored on all secondary storage volumes?
If so, how are they copied around? Daily rsync or something similar?

Thanks

David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


Re: Management addresses on XenServers

2013-10-03 Thread David Comerford
Ah it was the virtual routers I was thinking of.
Cool, thanks Geoff :)

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 3 October 2013 22:11, Geoff Higginbottom <
geoff.higginbot...@shapeblue.com> wrote:

> David,
>
> Link local is so that the management server can talk to them, and the
> private (management) address is so they can talk to the management server.
>
> The Virtual Router has no private address so the standard way that
> CloudStack management servers talk to all system VMs is via link local.
>
> SSVM and CPVM have a private address and they use this when thy initiate
> comms to the management server, using the address specified in the 'host'
> global setting' which should be a load balanced ip if you have more than
> one management server.
>
> The exception to this is if using VMware which does not have a link local
> network, in which case the equivalent VIF on the vm is allocated a private
> ip range, but of course basic networking does not work with VMWare so we
> can ignore that for now.
>
> Regards
>
> Geoff Higginbottom
> CTO / Cloud Architect
>
>
> D: +44 20 3603 0542 | S: +44 20 3603 0540 +442036030540> | M: +447968161581
>
> geoff.higginbot...@shapeblue.com<mailto:geoff.higginbot...@shapeblue.com>
> | www.shapeblue.com
>
> ShapeBlue Ltd, 53 Chandos Place, Covent Garden, London, WC2N 4HS
>
>
>
> On 3 Oct 2013, at 22:02, "David Comerford"  davest...@gmail.com>> wrote:
>
> Hi,
>
> Why do system VM's on XenServer in a Basic networking zone require a
> link-local address AND a private IP from the management range?
>
> Best regards,
> David Comerford
> 
> Tel: +353 87 1238295
> Email: davest...@gmail.com<mailto:davest...@gmail.com>
> Website: http://dave.ie
> GPG key: http://gpg.dave.ie
> 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. 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 is a
> registered trademark.
>


Management addresses on XenServers

2013-10-03 Thread David Comerford
Hi,

Why do system VM's on XenServer in a Basic networking zone require a
link-local address AND a private IP from the management range?

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


Re: trubleshooting os boot issues

2013-09-10 Thread David Comerford
XenCenter->VM->Start/Shutdown->Start in Recovery Mode
Recovery mode defaults to booting from the DVD drive before the attached
disk.

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 10 September 2013 23:43, Dean Kamali  wrote:

> Its CS 4.1.1 and Xenserver 6.0.2
>
> Thanks :)
>
>
> On Tue, Sep 10, 2013 at 6:33 PM, David Comerford  >wrote:
>
> > Should be possible. What hypervisor are you using friend?
> >
> > regards,
> > David Comerford
> > 
> > Tel: +353 87 1238295
> > Email: davest...@gmail.com
> > Website: http://dave.ie
> > GPG key: http://gpg.dave.ie
> >
> >
> > On 10 September 2013 20:58, Dean Kamali  wrote:
> >
> > > Hello everyone
> > >
> > > Just wondering if it is possible to attach ISO boot CD and start the VM
> > in
> > > recovery mode.
> > >
> > > I have noticed that if you deploy a VM  rom a template then attach an
> ISO
> > > then restarting the VM   it won't boot from ISO.
> > >
> > > However for VM deployed from ISO, it will honer the selection and it
> will
> > > let me use the ISO disk.
> > >
> > > can anyone verify ??
> > >
> > > Thanks
> > >
> >
>


Re: trubleshooting os boot issues

2013-09-10 Thread David Comerford
Should be possible. What hypervisor are you using friend?

regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 10 September 2013 20:58, Dean Kamali  wrote:

> Hello everyone
>
> Just wondering if it is possible to attach ISO boot CD and start the VM in
> recovery mode.
>
> I have noticed that if you deploy a VM  rom a template then attach an ISO
> then restarting the VM   it won't boot from ISO.
>
> However for VM deployed from ISO, it will honer the selection and it will
> let me use the ISO disk.
>
> can anyone verify ??
>
> Thanks
>


Re: cloudmonkey - list virtualmachines always empty

2013-09-02 Thread David Comerford
I bet it was "listall=true", I always forget that :)

regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 2 September 2013 15:28, Musayev, Ilya  wrote:

> Dean,
>
> Do you intend to see all VMs under ROOT domain, or under specific project?
>
> I have no issues seeing vms under ROOT domain, however, to see vms in
> projects, I have to specify projectId.
>
> Regards
> ilya
>
> -Original Message-
> From: Donal Lafferty [mailto:donal.laffe...@citrix.com]
> Sent: Monday, September 02, 2013 8:50 AM
> To: users@cloudstack.apache.org
> Cc: Dean Kamali
> Subject: RE: cloudmonkey - list virtualmachines always empty
>
> Could it be a permissions issue?  Does the user for the CloudStack API
> keys have access to those VMs?
>
> > -Original Message-
> > From: Kirk Kosinski [mailto:kirkkosin...@gmail.com]
> > Sent: 31 August 2013 07:30
> > To: users@cloudstack.apache.org
> > Cc: Dean Kamali
> > Subject: Re: cloudmonkey - list virtualmachines always empty
> >
> > Hi, Dean.  Does it return anything if you add "listall=true"?  What
> > about when specifying a particular VM  with "id=vm_id"?  Are there any
> > entries (errors or
> > otherwise) in the cloudmonkey log?
> >
> > Best regards,
> > Kirk
> >
> > On 08/30/2013 10:30 PM, Dean Kamali wrote:
> > > Hello everyone
> > >
> > > I have been using cloudmonkey for few months now, and I always get
> > > no results when I run
> > >
> > > mycloudmonkey> list virtualmachines
> > >
> > > mycloudmonkey>
> > >
> > > listing users / diskofferings .. etc  works fine,
> > >
> > > PS: I did run sync number of times and yet, list virtualmachines
> > > returns no data.
> > >
> > > Dean
> > >
>
>
>


Re: Architecture Question

2013-08-06 Thread David Comerford
np :)
Looking forward to knowing the answer to this one actually.

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 7 August 2013 00:50, Bradley Hieber  wrote:

> I do appreciate the assistance David
> —
> Sent from Mailbox for iPhone
>
> On Tue, Aug 6, 2013 at 7:48 PM, David Comerford 
> wrote:
>
> > Ah I understand. So you need a "DMZ" network tier with some device on it
> > that filters all traffic to and from the other tiers?
> > That's a bit beyond my VPC experience, sorry. Hopefully someone else
> might
> > chime in at this point :)
> > Best regards,
> > David Comerford
> > 
> > Tel: +353 87 1238295
> > Email: davest...@gmail.com
> > Website: http://dave.ie
> > GPG key: http://gpg.dave.ie
> > On 7 August 2013 00:39, Bradley Hieber  wrote:
> >> In the design we are building, we need to have a DMZ tier that
> encompasses
> >> all of the VPC's and all traffic needs to pass through it.
> >>
> >>
> >> On Tue, Aug 6, 2013 at 7:15 PM, David Comerford 
> >> wrote:
> >>
> >> > You don't need a proxy. The VPC is held together by the virtual
> router.
> >> > That forwards the traffic to and from all the zones/DMZs or the
> >> CloudStack
> >> > term "network tiers".
> >> >
> >> > Ideally you would make a Web network tier where the web servers would
> >> > reside. Anther tier for application servers, anto
> >> >
> >> > Best regards,
> >> > David Comerford
> >> > 
> >> > Tel: +353 87 1238295
> >> > Email: davest...@gmail.com
> >> > Website: http://dave.ie
> >> > GPG key: http://gpg.dave.ie
> >> >
> >> >
> >> > On 7 August 2013 00:09, Bradley Hieber  wrote:
> >> >
> >> > > I need to place a proxy and web servers in my DMZ. Am I just not
> >> getting
> >> > > something?
> >> > >
> >> > >
> >> > > On Tue, Aug 6, 2013 at 7:06 PM, David Comerford <
> davest...@gmail.com>
> >> > > wrote:
> >> > >
> >> > > > The DMZ in your diagram would be the Guest Public network you have
> >> > > defined.
> >> > > > Each zone you have behind the router can be isolated on it's own
> VLAN
> >> > and
> >> > > > have it's own firewall rules controlling ingress/egress.
> >> > > >
> >> > > > This diagram might explain it a bit better:
> >> > > >
> >> > > >
> >> > >
> >> >
> >>
> https://cwiki.apache.org/confluence/download/attachments/30747129/image001.png?version=1&modificationDate=1357237708000
> >> > > >
> >> > > > Best regards,
> >> > > > David Comerford
> >> > > > 
> >> > > > Tel: +353 87 1238295
> >> > > > Email: davest...@gmail.com
> >> > > > Website: http://dave.ie
> >> > > > GPG key: http://gpg.dave.ie
> >> > > >
> >> > > >
> >> > > > On 6 August 2013 23:59, Bradley Hieber 
> wrote:
> >> > > >
> >> > > > > How would I force the traffic to go through the DMZ? Would I
> set a
> >> > > small
> >> > > > > LAN in the virtual router to point to a proxy address in the
> DMZ?
> >> > > > > —
> >> > > > > Sent from Mailbox for iPhone
> >> > > > >
> >> > > > > On Tue, Aug 6, 2013 at 6:58 PM, David Comerford <
> >> davest...@gmail.com
> >> > >
> >> > > > > wrote:
> >> > > > >
> >> > > > > > VPC's are the way to go. Your diagram is a text book example.
> >> > > > > >
> >> > > > >
> >> > > >
> >> > >
> >> >
> >>
> http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/Installation_Guide/configure-vpc.html
> >> > > > > > Best regards,
> >> > > > > > David Comerford
> >> > > > > > 
> >> > > > > > Tel: +353 87 1238295
> >> 

Re: Architecture Question

2013-08-06 Thread David Comerford
Ah I understand. So you need a "DMZ" network tier with some device on it
that filters all traffic to and from the other tiers?
That's a bit beyond my VPC experience, sorry. Hopefully someone else might
chime in at this point :)

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 7 August 2013 00:39, Bradley Hieber  wrote:

> In the design we are building, we need to have a DMZ tier that encompasses
> all of the VPC's and all traffic needs to pass through it.
>
>
> On Tue, Aug 6, 2013 at 7:15 PM, David Comerford 
> wrote:
>
> > You don't need a proxy. The VPC is held together by the virtual router.
> > That forwards the traffic to and from all the zones/DMZs or the
> CloudStack
> > term "network tiers".
> >
> > Ideally you would make a Web network tier where the web servers would
> > reside. Anther tier for application servers, anto
> >
> > Best regards,
> > David Comerford
> > 
> > Tel: +353 87 1238295
> > Email: davest...@gmail.com
> > Website: http://dave.ie
> > GPG key: http://gpg.dave.ie
> >
> >
> > On 7 August 2013 00:09, Bradley Hieber  wrote:
> >
> > > I need to place a proxy and web servers in my DMZ. Am I just not
> getting
> > > something?
> > >
> > >
> > > On Tue, Aug 6, 2013 at 7:06 PM, David Comerford 
> > > wrote:
> > >
> > > > The DMZ in your diagram would be the Guest Public network you have
> > > defined.
> > > > Each zone you have behind the router can be isolated on it's own VLAN
> > and
> > > > have it's own firewall rules controlling ingress/egress.
> > > >
> > > > This diagram might explain it a bit better:
> > > >
> > > >
> > >
> >
> https://cwiki.apache.org/confluence/download/attachments/30747129/image001.png?version=1&modificationDate=1357237708000
> > > >
> > > > Best regards,
> > > > David Comerford
> > > > 
> > > > Tel: +353 87 1238295
> > > > Email: davest...@gmail.com
> > > > Website: http://dave.ie
> > > > GPG key: http://gpg.dave.ie
> > > >
> > > >
> > > > On 6 August 2013 23:59, Bradley Hieber  wrote:
> > > >
> > > > > How would I force the traffic to go through the DMZ? Would I set a
> > > small
> > > > > LAN in the virtual router to point to a proxy address in the DMZ?
> > > > > —
> > > > > Sent from Mailbox for iPhone
> > > > >
> > > > > On Tue, Aug 6, 2013 at 6:58 PM, David Comerford <
> davest...@gmail.com
> > >
> > > > > wrote:
> > > > >
> > > > > > VPC's are the way to go. Your diagram is a text book example.
> > > > > >
> > > > >
> > > >
> > >
> >
> http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/Installation_Guide/configure-vpc.html
> > > > > > Best regards,
> > > > > > David Comerford
> > > > > > 
> > > > > > Tel: +353 87 1238295
> > > > > > Email: davest...@gmail.com
> > > > > > Website: http://dave.ie
> > > > > > GPG key: http://gpg.dave.ie
> > > > > > On 6 August 2013 14:36, Bradley Hieber 
> > wrote:
> > > > > >> It could very well be VPC's. The idea is we are planning on
> using
> > > 5-6
> > > > > hosts
> > > > > >> in this environment. So designing the solution to fit this
> > hardware
> > > > > >> requirement is critical.
> > > > > >>
> > > > > >>
> > > > > >> On Tue, Aug 6, 2013 at 9:29 AM, Murali Reddy <
> > > murali.re...@citrix.com
> > > > > >> >wrote:
> > > > > >>
> > > > > >> >
> > > > > >> > Can 'hosting zones' represented in diagram can be contained
> > into a
> > > > > >> > CloudStack zone? If so you can dedicated set of hosts to be in
> > the
> > > > > DMZ.
> > > > > >> > Then you can leverage 'host tags' [1] functionality to place
> > VM's
> > > > > >> > providing

Re: HOST installtion

2013-08-06 Thread David Comerford
> hello everyone
> i have installed cloudstack management server but i am facing some
problems
> 1.i dont know management server name so that i can run it on browser
http://ip.address.of.managemet:8080/client

> 2.i literally  dont know any thing about hypervisor or host installation.
> 3.i need to install KVM on same machine can any one please guide me
They are some big questions. Your going to have to read the manual my
friend.
http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.1/html/Installation_Guide/index.html

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 6 August 2013 10:32, Kashif Ali  wrote:

> hello everyone
> i have installed cloudstack management server but i am facing some problems
> 1.i dont know management server name so that i can run it on browser
> 2.i literally  dont know any thing about hypervisor or host installation.
> 3.i need to install KVM on same machine can any one please guide me
>
> its urgent
>
> thanks
> --
> Regards,
>
> *Kashif Ali*
> Undergraduate Student | 7th Semester
> BESE-1A | NUST-SEECS | Islamabad
> 10besek...@seecs.edu.pk
>


Re: Architecture Question

2013-08-06 Thread David Comerford
You don't need a proxy. The VPC is held together by the virtual router.
That forwards the traffic to and from all the zones/DMZs or the CloudStack
term "network tiers".

Ideally you would make a Web network tier where the web servers would
reside. Anther tier for application servers, anto

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 7 August 2013 00:09, Bradley Hieber  wrote:

> I need to place a proxy and web servers in my DMZ. Am I just not getting
> something?
>
>
> On Tue, Aug 6, 2013 at 7:06 PM, David Comerford 
> wrote:
>
> > The DMZ in your diagram would be the Guest Public network you have
> defined.
> > Each zone you have behind the router can be isolated on it's own VLAN and
> > have it's own firewall rules controlling ingress/egress.
> >
> > This diagram might explain it a bit better:
> >
> >
> https://cwiki.apache.org/confluence/download/attachments/30747129/image001.png?version=1&modificationDate=1357237708000
> >
> > Best regards,
> > David Comerford
> > 
> > Tel: +353 87 1238295
> > Email: davest...@gmail.com
> > Website: http://dave.ie
> > GPG key: http://gpg.dave.ie
> >
> >
> > On 6 August 2013 23:59, Bradley Hieber  wrote:
> >
> > > How would I force the traffic to go through the DMZ? Would I set a
> small
> > > LAN in the virtual router to point to a proxy address in the DMZ?
> > > —
> > > Sent from Mailbox for iPhone
> > >
> > > On Tue, Aug 6, 2013 at 6:58 PM, David Comerford 
> > > wrote:
> > >
> > > > VPC's are the way to go. Your diagram is a text book example.
> > > >
> > >
> >
> http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/Installation_Guide/configure-vpc.html
> > > > Best regards,
> > > > David Comerford
> > > > 
> > > > Tel: +353 87 1238295
> > > > Email: davest...@gmail.com
> > > > Website: http://dave.ie
> > > > GPG key: http://gpg.dave.ie
> > > > On 6 August 2013 14:36, Bradley Hieber  wrote:
> > > >> It could very well be VPC's. The idea is we are planning on using
> 5-6
> > > hosts
> > > >> in this environment. So designing the solution to fit this hardware
> > > >> requirement is critical.
> > > >>
> > > >>
> > > >> On Tue, Aug 6, 2013 at 9:29 AM, Murali Reddy <
> murali.re...@citrix.com
> > > >> >wrote:
> > > >>
> > > >> >
> > > >> > Can 'hosting zones' represented in diagram can be contained into a
> > > >> > CloudStack zone? If so you can dedicated set of hosts to be in the
> > > DMZ.
> > > >> > Then you can leverage 'host tags' [1] functionality to place VM's
> > > >> > providing edge services (CloudStack system VM's or user VM's) on
> the
> > > >> hosts
> > > >> > dedicated in DMZ.
> > > >> >
> > > >> > [1]
> > > https://cwiki.apache.org/CLOUDSTACK/host-tags-and-storage-tags.html
> > > >> >
> > > >> > On 05/08/13 11:28 PM, "Bradley Hieber" 
> > wrote:
> > > >> >
> > > >> > >The goal is to have a virtualized dmz area where we can place
> > public
> > > >> > >facing
> > > >> > >webservers, and other software based firewalls to protect the
> > > different
> > > >> > >virtualization areas. Each of the virtualization areas will host
> > > >> different
> > > >> > >environments for clients to utilize.
> > > >> > >
> > > >> > >
> > > >> > >On Mon, Aug 5, 2013 at 1:55 PM, Chip Childers
> > > >> > >wrote:
> > > >> > >
> > > >> > >> Can you explain a bit more about what your diagram implies?
>  That
> > > >> might
> > > >> > >> help us help you.
> > > >> > >>
> > > >> > >>
> > > >> > >> On Mon, Aug 5, 2013 at 10:24 AM, Bradley Hieber <
> > > mercsni...@gmail.com
> > > >> > >> >wrote:
> > > >> > >>
> > > >> > >> > Is it possible to create this type of architecture with
> > > cloudstack?
> > > >> > >>Any
> > > >> > >> > design ideas you can provide?
> > > >> > >> >
> > > >> > >> > http://img850.imageshack.us/img850/7940/lnzp.jpg
> > > >> > >> >
> > > >> > >> > --
> > > >> > >> > Brad
> > > >> > >> >
> > > >> > >>
> > > >> > >
> > > >> > >
> > > >> > >
> > > >> > >--
> > > >> > >Brad
> > > >> > >
> > > >> >
> > > >> >
> > > >> >
> > > >>
> > > >>
> > > >> --
> > > >> Brad
> > > >>
> > >
> >
>
>
>
> --
> Brad
>


Re: Architecture Question

2013-08-06 Thread David Comerford
The DMZ in your diagram would be the Guest Public network you have defined.
Each zone you have behind the router can be isolated on it's own VLAN and
have it's own firewall rules controlling ingress/egress.

This diagram might explain it a bit better:
https://cwiki.apache.org/confluence/download/attachments/30747129/image001.png?version=1&modificationDate=1357237708000

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 6 August 2013 23:59, Bradley Hieber  wrote:

> How would I force the traffic to go through the DMZ? Would I set a small
> LAN in the virtual router to point to a proxy address in the DMZ?
> —
> Sent from Mailbox for iPhone
>
> On Tue, Aug 6, 2013 at 6:58 PM, David Comerford 
> wrote:
>
> > VPC's are the way to go. Your diagram is a text book example.
> >
> http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/Installation_Guide/configure-vpc.html
> > Best regards,
> > David Comerford
> > 
> > Tel: +353 87 1238295
> > Email: davest...@gmail.com
> > Website: http://dave.ie
> > GPG key: http://gpg.dave.ie
> > On 6 August 2013 14:36, Bradley Hieber  wrote:
> >> It could very well be VPC's. The idea is we are planning on using 5-6
> hosts
> >> in this environment. So designing the solution to fit this hardware
> >> requirement is critical.
> >>
> >>
> >> On Tue, Aug 6, 2013 at 9:29 AM, Murali Reddy  >> >wrote:
> >>
> >> >
> >> > Can 'hosting zones' represented in diagram can be contained into a
> >> > CloudStack zone? If so you can dedicated set of hosts to be in the
> DMZ.
> >> > Then you can leverage 'host tags' [1] functionality to place VM's
> >> > providing edge services (CloudStack system VM's or user VM's) on the
> >> hosts
> >> > dedicated in DMZ.
> >> >
> >> > [1]
> https://cwiki.apache.org/CLOUDSTACK/host-tags-and-storage-tags.html
> >> >
> >> > On 05/08/13 11:28 PM, "Bradley Hieber"  wrote:
> >> >
> >> > >The goal is to have a virtualized dmz area where we can place public
> >> > >facing
> >> > >webservers, and other software based firewalls to protect the
> different
> >> > >virtualization areas. Each of the virtualization areas will host
> >> different
> >> > >environments for clients to utilize.
> >> > >
> >> > >
> >> > >On Mon, Aug 5, 2013 at 1:55 PM, Chip Childers
> >> > >wrote:
> >> > >
> >> > >> Can you explain a bit more about what your diagram implies?  That
> >> might
> >> > >> help us help you.
> >> > >>
> >> > >>
> >> > >> On Mon, Aug 5, 2013 at 10:24 AM, Bradley Hieber <
> mercsni...@gmail.com
> >> > >> >wrote:
> >> > >>
> >> > >> > Is it possible to create this type of architecture with
> cloudstack?
> >> > >>Any
> >> > >> > design ideas you can provide?
> >> > >> >
> >> > >> > http://img850.imageshack.us/img850/7940/lnzp.jpg
> >> > >> >
> >> > >> > --
> >> > >> > Brad
> >> > >> >
> >> > >>
> >> > >
> >> > >
> >> > >
> >> > >--
> >> > >Brad
> >> > >
> >> >
> >> >
> >> >
> >>
> >>
> >> --
> >> Brad
> >>
>


Re: Not getting GUI

2013-08-06 Thread David Comerford
"It may be worth checking the permissions on the catalina.out file in
Tomcat.  I know I've seen where people said they have issues with the
permissions being wrong on that file, so the tomcat server would say it's
starting when given the start command, but would then crash when it
couldn't open the log file."

I've seen this one recently.
'chown cloud:cloud /var/log/cloud/management/catalina.out' fixed it for me.

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 5 August 2013 19:59, David Ortiz  wrote:

> It may be worth checking the permissions on the catalina.out file in
> Tomcat.  I know I've seen where people said they have issues with the
> permissions being wrong on that file, so the tomcat server would say it's
> starting when given the start command, but would then crash when it
> couldn't open the log file.
> Dave
>
> > From: jessica.tomec...@citrix.com
> > To: users@cloudstack.apache.org
> > CC: karthik.c...@gmail.com; d...@cloudstack.apache.org
> > Subject: RE: Not getting GUI
> > Date: Mon, 5 Aug 2013 18:19:32 +
> >
> > I have not heard that Java requirement before. Is that really true?
> >
> > Jessica T.
> > 
> > From: Prashant Sreedharan [prashant.sreedha...@citrix.com]
> > Sent: Monday, August 05, 2013 10:36 AM
> > To: users@cloudstack.apache.org
> > Cc: karthik.c...@gmail.com
> > Subject: RE: Not getting GUI
> >
> > Please find my check list for the Cloudstack  management install
> >
> > Make sure that the VM can reach the Internet. ping 8.8.8.8 ,  ping
> google.com ,
> >  Set SELinux to be permissive by default
> >  Check JAVA version. Cloudstack requires Sun Java and not the IBM
> java version.
> >  $DB_SERVER be pingable, and MySQL should be listening on that
> address.
> >  The CloudStack management boxes should be running RHEL 6 or centos
>  (check /etc/issue )
> >  The NFS server mount point must work from the CloudStack management
> VM , Pod XenServes and the secondary storage vm  ( ssvm )
> >
> >
> > To Check JAVA
> >
> > rpm -qa | grep -i java
> >
> >  java-1.5.0-gcj-1.5.0.0-29.1.el6.x86_64
> >  java_cup-0.10k-5.el6.x86_64
> >  java-1.6.0-sun-1.6.0.37-1jpp.1.el6_3.x86_6
> >
> >
> > Please check if these ports are open
> >
> > 1) CloudStack Management Server
> >
> > TCP 9090 + 8250   (bi-directional)
> > To/from CloudStack Management Server
> >
> > 2) User/Client/API
> >
> >  TCP 8080 User/Client/API to CloudStack Management Server
> > - Management Port (authenticated communication)
> >
> > 3) User/Client
> >
> >  TCP 8096 User/Client to CloudStack Management Server -
> > Management Port (unauthenticated communication)
> >
> > 4) vCenter
> >
> > TCP 443 CloudStack Management Server to vCenter
> >
> > 5) KVM
> >
> > TCP 22 CloudStack Management Server to KVM
> >
> > 6) XenServer
> >
> > TCP 22/80/443 CloudStack Management Server to XenServer
> >
> > 7) MySQL
> >
> >  TCP 3306 CloudStack Management Server to MySQL
> >
> > 8) DNS
> >
> >  TCP 53 CloudStack Management Server to DNS
> >
> > 9) Secondary Storage
> >
> >  TCP 3922 CloudStack Management Server to SSVM
> >
> > 10) Virtual Machine (SSVM) TCP 8250 SSVM to CloudStack Management Server
> >
> > TCP 80/443 SSVM to HTTP(s) File Share to download VM Image
> > TCP 111/2049 SSVM to NFS
> > TCP 53 SSVM to DNS
> >
> > 11) Console Proxy VM
> >
> > TCP 3922 CloudStack Management Server to Console Proxy VM
> >
> > TCP 8250 Console Proxy VM to CloudStack Management Server
> > TCP 53 Console Proxy VM to DNS
> >
> > 12) Virtual Router
> >
> >  TCP 3922 CloudStack Management Server to Virtual Router
> >
> > TCP 8250 Virtual Router to CloudStack Management Server
> > TCP 53 Virtual Router to DNS
> >
> > 13)  NFS
> >
> >  TCP 111/2049 CloudStack Management Server to NFS (initial deployment of
> SSVM and CPVM
> >
> >
> > thanks
> >
> > Prashant Sreedharan
> >
> > Cloudstack & XenServer Administrator , Ops
> > T: +1 805 690 3486 | M: +1 805 453 9105
> > prashant.sreedha...@citrix.com
> >
> >
> >
> > Powering mobile workstyles and cloud services
> >
> >
> >
> > -Original Message-

Re: Architecture Question

2013-08-06 Thread David Comerford
VPC's are the way to go. Your diagram is a text book example.
http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.0.2/html/Installation_Guide/configure-vpc.html

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 6 August 2013 14:36, Bradley Hieber  wrote:

> It could very well be VPC's. The idea is we are planning on using 5-6 hosts
> in this environment. So designing the solution to fit this hardware
> requirement is critical.
>
>
> On Tue, Aug 6, 2013 at 9:29 AM, Murali Reddy  >wrote:
>
> >
> > Can 'hosting zones' represented in diagram can be contained into a
> > CloudStack zone? If so you can dedicated set of hosts to be in the DMZ.
> > Then you can leverage 'host tags' [1] functionality to place VM's
> > providing edge services (CloudStack system VM's or user VM's) on the
> hosts
> > dedicated in DMZ.
> >
> > [1] https://cwiki.apache.org/CLOUDSTACK/host-tags-and-storage-tags.html
> >
> > On 05/08/13 11:28 PM, "Bradley Hieber"  wrote:
> >
> > >The goal is to have a virtualized dmz area where we can place public
> > >facing
> > >webservers, and other software based firewalls to protect the different
> > >virtualization areas. Each of the virtualization areas will host
> different
> > >environments for clients to utilize.
> > >
> > >
> > >On Mon, Aug 5, 2013 at 1:55 PM, Chip Childers
> > >wrote:
> > >
> > >> Can you explain a bit more about what your diagram implies?  That
> might
> > >> help us help you.
> > >>
> > >>
> > >> On Mon, Aug 5, 2013 at 10:24 AM, Bradley Hieber  > >> >wrote:
> > >>
> > >> > Is it possible to create this type of architecture with cloudstack?
> > >>Any
> > >> > design ideas you can provide?
> > >> >
> > >> > http://img850.imageshack.us/img850/7940/lnzp.jpg
> > >> >
> > >> > --
> > >> > Brad
> > >> >
> > >>
> > >
> > >
> > >
> > >--
> > >Brad
> > >
> >
> >
> >
>
>
> --
> Brad
>


Re: IP Address assigned by CS is not passed to new instance VM

2013-08-02 Thread David Comerford
Why do you have ONBOOT="no"?
That's explicitly telling the interface not to come up on boot, which seems
a little odd.?.

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 1 August 2013 22:24, Cindy Jiang  wrote:

>   Hello,
>
>  We are trying to create a new instance with basic networking setup using
> CentOS 6.0 ISO. Cloudstack assigns the correct IP Address (in my case:
> 10.60.176.110) to this new centOS instance, but once you log into this VM,
> check "ifconfig" and "/etc/sysconfig/network-scripts/ifcfg-eth0", the IP
> Address and default gateway information are not passed through correctly.
> The same issue with hostname – instead of "centos-107", it shows as
> "localhost.localdomain". Please see attached screenshots. Has anyone
> experienced the similar issue?
>
>  Our environment:
>
>1. CS 4.2
>2. XenServer 6.0.2
>3. CentOS 6.0 ISO
>
> Thanks,
> Cindy
>


Re: Third-party Cloudstack Support

2013-08-02 Thread David Comerford
Can't go wrong with ShapeBlue. They're the leaders of the pack.
Source: personal experience.

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 1 August 2013 00:25, Ian Duffy  wrote:

> Hi Chris,
>
> http://www.shapeblue.com/ supply consultancy for the product.
>
> I have heard great things about their training sessions.
>
> On 31 July 2013 21:48, Bryan Whitehead  wrote:
> > If you are really looking to just buy a solution all packaged up then
> > I'd take a look at what Citrix has:
> >
> > http://www.citrix.com/products/cloudplatform/overview.html and
> > https://www.citrix.com/buy/citrix-cloud-advisors.html
> >
> > -Bryan
> >
> > On Wed, Jul 31, 2013 at 1:33 PM, Chris Buono 
> wrote:
> >> My company is considering Cloudstack for cloud management. One of the
> considerations is whether or not we can find a company we can reach out to
> for technical support. We need 24/7 support, SLA, and are willing to pay
> for such service. Would some point me in the direction of such a
> company(ies)?
> >>
> >> Thanks!
> >>
>


Re: About WIKI

2013-07-26 Thread David Comerford
Not sure they're explained anywhere greatly, but basically they are just
the mail settings for sending alerts mails, host down, management server
up, various other errors.

If you have a mail reply server setup then you only need to specify the
alert.smtp.host.
If you require authentication to use said mail server then you need to set
alert.smtp.useAuth to True and fill out the alert.smtp.username and
.password.
The alert.smtp.port is the port. Most of the time that will be 25. The
default 465 is often used for authentication-less relay servers.

Here's some sample values from my database:

mysql> select name,value,description from configuration where name like
'alert.smtp%' \G
*** 1. row ***
   name: alert.smtp.host
  value: mail.smtpserver.com
description: SMTP hostname used for sending out email alerts.
*** 2. row ***
   name: alert.smtp.password
  value: 52l+MXiB/BVgOuq2t1DGSVnlaD604TdW
description: Password for SMTP authentication (applies only if
alert.smtp.useAuth is true).
*** 3. row ***
   name: alert.smtp.port
  value: 25
description: Port the SMTP server is listening on.
*** 4. row ***
   name: alert.smtp.useAuth
  value: true
description: If true, use SMTP authentication when sending emails.
*** 5. row ***
   name: alert.smtp.username
  value: mail-user
description: Username for SMTP authentication (applies only if
alert.smtp.useAuth is true).
5 rows in set (0.00 sec)


Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 26 July 2013 17:19, Netsons > Paolo Giustiniani <
p.giustini...@netsons.com> wrote:

> Hello,
>
> I’ve read the wiki at the following page:
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Home 
>
> I would like  more info about the functions in “cloudstack > global
> settings” that are not explained in the wiki.
>
> ** **
>
> For examples:
>
> ** **
>
> alert.smtp.password
>
> Password for SMTP authentication (applies only if alert.smtp.useAuth is
> true).
>
>  
>
> alert.smtp.port
>
> Port the SMTP server is listening on.
>
> 465
>
>  
>
> alert.smtp.useAuth
>
> If true, use SMTP authentication when sending emails.
>
>  
>
> ** **
>
> ** **
>
> Where can I find more info?
>
> ** **
>
> Thank you
>
> ** **
>


Re: How to do time synchronization in vm instances

2013-07-26 Thread David Comerford
No, that's not CS's job.
Hyper tools tools usually have host time sync options but I just use NTP
for simplicity.

Regards,
Dave
On Jul 26, 2013 4:28 AM, "WXR" <1485739...@qq.com> wrote:

> I use kvm as the hypervisor in my cloudstack.
>
> I find that the time in the vm instance is different from its host node
> server.
>
> I want to know how to synchronize the time of vm instances,does cloudstack
> offer some tools like esxi,xenserver,hyper-v to do time synchronization?


Re: Shared network to muliple domains

2013-07-25 Thread David Comerford
Done.

https://issues.apache.org/jira/browse/CLOUDSTACK-3819

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 25 July 2013 21:23, David Comerford  wrote:

> Hey Geoff,
>
> Yeah, think it could be handy for a few things. I'll make a request.
>
> Best regards,
> David Comerford
>  
> Tel: +353 87 1238295
> Email: davest...@gmail.com
> Website: http://dave.ie
> GPG key: http://gpg.dave.ie
>
>
> On 25 July 2013 18:10, Geoff Higginbottom <
> geoff.higginbot...@shapeblue.com> wrote:
>
>> David,
>>
>> I think would be a great feature, as the current sub domains only is a
>> little limiting.
>>
>> Do you fancy logging a feature request for it.
>>
>> Regards
>>
>> Geoff Higginbottom
>>
>> D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
>>
>> geoff.higginbot...@shapeblue.com
>>
>> -Original Message-
>> From: David Comerford [mailto:davest...@gmail.com]
>> Sent: 25 July 2013 15:40
>> To: users@cloudstack.apache.org
>> Subject: Re: Shared network to muliple domains
>>
>> Can't blame a man for asking :)
>> Cheers Murali
>>
>> Best regards,
>> David Comerford
>> ----
>> Tel: +353 87 1238295
>> Email: davest...@gmail.com
>> Website: http://dave.ie
>> GPG key: http://gpg.dave.ie
>>
>>
>> On 25 July 2013 15:12, Murali Reddy  wrote:
>>
>> > On 25/07/13 7:21 PM, "David Comerford"  wrote:
>> >
>> > >Hi list,
>> > >
>> > >Is it possible to create a shared network and have it accessible to a
>> > >list of domains, without using the "subdomain access" checkbox in the
>> > >Add Guest Network wizard?
>> > >Thanks
>> >
>> > No, list works only for sub-domains.
>> >
>> > >
>> > >Best regards,
>> > >David Comerford
>> > >
>> > >Tel: +353 87 1238295
>> > >Email: davest...@gmail.com
>> > >Website: http://dave.ie
>> > >GPG key: http://gpg.dave.ie
>> > >
>> >
>> >
>> >
>> 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. Shape Blue Ltd is a
>> company incorporated in England & Wales. ShapeBlue Services India LLP is
>> operated under license from Shape Blue Ltd. ShapeBlue is a registered
>> trademark.
>>
>
>


Re: Shared network to muliple domains

2013-07-25 Thread David Comerford
Hey Geoff,

Yeah, think it could be handy for a few things. I'll make a request.

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 25 July 2013 18:10, Geoff Higginbottom
wrote:

> David,
>
> I think would be a great feature, as the current sub domains only is a
> little limiting.
>
> Do you fancy logging a feature request for it.
>
> Regards
>
> Geoff Higginbottom
>
> D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
>
> geoff.higginbot...@shapeblue.com
>
> -Original Message-
> From: David Comerford [mailto:davest...@gmail.com]
> Sent: 25 July 2013 15:40
> To: users@cloudstack.apache.org
> Subject: Re: Shared network to muliple domains
>
> Can't blame a man for asking :)
> Cheers Murali
>
> Best regards,
> David Comerford
> 
> Tel: +353 87 1238295
> Email: davest...@gmail.com
> Website: http://dave.ie
> GPG key: http://gpg.dave.ie
>
>
> On 25 July 2013 15:12, Murali Reddy  wrote:
>
> > On 25/07/13 7:21 PM, "David Comerford"  wrote:
> >
> > >Hi list,
> > >
> > >Is it possible to create a shared network and have it accessible to a
> > >list of domains, without using the "subdomain access" checkbox in the
> > >Add Guest Network wizard?
> > >Thanks
> >
> > No, list works only for sub-domains.
> >
> > >
> > >Best regards,
> > >David Comerford
> > >
> > >Tel: +353 87 1238295
> > >Email: davest...@gmail.com
> > >Website: http://dave.ie
> > >GPG key: http://gpg.dave.ie
> > >
> >
> >
> >
> 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. Shape Blue Ltd is a
> company incorporated in England & Wales. ShapeBlue Services India LLP is
> operated under license from Shape Blue Ltd. ShapeBlue is a registered
> trademark.
>


Re: Shared network to muliple domains

2013-07-25 Thread David Comerford
Can't blame a man for asking :)
Cheers Murali

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 25 July 2013 15:12, Murali Reddy  wrote:

> On 25/07/13 7:21 PM, "David Comerford"  wrote:
>
> >Hi list,
> >
> >Is it possible to create a shared network and have it accessible to a list
> >of domains, without using the "subdomain access" checkbox in the Add Guest
> >Network wizard?
> >Thanks
>
> No, list works only for sub-domains.
>
> >
> >Best regards,
> >David Comerford
> >
> >Tel: +353 87 1238295
> >Email: davest...@gmail.com
> >Website: http://dave.ie
> >GPG key: http://gpg.dave.ie
> >
>
>
>


Shared network to muliple domains

2013-07-25 Thread David Comerford
Hi list,

Is it possible to create a shared network and have it accessible to a list
of domains, without using the "subdomain access" checkbox in the Add Guest
Network wizard?
Thanks

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


Re: Why does cloudstack create a vm instance through compute offering?

2013-07-24 Thread David Comerford
You can create an issue of type Bug, Improvement or Wish if your serious
about contributing some ideas or problems.

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 24 July 2013 13:29, WXR <1485739...@qq.com> wrote:

> Do you mean that I can post my request on JIRA?
>
>
>
>
> -- Original ------
> From:  "David Comerford";
> Date:  Wed, Jul 24, 2013 08:16 PM
> To:  "users";
>
> Subject:  Re: Why does cloudstack create a vm instance through compute
> offering?
>
>
>
> Feel free to make a feature request and/or bug report with any suggests or
> ideas you have.
> It's a team effort friend - http://cloudstack.apache.org/contribute.html
>
> Best regards,
> David Comerford
> 
> Tel: +353 87 1238295
> Email: davest...@gmail.com
> Website: http://dave.ie
> GPG key: http://gpg.dave.ie
>
>
> On 24 July 2013 13:08, WXR <1485739...@qq.com> wrote:
>
> > Cloudstack is an Iaas platform,I think it should offer elastic compute
> > resources.
> > Creating a limited number of compute offerings previously and apply them
> > to new vms is not a good idea.
>


Re: Why does cloudstack create a vm instance through compute offering?

2013-07-24 Thread David Comerford
Feel free to make a feature request and/or bug report with any suggests or
ideas you have.
It's a team effort friend - http://cloudstack.apache.org/contribute.html

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 24 July 2013 13:08, WXR <1485739...@qq.com> wrote:

> Cloudstack is an Iaas platform,I think it should offer elastic compute
> resources.
> Creating a limited number of compute offerings previously and apply them
> to new vms is not a good idea.


Re: DHCP options for guest networks

2013-07-24 Thread David Comerford
Thanks for that. Great feature!
I'm guessing it's not possible on versions prior to 4.2 by any other means?

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 24 July 2013 12:19, Ram Ganesh  wrote:

> > -Original Message-
> > From: David Comerford [mailto:davest...@gmail.com]
> > Sent: 24 July 2013 16:23
> > To: users@cloudstack.apache.org
> > Subject: DHCP options for guest networks
> >
> > Hi list,
> >
> > Does anyone know of a way to configure the DHCP pool for guest networks?
> > I'm using a /24 for the Guest CIDR but I'd like the virtual router to
> only give
> > out addresses for a certain range in that subnet say .10 to .200. Is this
> > possible?
>
> Using [1] you can specify a subset of the CIDR as GuestVM cidr
>
> [1]
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/FS+-+IP+Range+Reservation+within+a+Network
>
> >
> > Thanks!
> >
> > Best regards,
> > David Comerford
> > 
> > Tel: +353 87 1238295
> > Email: davest...@gmail.com
> > Website: http://dave.ie
> > GPG key: http://gpg.dave.ie
>


DHCP options for guest networks

2013-07-24 Thread David Comerford
Hi list,

Does anyone know of a way to configure the DHCP pool for guest networks?
I'm using a /24 for the Guest CIDR but I'd like the virtual router to only
give out addresses for a certain range in that subnet say .10 to .200. Is
this possible?

Thanks!

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


Re: Console Proxy not starting

2013-07-24 Thread David Comerford
Can't say I'd support a separate log for each ssvm but a different log for
each zone isn't a bad idea.
Could be worth a feature request!

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 24 July 2013 00:11, Caleb Call  wrote:

> Yep, still no new console proxy vm.  I'll have to take a look at the logs
> to see what's going on.
>
> side note:  I wish each zone would log to a separate log, or system vm
> activity would log to a separate log from the user instances.
>
> On Jul 23, 2013, at 2:40 PM, David Comerford  wrote:
>
> > Yeah, should be a couple of minutes at most.
> > If you don't have it yet it's time to examine the logs.
> >
> >
> > Best regards,
> > David Comerford
> > 
> > Tel: +353 87 1238295
> > Email: davest...@gmail.com
> > Website: http://dave.ie
> > GPG key: http://gpg.dave.ie
> >
> >
> > On 23 July 2013 19:35, Dean Kamali  wrote:
> >
> >> I destroyed proxy vm few days ago, and in about 30 seconds or so I saw
> the
> >> new one getting created and started in about 1 -2 min.
> >>
> >> environment: cs 4.1 xenserver 6.0.2
> >>
> >>
> >> On Tue, Jul 23, 2013 at 12:12 PM, Caleb Call  wrote:
> >>
> >>> That's odd because of all my zones, this is the only one I haven't
> moved
> >> a
> >>> hypervisor in or out of since being built.
> >>>
> >>> I destroyed the Console Proxy VM, how long should it take before CS
> spins
> >>> a new one up?
> >>>
> >>> Thanks
> >>>
> >>> On Jul 22, 2013, at 10:26 PM, Ahmad Emneina 
> wrote:
> >>>
> >>>> Hey Caleb, looks like the host the console proxy used to live on is
> >> gone.
> >>>> see:
> >>>> The last host of this VM cannot be found
> >>>> 2013-07-18 14:02:40,142 DEBUG [cloud.deploy.FirstFitPlanner]
> >>>> (Job-Executor-43:job-5916) Cannot choose the last host to deploy this
> >> VM
> >>>>
> >>>> what I would do is nuke (destroy) the console proxy vm, and allow
> >>>> cloudstack to spin up a new one.
> >>>>
> >>>>
> >>>> On Mon, Jul 22, 2013 at 8:56 AM, Caleb Call  wrote:
> >>>>
> >>>>> Primary storage is not in maintenance mode and is available.  I have
> a
> >>>>> couple dozen VMs running from this same primary storage and the SSVM
> >> and
> >>>>> router VM are both running from this same storage.  Only the console
> >>> proxy
> >>>>> seems to be having a problem.
> >>>>>
> >>>>> $ ./cloudAPI.pl -c listStoragePools -p
> >>>>> clusterid=f200c92f-5937-43c7-8bf5-6593f7311400
> >>>>>
> >>>>>
> >>>
> >>
> https://cloud.overstock.com/client/api?apiKey=x&clusterid=f200c92f-5937-43c7-8bf5-6593f7311400&command=listStoragePools&response=json&signature=x{
> >>>>>  "liststoragepoolsresponse" : {
> >>>>> "storagepool" : [
> >>>>>{
> >>>>>   "clusterid" : "f200c92f-5937-43c7-8bf5-6593f7311400",
> >>>>>   "zonename" : "Offshore",
> >>>>>   "state" : "Up",
> >>>>>   "disksizeallocated" : 359196000256,
> >>>>>   "podid" : "20eff451-3edd-4366-8ab2-60f2390e5134",
> >>>>>   "podname" : "Offshore",
> >>>>>   "id" : "OFFSHORE_FC_LUN01",
> >>>>>   "clustername" : "Offshore",
> >>>>>   "zoneid" : "8e1c49fc-a5b3-44bb-9d54-932b0047eed0",
> >>>>>   "name" : "OFFSHORE_FC_LUN01",
> >>>>>   "disksizeused" : 360047443968,
> >>>>>   "path" : "/OFFSHORE_FC_LUN01",
> >>>>>   "disksizetotal" : 1099499044864,
> >>>>>   "tags" : "",
> >>>>>   "created" : "2013-06-08T15:45:05-0600",
> >>>>>   &qu

Re: cloud-usage heap

2013-07-23 Thread David Comerford
Have it fixed now.

Increased -Xmx in /etc/cloud/management/tomcat6.conf and restarted services.


Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 23 July 2013 03:23, Dave Dunaway  wrote:

> Dynamically, only because it's not otherwise specified in the options when
> starting up the JVM. You can edit the script it calls (check the
> /etc/init.d/cloud-usage script for the actual name) and add in some -Xmx
> 1024mb or something and see how that works.
>
> Could also be a ulimit rather than an actual memory allocation issue. Check
> that the user running the service can allocate enough resources to the jvm
> (virtual, open files, etc) so it can create enough threads. The error you
> posted seems like it dies off pretty quickly but that it can at least start
> the JVM up, so checking ulimits shed some light.
>
> hth.
>
>
> On Mon, Jul 22, 2013 at 7:56 PM, David Comerford  >wrote:
>
> > If I understand you correctly your saying it's dynamically determined
> when
> > it starts?
> > If that's the case, why is this instance failing to start with ~13GB of
> > memory free (including buffers/cache)
> >
> >
> > Best regards,
> > David Comerford
> > 
> > Tel: +353 87 1238295
> > Email: davest...@gmail.com
> > Website: http://dave.ie
> > GPG key: http://gpg.dave.ie
> >
> >
> > On 22 July 2013 21:27, Dave Dunaway  wrote:
> >
> > > The mgmt server will get started as a webapp out of Tomcat, so you can
> > > check the /etc/cloud/management/tomcat6.conf in which you see it is set
> > to
> > > use -Xmx1024m . The usage server is not part of tomcat and does not
> > specify
> > > an -Xmx so it used the runtime determine value based on config and
> > > resources.
> > >
> > > hth.
> > >
> > >
> > >
> > >
> > >
> > > On Mon, Jul 22, 2013 at 2:44 PM, David Comerford  > > >wrote:
> > >
> > > > Don't see anything like there in server.xml.
> > > > There is some useful JAVA_OPTS in /etc/cloud/tomcat6.conf but I don't
> > > know
> > > > if that's specific to cloud-management or shared with cloud-usage.
> > > >
> > > > Any thoughts?
> > > >
> > > > Best regards,
> > > > David Comerford
> > > > 
> > > > Tel: +353 87 1238295
> > > > Email: davest...@gmail.com
> > > > Website: http://dave.ie
> > > > GPG key: http://gpg.dave.ie
> > > >
> > > >
> > > > On 22 July 2013 15:38, Dean Kamali  wrote:
> > > >
> > > > > it should be somewhere in server.xml
> > > > >
> > > > >
> > > > > On Mon, Jul 22, 2013 at 9:20 AM, David Comerford <
> > davest...@gmail.com
> > > > > >wrote:
> > > > >
> > > > > > Hi list,
> > > > > >
> > > > > > Anyone know where the Java heap size is defined for cloud-usage
> > > server?
> > > > > > And is it a shared heap with cloud-management?
> > > > > >
> > > > > > I've got an upset usage server that wants more memory.
> > > > > >
> > > > > > 11:18:39,444  INFO UsageManagerImpl:232 - Starting Usage Manager
> > > > > > 2013-07-22 11:18:39,444 INFO  [cloud.usage.UsageManagerImpl]
> > > > (main:null)
> > > > > > Starting Usage Manager
> > > > > > Exception in thread "main" java.lang.OutOfMemoryError: unable to
> > > create
> > > > > new
> > > > > > native thread
> > > > > > at java.lang.Thread.start0(Native Method)
> > > > > > at java.lang.Thread.start(Thread.java:657)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:943)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.prestartCoreThread(ThreadPoolExecutor.java:1536)
> > > > > > more exception trimmed
> > > > > >
> > > > > > Best regards,
> > > > > > David Comerford
> > > > > > 
> > > > > > Tel: +353 87 1238295
> > > > > > Email: davest...@gmail.com
> > > > > > Website: http://dave.ie
> > > > > > GPG key: http://gpg.dave.ie
> > > > > >
> > > > >
> > > >
> > >
> >
>


Re: Console proxy functionalities

2013-07-23 Thread David Comerford
You know when you click the View Console button on an instance and a popup
opens with a view of the instances console? Well what your seeing there
comes from the instance's console via the console proxy.
So it *proxies* the *console* of the instance for the end users who are on
strange and distant networks.

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 23 July 2013 11:03, Kashif Ali  wrote:

> i read the document .all i understand is its use physical console of VM
> and have a public IP 
> but i am confused about its functionality compared with web-based UI.
>
>
> On Mon, Jul 22, 2013 at 11:18 PM, Dean Kamali 
> wrote:
>
> > I don't want to be rude but he could have googled it or used the index
> > properly
> > On Jul 23, 2013 2:18 AM, "Radhika Puthiyetath" <
> > radhika.puthiyet...@citrix.com> wrote:
> >
> > > Refer to
> > >
> >
> http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.1.0/html-single/Admin_Guide/index.html#console-proxy
> > >
> > >
> > > -Original Message-
> > > From: Kashif Ali [mailto:temujin...@gmail.com]
> > > Sent: Tuesday, July 23, 2013 11:33 AM
> > > To: users@cloudstack.apache.org
> > > Subject: Console proxy functionalities
> > >
> > > AOA every one
> > >
> > > i am new to cloudstack and i didnt understand the functionality of
> > console
> > > proxy.
> > > Is console proxy is just a console view or something else.
> > >
> > > --
> > > Regards,
> > >
> > > *Kashif Ali*
> > > Undergraduate Student | 7th Semester
> > > BESE-1A | NUST-SEECS | Islamabad
> > > 10besek...@seecs.edu.pk
> > >
> >
>
>
>
> --
> --
> Regards,
>
> *Kashif Ali*
> Undergraduate Student | 7th Semester
> BESE-1A | NUST-SEECS | Islamabad
> 10besek...@seecs.edu.pk
>


Re: Console Proxy not starting

2013-07-23 Thread David Comerford
Yeah, should be a couple of minutes at most.
If you don't have it yet it's time to examine the logs.


Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 23 July 2013 19:35, Dean Kamali  wrote:

> I destroyed proxy vm few days ago, and in about 30 seconds or so I saw the
> new one getting created and started in about 1 -2 min.
>
> environment: cs 4.1 xenserver 6.0.2
>
>
> On Tue, Jul 23, 2013 at 12:12 PM, Caleb Call  wrote:
>
> > That's odd because of all my zones, this is the only one I haven't moved
> a
> > hypervisor in or out of since being built.
> >
> > I destroyed the Console Proxy VM, how long should it take before CS spins
> > a new one up?
> >
> > Thanks
> >
> > On Jul 22, 2013, at 10:26 PM, Ahmad Emneina  wrote:
> >
> > > Hey Caleb, looks like the host the console proxy used to live on is
> gone.
> > > see:
> > > The last host of this VM cannot be found
> > > 2013-07-18 14:02:40,142 DEBUG [cloud.deploy.FirstFitPlanner]
> > > (Job-Executor-43:job-5916) Cannot choose the last host to deploy this
> VM
> > >
> > > what I would do is nuke (destroy) the console proxy vm, and allow
> > > cloudstack to spin up a new one.
> > >
> > >
> > > On Mon, Jul 22, 2013 at 8:56 AM, Caleb Call  wrote:
> > >
> > >> Primary storage is not in maintenance mode and is available.  I have a
> > >> couple dozen VMs running from this same primary storage and the SSVM
> and
> > >> router VM are both running from this same storage.  Only the console
> > proxy
> > >> seems to be having a problem.
> > >>
> > >> $ ./cloudAPI.pl -c listStoragePools -p
> > >> clusterid=f200c92f-5937-43c7-8bf5-6593f7311400
> > >>
> > >>
> >
> https://cloud.overstock.com/client/api?apiKey=x&clusterid=f200c92f-5937-43c7-8bf5-6593f7311400&command=listStoragePools&response=json&signature=x{
> > >>   "liststoragepoolsresponse" : {
> > >>  "storagepool" : [
> > >> {
> > >>"clusterid" : "f200c92f-5937-43c7-8bf5-6593f7311400",
> > >>"zonename" : "Offshore",
> > >>"state" : "Up",
> > >>"disksizeallocated" : 359196000256,
> > >>"podid" : "20eff451-3edd-4366-8ab2-60f2390e5134",
> > >>"podname" : "Offshore",
> > >>"id" : "OFFSHORE_FC_LUN01",
> > >>"clustername" : "Offshore",
> > >>"zoneid" : "8e1c49fc-a5b3-44bb-9d54-932b0047eed0",
> > >>"name" : "OFFSHORE_FC_LUN01",
> > >>"disksizeused" : 360047443968,
> > >>"path" : "/OFFSHORE_FC_LUN01",
> > >>"disksizetotal" : 1099499044864,
> > >>"tags" : "",
> > >>    "created" : "2013-06-08T15:45:05-0600",
> > >>"type" : "PreSetup",
> > >>"ipaddress" : "localhost"
> > >> }
> > >>  ],
> > >>  "count" : 1
> > >>   }
> > >> }
> > >>
> > >>
> > >>
> > >> On Jul 20, 2013, at 5:06 PM, David Comerford 
> > wrote:
> > >>
> > >>>> For some reason I was thinking the system VMs lived on the secondary
> > >>> storage, but I'm probably wrong on that.
> > >>> The templates for the system VM's live on secondary storage, then
> they
> > >> are
> > >>> deployed to primary storage.
> > >>>
> > >>> Allocator seems happy enough to use host id 51 but theres no primary
> > >>> storage available in cluster id 9.
> > >>> Is it in maintenance mode or anything?
> > >>>
> > >>> 'list storagepools' in cloudmonkey might shed some light.
> > >>>
> > >>> Best regards,
> > >>> David Comerford
> > >>> 
> > >>> Tel: +353 87 1238295
> > >>> Email: dave

Re: Visualizing the Planners

2013-07-22 Thread David Comerford
That was pretty cool.
Be interesting to see the behaviour with randomised RAM size instances.

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 22 July 2013 20:07, Chip Childers  wrote:

> Hi all,
>
> I've been playing with a method of simulating provisioning activity on a
> CloudStack cloud, and visualizing the resulting capacity usage on the
> hosts.
>
> I blogged about the first (very early) work here:
>
>
> http://www.chipchilders.com/blog/2013/7/22/visualizing-the-cloudstack-planners-in-action.html
>
> Feel free to let me know if you have any ideas / suggestions.
>


Re: cloud-usage heap

2013-07-22 Thread David Comerford
If I understand you correctly your saying it's dynamically determined when
it starts?
If that's the case, why is this instance failing to start with ~13GB of
memory free (including buffers/cache)


Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 22 July 2013 21:27, Dave Dunaway  wrote:

> The mgmt server will get started as a webapp out of Tomcat, so you can
> check the /etc/cloud/management/tomcat6.conf in which you see it is set to
> use -Xmx1024m . The usage server is not part of tomcat and does not specify
> an -Xmx so it used the runtime determine value based on config and
> resources.
>
> hth.
>
>
>
>
>
> On Mon, Jul 22, 2013 at 2:44 PM, David Comerford  >wrote:
>
> > Don't see anything like there in server.xml.
> > There is some useful JAVA_OPTS in /etc/cloud/tomcat6.conf but I don't
> know
> > if that's specific to cloud-management or shared with cloud-usage.
> >
> > Any thoughts?
> >
> > Best regards,
> > David Comerford
> > 
> > Tel: +353 87 1238295
> > Email: davest...@gmail.com
> > Website: http://dave.ie
> > GPG key: http://gpg.dave.ie
> >
> >
> > On 22 July 2013 15:38, Dean Kamali  wrote:
> >
> > > it should be somewhere in server.xml
> > >
> > >
> > > On Mon, Jul 22, 2013 at 9:20 AM, David Comerford  > > >wrote:
> > >
> > > > Hi list,
> > > >
> > > > Anyone know where the Java heap size is defined for cloud-usage
> server?
> > > > And is it a shared heap with cloud-management?
> > > >
> > > > I've got an upset usage server that wants more memory.
> > > >
> > > > 11:18:39,444  INFO UsageManagerImpl:232 - Starting Usage Manager
> > > > 2013-07-22 11:18:39,444 INFO  [cloud.usage.UsageManagerImpl]
> > (main:null)
> > > > Starting Usage Manager
> > > > Exception in thread "main" java.lang.OutOfMemoryError: unable to
> create
> > > new
> > > > native thread
> > > > at java.lang.Thread.start0(Native Method)
> > > > at java.lang.Thread.start(Thread.java:657)
> > > > at
> > > >
> > > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:943)
> > > > at
> > > >
> > > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.prestartCoreThread(ThreadPoolExecutor.java:1536)
> > > > more exception trimmed
> > > >
> > > > Best regards,
> > > > David Comerford
> > > > 
> > > > Tel: +353 87 1238295
> > > > Email: davest...@gmail.com
> > > > Website: http://dave.ie
> > > > GPG key: http://gpg.dave.ie
> > > >
> > >
> >
>


Re: cloud-usage heap

2013-07-22 Thread David Comerford
Don't see anything like there in server.xml.
There is some useful JAVA_OPTS in /etc/cloud/tomcat6.conf but I don't know
if that's specific to cloud-management or shared with cloud-usage.

Any thoughts?

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


On 22 July 2013 15:38, Dean Kamali  wrote:

> it should be somewhere in server.xml
>
>
> On Mon, Jul 22, 2013 at 9:20 AM, David Comerford  >wrote:
>
> > Hi list,
> >
> > Anyone know where the Java heap size is defined for cloud-usage server?
> > And is it a shared heap with cloud-management?
> >
> > I've got an upset usage server that wants more memory.
> >
> > 11:18:39,444  INFO UsageManagerImpl:232 - Starting Usage Manager
> > 2013-07-22 11:18:39,444 INFO  [cloud.usage.UsageManagerImpl] (main:null)
> > Starting Usage Manager
> > Exception in thread "main" java.lang.OutOfMemoryError: unable to create
> new
> > native thread
> > at java.lang.Thread.start0(Native Method)
> > at java.lang.Thread.start(Thread.java:657)
> > at
> >
> >
> java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:943)
> > at
> >
> >
> java.util.concurrent.ThreadPoolExecutor.prestartCoreThread(ThreadPoolExecutor.java:1536)
> > more exception trimmed
> >
> > Best regards,
> > David Comerford
> > 
> > Tel: +353 87 1238295
> > Email: davest...@gmail.com
> > Website: http://dave.ie
> > GPG key: http://gpg.dave.ie
> >
>


cloud-usage heap

2013-07-22 Thread David Comerford
Hi list,

Anyone know where the Java heap size is defined for cloud-usage server?
And is it a shared heap with cloud-management?

I've got an upset usage server that wants more memory.

11:18:39,444  INFO UsageManagerImpl:232 - Starting Usage Manager
2013-07-22 11:18:39,444 INFO  [cloud.usage.UsageManagerImpl] (main:null)
Starting Usage Manager
Exception in thread "main" java.lang.OutOfMemoryError: unable to create new
native thread
at java.lang.Thread.start0(Native Method)
at java.lang.Thread.start(Thread.java:657)
at
java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:943)
at
java.util.concurrent.ThreadPoolExecutor.prestartCoreThread(ThreadPoolExecutor.java:1536)
more exception trimmed

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie


Re: Console Proxy not starting

2013-07-20 Thread David Comerford
> For some reason I was thinking the system VMs lived on the secondary
storage, but I'm probably wrong on that.
The templates for the system VM's live on secondary storage, then they are
deployed to primary storage.

Allocator seems happy enough to use host id 51 but theres no primary
storage available in cluster id 9.
Is it in maintenance mode or anything?

'list storagepools' in cloudmonkey might shed some light.

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie <http://pgp.dave.ie>


On 18 July 2013 21:27, Bradley Hieber  wrote:

> pastebin please
>
>
> On Thu, Jul 18, 2013 at 4:24 PM, Caleb Call  wrote:
>
> > When trying to start the console proxy in one of my zones fails.  I'm
> > getting an error that says "no suitable storagePools for in this
> cluster".
> >  Which storage pool would this be?  For some reason I was thinking the
> > system VMs lived on the secondary storage, but I'm probably wrong on
> that.
> >  Either way, I have ~700GB of free space on my primary storage and ~500GB
> > free in my secondary storage, what else is this looking for to be able to
> > start this console proxy?  I've included the logs around this event.
> >
> >
> > 2013-07-18 14:02:40,031 DEBUG [cloud.api.ApiServlet]
> > (catalina-exec-13:null) ===START===  10.4.108.254 -- GET
> >  command=startSystemVm&id=d10d7f57
> >
> >
> -8b1b-45b2-9875-8c18995ac37b&response=json&sessionkey=uMQLwJmB8uyPSQeSiSBXo04naus%3D&_=1374177759969
> > 2013-07-18 14:02:40,033 DEBUG [ehcache.store.MemoryStore]
> > (catalina-exec-13:null) UserDaoCache: UserDaoMemoryStore hit for 10
> > 2013-07-18 14:02:40,112 DEBUG [cloud.async.AsyncJobManagerImpl]
> > (catalina-exec-13:null) submit async job-5916, details: AsyncJobVO
> > {id:5916, use
> > rId: 10, accountId: 7, sessionKey: null, instanceType: SystemVm,
> > instanceId: 1024, cmd: com.cloud.api.commands.StartSystemVMCmd,
> > cmdOriginator:
> > null, cmdInfo:
> >
> {"response":"json","id":"d10d7f57-8b1b-45b2-9875-8c18995ac37b","sessionkey":"uMQLwJmB8uyPSQeSiSBXo04naus\u003d","ctxUserId":"10",
> > "_":"1374177759969","ctxAccountId":"7","ctxStartEventId":"18978"},
> > cmdVersion: 0, callbackType: 0, callbackAddress: null, status: 0,
> > processStat
> > us: 0, resultCode: 0, result: null, initMsid: 145320940120008,
> > completeMsid: null, lastUpdated: null, lastPolled: null, created: null}
> > 2013-07-18 14:02:40,113 DEBUG [cloud.async.AsyncJobManagerImpl]
> > (Job-Executor-43:job-5916) Executing
> > com.cloud.api.commands.StartSystemVMCmd for
> >  job-5916
> > 2013-07-18 14:02:40,114 DEBUG [cloud.api.ApiServlet]
> > (catalina-exec-13:null) ===END===  10.4.108.254 -- GET
> >  command=startSystemVm&id=d10d7f57-8
> >
> >
> b1b-45b2-9875-8c18995ac37b&response=json&sessionkey=uMQLwJmB8uyPSQeSiSBXo04naus%3D&_=1374177759969
> > 2013-07-18 14:02:40,125 DEBUG [cloud.capacity.CapacityManagerImpl]
> > (Job-Executor-43:job-5916) VM state transitted from :Stopped to Starting
> > with
> >  event: StartRequestedvm's original host id: 25 new host id: null host id
> > before state transition: null
> > 2013-07-18 14:02:40,125 DEBUG [cloud.vm.VirtualMachineManagerImpl]
> > (Job-Executor-43:job-5916) Successfully transitioned to start state for
> > VM[Co
> > nsoleProxy|v-1024-VM] reservation id =
> c9a532cb-3976-4284-ab2e-17d7d5dca070
> > 2013-07-18 14:02:40,138 DEBUG [ehcache.store.MemoryStore]
> > (Job-Executor-43:job-5916) ServiceOfferingDaoCache:
> > ServiceOfferingDaoMemoryStore hit
> > for 8
> > 2013-07-18 14:02:40,138 DEBUG [ehcache.store.MemoryStore]
> > (Job-Executor-43:job-5916) VMTemplateDaoCache: VMTemplateDaoMemoryStore
> hit
> > for 1
> > 2013-07-18 14:02:40,138 DEBUG [cloud.vm.VirtualMachineManagerImpl]
> > (Job-Executor-43:job-5916) Trying to deploy VM, vm has dcId: 5 and
> podId: 8
> > 2013-07-18 14:02:40,138 DEBUG [cloud.vm.VirtualMachineManagerImpl]
> > (Job-Executor-43:job-5916) Deploy avoids pods: null, clusters: null,
> hosts:
> > n
> > ull
> > 2013-07-18 14:02:40,140 DEBUG [ehcache.store.MemoryStore]
> > (Job-Executor-43:job-5916) DataCenterDaoCache: DataCenterDaoMemoryStore
> hit
> > for 5
> > 2013-07-18 14:02:40,141 DEBUG [cloud.deploy.FirstFitPlanner]
> > (Job-Executor-43:job-5916) DeploymentPlanner allocation algorithm: random
> >

Re: Error migrating VM to another host

2013-07-20 Thread David Comerford
That's a good one. Any hints in management-server.log ?

Best regards,
David Comerford

Tel: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://gpg.dave.ie <http://pgp.dave.ie>


2013/7/19 Joaquin Angel Alonso Alvarez 

>  Hi there,
>
> ** **
>
> Issue:
>
> ** **
>
> VM installed from ISO.
>
> Tried to detach the ISO and it didn’t work
>
> Tried to shutdown the VM and it didn’t work
>
> Tried to migrate the VM to another host and the process is
> in migrating state for 2 weeks now. From Xencenter console the VM is
> already on the new host and working ok.
>
> On cloudstack console the VM shows on the old host with a
> red X.
>
> ** **
>
> Tried to restart the management services and servers
> completely without luck.
>
> ** **
>
> Any idea?
>
> Thanks in advance.
>
> 
>
> *Joaquín Angel Alonso Alvarez* 
>
> Administrador de Sistemas
> Infraestructuras y Sistemas
> Tel: +34 902932900
> jalo...@izertis.com 
>
> [image: Izertis] <http://www.izertis.com/>
>
> Parque Científico - Tecnológico, Zona Intra
> Avda. del Jardín Botánico 1345 - 33203 Gijón (Asturias)
> Tel: +34 902 932 400 | Fax: +34 902 932 401
> www.izertis.com   [image: 
> rss]<http://www.izertis.com/izertis/index.php?option=com_content&view=section&layout=blog&id=4&format=feed&type=rss>
> [image: facebook] <http://www.facebook.com/pages/IZERTIS/216735738338230>
> [image: twitter] <http://twitter.com/#!/IZERTIS>  [image: 
> linkedin]<http://www.linkedin.com/company/izertis>
> [image: youtube] <http://www.youtube.com/user/Izertis>  
>
> ** **
>
> [image: arbol]Antes de imprimir este email piense si es necesario
> hacerlo. Proteger el medio ambiente está también en su mano. 
>
> AVISO LEGAL 
>
> Le informamos, como destinatario de este mensaje que el mismo va dirigido,
> de manera exclusiva, a su destinatario y contiene información confidencial
> y sujeta al secreto profesional, cuya divulgación no está permitida por la
> ley. Si Vd. no es el destinatario indicado, se le informa de que cualquier
> forma de distribución, reproducción o uso de esta comunicación y/o de la
> información contenida en la misma están estrictamente prohibidos y podría
> ser ilegal. Si Vd. ha recibido esta comunicación por error, por favor,
> notifíquelo inmediatamente al remitente contestando a este mensaje y
> proceda a continuación a destruirlo. 
>
>   
>
> ** **
>


Re: vm's disk io performance declines quickly after being created0.5-1 hours later.

2013-07-07 Thread David Comerford
What kind of compute Service Offering are you using for the instance?
There may be some painfully restrictive settings in there.

Best regards,
David Comerford
Mobile: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://pgp.dave.ie


On 7 July 2013 05:07, WXR <1485739...@qq.com> wrote:

> The host node has 96GB ram and 2 E5-2620 cpus.There is just one vm for
> test on this node.
> The storage node is just only working for the host node.
>
> I don't know if cloudstack has some default resource limit policies.
> I don't think workload is the reason.There may be a system feature which
> cause this issue,about cloudstack,or kvm,or windows system,or storage
> device,or something else.
> Does any one have relevant experience in dealing with this issue?
>
>
>
> ------ Original --
> From:  "David Comerford";
> Date:  Sun, Jul 7, 2013 05:43 AM
> To:  "users";
>
> Subject:  Re: vm's disk io performance declines quickly after being
> created0.5-1 hours later.
>
>
>
> Doesn't sounds like a CloudStack problem.
> Spin up a Linux instance and see does it have the same problem.
>
> Then apply some science and check I/O inside the instance. Then I/O on the
> primary storage device.
> Keep an eye on the storage NICs too.
>
> Does you host have enough RAM? Maybe it's booting up in main memory and
> starting to swap over the hour.
>
> Best regards,
> David Comerford
> Mobile: +353 87 1238295
> Email: davest...@gmail.com
> Website: http://dave.ie
> GPG key: http://pgp.dave.ie
>
>
> On 6 July 2013 10:56, WXR <1485739...@qq.com> wrote:
>
> > I create a windows 2003 server enterprise 32bit vm template.
> > When I use this template to create a vm instance and start the vm.The
> disk
> > io performance is normal,it just takes 5 seconds to copy a 200MB file.And
> > other files/directories copy jobs are very fask.
> >
> > But 0.5-1 hours later,the vm need serveral minutes to copy a 200MB
> > file,and all other files copy job become very slow.
> >
> > I don't know if it is an issue of windows 2003 vm template,or cloudstack
> > configuration,or storage configuration.
> > Does anyone meet the same issue?
>


Re: vm's disk io performance declines quickly after being created 0.5-1 hours later.

2013-07-06 Thread David Comerford
Doesn't sounds like a CloudStack problem.
Spin up a Linux instance and see does it have the same problem.

Then apply some science and check I/O inside the instance. Then I/O on the
primary storage device.
Keep an eye on the storage NICs too.

Does you host have enough RAM? Maybe it's booting up in main memory and
starting to swap over the hour.

Best regards,
David Comerford
Mobile: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://pgp.dave.ie


On 6 July 2013 10:56, WXR <1485739...@qq.com> wrote:

> I create a windows 2003 server enterprise 32bit vm template.
> When I use this template to create a vm instance and start the vm.The disk
> io performance is normal,it just takes 5 seconds to copy a 200MB file.And
> other files/directories copy jobs are very fask.
>
> But 0.5-1 hours later,the vm need serveral minutes to copy a 200MB
> file,and all other files copy job become very slow.
>
> I don't know if it is an issue of windows 2003 vm template,or cloudstack
> configuration,or storage configuration.
> Does anyone meet the same issue?


Re: Virtual Router Firewall Logs

2013-07-05 Thread David Comerford
You could SSH into each virtual router and append some logging rules into
the existing chains. The rules go into the mangle table.

If you wanted to log all drops then you could go for something like this.
#* iptables -I FIREWALL_10.144.100.109 3 -t mangle -j LOG*

I put this in line 3 of my FIREWALL_10.144.100.109 chain, just above the
DROP so it looks something like:
*# iptables -n -v --line-numbers -t mangle -L FIREWALL_10.144.100.109
Chain FIREWALL_10.144.100.109 (1 references)
num   pkts bytes target prot opt in out source
destination
10 0 ACCEPT all  --  *  *   0.0.0.0/0
0.0.0.0/0   state RELATED,ESTABLISHED
20 0 RETURN tcp  --  *  *   2.2.2.2
0.0.0.0/0   tcp dpt:69
32   120 LOGall  --  *  *   0.0.0.0/0
0.0.0.0/0   LOG flags 0 level 4
42   120 DROP   all  --  *  *   0.0.0.0/0
0.0.0.0/0
*
Now here's the problems with doing this
1. The logging rules are blown away if anyone adds OR removes any firewall
rules.
2. You will lose the rules if the router is ever re-created for upgrades
etc.

So all in all it might not be worth the effort.
It is a feature people do ask about quite a bit though so could be worth a
feature request.

Best regards,
David Comerford
Mobile: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
GPG key: http://pgp.dave.ie


On 5 July 2013 10:43, Ahmad Emneina  wrote:

> you might have to enable that manually on the router, via iptables or
> rsyslog, i dont see it being logged myself.
>
>
> On Fri, Jul 5, 2013 at 1:57 AM, Len Bellemore <
> len.bellem...@controlcircle.com> wrote:
>
> > Hi Guys,
> >
> > Does anyone know where the virtual router logs firewall access requests?
> >  I guess it would be an iptables log of some sort.
> >
> > I don't see much in /var/log/messages other than rules being applied.
> >
> > Many Thanks
> >
> > Len
> >
> > 
> > IMPORTANT NOTICE. This electronic message contains information from
> > Control Circle Ltd, which may be privileged or confidential. The
> > information is intended for use only by the individual(s) or entity named
> > above. If you are not the intended recipient, be aware that any
> disclosure,
> > copying, distribution or use of the contents of this information is
> > strictly prohibited. If you have received this electronic message in
> error,
> > please notify me by telephone or email (to the number or email address
> > above) immediately. Activity and use of the ControlCircle e-mail system
> is
> > monitored to secure its effective operation and for other lawful business
> > purposes. Communications using this system will also be monitored and may
> > be recorded to secure effective operation and for other lawful business
> > purposes
> >
>


Re: How to find the the vm's volume file in primary storage?

2013-07-05 Thread David Comerford
1. Rock over to the GUI, click on the instance your interested in

2. Get the ID of the volume from the Volumes tab. For example
4bedcf64-5526-4777-bac1-98c638c32116

3. Jump into MySQL client and run this query:
mysql> select folder,path from cloud.volumes WHERE
uuid='4bedcf64-5526-4777-bac1-98c638c32116' \G
*** 1. row ***
folder: /mnt/volgroup/primary1/export
  path: 12485e60-5700-4783-a8b5-b34a03e4bc3b
1 row in set (0.00 sec)
4. So the path to your volume's file will be folder+path.vhd, which in my
case here will be:
/mnt/volgroup/primary1/export/12485e60-5700-4783-a8b5-b34a03e4bc3b.vhd

Just to prove it:
# du -h
/mnt/volgroup/primary1/export/12485e60-5700-4783-a8b5-b34a03e4bc3b.vhd
267M
/mnt/volgroup/primary1/export/12485e60-5700-4783-a8b5-b34a03e4bc3b.vhd
CloudMonkley> destroy virtualmachine id=ee781871-ba63-41e0-835a-cde5edfefcfb

*twiddle thumbs waiting for expunge*

# du -h
/mnt/volgroup/primary1/export/12485e60-5700-4783-a8b5-b34a03e4bc3b.vhd
du: cannot access
`/mnt/volgroup/primary1/export/12485e60-5700-4783-a8b5-b34a03e4bc3b.vhd':
No such file or directory
Disk is gone. The theory is sound.
Hope this helps.


Best regards,
David Comerford
Mobile: +353 87 1238295
Email: davest...@gmail.com
Website: http://dave.ie
PGP key: http://pgp.dave.ie


On 2 July 2013 18:37, David Ortiz  wrote:

> I am not sure how the generation occurs, but they are stored in the
> volumes table.  The id column relates to the uuid in the gui, and the path
> column is what the file name is I believe.
> Thanks, David Ortiz
>
> > Date: Wed, 26 Jun 2013 19:27:29 -0700
> > Subject: Re: How to find the the vm's volume file in primary storage?
> > From: kirk.jant...@gmail.com
> > To: users@cloudstack.apache.org
> >
> > I haven't looked, but I think they would be correlated to each other in
> the
> > database tables, or possibly via the api.
> >
> > Regards,
> >
> > Kirk Jantzer
> > http://about.me/kirkjantzer
> > On Jun 26, 2013 10:10 PM, "WXR" <474745...@qq.com> wrote:
> >
> > > My primary storage is NFS.
> > > When I mount it and list the files in it, I can see lots of files
> named as
> > > uuid.I think they are vm volume files.
> > > But the uuid does not match to any vm's uuid or volumes uuid displayed
> in
> > > the cloudstack UI,so if I want to find a vm's volume file on primary
> > > storage NFS,I don't know which is the correct one.
> > >
> > > Can anybody tell me the relationship between the vm and the volume
> file?
>
>


Re: CPVM custom SSL location

2013-06-26 Thread David Comerford
Well that explains why I couldn't find it anywhere on the filesystem.
Cheers Kelven.

Regards,
David Comerford


On 26 June 2013 18:14, Kelven Yang  wrote:

> For security reasons, we actually don't store custom SSL certificate in
> console proxy VM's file system. The certificate is stored in management
> server DB (encrypted), dynamically re-constructed in memory and sent it
> over through the SSL secured channel to console proxy VM at run time.
>
> Kelven
>
> From: Steven Liang mailto:stevenli...@yesup.com>>
> Reply-To: "users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>"
> mailto:users@cloudstack.apache.org>>
> Date: Wednesday, June 26, 2013 10:03 AM
> To: "users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>" <
> users@cloudstack.apache.org<mailto:users@cloudstack.apache.org>>
> Subject: Re: CPVM custom SSL location
>
> good question. i also want to know.
>
> On 06/26/2013 12:31 PM, David Comerford wrote:
>
> Hi,
>
> Does anyone know where custom SSL certificates are stored on the console
> proxy vm's?
> Had a look in /etc/ssl/certs/ and /usr/local/cloud/certs/ but they only
> contain the realhostip.com certs.
>
> Thanks,
> David Comerford
>
>
>
>
> --
> Steven Liang
> Linux System Admin
> Phone: 1.416.499.8009 ext. 2865
> Cell Phone: 1.647.718.5292
> Email: stevenli...@yesup.com<mailto:stevenli...@yesup.com>
> www.yesup.com<http://www.yesup.com> | account.yesup.com<
> http://account.yesup.com>
>
> [Yesup]
>


CPVM custom SSL location

2013-06-26 Thread David Comerford
Hi,

Does anyone know where custom SSL certificates are stored on the console
proxy vm's?
Had a look in /etc/ssl/certs/ and /usr/local/cloud/certs/ but they only
contain the realhostip.com certs.

Thanks,
David Comerford


Re: system vm's failure upon node reset

2013-04-25 Thread David Comerford
EXT3 doesn't like the plug being pulled. Not really a CS specific problem.
Destroy the affected system VM's and new ones should spring into life.

- Dave


On 25 April 2013 15:10, Valery Ciareszka  wrote:

> Hi all,
> I'm trying to simulate power failures on hypervisor nodes (reset through
> IPMI)
> After system boots, cloudstack starts system vms, but they keep "starting"
> status in management UI.
> I can see filesystem errors on vnc console of system vms:
> http://thesuki.org/temp/ss/SS-20130425170156.png
> http://thesuki.org/temp/ss/SS-20130425131507.png
> It seems strange that filesystem of VM goes in such corrupted state after
> single unexpected reset.
>
> environment used: CS 4.0.1, centos 6.4, KVM, NFS primary/secondary storage
>
> --
> Regards,
> Valery
>
> http://protocol.by/slayer
>


Apparent Deadlock?

2013-04-22 Thread David Comerford
Hi guys,

Anyone have any thoughts on these exceptions that pop their head up every
so often in my CS management-server.log ?

Cheers,
Dave

2013-04-23 00:44:18,683 WARN  [v2.async.ThreadPoolAsynchronousRunner]
(Timer-3:null)
com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@4ea3e5fc--
APPARENT DEADLOCK!!! Creating emergency threads for unassigned pending
tasks!
2013-04-23 00:44:18,687 WARN  [v2.async.ThreadPoolAsynchronousRunner]
(Timer-3:null)
com.mchange.v2.async.ThreadPoolAsynchronousRunner$DeadlockDetector@4ea3e5fc--
APPARENT DEADLOCK!!! Complete Status:
Managed Threads: 3
Active Threads: 3
Active Tasks:

com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@6a03079d(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0)

com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@6ce90aca(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1)

com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@37c38ba2(com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2)
Pending Tasks:

com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@7045548

com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask@2d7aed91
Pool thread stack traces:

Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0,5,main]
java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.read(SocketInputStream.java:146)

com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:113)

com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:160)

com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:188)
com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2452)
com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2906)
com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2895)
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3438)
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1951)
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2101)

com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2548)

com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2477)

com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1422)

com.mysql.jdbc.DatabaseMetaData$9.forEach(DatabaseMetaData.java:4844)
com.mysql.jdbc.IterateBlock.doForAll(IterateBlock.java:50)

com.mysql.jdbc.DatabaseMetaData.getTables(DatabaseMetaData.java:4822)

com.mchange.v2.c3p0.impl.DefaultConnectionTester.activeCheckConnectionNoQuery(DefaultConnectionTester.java:185)

com.mchange.v2.c3p0.impl.DefaultConnectionTester.activeCheckConnection(DefaultConnectionTester.java:62)

com.mchange.v2.c3p0.AbstractConnectionTester.activeCheckConnection(AbstractConnectionTester.java:67)

com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.testPooledConnection(C3P0PooledConnectionPool.java:368)

com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.refurbishIdleResource(C3P0PooledConnectionPool.java:310)

com.mchange.v2.resourcepool.BasicResourcePool$AsyncTestIdleResourceTask.run(BasicResourcePool.java:1999)

com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)

Thread[com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2,5,main]
java.net.SocketInputStream.socketRead0(Native Method)
java.net.SocketInputStream.read(SocketInputStream.java:146)

com.mysql.jdbc.util.ReadAheadInputStream.fill(ReadAheadInputStream.java:113)

com.mysql.jdbc.util.ReadAheadInputStream.readFromUnderlyingStreamIfNecessary(ReadAheadInputStream.java:160)

com.mysql.jdbc.util.ReadAheadInputStream.read(ReadAheadInputStream.java:188)
com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2452)
com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2906)
com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2895)
com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3438)
com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1951)
com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2101)

com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2548)

com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2477)

com.mysql.jdbc.StatementImpl.executeQuery(StatementImpl.java:1422)

com.mysql.jdbc.DatabaseMetaData$9.forEach(DatabaseMetaData.java:4844)
com.mysql.jdbc.IterateBlock.doForAll(IterateBlock.java:50)

com.mysql.jdbc.DatabaseMetaData.getTables(DatabaseMetaData.java:4822)

com.mchange.v2.c3p0.impl.DefaultConnectionTester.activeCheckConnectionNoQuery(DefaultConnectionTester.java:185)

com.mchange.v2.c3p0.impl.DefaultConnectionTester.activeCheckCo

Re: reopened - "CS failed after changing vcenter password"

2013-04-08 Thread David Comerford
Chip,

Yeah probably a good idea. Throwing them on my wordpress testbed isn't the
most sustainable idea in the world.

Cheers,
Dave

On 8 April 2013 19:33, Chip Childers  wrote:

> On Mon, Apr 08, 2013 at 07:28:22PM +0100, David Comerford wrote:
> > Good stuff.
> >
> > For future readers of this thread I've put together a step by step of the
> > process:
> > http://dave.ie/cloudstack-change-vcenter-username-and-password/
> >
> > Cheers,
> > Dave
>
> Dave,
>
> Would you consider adding something to the Admin Guide for this?
>
> Instructions for contributing are here:
>
>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/Review+Board+Guidelines
>
> and here specifically for docs:
>
>
> https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+Documentation+Contributors+Overview
>
> and a list full of folks that will support you on
> d...@cloudstack.apache.org ;-)
>
>
>


Re: reopened - "CS failed after changing vcenter password"

2013-04-08 Thread David Comerford
Good stuff.

For future readers of this thread I've put together a step by step of the
process:
http://dave.ie/cloudstack-change-vcenter-username-and-password/

Cheers,
Dave

On 8 April 2013 15:32, Fabrice Brazier  wrote:

> Hi David,
>
> Many thanks! It's working like a charm.
>
> Regards,
> Fabrice
>
>
> -----Message d'origine-
> De : David Comerford [mailto:davest...@gmail.com]
> Envoyé : jeudi 4 avril 2013 22:58
> À : users@cloudstack.apache.org
> Objet : Re: reopened - "CS failed after changing vcenter password"
>
> I finely tuned that SQL query to get the host ID and password of the
> VMware hosts.
> Makes it slightly easier to make an accurate update on those hosts.
>
> SELECT host.id,host.hypervisor_type,host_details.name,host_details.value
> FROM host_details JOIN host
> WHERE host_details.host_id=host.id
> AND host.hypervisor_type='VMware'
> AND host_details.name='password';
>
>
> On 4 April 2013 20:10, David Comerford  wrote:
>
> > Get your encryption key from /etc/cloud/management/key   (default is
> > 'password')
> >
> > # Encrypt the new password 'dave-says-hi' with key 'password'
> > java -classpath /usr/share/java/cloud-jasypt-1.8.jar
> > org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI encrypt.sh
> > input="dave-says-hi" password="password" verbose=false
> >
> > # Decrypt the ciphertext with the same key 'password'
> >  java -classpath /usr/share/java/cloud-jasypt-1.8.jar
> > org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI decrypt.sh
> > input="S0TXOpxss68b2/RHicePqyXwrMje+OaI" password="password"
> > verbose=false
> >
> > Interestingly the encryption command will spit out different output
> > every time you run it. Well I think that's interesting anyway.
> >
> > Regards,
> > Dave Comerford
> >
> >
> > On 4 April 2013 19:30, Fabrice Brazier 
> wrote:
> >
> >> Thanks David and Geoff. In my environment the password is the same
> >> for every hosts.
> >> But in the host_details table the password seems to be encrypted and
> >> the value is different for each host.
> >>
> >> What is the encryption process ?
> >>
> >> Thanks,
> >> Fabrice
> >>
> >>
> >> -Message d'origine-
> >> De : David Comerford [mailto:davest...@gmail.com] Envoyé : jeudi 4
> >> avril 2013 20:22 À : users@cloudstack.apache.org Objet : Re: reopened
> >> - "CS failed after changing vcenter password"
> >>
> >> Fabrice,
> >>
> >> The vCenter password is stored in cloud.host_details table.
> >> > select * from host_details WHERE name='password';
> >>
> >> Sorry I can't get at my lab to give you the exact UPDATE query at the
> >> moment.
> >>
> >> Regards,
> >> Dave Comerford
> >>
> >> On 4 April 2013 18:23, Geoff Higginbottom
> >> wrote:
> >>
> >> > Hi Fabrice,
> >> >
> >> > These were taken from a set of instructions we did for a
> >> > CloudPlatform build a while back, it looks like the DB Schema may
> >> > have changed a little since then, but the latest admin guide still
> >> > has the same example
> >> in it.
> >> >
> >> > The actual password is stored in cloud.host.details, and you need
> >> > to cross reference the 'host_id' with the id from the cloud.host
> >> > table
> >> >
> >> > Regards
> >> >
> >> > Geoff Higginbottom
> >> >
> >> > D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
> >> >
> >> > geoff.higginbot...@shapeblue.com
> >> >
> >> >
> >> > -Original Message-
> >> > From: Fabrice Brazier [mailto:fabrice.braz...@apalia.net]
> >> > Sent: 04 April 2013 18:18
> >> > To: users@cloudstack.apache.org
> >> > Subject: RE: reopened - "CS failed after changing vcenter password"
> >> >
> >> > Hi Geoff,
> >> >
> >> > This command doesn't work:
> >> > update cloud.host set password='password' where id=5 or id=10 or
> >> > id=12;
> >> >
> >> > There is no "password" column in the host table.
> >> >
> >> > Regards,
> >> > Fabrice
> >> >
> >> > ---

Re: management server startup - database integrity

2013-04-06 Thread David Comerford
Is the database OK?

Check MySQL's logs.
Eyeball 'show processlist' and see what's it's doing.
Try mysqldump the database and import it elsewhere.
Force a recovery if it seems anything less than healthy -
http://dev.mysql.com/doc/refman/5.5/en/forcing-innodb-recovery.html

G'luck
- Dave


On 5 April 2013 16:02, Marcel Keller  wrote:

> Folks, i tried to earn some experience with Cloudstack. Everything is
> working well but since yesterday i have some trouble when i try to start my
> management servers.
>
> I always get a:
>
> seUpgradeChecker - DatabaseUpgradeChecker
> 2013-04-05 16:19:10,465 INFO  [utils.component.ComponentLocator]
> (main:null) Adding system integrity checker: DatabaseUpgradeChecker
> 2013-04-05 16:19:10,537 DEBUG [utils.crypt.EncryptionSecretKeyChecker]
> (main:null) Encryption Type: file
> 2013-04-05 16:19:10,623 INFO  [cloud.upgrade.DatabaseIntegrityChecker]
> (main:null) Grabbing lock to check for database integrity.
> 2013-04-05 16:19:10,894 INFO  [cloud.upgrade.DatabaseIntegrityChecker]
> (main:null) Performing database integrity check
>
> the server hangs in that state since one hour
>
> The mysql servers are available...
>
> any ideas?
>


Re: Extending public IP range on untagged public network interface

2013-04-04 Thread David Comerford
Have a look in the user_ip_address table and see is there IP's in there
that might be overlapping in some way. Maybe a incorrect netmask somewhere?

If you really can't figure it out you could turn off the check, set
check.pod.cidrs=false in global settings.

- Dave


On 4 April 2013 12:10, Andrei Mikhailovsky  wrote:

> The existing IP range is different from the new one. The existing IP range
> is XXX.YYY.98.129/26. The new IP range that I was given is
> XXX.YYY.123.193/26.
>
> Thanks
>
>
> - Original Message -
>
> From: "David Comerford" 
> To: users@cloudstack.apache.org
> Sent: Wednesday, 3 April, 2013 11:09:03 PM
> Subject: Re: Extending public IP range on untagged public network interface
>
> Well does the subnet already exist?
> The existing CIDR and new CIDR details would be helpful.
>
> - Dave
>
>
> On 3 April 2013 22:19, Andrei Mikhailovsky  wrote:
>
> > Here is what I've done:
> >
> > In ACS gui i went to Infrastructure > Zones > Zone1 > Publicbr0 > Public
> >
> > and added a new IP range. I've specified a GW, Subnet Mask, Start and End
> > IPs and left the VLAN field blank as my public interface is not tagged. I
> > get the following error from the GUI:
> >
> >
> > The Untagged ip range with different subnet already exists in zone 1
> >
> >
> > the management-server.log has the following corresponding entry:
> >
> > 2013-04-03 22:05:44,206 DEBUG [cloud.api.ApiServlet]
> > (catalina-exec-14:null) ===START=== XXX.YYY.62 -- GET
> >
> command=createVlanIpRange&zoneId=fc8c2022-f5ab-4c7a-b2a9-8eb541cba7df&vlan=untagged&gateway=XXX.YYY.123.254&netmask=255.255.255.192&startip=XXX.YYY.123.194&endip=XXX.YYY.123.253&forVirtualNetwork=true&response=json&sessionkey=XQupQeYk8Ic%2FV%2FwncSs%3D&_=1365023144195
> >
> > 2013-04-03 22:05:44,215 DEBUG
> > [cloud.configuration.ConfigurationManagerImpl] (catalina-exec-14:null)
> > Access granted to Acct[2-admin] to zone:1 by DomainChecker
> >
> > 2013-04-03 22:05:44,216 DEBUG [db.Transaction.Transaction]
> > (catalina-exec-14:null) Rolling back the transaction: Time = 2 Name =
> > createVlanAndPublicIpRange; called by
> >
> -Transaction.rollback:887-Transaction.removeUpTo:830-Transaction.close:649-DatabaseCallback.interceptException:76-DatabaseCallback.interceptException:28-ComponentLocator$InterceptorDispatcher.intercept:1239-CreateVlanIpRangeCmd.execute:164-ApiDispatcher.dispatch:138-ApiServer.queueCommand:544-ApiServer.handleRequest:423-ApiServlet.processRequest:312-ApiServlet.doGet:64
> >
> > 2013-04-03 22:05:44,280 DEBUG [cloud.api.ApiServlet]
> > (catalina-exec-14:null) ===END=== XXX.YYY.1.62 -- GET
> >
> command=createVlanIpRange&zoneId=fc8c2022-f5ab-4c7a-b2a9-8eb541cba7df&vlan=untagged&gateway=XXX.YYY.123.254&netmask=255.255.255.192&startip=XXX.YYY.123.194&endip=XXX.YYY.123.253&forVirtualNetwork=true&response=json&sessionkey=XXQupQeYk8Ic%2FV%2FwncSs%3D&_=1365023144195
> >
> >
> > I am using ACS 4.0.1 with Advanced Networking.
> >
> > Many thanks
> >
> > - Original Message -
> >
> > From: "Ahmad Emneina" 
> > To: "Cloudstack users mailing list" 
> > Sent: Wednesday, 3 April, 2013 8:18:53 PM
> > Subject: Re: Extending public IP range on untagged public network
> interface
> >
> > Is this for a basic or advanced zone? Have you tried adding the other IP
> > block as opposed to editing and extending the current range, maybe the
> > exact steps you took and error relating to the actions would give us
> better
> > insight.
> >
> >
> > On Wed, Apr 3, 2013 at 9:53 AM, Andrei Mikhailovsky  > >wrote:
> >
> > > Hello guys,
> > >
> > > I was wondering how to extend the public IP range on an untagged
> physical
> > > interface? I am using ACS 4.0.1. When I try to add/extend the range via
> > the
> > > CS GUI I am getting an error message saying something like: The IP
> range
> > > already exists on the current vlan. Please note that I do not remember
> > the
> > > exact wording of the message.
> > >
> > > I have an existing public IP range and I've been given an additional
> > range
> > > which I need to add. Is there a way to do that? If not via the GUI,
> > perhaps
> > > via db changes?
> > >
> > > Many thanks
> > >
> > > Andrei
> > >
> >
> >
>
>


Re: reopened - "CS failed after changing vcenter password"

2013-04-04 Thread David Comerford
I finely tuned that SQL query to get the host ID and password of the VMware
hosts.
Makes it slightly easier to make an accurate update on those hosts.

SELECT host.id,host.hypervisor_type,host_details.name,host_details.value
FROM host_details JOIN host
WHERE host_details.host_id=host.id
AND host.hypervisor_type='VMware'
AND host_details.name='password';


On 4 April 2013 20:10, David Comerford  wrote:

> Get your encryption key from /etc/cloud/management/key   (default is
> 'password')
>
> # Encrypt the new password 'dave-says-hi' with key 'password'
> java -classpath /usr/share/java/cloud-jasypt-1.8.jar
> org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI encrypt.sh
> input="dave-says-hi" password="password" verbose=false
>
> # Decrypt the ciphertext with the same key 'password'
>  java -classpath /usr/share/java/cloud-jasypt-1.8.jar
> org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI decrypt.sh
> input="S0TXOpxss68b2/RHicePqyXwrMje+OaI" password="password" verbose=false
>
> Interestingly the encryption command will spit out different output every
> time you run it. Well I think that's interesting anyway.
>
> Regards,
> Dave Comerford
>
>
> On 4 April 2013 19:30, Fabrice Brazier  wrote:
>
>> Thanks David and Geoff. In my environment the password is the same for
>> every hosts.
>> But in the host_details table the password seems to be encrypted and the
>> value is different for each host.
>>
>> What is the encryption process ?
>>
>> Thanks,
>> Fabrice
>>
>>
>> -Message d'origine-
>> De : David Comerford [mailto:davest...@gmail.com]
>> Envoyé : jeudi 4 avril 2013 20:22
>> À : users@cloudstack.apache.org
>> Objet : Re: reopened - "CS failed after changing vcenter password"
>>
>> Fabrice,
>>
>> The vCenter password is stored in cloud.host_details table.
>> > select * from host_details WHERE name='password';
>>
>> Sorry I can't get at my lab to give you the exact UPDATE query at the
>> moment.
>>
>> Regards,
>> Dave Comerford
>>
>> On 4 April 2013 18:23, Geoff Higginbottom
>> wrote:
>>
>> > Hi Fabrice,
>> >
>> > These were taken from a set of instructions we did for a CloudPlatform
>> > build a while back, it looks like the DB Schema may have changed a
>> > little since then, but the latest admin guide still has the same example
>> in it.
>> >
>> > The actual password is stored in cloud.host.details, and you need to
>> > cross reference the 'host_id' with the id from the cloud.host table
>> >
>> > Regards
>> >
>> > Geoff Higginbottom
>> >
>> > D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
>> >
>> > geoff.higginbot...@shapeblue.com
>> >
>> >
>> > -Original Message-
>> > From: Fabrice Brazier [mailto:fabrice.braz...@apalia.net]
>> > Sent: 04 April 2013 18:18
>> > To: users@cloudstack.apache.org
>> > Subject: RE: reopened - "CS failed after changing vcenter password"
>> >
>> > Hi Geoff,
>> >
>> > This command doesn't work:
>> > update cloud.host set password='password' where id=5 or id=10 or
>> > id=12;
>> >
>> > There is no "password" column in the host table.
>> >
>> > Regards,
>> > Fabrice
>> >
>> > -Message d'origine-
>> > De : Geoff Higginbottom [mailto:geoff.higginbot...@shapeblue.com]
>> > Envoyé : jeudi 4 avril 2013 18:47
>> > À : users@cloudstack.apache.org
>> > Objet : RE: reopened - "CS failed after changing vcenter password"
>> >
>> > Hi Fabrice,
>> >
>> > To change the Passwords for ESXi try this procedure.
>> >
>> > To change host passwords the password must be changed on both the host
>> > and in the CloudStack database.
>> >
>> > ESXi
>> > 1.  Connect to the vCenter server using the vSphere client.
>> > 2.  Navigate to Home > Management > Host Profiles
>> > 3.  Right-click on the host profile and select Edit Profile
>> > 4.  Expand 'Security Configuration' and select 'Administrator
>> > password'
>> > 5.  Select 'configure a fixed administrator password' and enter and
>> > confirm the new password and click OK.
>> > 6.  Click on the 'Hosts and Cl

Re: reopened - "CS failed after changing vcenter password"

2013-04-04 Thread David Comerford
Get your encryption key from /etc/cloud/management/key   (default is
'password')

# Encrypt the new password 'dave-says-hi' with key 'password'
java -classpath /usr/share/java/cloud-jasypt-1.8.jar
org.jasypt.intf.cli.JasyptPBEStringEncryptionCLI encrypt.sh
input="dave-says-hi" password="password" verbose=false

# Decrypt the ciphertext with the same key 'password'
 java -classpath /usr/share/java/cloud-jasypt-1.8.jar
org.jasypt.intf.cli.JasyptPBEStringDecryptionCLI decrypt.sh
input="S0TXOpxss68b2/RHicePqyXwrMje+OaI" password="password" verbose=false

Interestingly the encryption command will spit out different output every
time you run it. Well I think that's interesting anyway.

Regards,
Dave Comerford

On 4 April 2013 19:30, Fabrice Brazier  wrote:

> Thanks David and Geoff. In my environment the password is the same for
> every hosts.
> But in the host_details table the password seems to be encrypted and the
> value is different for each host.
>
> What is the encryption process ?
>
> Thanks,
> Fabrice
>
>
> -Message d'origine-
> De : David Comerford [mailto:davest...@gmail.com]
> Envoyé : jeudi 4 avril 2013 20:22
> À : users@cloudstack.apache.org
> Objet : Re: reopened - "CS failed after changing vcenter password"
>
> Fabrice,
>
> The vCenter password is stored in cloud.host_details table.
> > select * from host_details WHERE name='password';
>
> Sorry I can't get at my lab to give you the exact UPDATE query at the
> moment.
>
> Regards,
> Dave Comerford
>
> On 4 April 2013 18:23, Geoff Higginbottom
> wrote:
>
> > Hi Fabrice,
> >
> > These were taken from a set of instructions we did for a CloudPlatform
> > build a while back, it looks like the DB Schema may have changed a
> > little since then, but the latest admin guide still has the same example
> in it.
> >
> > The actual password is stored in cloud.host.details, and you need to
> > cross reference the 'host_id' with the id from the cloud.host table
> >
> > Regards
> >
> > Geoff Higginbottom
> >
> > D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
> >
> > geoff.higginbot...@shapeblue.com
> >
> >
> > -Original Message-
> > From: Fabrice Brazier [mailto:fabrice.braz...@apalia.net]
> > Sent: 04 April 2013 18:18
> > To: users@cloudstack.apache.org
> > Subject: RE: reopened - "CS failed after changing vcenter password"
> >
> > Hi Geoff,
> >
> > This command doesn't work:
> > update cloud.host set password='password' where id=5 or id=10 or
> > id=12;
> >
> > There is no "password" column in the host table.
> >
> > Regards,
> > Fabrice
> >
> > -Message d'origine-
> > De : Geoff Higginbottom [mailto:geoff.higginbot...@shapeblue.com]
> > Envoyé : jeudi 4 avril 2013 18:47
> > À : users@cloudstack.apache.org
> > Objet : RE: reopened - "CS failed after changing vcenter password"
> >
> > Hi Fabrice,
> >
> > To change the Passwords for ESXi try this procedure.
> >
> > To change host passwords the password must be changed on both the host
> > and in the CloudStack database.
> >
> > ESXi
> > 1.  Connect to the vCenter server using the vSphere client.
> > 2.  Navigate to Home > Management > Host Profiles
> > 3.  Right-click on the host profile and select Edit Profile
> > 4.  Expand 'Security Configuration' and select 'Administrator
> > password'
> > 5.  Select 'configure a fixed administrator password' and enter and
> > confirm the new password and click OK.
> > 6.  Click on the 'Hosts and Clusters' tab
> > 7.  Right click on each of the clusters and select 'check
> compliance'
> > in turn.
> > 8.  Hold down the CTRL key and select all of the clusters and select
> > Apply Profile.
> > 9.  Review the tasks which are displayed on screen and confirm (by
> > clicking Finish).
> >
> >
> > CloudStack
> > The password for a XenServer Node, KVM Node, or vSphere Node may be
> > changed in the database. Note that all Nodes in a Cluster must have
> > the same password. To change a Node's password:
> >
> > 1.  Identify all hosts in the cluster.
> > 2.  Change the password on all hosts in the cluster. Now the
> password
> > for the host and the password known to CloudStack will not match.
> > Operations on the cluster will fa

Re: reopened - "CS failed after changing vcenter password"

2013-04-04 Thread David Comerford
Fabrice,

The vCenter password is stored in cloud.host_details table.
> select * from host_details WHERE name='password';

Sorry I can't get at my lab to give you the exact UPDATE query at the
moment.

Regards,
Dave Comerford

On 4 April 2013 18:23, Geoff Higginbottom
wrote:

> Hi Fabrice,
>
> These were taken from a set of instructions we did for a CloudPlatform
> build a while back, it looks like the DB Schema may have changed a little
> since then, but the latest admin guide still has the same example in it.
>
> The actual password is stored in cloud.host.details, and you need to cross
> reference the 'host_id' with the id from the cloud.host table
>
> Regards
>
> Geoff Higginbottom
>
> D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
>
> geoff.higginbot...@shapeblue.com
>
>
> -Original Message-
> From: Fabrice Brazier [mailto:fabrice.braz...@apalia.net]
> Sent: 04 April 2013 18:18
> To: users@cloudstack.apache.org
> Subject: RE: reopened - "CS failed after changing vcenter password"
>
> Hi Geoff,
>
> This command doesn't work:
> update cloud.host set password='password' where id=5 or id=10 or id=12;
>
> There is no "password" column in the host table.
>
> Regards,
> Fabrice
>
> -Message d'origine-
> De : Geoff Higginbottom [mailto:geoff.higginbot...@shapeblue.com]
> Envoyé : jeudi 4 avril 2013 18:47
> À : users@cloudstack.apache.org
> Objet : RE: reopened - "CS failed after changing vcenter password"
>
> Hi Fabrice,
>
> To change the Passwords for ESXi try this procedure.
>
> To change host passwords the password must be changed on both the host and
> in the CloudStack database.
>
> ESXi
> 1.  Connect to the vCenter server using the vSphere client.
> 2.  Navigate to Home > Management > Host Profiles
> 3.  Right-click on the host profile and select Edit Profile
> 4.  Expand 'Security Configuration' and select 'Administrator
> password'
> 5.  Select 'configure a fixed administrator password' and enter and
> confirm the new password and click OK.
> 6.  Click on the 'Hosts and Clusters' tab
> 7.  Right click on each of the clusters and select 'check compliance'
> in turn.
> 8.  Hold down the CTRL key and select all of the clusters and select
> Apply Profile.
> 9.  Review the tasks which are displayed on screen and confirm (by
> clicking Finish).
>
>
> CloudStack
> The password for a XenServer Node, KVM Node, or vSphere Node may be
> changed in the database. Note that all Nodes in a Cluster must have the
> same password. To change a Node's password:
>
> 1.  Identify all hosts in the cluster.
> 2.  Change the password on all hosts in the cluster. Now the password
> for the host and the password known to CloudStack will not match.
> Operations on the cluster will fail until the two passwords match.
> 3.  Get the list of host IDs for the host in the cluster where you are
> changing the password. You will need to access the database to determine
> these host IDs. For each hostname "h" (or vSphere cluster) that you are
> changing the password for, execute:
>
>  mysql> select id from cloud.host where name like '%h%'; This should
> return a single ID. Record the set of such IDs for these hosts.
> 4.  Update the passwords for the host in the database. In this
> example, we change the passwords for hosts with IDs 5, 10, and 12 to
> "password".
> mysql> update cloud.host set password='password' where id=5 or id=10 or
> mysql> id=12;
>
>
> Regards
>
> Geoff Higginbottom
>
> D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
>
> geoff.higginbot...@shapeblue.com
>
>
> -Original Message-
> From: Fabrice Brazier [mailto:fabrice.braz...@apalia.net]
> Sent: 04 April 2013 17:38
> To: cloudstack-us...@incubator.apache.org
> Subject: reopened - "CS failed after changing vcenter password"
>
> Hi All,
>
> I'm using CloudStack 3.0.2. I need to update the vCenter password for
> every hosts in the zone.
> I tried using API updateHostPassword:
> http://download.cloud.com/releases/3.0.0/api_3.0.0/root_admin/updateHostPa
> ssword.html
> http://wiki.cloudstack.org/pages/viewpage.action?pageId=14322288
>
> Everytime the same result:
> 431
> 4490
> This operation is not supported for this hypervisor
> type
>
> I tried to manually update the cluster_details table but the previous
> password is still used (I can see the old password first letter in the
> cloud-management log file after restarting cloud-management service).
> Does someone know the correct process for VMware ?
>
> Thanks,
> Fabrice
>
> -Message d'origine-
> De : Koushik Das [mailto:koushik@citrix.com] Envoyé : lundi 25 février
> 2013 18:54 À : cloudstack-us...@incubator.apache.org; 'asicando'
> Objet : RE: CS failed after changing vcenter password
>
> One way is to update the vcenter password stored in CS db. Check
> cluster_details table.
>
> > -Original Message-
> > From: Jerry Jiang [mailto:jerry.ji...@tyxtech.com]
> > Sent: Monday, February 25, 2013 3:25 

Re: Alert state detected

2013-04-04 Thread David Comerford
Yes it is persistent after restarts


On 4 April 2013 07:42, Nitin Mehta  wrote:

> Thanks Dave. Would this work for MS restart as well ?
>
> On 04/04/13 4:29 AM, "Carlos Reategui"  wrote:
>
> >Thanks!  Simple enough.
> >
> >
> >On Wed, Apr 3, 2013 at 6:06 AM, David Comerford 
> >wrote:
> >
> >> Here's a quick step by step to changing the status in the database...
> >>
> >> http://dave.ie/cloudstack-secondarystorage-alarm-on-dashboard/
> >>
> >> Regards,
> >> Dave
> >>
> >>
> >> On 1 April 2013 23:24, Carlos Reategui  wrote:
> >>
> >>> The "Host Alerts" panel on the main GUI page always show my secondary
> >>> storage NFS as "Alert state detected" but I have no idea why.
> >>>
> >>> In my logs it keeps saying it is ready to launch an SSVM:
> >>> 2013-04-02 03:46:10,049 DEBUG [agent.manager.DirectAgentAttache]
> >>> (DirectAgent-130:null) Seq 1-1079905198: Executing request
> >>> 2013-04-02 03:46:10,570 DEBUG [agent.manager.DirectAgentAttache]
> >>> (DirectAgent-130:null) Seq 1-1079905198: Response Received:
> >>> 2013-04-02 03:46:10,571 DEBUG [agent.transport.Request]
> >>> (StatsCollector-1:null) Seq 1-1079905198: Received:  { Ans: , MgmtId:
> >>> 159090355471823, via: 1, Ver: v1, Flags: 10, { GetSto
> >>> rageStatsAnswer } }
> >>> 2013-04-02 03:46:14,166 DEBUG
> >>> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
> >>>Zone 1
> >>> is ready to launch secondary storage VM
> >>> 2013-04-02 03:46:14,314 DEBUG
> >>>[cloud.consoleproxy.ConsoleProxyManagerImpl]
> >>> (consoleproxy-1:null) Zone 1 is ready to launch console proxy
> >>> 2013-04-02 03:46:14,653 DEBUG [storage.snapshot.SnapshotSchedulerImpl]
> >>> (SnapshotPollTask:null) Snapshot scheduler.poll is being called at
> >>> 2013-04-01 22:16:14 GMT
> >>> 2013-04-02 03:46:14,655 DEBUG [storage.snapshot.SnapshotSchedulerImpl]
> >>> (SnapshotPollTask:null) Got 0 snapshots to be executed at 2013-04-01
> >>> 22:16:14 GMT
> >>> 2013-04-02 03:46:14,662 DEBUG
> >>> [cloud.network.ExternalLoadBalancerUsageManagerImpl]
> >>> (ExternalNetworkMonitor-1:null) External load balancer devices stats
> >>> collector is running...
> >>> 2013-04-02 03:46:14,687 INFO  [cloud.ha.HighAvailabilityManagerImpl]
> >>> (HA-5:null) checking health of usage server
> >>> 2013-04-02 03:46:14,689 DEBUG [cloud.ha.HighAvailabilityManagerImpl]
> >>> (HA-5:null) usage server running? false, heartbeat: null
> >>> 2013-04-02 03:46:14,698 DEBUG
> >>> [network.router.VirtualNetworkApplianceManagerImpl]
> >>>(RouterMonitor-1:null)
> >>> Found 0 running routers.
> >>> 2013-04-02 03:46:14,699 DEBUG
> >>> [network.router.VirtualNetworkApplianceManagerImpl]
> >>> (RouterStatusMonitor-1:null) Found 0 routers.
> >>> 2013-04-02 03:46:14,701 DEBUG [cloud.alert.AlertManagerImpl]
> >>>(HA-5:null)
> >>> Have already sent: 1 emails for alert type '12' -- skipping send email
> >>> 2013-04-02 03:46:16,290 DEBUG [agent.manager.AgentManagerImpl]
> >>> (AgentManager-Handler-14:null) Ping from 3
> >>> 2013-04-02 03:46:22,037 DEBUG [agent.manager.AgentManagerImpl]
> >>> (AgentManager-Handler-15:null) Ping from 4
> >>> 2013-04-02 03:46:44,166 DEBUG
> >>> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null)
> >>>Zone 1
> >>> is ready to launch secondary storage VM
> >>> 2013-04-02 03:46:44,315 DEBUG
> >>>[cloud.consoleproxy.ConsoleProxyManagerImpl]
> >>> (consoleproxy-1:null) Zone 1 is ready to launch console proxy
> >>> 2013-04-02 03:46:44,632 DEBUG [cloud.alert.AlertManagerImpl]
> >>> (CapacityChecker:null) Running Capacity Checker ...
> >>> 2013-04-02 03:46:44,632 DEBUG [cloud.alert.AlertManagerImpl]
> >>> (CapacityChecker:null) recalculating system capacity
> >>> 2013-04-02 03:46:44,632 DEBUG [cloud.alert.AlertManagerImpl]
> >>> (CapacityChecker:null) Executing cpu/ram capacity update
> >>> 2013-04-02 03:46:44,646 DEBUG [cloud.capacity.CapacityManagerImpl]
> >>> (CapacityChecker:null) Found 4 VMs on host 1
> >>> 2013-04-02 03:46:44,647 DEBUG [cloud.capacity.CapacityManagerImpl]
> >>> (CapacityChecker:null) Found 0 VM, n

Re: Extending public IP range on untagged public network interface

2013-04-03 Thread David Comerford
Well does the subnet already exist?
The existing CIDR and new CIDR details would be helpful.

- Dave


On 3 April 2013 22:19, Andrei Mikhailovsky  wrote:

> Here is what I've done:
>
> In ACS gui i went to Infrastructure > Zones > Zone1 > Publicbr0 > Public
>
> and added a new IP range. I've specified a GW, Subnet Mask, Start and End
> IPs and left the VLAN field blank as my public interface is not tagged. I
> get the following error from the GUI:
>
>
> The Untagged ip range with different subnet already exists in zone 1
>
>
> the management-server.log has the following corresponding entry:
>
> 2013-04-03 22:05:44,206 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-14:null) ===START=== XXX.YYY.62 -- GET
> command=createVlanIpRange&zoneId=fc8c2022-f5ab-4c7a-b2a9-8eb541cba7df&vlan=untagged&gateway=XXX.YYY.123.254&netmask=255.255.255.192&startip=XXX.YYY.123.194&endip=XXX.YYY.123.253&forVirtualNetwork=true&response=json&sessionkey=XQupQeYk8Ic%2FV%2FwncSs%3D&_=1365023144195
>
> 2013-04-03 22:05:44,215 DEBUG
> [cloud.configuration.ConfigurationManagerImpl] (catalina-exec-14:null)
> Access granted to Acct[2-admin] to zone:1 by DomainChecker
>
> 2013-04-03 22:05:44,216 DEBUG [db.Transaction.Transaction]
> (catalina-exec-14:null) Rolling back the transaction: Time = 2 Name =
> createVlanAndPublicIpRange; called by
> -Transaction.rollback:887-Transaction.removeUpTo:830-Transaction.close:649-DatabaseCallback.interceptException:76-DatabaseCallback.interceptException:28-ComponentLocator$InterceptorDispatcher.intercept:1239-CreateVlanIpRangeCmd.execute:164-ApiDispatcher.dispatch:138-ApiServer.queueCommand:544-ApiServer.handleRequest:423-ApiServlet.processRequest:312-ApiServlet.doGet:64
>
> 2013-04-03 22:05:44,280 DEBUG [cloud.api.ApiServlet]
> (catalina-exec-14:null) ===END=== XXX.YYY.1.62 -- GET
> command=createVlanIpRange&zoneId=fc8c2022-f5ab-4c7a-b2a9-8eb541cba7df&vlan=untagged&gateway=XXX.YYY.123.254&netmask=255.255.255.192&startip=XXX.YYY.123.194&endip=XXX.YYY.123.253&forVirtualNetwork=true&response=json&sessionkey=XXQupQeYk8Ic%2FV%2FwncSs%3D&_=1365023144195
>
>
> I am using ACS 4.0.1 with Advanced Networking.
>
> Many thanks
>
> - Original Message -
>
> From: "Ahmad Emneina" 
> To: "Cloudstack users mailing list" 
> Sent: Wednesday, 3 April, 2013 8:18:53 PM
> Subject: Re: Extending public IP range on untagged public network interface
>
> Is this for a basic or advanced zone? Have you tried adding the other IP
> block as opposed to editing and extending the current range, maybe the
> exact steps you took and error relating to the actions would give us better
> insight.
>
>
> On Wed, Apr 3, 2013 at 9:53 AM, Andrei Mikhailovsky  >wrote:
>
> > Hello guys,
> >
> > I was wondering how to extend the public IP range on an untagged physical
> > interface? I am using ACS 4.0.1. When I try to add/extend the range via
> the
> > CS GUI I am getting an error message saying something like: The IP range
> > already exists on the current vlan. Please note that I do not remember
> the
> > exact wording of the message.
> >
> > I have an existing public IP range and I've been given an additional
> range
> > which I need to add. Is there a way to do that? If not via the GUI,
> perhaps
> > via db changes?
> >
> > Many thanks
> >
> > Andrei
> >
>
>


Re: Global setting: router.extra.public.nics

2013-04-03 Thread David Comerford
Ahh that makes sense. Answers my question nicely.
Thanks guys


On 3 April 2013 22:48, Kelven Yang  wrote:

>
> On 4/3/13 5:43 AM, "prasanna"  wrote:
>
> >On 3 April 2013 14:12, David Comerford  wrote:
> >> Hi list,
> >>
> >> Can anyone tell me what "router.extra.public.nics" is used for?
> >>
> >> I recently noticed my routers had the default extra 2 NICs and I can't
> >>see
> >> any need for them.
> >> I've also noticed in VMware one of the extra public NICs gets the
> >>correct
> >> VLAN tag for public traffic but is added to the management vSwitch,
> >>which
> >> isn't tagged and won't work even if the NIC was used by the router.
> >>
> >
> >I can't say for sure but there's not much in the code (as comments or
> >otherwise) to explain the need for the extra nics. If you're not using
> >vmware as hypervisor this setting doesn't do anything at all. From
> >what I can tell - during router startup additional interfaces are
> >added to the vmware routers but the interface remains down.
>
>
> This configuration is no longer needed with introduction of NIC hot-plug
> support available in system VM template that is bound with VMware tools
> from VMware.
>
> In old system template that is shipped with Open VMware tools, NIC
> hot-plug is not supported, in order to support more public IP addresses on
> VR, we have to put a hacking solution, which is to pre-allocate NICs at
> VR's creation time, and then using script inside VR to bring it up on
> demand.
>
> router.extra.public.nics is there for such purpose, it tells CloudStack
> how many extra static NIC we need to allocate, and these extra NICs will
> be attached to a dummy port-group (which may appear confusing to some
> people about this behave)
>
> -Kelven
>
> >
>
>


Re: Alert state detected

2013-04-03 Thread David Comerford
Here's a quick step by step to changing the status in the database...

http://dave.ie/cloudstack-secondarystorage-alarm-on-dashboard/

Regards,
Dave


On 1 April 2013 23:24, Carlos Reategui  wrote:

> The "Host Alerts" panel on the main GUI page always show my secondary
> storage NFS as "Alert state detected" but I have no idea why.
>
> In my logs it keeps saying it is ready to launch an SSVM:
> 2013-04-02 03:46:10,049 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-130:null) Seq 1-1079905198: Executing request
> 2013-04-02 03:46:10,570 DEBUG [agent.manager.DirectAgentAttache]
> (DirectAgent-130:null) Seq 1-1079905198: Response Received:
> 2013-04-02 03:46:10,571 DEBUG [agent.transport.Request]
> (StatsCollector-1:null) Seq 1-1079905198: Received:  { Ans: , MgmtId:
> 159090355471823, via: 1, Ver: v1, Flags: 10, { GetSto
> rageStatsAnswer } }
> 2013-04-02 03:46:14,166 DEBUG
> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 1
> is ready to launch secondary storage VM
> 2013-04-02 03:46:14,314 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
> (consoleproxy-1:null) Zone 1 is ready to launch console proxy
> 2013-04-02 03:46:14,653 DEBUG [storage.snapshot.SnapshotSchedulerImpl]
> (SnapshotPollTask:null) Snapshot scheduler.poll is being called at
> 2013-04-01 22:16:14 GMT
> 2013-04-02 03:46:14,655 DEBUG [storage.snapshot.SnapshotSchedulerImpl]
> (SnapshotPollTask:null) Got 0 snapshots to be executed at 2013-04-01
> 22:16:14 GMT
> 2013-04-02 03:46:14,662 DEBUG
> [cloud.network.ExternalLoadBalancerUsageManagerImpl]
> (ExternalNetworkMonitor-1:null) External load balancer devices stats
> collector is running...
> 2013-04-02 03:46:14,687 INFO  [cloud.ha.HighAvailabilityManagerImpl]
> (HA-5:null) checking health of usage server
> 2013-04-02 03:46:14,689 DEBUG [cloud.ha.HighAvailabilityManagerImpl]
> (HA-5:null) usage server running? false, heartbeat: null
> 2013-04-02 03:46:14,698 DEBUG
> [network.router.VirtualNetworkApplianceManagerImpl] (RouterMonitor-1:null)
> Found 0 running routers.
> 2013-04-02 03:46:14,699 DEBUG
> [network.router.VirtualNetworkApplianceManagerImpl]
> (RouterStatusMonitor-1:null) Found 0 routers.
> 2013-04-02 03:46:14,701 DEBUG [cloud.alert.AlertManagerImpl] (HA-5:null)
> Have already sent: 1 emails for alert type '12' -- skipping send email
> 2013-04-02 03:46:16,290 DEBUG [agent.manager.AgentManagerImpl]
> (AgentManager-Handler-14:null) Ping from 3
> 2013-04-02 03:46:22,037 DEBUG [agent.manager.AgentManagerImpl]
> (AgentManager-Handler-15:null) Ping from 4
> 2013-04-02 03:46:44,166 DEBUG
> [storage.secondary.SecondaryStorageManagerImpl] (secstorage-1:null) Zone 1
> is ready to launch secondary storage VM
> 2013-04-02 03:46:44,315 DEBUG [cloud.consoleproxy.ConsoleProxyManagerImpl]
> (consoleproxy-1:null) Zone 1 is ready to launch console proxy
> 2013-04-02 03:46:44,632 DEBUG [cloud.alert.AlertManagerImpl]
> (CapacityChecker:null) Running Capacity Checker ...
> 2013-04-02 03:46:44,632 DEBUG [cloud.alert.AlertManagerImpl]
> (CapacityChecker:null) recalculating system capacity
> 2013-04-02 03:46:44,632 DEBUG [cloud.alert.AlertManagerImpl]
> (CapacityChecker:null) Executing cpu/ram capacity update
> 2013-04-02 03:46:44,646 DEBUG [cloud.capacity.CapacityManagerImpl]
> (CapacityChecker:null) Found 4 VMs on host 1
> 2013-04-02 03:46:44,647 DEBUG [cloud.capacity.CapacityManagerImpl]
> (CapacityChecker:null) Found 0 VM, not running on host 1
> 2013-04-02 03:46:44,650 DEBUG [cloud.capacity.CapacityManagerImpl]
> (CapacityChecker:null) No need to calibrate cpu capacity, host:1 usedCpu:
> 3500 reservedCpu: 0
> 2013-04-02 03:46:44,650 DEBUG [cloud.capacity.CapacityManagerImpl]
> (CapacityChecker:null) No need to calibrate memory capacity, host:1
> usedMem: 5408555008 reservedMem: 0
> 2013-04-02 03:46:44,651 DEBUG [cloud.alert.AlertManagerImpl]
> (CapacityChecker:null) Done executing cpu/ram capacity update
> 2013-04-02 03:46:44,651 DEBUG [cloud.alert.AlertManagerImpl]
> (CapacityChecker:null) Executing storage capacity update
> 2013-04-02 03:46:44,658 DEBUG [cloud.storage.StorageManagerImpl]
> (CapacityChecker:null) Successfully set Capacity - 422745128960 for
> capacity type - 9 , DataCenterId - 1, HostOrPo
> olId - 200, PodId 1
> 2013-04-02 03:46:44,665 DEBUG [cloud.storage.StorageManagerImpl]
> (CapacityChecker:null) Successfully set Capacity - 15872695468032 for
> capacity type - 3 , DataCenterId - 1, HostOr
> PoolId - 201, PodId 1
> 2013-04-02 03:46:44,665 DEBUG [cloud.alert.AlertManagerImpl]
> (CapacityChecker:null) Done executing storage capacity update
> 2013-04-02 03:46:44,665 DEBUG [cloud.alert.AlertManagerImpl]
> (CapacityChecker:null) Executing capacity updates for public ip and Vlans
> 2013-04-02 03:46:44,672 DEBUG [cloud.alert.AlertManagerImpl]
> (CapacityChecker:null) Done capacity updates for public ip and Vlans
> 2013-04-02 03:46:44,673 DEBUG [cloud.alert.AlertManagerImpl]
> (CapacityChecker:null) Executing capacity updates for private ip
> 2013-04-02 03:

Global setting: router.extra.public.nics

2013-04-03 Thread David Comerford
Hi list,

Can anyone tell me what "router.extra.public.nics" is used for?

I recently noticed my routers had the default extra 2 NICs and I can't see
any need for them.
I've also noticed in VMware one of the extra public NICs gets the correct
VLAN tag for public traffic but is added to the management vSwitch, which
isn't tagged and won't work even if the NIC was used by the router.

Cheers,
Dave