Re: Multi-master MySQL Setup

2013-11-05 Thread Alexey Zilber
Hi Prasanna,

  That page isn't fully correct regarding MariaDB.  Please see:
https://mariadb.com/kb/en/multi-source-replication/

Thanks,
Alex


On Wed, Nov 6, 2013 at 2:35 PM, Prasanna Santhanam  wrote:

> Incidentally, this is something that is being focussed on as part of
> the upcoming release [1].
>
> [1] https://cwiki.apache.org/confluence/x/v5YTAg
>
> On Tue, Nov 05, 2013 at 10:42:58PM +, Marty Sweet wrote:
> > The issue with plain MySQL replication (espically in master-master) is
> that
> > a failed query will stop replication. A good example of this is when an
> > record is added onto each master at the same time (within a second), say
> a
> > new record which gets the same primary key and replication will stop, on
> > both hosts. That then leaves a split brain situation when you have one
> > master writing its own data and another writing to itself, all with
> > identical primary keys. Absolute nightmare. This can how ever be migrated
> > with the methods the OP mentioned (I assume - but don't have experience
> of).
> >
> > I don't think file curroption is much of an issue with DRDB, but you can
> > only have one host write to it at anyone time (limitation of file system
> > used), which makes the master-slave or master-backup setup ideal when
> > coupled with HA service management software such as Pacemaker. You then
> > have the database files in both places without the dreaded MySQL
> > replication stories.
> >
> > I think the main question lyes with if the cloud admin wants a
> > simple redundant setup or a load balanced service - it may also we worth
> > writing some documentation for this to help future installations,
> although
> > they will have to be detailed.
> >
> > I have never used Percona/MariaDB, does it resolve the master-master
> issues
> > I mentioned earlier?
> >
> > Marty
> >
> > On Tuesday, November 5, 2013, Adrian Lewis wrote:
> >
> > > Seems like the Percona solution also uses Galera for their multi-master
> > > cluster. Starting to wonder whether to go MariaDB-Galera now. Tempted
> just
> > > to leave it as master slave replicated on MySQL though. Scale really
> not
> > > an issue right now. Ho hum, fun to be had if I had the time to play.
> > >
> > > Assuming no Galera (with either MySQL/Percona/MariaDB) and just using
> > > Centos version of MySQL - does anyone have any input as to whether to
> go
> > > for replicating between two hosts using DRBD vs native MySQL
> replication?
> > > I get the impression that MySQL replication is an eventually-consistent
> > > near-realtime kind of replication whereas DRBD can be set to be
> completely
> > > synchronous replication. MySQL replication just seems a lot less fiddly
> > > than using DRBD and DRBD would replicate file corruption that MySQL
> > > replication would be largely safe from.
> > >
> > > -Original Message-
> > > From: Patrick Miller [mailto:patrick.mil...@sungard.com]
> > > Sent: 05 November 2013 21:51
> > > To: users@cloudstack.apache.org 
> > > Subject: Re: Multi-master MySQL Setup
> > >
> > > Take a look at the percona [1] implementation of mysql and there
> clustered
> > > version.
> > > Round robin reads and writes supported.
> > >
> > > 1] http://www.percona.com/
> > >
> > >  Patrick
> > >
> > >
> > > On Tue, Nov 5, 2013 at 9:55 AM, Adrian Lewis
> > > >wrote:
> > >
> > > > Hi Marty/Nux!,
> > > >
> > > > Thanks for the feedback - sounds like multi-master is not a good
> thing
> > > > then! Load will likely be very small for at least the next 6 months
> > > > but I figured that it was one of those things that could be set
> easily
> > > > now (still setting up) that I might appreciate later.
> > > >
> > > > Based on both your responses, I think I'll just leave it well alone!
> > > > Need to get to grips with pacemaker/corosync anyway for other reasons
> > > > so I'll just try that with either DRBD replication or MySQL
> replication.
> > > >
> > > > Cheers,
> > > >
> > > > Adrian
> > > >
> > > > -Original Message-
> > > > From: Marty Sweet [mailto:msweet@gmail.com ]
> > > > Sent: 05 November 2013 17:23
> > > > To: users@cloudstack.apache.org 
> > > > Subject: Re: Multi-master MySQL Setup
> > > >
> > > > Others may have had more success with this but from experience of
> > > > MySQL in multi-master setups I would avoid this entirely.
> > > >
> > > > A common setup is using DRDB to provide a master/slave:
> > > > Management 1 (MySQL Master) w/ virtual IP Management 2 (MySQL Slave)
> > > >
> > > > HA IP Address (for agents/services requiring DB write) which is
> > > > assigned to the master (using Pacemaker).
> > > >
> > > > You can then send web management client to the HA IP Address as well.
> > > >
> > > > It may be worth considering if you need load balancing, depending on
> > > > your setup - what loads are you experiencing?
> > > >
> > > > Marty
> > > >
> > > >
> > > >
> > > > On Tue, Nov 5, 2013 at 5:13 PM, Adrian Lewis
> > > > >wrote:
> > > >
> > > > > Hi All,
> > > > >
> > > > >
> > 

Re: Multi-master MySQL Setup

2013-11-05 Thread Prasanna Santhanam
Incidentally, this is something that is being focussed on as part of
the upcoming release [1]. 

[1] https://cwiki.apache.org/confluence/x/v5YTAg

On Tue, Nov 05, 2013 at 10:42:58PM +, Marty Sweet wrote:
> The issue with plain MySQL replication (espically in master-master) is that
> a failed query will stop replication. A good example of this is when an
> record is added onto each master at the same time (within a second), say a
> new record which gets the same primary key and replication will stop, on
> both hosts. That then leaves a split brain situation when you have one
> master writing its own data and another writing to itself, all with
> identical primary keys. Absolute nightmare. This can how ever be migrated
> with the methods the OP mentioned (I assume - but don't have experience of).
> 
> I don't think file curroption is much of an issue with DRDB, but you can
> only have one host write to it at anyone time (limitation of file system
> used), which makes the master-slave or master-backup setup ideal when
> coupled with HA service management software such as Pacemaker. You then
> have the database files in both places without the dreaded MySQL
> replication stories.
> 
> I think the main question lyes with if the cloud admin wants a
> simple redundant setup or a load balanced service - it may also we worth
> writing some documentation for this to help future installations, although
> they will have to be detailed.
> 
> I have never used Percona/MariaDB, does it resolve the master-master issues
> I mentioned earlier?
> 
> Marty
> 
> On Tuesday, November 5, 2013, Adrian Lewis wrote:
> 
> > Seems like the Percona solution also uses Galera for their multi-master
> > cluster. Starting to wonder whether to go MariaDB-Galera now. Tempted just
> > to leave it as master slave replicated on MySQL though. Scale really not
> > an issue right now. Ho hum, fun to be had if I had the time to play.
> >
> > Assuming no Galera (with either MySQL/Percona/MariaDB) and just using
> > Centos version of MySQL - does anyone have any input as to whether to go
> > for replicating between two hosts using DRBD vs native MySQL replication?
> > I get the impression that MySQL replication is an eventually-consistent
> > near-realtime kind of replication whereas DRBD can be set to be completely
> > synchronous replication. MySQL replication just seems a lot less fiddly
> > than using DRBD and DRBD would replicate file corruption that MySQL
> > replication would be largely safe from.
> >
> > -Original Message-
> > From: Patrick Miller [mailto:patrick.mil...@sungard.com ]
> > Sent: 05 November 2013 21:51
> > To: users@cloudstack.apache.org 
> > Subject: Re: Multi-master MySQL Setup
> >
> > Take a look at the percona [1] implementation of mysql and there clustered
> > version.
> > Round robin reads and writes supported.
> >
> > 1] http://www.percona.com/
> >
> >  Patrick
> >
> >
> > On Tue, Nov 5, 2013 at 9:55 AM, Adrian Lewis
> > >wrote:
> >
> > > Hi Marty/Nux!,
> > >
> > > Thanks for the feedback - sounds like multi-master is not a good thing
> > > then! Load will likely be very small for at least the next 6 months
> > > but I figured that it was one of those things that could be set easily
> > > now (still setting up) that I might appreciate later.
> > >
> > > Based on both your responses, I think I'll just leave it well alone!
> > > Need to get to grips with pacemaker/corosync anyway for other reasons
> > > so I'll just try that with either DRBD replication or MySQL replication.
> > >
> > > Cheers,
> > >
> > > Adrian
> > >
> > > -Original Message-
> > > From: Marty Sweet [mailto:msweet@gmail.com ]
> > > Sent: 05 November 2013 17:23
> > > To: users@cloudstack.apache.org 
> > > Subject: Re: Multi-master MySQL Setup
> > >
> > > Others may have had more success with this but from experience of
> > > MySQL in multi-master setups I would avoid this entirely.
> > >
> > > A common setup is using DRDB to provide a master/slave:
> > > Management 1 (MySQL Master) w/ virtual IP Management 2 (MySQL Slave)
> > >
> > > HA IP Address (for agents/services requiring DB write) which is
> > > assigned to the master (using Pacemaker).
> > >
> > > You can then send web management client to the HA IP Address as well.
> > >
> > > It may be worth considering if you need load balancing, depending on
> > > your setup - what loads are you experiencing?
> > >
> > > Marty
> > >
> > >
> > >
> > > On Tue, Nov 5, 2013 at 5:13 PM, Adrian Lewis
> > > >wrote:
> > >
> > > > Hi All,
> > > >
> > > >
> > > >
> > > > Just wondering if anyone is using a MySQL multi-master configuration
> > > > with auto_increment_offset (e.g.10) and auto_increment_increment (1
> > > > for server 1, 2 for server 2 etc)? Does it work? Does anyone know a
> > > > reason why it doesn't or wouldn't work? Is there anything from an
> > > > application point of view that could/would trip up CS if
> > > > auto_increment values are set as more than 1?
> > > >
> > > >
> > 

Re: CS 4.2 VM snapshot is not enabled for hypervisor type: KVM

2013-11-05 Thread Ryan Lei
https://cwiki.apache.org/confluence/display/CLOUDSTACK/VM+Snapshots

>From my experience, though, VM snapshot also supports XenServer (mine is
6.2).
It also facilitates XenServer's native snapshot capibility, and works
flawlessly.
I have no idea why the release notes and admin guide ONLY mention VMware,
as opposed to the wiki. :(


---
Yu-Heng (Ryan) Lei, Associate Researcher
Chunghwa Telecom Laboratories / Cloud Computing Laboratory
ryan...@cht.com.tw
 or ryanlei750...@gmail.com



On Wed, Nov 6, 2013 at 1:02 PM, Sanjeev Neelarapu <
sanjeev.neelar...@citrix.com> wrote:

> Hi,
>
> Instance Snapshot is only supported on VMWare. It uses VMWare native
> snapshot facility.
> Please refer
> http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Admin_Guide/vm-snapshots.html
>
> Thanks,
> Sanjeev
>
> -Original Message-
> From: motty cruz [mailto:motty.c...@gmail.com]
> Sent: Tuesday, November 05, 2013 9:56 PM
> To: users@cloudstack.apache.org
> Subject: Re: CS 4.2 VM snapshot is not enabled for hypervisor type: KVM
>
> Hi Sebastien,
>
> I was not able to solve the snapshot issue, I can take a snapshot of a
> disk but not of the "instance",  I still get the "VM snapshot is not
> enabled for hypervisor type: KVM"
>
> I enabled KVM snapshot in Global Settings, someone suggested to turn off
> the instance, which I did but no success,
>
> Thanks,
>
>
>
> On Mon, Nov 4, 2013 at 11:42 PM, Sebastien Goasguen  >wrote:
>
> >
> > On Oct 31, 2013, at 6:40 PM, motty cruz  wrote:
> >
> > > 2013-10-31 13:03:50,030 DEBUG [agent.manager.AgentAttache]
> > > (AgentManager-Handler-9:null) Seq 5-1100677197: No more commands
> > > found
> > > 2013-10-31 13:03:50,056 DEBUG [storage.snapshot.SnapshotManagerImpl]
> > > (Job-Executor-3:job-128 = [ 4f046198-2bf6-4fac-9a80-9debb05ee76b ])
> > Failed
> > > to create snapshot
> > > com.cloud.utils.exception.CloudRuntimeException:   clvmd not running on
> > > node kvm2.fqdn.comDisk
> > /dev/hitachi-2/ff599482-7bcf-41e6-9ca4-738f4fb94bc9
> > > has no snapshot called 71bb6af455688c8d1de850551fad31c3.
> > >at
> > >
> > org.apache.cloudstack.storage.snapshot.SnapshotServiceImpl.backupSnaps
> > hot(Sn
> > >
> >
> > Motty, did you get that solved ?
> > It seemed to be a CLVM error. Marcuse Sorensen is the expert in CLVM
> > :)
> >
> > -sebastien
> >
> > >
> > > On Thu, Oct 31, 2013 at 1:01 PM, Sebastien Goasguen
> > > > >wrote:
> > >
> > >> Anything in the management server logs ?
> > >>
> > >> On Oct 31, 2013, at 3:53 PM, motty cruz  wrote:
> > >>
> > >>> yes I did restart the management server, twice. but not
> > >>> successful,
> > >>>
> > >>>
> > >>> On Thu, Oct 31, 2013 at 12:47 PM, Sebastien Goasguen
> > >>>  > >>> wrote:
> > >>>
> > 
> >  On Oct 31, 2013, at 3:32 PM, motty cruz 
> wrote:
> > 
> > > Hello,
> > > I'm having issues with snapshot, when trying to take a snapshot
> > > I get
> > >> the
> > > following error: "VM snapshot is not enabled for hypervisor type:
> > VKM"
> > >
> > > but I do have it enable in Global settings, am I missing a step?
> > > kvm.snapshot.enabled = true,
> > >
> > 
> >  Did you restart the management server ?
> > 
> > >
> > > Thanks,
> > 
> > 
> > >>
> > >>
> >
> >
>


RE: CS 4.2 VM snapshot is not enabled for hypervisor type: KVM

2013-11-05 Thread Sanjeev Neelarapu
Hi,

Instance Snapshot is only supported on VMWare. It uses VMWare native snapshot 
facility.
Please refer 
http://cloudstack.apache.org/docs/en-US/Apache_CloudStack/4.2.0/html/Admin_Guide/vm-snapshots.html

Thanks,
Sanjeev

-Original Message-
From: motty cruz [mailto:motty.c...@gmail.com] 
Sent: Tuesday, November 05, 2013 9:56 PM
To: users@cloudstack.apache.org
Subject: Re: CS 4.2 VM snapshot is not enabled for hypervisor type: KVM

Hi Sebastien,

I was not able to solve the snapshot issue, I can take a snapshot of a disk but 
not of the "instance",  I still get the "VM snapshot is not enabled for 
hypervisor type: KVM"

I enabled KVM snapshot in Global Settings, someone suggested to turn off the 
instance, which I did but no success,

Thanks,



On Mon, Nov 4, 2013 at 11:42 PM, Sebastien Goasguen wrote:

>
> On Oct 31, 2013, at 6:40 PM, motty cruz  wrote:
>
> > 2013-10-31 13:03:50,030 DEBUG [agent.manager.AgentAttache]
> > (AgentManager-Handler-9:null) Seq 5-1100677197: No more commands 
> > found
> > 2013-10-31 13:03:50,056 DEBUG [storage.snapshot.SnapshotManagerImpl]
> > (Job-Executor-3:job-128 = [ 4f046198-2bf6-4fac-9a80-9debb05ee76b ])
> Failed
> > to create snapshot
> > com.cloud.utils.exception.CloudRuntimeException:   clvmd not running on
> > node kvm2.fqdn.comDisk
> /dev/hitachi-2/ff599482-7bcf-41e6-9ca4-738f4fb94bc9
> > has no snapshot called 71bb6af455688c8d1de850551fad31c3.
> >at
> >
> org.apache.cloudstack.storage.snapshot.SnapshotServiceImpl.backupSnaps
> hot(Sn
> >
>
> Motty, did you get that solved ?
> It seemed to be a CLVM error. Marcuse Sorensen is the expert in CLVM 
> :)
>
> -sebastien
>
> >
> > On Thu, Oct 31, 2013 at 1:01 PM, Sebastien Goasguen 
> > >wrote:
> >
> >> Anything in the management server logs ?
> >>
> >> On Oct 31, 2013, at 3:53 PM, motty cruz  wrote:
> >>
> >>> yes I did restart the management server, twice. but not 
> >>> successful,
> >>>
> >>>
> >>> On Thu, Oct 31, 2013 at 12:47 PM, Sebastien Goasguen 
> >>>  >>> wrote:
> >>>
> 
>  On Oct 31, 2013, at 3:32 PM, motty cruz  wrote:
> 
> > Hello,
> > I'm having issues with snapshot, when trying to take a snapshot 
> > I get
> >> the
> > following error: "VM snapshot is not enabled for hypervisor type:
> VKM"
> >
> > but I do have it enable in Global settings, am I missing a step?
> > kvm.snapshot.enabled = true,
> >
> 
>  Did you restart the management server ?
> 
> >
> > Thanks,
> 
> 
> >>
> >>
>
>


mshost table after upgrade from 4.1.0 to 4.1.1

2013-11-05 Thread Carlos Reategui
Hi,
Can someone that has updated from 4.1.0 to 4.1.1 (ideally with XenServer
hosts) run the following queries in their db:

select msid, state, version, service_port, removed from mshost;
select ms.msid, ms.version as ms_version, h.version as host_version, count(
h.id) from mshost ms, host h where ms.msid=h.mgmt_server_id;

On my db I see the following:
mysql> select msid, state, version, service_port, removed from mshost;
+-+---+-+--+-+
| msid| state | version | service_port | removed |
+-+---+-+--+-+
| 233845174730255 | Up| 4.1.0   | 9090 | NULL|
| 233845174730253 | Up| 4.1.1   | 9090 | NULL|
+-+---+-+--+-+
2 rows in set (0.00 sec)

mysql> select ms.msid, ms.version as ms_version, h.version as host_version,
count(h.id) from mshost ms, host h where ms.msid=h.mgmt_server_id;
+-++--+-+
| msid| ms_version | host_version | count(h.id) |
+-++--+-+
| 233845174730255 | 4.1.0  | 4.1.0|   2 |
+-++--+-+
1 row in set (0.00 sec)

I don't think this is right and I am trying to see what it looks like for
others that have done the upgrade from 4.1.0 to 4.1.1.  I believe the 4.1.0
msid should have a date in there indicating that it is no longer active and
hosts in the host table should be linked to the 4.1.1 msid not the 4.1.0.
 As well as have there version updated to 4.1.1.

For the dev list guys, would it me ok for the to edit these values and see
if that fixes my broken installation?  Also what should I do with entries
in the tables like op_ha_work, op_it_work and storage_pool_work.  I am
guessing I also would need to update the later also but not sure about the
first 2.

thank you
Carlos


RE: VMware vCloud to CloudStack migration

2013-11-05 Thread Musayev, Ilya
Sean,

Like you mentioned, there is something in OVF that is of bound.

Perhaps logs will reveal more info? They way I usually address this, I take a 
good know working OVF, and inject my VMDK or just rename VMDK to match what you 
have.

OVAs are create with tar command, so you can easily tar it up again (don't 
remember if gzip compression was used, I think it did).

Regards
ilya

Also, does it fail on 
> -Original Message-
> From: Sean Hamilton [mailto:s...@seanhamilton.co.uk]
> Sent: Tuesday, November 05, 2013 7:45 AM
> To: users@cloudstack.apache.org
> Subject: VMware vCloud to CloudStack migration
> 
> Hi Guys,
> 
> I have a user that is trying to export an instance from vCloud so that they 
> can
> import into CloudStack. They've exported the .ova file which contains:
> - .ovf file
> - .vmdk file
> 
> When they upload the template they get a deployment fail, I think that this is
> due to the metadata in the .ovf file. I've seen specific entries before on
> VirtualBox to CloudStack migrations but can't figure this one out.
> 
> Are there any recommendations or best practises on this at all?
> 
> Thanks,
> Sean



RE: Multi-master MySQL Setup

2013-11-05 Thread Alexey Zilber
You need to examine your reasons for needing master-master replication.  If
it's write performance and not a lot of data, then MariaDB's Galera
implementation is good.

If you have a lot of data then I suggest using the TokuDb engine.  It's
available native as of MariaDB 5.5.33a and also via Tokutek.com with a
newer engine and more features.   You should be able to get much better
write performance with it over InnoDb. Using ssd drives with it also makes
a huge difference.  No need to deal with multi-master.

That said, MariaDB 10 will support multi-master natively with global
replication tracking,  etc.

-Alex
On Nov 6, 2013 1:56 AM, "Adrian Lewis"  wrote:

> Hi Marty/Nux!,
>
> Thanks for the feedback - sounds like multi-master is not a good thing
> then! Load will likely be very small for at least the next 6 months but I
> figured that it was one of those things that could be set easily now
> (still setting up) that I might appreciate later.
>
> Based on both your responses, I think I'll just leave it well alone! Need
> to get to grips with pacemaker/corosync anyway for other reasons so I'll
> just try that with either DRBD replication or MySQL replication.
>
> Cheers,
>
> Adrian
>
> -Original Message-
> From: Marty Sweet [mailto:msweet@gmail.com]
> Sent: 05 November 2013 17:23
> To: users@cloudstack.apache.org
> Subject: Re: Multi-master MySQL Setup
>
> Others may have had more success with this but from experience of MySQL in
> multi-master setups I would avoid this entirely.
>
> A common setup is using DRDB to provide a master/slave:
> Management 1 (MySQL Master) w/ virtual IP Management 2 (MySQL Slave)
>
> HA IP Address (for agents/services requiring DB write) which is assigned
> to the master (using Pacemaker).
>
> You can then send web management client to the HA IP Address as well.
>
> It may be worth considering if you need load balancing, depending on your
> setup - what loads are you experiencing?
>
> Marty
>
>
>
> On Tue, Nov 5, 2013 at 5:13 PM, Adrian Lewis
> wrote:
>
> > Hi All,
> >
> >
> >
> > Just wondering if anyone is using a MySQL multi-master configuration
> > with auto_increment_offset (e.g.10) and auto_increment_increment (1
> > for server 1, 2 for server 2 etc)? Does it work? Does anyone know a
> > reason why it doesn't or wouldn't work? Is there anything from an
> > application point of view that could/would trip up CS if
> > auto_increment values are set as more than 1?
> >
> >
> >
> > Not planning on deploying multimaster just yet but if I at least start
> > with an auto_increment of 10, I'd have the option of adding a second
> > master later and being able to load-balance more effectively.
> >
> >
> >
> > Thanks in advance,
> >
> >
> >
> > Adrian
> >
>


RE: Multi-master MySQL Setup

2013-11-05 Thread Musayev, Ilya
Look into continuent.com solutions, specifically tungsten replicator.

If you have a budget involved, enterprise version of tungsten replicator can do 
master-master and handle conflicts. The pricing is not outrageous either.

> -Original Message-
> From: Marty Sweet [mailto:msweet@gmail.com]
> Sent: Tuesday, November 05, 2013 5:43 PM
> To: users@cloudstack.apache.org
> Subject: Re: Multi-master MySQL Setup
> 
> The issue with plain MySQL replication (espically in master-master) is that a
> failed query will stop replication. A good example of this is when an record 
> is
> added onto each master at the same time (within a second), say a new
> record which gets the same primary key and replication will stop, on both
> hosts. That then leaves a split brain situation when you have one master
> writing its own data and another writing to itself, all with identical primary
> keys. Absolute nightmare. This can how ever be migrated with the methods
> the OP mentioned (I assume - but don't have experience of).
> 
> I don't think file curroption is much of an issue with DRDB, but you can only
> have one host write to it at anyone time (limitation of file system used),
> which makes the master-slave or master-backup setup ideal when coupled
> with HA service management software such as Pacemaker. You then have
> the database files in both places without the dreaded MySQL replication
> stories.
> 
> I think the main question lyes with if the cloud admin wants a simple
> redundant setup or a load balanced service - it may also we worth writing
> some documentation for this to help future installations, although they will
> have to be detailed.
> 
> I have never used Percona/MariaDB, does it resolve the master-master
> issues I mentioned earlier?
> 
> Marty
> 
> On Tuesday, November 5, 2013, Adrian Lewis wrote:
> 
> > Seems like the Percona solution also uses Galera for their
> > multi-master cluster. Starting to wonder whether to go MariaDB-Galera
> > now. Tempted just to leave it as master slave replicated on MySQL
> > though. Scale really not an issue right now. Ho hum, fun to be had if I had
> the time to play.
> >
> > Assuming no Galera (with either MySQL/Percona/MariaDB) and just using
> > Centos version of MySQL - does anyone have any input as to whether to
> > go for replicating between two hosts using DRBD vs native MySQL
> replication?
> > I get the impression that MySQL replication is an
> > eventually-consistent near-realtime kind of replication whereas DRBD
> > can be set to be completely synchronous replication. MySQL replication
> > just seems a lot less fiddly than using DRBD and DRBD would replicate
> > file corruption that MySQL replication would be largely safe from.
> >
> > -Original Message-
> > From: Patrick Miller [mailto:patrick.mil...@sungard.com
> > ]
> > Sent: 05 November 2013 21:51
> > To: users@cloudstack.apache.org 
> > Subject: Re: Multi-master MySQL Setup
> >
> > Take a look at the percona [1] implementation of mysql and there
> > clustered version.
> > Round robin reads and writes supported.
> >
> > 1] http://www.percona.com/
> >
> >  Patrick
> >
> >
> > On Tue, Nov 5, 2013 at 9:55 AM, Adrian Lewis
> > >wrote:
> >
> > > Hi Marty/Nux!,
> > >
> > > Thanks for the feedback - sounds like multi-master is not a good
> > > thing then! Load will likely be very small for at least the next 6
> > > months but I figured that it was one of those things that could be
> > > set easily now (still setting up) that I might appreciate later.
> > >
> > > Based on both your responses, I think I'll just leave it well alone!
> > > Need to get to grips with pacemaker/corosync anyway for other
> > > reasons so I'll just try that with either DRBD replication or MySQL
> replication.
> > >
> > > Cheers,
> > >
> > > Adrian
> > >
> > > -Original Message-
> > > From: Marty Sweet [mailto:msweet@gmail.com ]
> > > Sent: 05 November 2013 17:23
> > > To: users@cloudstack.apache.org 
> > > Subject: Re: Multi-master MySQL Setup
> > >
> > > Others may have had more success with this but from experience of
> > > MySQL in multi-master setups I would avoid this entirely.
> > >
> > > A common setup is using DRDB to provide a master/slave:
> > > Management 1 (MySQL Master) w/ virtual IP Management 2 (MySQL
> Slave)
> > >
> > > HA IP Address (for agents/services requiring DB write) which is
> > > assigned to the master (using Pacemaker).
> > >
> > > You can then send web management client to the HA IP Address as well.
> > >
> > > It may be worth considering if you need load balancing, depending on
> > > your setup - what loads are you experiencing?
> > >
> > > Marty
> > >
> > >
> > >
> > > On Tue, Nov 5, 2013 at 5:13 PM, Adrian Lewis
> > > >wrote:
> > >
> > > > Hi All,
> > > >
> > > >
> > > >
> > > > Just wondering if anyone is using a MySQL multi-master
> > > > configuration with auto_increment_offset (e.g.10) and
> > > > auto_increment_increment (1 for server 1, 2 for server 2 etc)?
> > > > Does 

Re: Multi-master MySQL Setup

2013-11-05 Thread Marty Sweet
The issue with plain MySQL replication (espically in master-master) is that
a failed query will stop replication. A good example of this is when an
record is added onto each master at the same time (within a second), say a
new record which gets the same primary key and replication will stop, on
both hosts. That then leaves a split brain situation when you have one
master writing its own data and another writing to itself, all with
identical primary keys. Absolute nightmare. This can how ever be migrated
with the methods the OP mentioned (I assume - but don't have experience of).

I don't think file curroption is much of an issue with DRDB, but you can
only have one host write to it at anyone time (limitation of file system
used), which makes the master-slave or master-backup setup ideal when
coupled with HA service management software such as Pacemaker. You then
have the database files in both places without the dreaded MySQL
replication stories.

I think the main question lyes with if the cloud admin wants a
simple redundant setup or a load balanced service - it may also we worth
writing some documentation for this to help future installations, although
they will have to be detailed.

I have never used Percona/MariaDB, does it resolve the master-master issues
I mentioned earlier?

Marty

On Tuesday, November 5, 2013, Adrian Lewis wrote:

> Seems like the Percona solution also uses Galera for their multi-master
> cluster. Starting to wonder whether to go MariaDB-Galera now. Tempted just
> to leave it as master slave replicated on MySQL though. Scale really not
> an issue right now. Ho hum, fun to be had if I had the time to play.
>
> Assuming no Galera (with either MySQL/Percona/MariaDB) and just using
> Centos version of MySQL - does anyone have any input as to whether to go
> for replicating between two hosts using DRBD vs native MySQL replication?
> I get the impression that MySQL replication is an eventually-consistent
> near-realtime kind of replication whereas DRBD can be set to be completely
> synchronous replication. MySQL replication just seems a lot less fiddly
> than using DRBD and DRBD would replicate file corruption that MySQL
> replication would be largely safe from.
>
> -Original Message-
> From: Patrick Miller [mailto:patrick.mil...@sungard.com ]
> Sent: 05 November 2013 21:51
> To: users@cloudstack.apache.org 
> Subject: Re: Multi-master MySQL Setup
>
> Take a look at the percona [1] implementation of mysql and there clustered
> version.
> Round robin reads and writes supported.
>
> 1] http://www.percona.com/
>
>  Patrick
>
>
> On Tue, Nov 5, 2013 at 9:55 AM, Adrian Lewis
> >wrote:
>
> > Hi Marty/Nux!,
> >
> > Thanks for the feedback - sounds like multi-master is not a good thing
> > then! Load will likely be very small for at least the next 6 months
> > but I figured that it was one of those things that could be set easily
> > now (still setting up) that I might appreciate later.
> >
> > Based on both your responses, I think I'll just leave it well alone!
> > Need to get to grips with pacemaker/corosync anyway for other reasons
> > so I'll just try that with either DRBD replication or MySQL replication.
> >
> > Cheers,
> >
> > Adrian
> >
> > -Original Message-
> > From: Marty Sweet [mailto:msweet@gmail.com ]
> > Sent: 05 November 2013 17:23
> > To: users@cloudstack.apache.org 
> > Subject: Re: Multi-master MySQL Setup
> >
> > Others may have had more success with this but from experience of
> > MySQL in multi-master setups I would avoid this entirely.
> >
> > A common setup is using DRDB to provide a master/slave:
> > Management 1 (MySQL Master) w/ virtual IP Management 2 (MySQL Slave)
> >
> > HA IP Address (for agents/services requiring DB write) which is
> > assigned to the master (using Pacemaker).
> >
> > You can then send web management client to the HA IP Address as well.
> >
> > It may be worth considering if you need load balancing, depending on
> > your setup - what loads are you experiencing?
> >
> > Marty
> >
> >
> >
> > On Tue, Nov 5, 2013 at 5:13 PM, Adrian Lewis
> > >wrote:
> >
> > > Hi All,
> > >
> > >
> > >
> > > Just wondering if anyone is using a MySQL multi-master configuration
> > > with auto_increment_offset (e.g.10) and auto_increment_increment (1
> > > for server 1, 2 for server 2 etc)? Does it work? Does anyone know a
> > > reason why it doesn't or wouldn't work? Is there anything from an
> > > application point of view that could/would trip up CS if
> > > auto_increment values are set as more than 1?
> > >
> > >
> > >
> > > Not planning on deploying multimaster just yet but if I at least
> > > start with an auto_increment of 10, I'd have the option of adding a
> > > second master later and being able to load-balance more effectively.
> > >
> > >
> > >
> > > Thanks in advance,
> > >
> > >
> > >
> > > Adrian
> > >
> >
> >
>


RE: Multi-master MySQL Setup

2013-11-05 Thread Adrian Lewis
Seems like the Percona solution also uses Galera for their multi-master
cluster. Starting to wonder whether to go MariaDB-Galera now. Tempted just
to leave it as master slave replicated on MySQL though. Scale really not
an issue right now. Ho hum, fun to be had if I had the time to play.

Assuming no Galera (with either MySQL/Percona/MariaDB) and just using
Centos version of MySQL - does anyone have any input as to whether to go
for replicating between two hosts using DRBD vs native MySQL replication?
I get the impression that MySQL replication is an eventually-consistent
near-realtime kind of replication whereas DRBD can be set to be completely
synchronous replication. MySQL replication just seems a lot less fiddly
than using DRBD and DRBD would replicate file corruption that MySQL
replication would be largely safe from.

-Original Message-
From: Patrick Miller [mailto:patrick.mil...@sungard.com]
Sent: 05 November 2013 21:51
To: users@cloudstack.apache.org
Subject: Re: Multi-master MySQL Setup

Take a look at the percona [1] implementation of mysql and there clustered
version.
Round robin reads and writes supported.

1] http://www.percona.com/

 Patrick


On Tue, Nov 5, 2013 at 9:55 AM, Adrian Lewis
wrote:

> Hi Marty/Nux!,
>
> Thanks for the feedback - sounds like multi-master is not a good thing
> then! Load will likely be very small for at least the next 6 months
> but I figured that it was one of those things that could be set easily
> now (still setting up) that I might appreciate later.
>
> Based on both your responses, I think I'll just leave it well alone!
> Need to get to grips with pacemaker/corosync anyway for other reasons
> so I'll just try that with either DRBD replication or MySQL replication.
>
> Cheers,
>
> Adrian
>
> -Original Message-
> From: Marty Sweet [mailto:msweet@gmail.com]
> Sent: 05 November 2013 17:23
> To: users@cloudstack.apache.org
> Subject: Re: Multi-master MySQL Setup
>
> Others may have had more success with this but from experience of
> MySQL in multi-master setups I would avoid this entirely.
>
> A common setup is using DRDB to provide a master/slave:
> Management 1 (MySQL Master) w/ virtual IP Management 2 (MySQL Slave)
>
> HA IP Address (for agents/services requiring DB write) which is
> assigned to the master (using Pacemaker).
>
> You can then send web management client to the HA IP Address as well.
>
> It may be worth considering if you need load balancing, depending on
> your setup - what loads are you experiencing?
>
> Marty
>
>
>
> On Tue, Nov 5, 2013 at 5:13 PM, Adrian Lewis
> wrote:
>
> > Hi All,
> >
> >
> >
> > Just wondering if anyone is using a MySQL multi-master configuration
> > with auto_increment_offset (e.g.10) and auto_increment_increment (1
> > for server 1, 2 for server 2 etc)? Does it work? Does anyone know a
> > reason why it doesn't or wouldn't work? Is there anything from an
> > application point of view that could/would trip up CS if
> > auto_increment values are set as more than 1?
> >
> >
> >
> > Not planning on deploying multimaster just yet but if I at least
> > start with an auto_increment of 10, I'd have the option of adding a
> > second master later and being able to load-balance more effectively.
> >
> >
> >
> > Thanks in advance,
> >
> >
> >
> > Adrian
> >
>
>


Re: Multi-master MySQL Setup

2013-11-05 Thread Nux!

On 05.11.2013 21:50, Patrick Miller wrote:
Take a look at the percona [1] implementation of mysql and there 
clustered

version.
Round robin reads and writes supported.

1] http://www.percona.com/


They are using Galera I mentioned previously. It works with MariaDB 
(which includes it now) and MySQL as well.


http://codership.com/content/using-galera-cluster

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Re: Multi-master MySQL Setup

2013-11-05 Thread Patrick Miller
Take a look at the percona [1] implementation of mysql and there clustered
version.
Round robin reads and writes supported.

1] http://www.percona.com/

 Patrick


On Tue, Nov 5, 2013 at 9:55 AM, Adrian Lewis wrote:

> Hi Marty/Nux!,
>
> Thanks for the feedback - sounds like multi-master is not a good thing
> then! Load will likely be very small for at least the next 6 months but I
> figured that it was one of those things that could be set easily now
> (still setting up) that I might appreciate later.
>
> Based on both your responses, I think I'll just leave it well alone! Need
> to get to grips with pacemaker/corosync anyway for other reasons so I'll
> just try that with either DRBD replication or MySQL replication.
>
> Cheers,
>
> Adrian
>
> -Original Message-
> From: Marty Sweet [mailto:msweet@gmail.com]
> Sent: 05 November 2013 17:23
> To: users@cloudstack.apache.org
> Subject: Re: Multi-master MySQL Setup
>
> Others may have had more success with this but from experience of MySQL in
> multi-master setups I would avoid this entirely.
>
> A common setup is using DRDB to provide a master/slave:
> Management 1 (MySQL Master) w/ virtual IP Management 2 (MySQL Slave)
>
> HA IP Address (for agents/services requiring DB write) which is assigned
> to the master (using Pacemaker).
>
> You can then send web management client to the HA IP Address as well.
>
> It may be worth considering if you need load balancing, depending on your
> setup - what loads are you experiencing?
>
> Marty
>
>
>
> On Tue, Nov 5, 2013 at 5:13 PM, Adrian Lewis
> wrote:
>
> > Hi All,
> >
> >
> >
> > Just wondering if anyone is using a MySQL multi-master configuration
> > with auto_increment_offset (e.g.10) and auto_increment_increment (1
> > for server 1, 2 for server 2 etc)? Does it work? Does anyone know a
> > reason why it doesn't or wouldn't work? Is there anything from an
> > application point of view that could/would trip up CS if
> > auto_increment values are set as more than 1?
> >
> >
> >
> > Not planning on deploying multimaster just yet but if I at least start
> > with an auto_increment of 10, I'd have the option of adding a second
> > master later and being able to load-balance more effectively.
> >
> >
> >
> > Thanks in advance,
> >
> >
> >
> > Adrian
> >
>
>


Re: Can't destroy system VMs

2013-11-05 Thread Carlos Reategui
Hi Daan,

The mshost thing I mentioned previously has been bugging me and as I look
through the db I think I have a problem here.  I am guessing I have a
botched 4.1.0 to 4.1.1 upgrade that I did not notice when I shut things
down.

The mshost table is showing 2 management servers that are supposedly on the
same machine listening on the same port which is not really possible.  So
really only one of the 2 is up (I believe that would be the 4.1.1 version).
The logs do seem to indicate something along those lines where the 2
management servers are failing to communicate with each other.

If I look at the host table I see my 2 hosts but they say they are on
version 4.1.0 and are pointing to management server id of the 4.1.0 line in
the mshost table.

I am wondering if this is the problem and why their is no communication to
my hosts from the management server.

Anyone know the schema well enough to help me update some stuff and recover
my installation?  Would an upgrade to 4.2 possibly cleanup my DB?

thanks,
Carlos




On Tue, Nov 5, 2013 at 10:59 AM, Carlos Reategui wrote:

> Hi Daan,
>
> I have been looking through my logs and can't figure out why the ssvm does
> not want to start.
>
> Here is a link to my latest logs:
> http://reategui.com/cloudstack/management-server-131105.log
>
> Maybe someone else can spot something.
>
> There is nothing on either the XenServer hosts logs.
>
> thanks,
> Carlos
>
>
> On Tue, Nov 5, 2013 at 12:55 AM, Daan Hoogland wrote:
>
>> Carlos,
>>
>> It makes no sense trying to start the vms if not the ssvm is started
>> first.
>>
>> I would say stop the system, clear the logs and start again. Then
>> analyse the logs to see what is wrong with the secondary storage vm.
>>
>> On Tue, Nov 5, 2013 at 2:08 AM, Carlos Reategui 
>> wrote:
>> > Hi Daan,
>> > There is no trace of CS communicating with either of my XS hosts in the
>> > SMLog file or the xensource.log files when I try to start one of my
>> stopped
>> > instances.
>> >
>> > thanks,
>> > Carlos
>> >
>> >
>> >
>> > On Sat, Nov 2, 2013 at 4:50 AM, Daan Hoogland > >wrote:
>> >
>> >> H Carlos,
>> >>
>> >> I wouldn't know about the mshost and mshost_peer but they seem
>> >> alright. The expunging ssvm are a real problem. I think Ahmed
>> >> mentioned that as well. You are having problems getting your ssvm in
>> >> the air. All other things are consequential. This is the first thing
>> >> to look at. Check the logs and the SMLog on the hypervisor to see what
>> >> happens when cs tries to start a ssvm. By your db you can see that it
>> >> tried to start it several times. Those are the expunging vm_instance
>> >> entries.
>> >>
>> >> regards,
>> >> Daan
>> >>
>> >> On Fri, Nov 1, 2013 at 9:10 PM, Carlos Reategui 
>> >> wrote:
>> >> > Hi Daan  :)
>> >> >
>> >> > Primary and Secondary storage are on the MS.  Primary is on a
>> different
>> >> > subnet and it is currently mounted (and visible as an NFS SR from
>> >> > XenCenter) and working fine from the xen machines.  I have also been
>> able
>> >> > to mount Secondary without a problem.
>> >> >
>> >> > Here are my current system VMs:
>> >> > mysql> select
>> >> > id,name,instance_name,state,host_id,type,vm_type,desired_state from
>> >> > vm_instance where type!='User';
>> >> >
>> >>
>> ++-+---+---+-+++---+
>> >> > | id | name| instance_name | state | host_id | type
>> >>   |
>> >> > vm_type| desired_state |
>> >> >
>> >>
>> ++-+---+---+-+++---+
>> >> > |  2 | v-2-VM  | v-2-VM| Stopped   |   1 | ConsoleProxy
>> >>   |
>> >> > ConsoleProxy   | NULL  |
>> >> > |  5 | r-5-VM  | r-5-VM| Stopped   |   2 | DomainRouter
>> >>   |
>> >> > DomainRouter   | NULL  |
>> >> > |  1 | s-1-VM  | s-1-VM| Expunging |NULL |
>> >> SecondaryStorageVm |
>> >> > SecondaryStorageVm | NULL  |
>> >> > |  3 | s-3-VM  | s-3-VM| Expunging |NULL |
>> >> SecondaryStorageVm |
>> >> > SecondaryStorageVm | NULL  |
>> >> > | 52 | s-52-VM | s-52-VM   | Expunging |NULL |
>> >> SecondaryStorageVm |
>> >> > SecondaryStorageVm | NULL  |
>> >> > | 53 | s-53-VM | s-53-VM   | Expunging |NULL |
>> >> SecondaryStorageVm |
>> >> > SecondaryStorageVm | NULL  |
>> >> > | 54 | s-54-VM | s-54-VM   | Expunging |NULL |
>> >> SecondaryStorageVm |
>> >> > SecondaryStorageVm | NULL  |
>> >> > | 55 | s-55-VM | s-55-VM   | Expunging |NULL |
>> >> SecondaryStorageVm |
>> >> > SecondaryStorageVm | NULL  |
>> >> > | 56 | s-56-VM | s-56-VM   | Expunging |NULL |
>> >> SecondaryStorageVm |
>> >> > SecondaryStorageVm | NULL  |
>> >> >
>> >>
>> ++-+---+---+-+++---+
>> >> >
>> >> >
>> >> > I hav

Re: Can't destroy system VMs

2013-11-05 Thread Carlos Reategui
Hi Daan,

I have been looking through my logs and can't figure out why the ssvm does
not want to start.

Here is a link to my latest logs:
http://reategui.com/cloudstack/management-server-131105.log

Maybe someone else can spot something.

There is nothing on either the XenServer hosts logs.

thanks,
Carlos


On Tue, Nov 5, 2013 at 12:55 AM, Daan Hoogland wrote:

> Carlos,
>
> It makes no sense trying to start the vms if not the ssvm is started first.
>
> I would say stop the system, clear the logs and start again. Then
> analyse the logs to see what is wrong with the secondary storage vm.
>
> On Tue, Nov 5, 2013 at 2:08 AM, Carlos Reategui 
> wrote:
> > Hi Daan,
> > There is no trace of CS communicating with either of my XS hosts in the
> > SMLog file or the xensource.log files when I try to start one of my
> stopped
> > instances.
> >
> > thanks,
> > Carlos
> >
> >
> >
> > On Sat, Nov 2, 2013 at 4:50 AM, Daan Hoogland  >wrote:
> >
> >> H Carlos,
> >>
> >> I wouldn't know about the mshost and mshost_peer but they seem
> >> alright. The expunging ssvm are a real problem. I think Ahmed
> >> mentioned that as well. You are having problems getting your ssvm in
> >> the air. All other things are consequential. This is the first thing
> >> to look at. Check the logs and the SMLog on the hypervisor to see what
> >> happens when cs tries to start a ssvm. By your db you can see that it
> >> tried to start it several times. Those are the expunging vm_instance
> >> entries.
> >>
> >> regards,
> >> Daan
> >>
> >> On Fri, Nov 1, 2013 at 9:10 PM, Carlos Reategui 
> >> wrote:
> >> > Hi Daan  :)
> >> >
> >> > Primary and Secondary storage are on the MS.  Primary is on a
> different
> >> > subnet and it is currently mounted (and visible as an NFS SR from
> >> > XenCenter) and working fine from the xen machines.  I have also been
> able
> >> > to mount Secondary without a problem.
> >> >
> >> > Here are my current system VMs:
> >> > mysql> select
> >> > id,name,instance_name,state,host_id,type,vm_type,desired_state from
> >> > vm_instance where type!='User';
> >> >
> >>
> ++-+---+---+-+++---+
> >> > | id | name| instance_name | state | host_id | type
> >>   |
> >> > vm_type| desired_state |
> >> >
> >>
> ++-+---+---+-+++---+
> >> > |  2 | v-2-VM  | v-2-VM| Stopped   |   1 | ConsoleProxy
> >>   |
> >> > ConsoleProxy   | NULL  |
> >> > |  5 | r-5-VM  | r-5-VM| Stopped   |   2 | DomainRouter
> >>   |
> >> > DomainRouter   | NULL  |
> >> > |  1 | s-1-VM  | s-1-VM| Expunging |NULL |
> >> SecondaryStorageVm |
> >> > SecondaryStorageVm | NULL  |
> >> > |  3 | s-3-VM  | s-3-VM| Expunging |NULL |
> >> SecondaryStorageVm |
> >> > SecondaryStorageVm | NULL  |
> >> > | 52 | s-52-VM | s-52-VM   | Expunging |NULL |
> >> SecondaryStorageVm |
> >> > SecondaryStorageVm | NULL  |
> >> > | 53 | s-53-VM | s-53-VM   | Expunging |NULL |
> >> SecondaryStorageVm |
> >> > SecondaryStorageVm | NULL  |
> >> > | 54 | s-54-VM | s-54-VM   | Expunging |NULL |
> >> SecondaryStorageVm |
> >> > SecondaryStorageVm | NULL  |
> >> > | 55 | s-55-VM | s-55-VM   | Expunging |NULL |
> >> SecondaryStorageVm |
> >> > SecondaryStorageVm | NULL  |
> >> > | 56 | s-56-VM | s-56-VM   | Expunging |NULL |
> >> SecondaryStorageVm |
> >> > SecondaryStorageVm | NULL  |
> >> >
> >>
> ++-+---+---+-+++---+
> >> >
> >> >
> >> > I have been looking through the DB to see if anything sticks out.  I
> >> notice
> >> > that the mshost and mshost_peer table have 2 entries but they are the
> >> same
> >> > server.  Is that ok?  Looks like one is from the install of 4.1.0 an
> the
> >> > other from after I upgraded to 4.1.1:
> >> >
> >> > mysql> select * from mshost;
> >> >
> >>
> ++-+---++---+-+-+--+-+-+-+
> >> > | id | msid| runid | name   | state | version
> |
> >> > service_ip  | service_port | last_update | removed |
> alert_count
> >> |
> >> >
> >>
> ++-+---++---+-+-+--+-+-+-+
> >> > |  1 | 233845174730255 | 1375383759777 | isbustor01 | Up| 4.1.0
> |
> >> > 172.30.45.2 | 9090 | 2013-10-24 21:13:10 | NULL|
>   0
> >> |
> >> > |  2 | 233845174730253 | 1383331508626 | isbustor01 | Up| 4.1.1
> |
> >> > 172.30.45.2 | 9090 | 2013-11-01 20:00:04 | NULL|
>   0
> >> |
> >> >
> >>
> ++-+---++--

Re: Console Proxy SSL Certificate

2013-11-05 Thread John Kinsella
Self-signed is fine, just need to store it in the keystone as described on 
https://cwiki.apache.org/confluence/display/CLOUDSTACK/Enabling+SSL+in+the+CloudStack+UI

On Nov 5, 2013, at 10:05 AM, Paulo Ricardo 
 wrote:

> Hello everybody,
> 
> After I generate a new 2048-bit private key and generate a new certificate
> CSR, do I need purchase a Certificate SSL? Or may I do a Certificate SSL
> self signed?
> 
> Thanks,
> 
> Paulo.



Re: domains/subdomains headaches

2013-11-05 Thread Nitin Mehta
I don¹t think CS has that functionality at the moment. I am guessing RBAC
work might factor that.
That said there is a workaround of adding the accounts you want the
template to be visible through updateTemplatePermissions API.
See that works for you

Thanks,
-Nitin

On 05/11/13 8:41 AM, "Octavian Popescu" 
wrote:

>Thanks Geoff but it's still not working...
>
>>-Original Message-
>>From: Geoff Higginbottom [mailto:geoff.higginbot...@shapeblue.com]
>>Sent: 05 November 2013 17:31
>>To: users@cloudstack.apache.org
>>Subject: RE: domains/subdomains headaches
>>
>>Octavian,
>>
>>If I remember rightly, login as a Domain Admin for 'Base_Domain', and
>>then
>>publish the Template as a 'Featured' template, this should then be
>>available to
>>Sub-Domians
>>
>>Regards
>>
>>Geoff Higginbottom
>>
>>D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
>>
>>geoff.higginbot...@shapeblue.com
>>
>>-Original Message-
>>From: Octavian Popescu [mailto:octavian.pope...@interoute.com]
>>Sent: 05 November 2013 15:20
>>To: users@cloudstack.apache.org
>>Subject: domains/subdomains headaches
>>
>>Hi,
>>
>>Have a look at the following structure:
>>
>>BASE_DOMAIN
>>\_ CHILD_1
>>\_ CHILD_2
>>
>>Assuming I'm using an account created in BASE_DOMAIN, I'm trying to find
>>a
>>way to publish templates from that account so that they're also
>>accessible to
>>accounts created on the child subdomains - is there any way to do this
>>and set
>>up some sort of inheritance for the templates? The default behavior
>>seems to
>>be total isolation - if you create a template via an account from the
>>BASE_DOMAIN, the subdomains are not able to access it (and the other way
>>around, if you create it from an account in the child domains, the
>>BASE_DOMAIN account is not able to access them) I don't want to declare
>>the
>>templates as public as everyone will be able to access them then.
>>
>>Thanks,
>>Octavian
>>
>>
>>
>>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.



Console Proxy SSL Certificate

2013-11-05 Thread Paulo Ricardo
Hello everybody,

After I generate a new 2048-bit private key and generate a new certificate
CSR, do I need purchase a Certificate SSL? Or may I do a Certificate SSL
self signed?

Thanks,

Paulo.


Java timestamp in project email invites, Jan 16, 1970

2013-11-05 Thread Gordy Stronach
Only when sending an invite to users, all other mails (restarting service,
etc) show correct timestamps.

Any advice?

ACS Version 4.2.0
Management platform CentOS 6.4

Java:
java version "1.6.0_24"
OpenJDK Runtime Environment (IcedTea6 1.11.13)
(rhel-1.65.1.11.13.el6_4-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b12, mixed mode)

Cheers,
gordy


RE: Multi-master MySQL Setup

2013-11-05 Thread Adrian Lewis
Hi Marty/Nux!,

Thanks for the feedback - sounds like multi-master is not a good thing
then! Load will likely be very small for at least the next 6 months but I
figured that it was one of those things that could be set easily now
(still setting up) that I might appreciate later.

Based on both your responses, I think I'll just leave it well alone! Need
to get to grips with pacemaker/corosync anyway for other reasons so I'll
just try that with either DRBD replication or MySQL replication.

Cheers,

Adrian

-Original Message-
From: Marty Sweet [mailto:msweet@gmail.com]
Sent: 05 November 2013 17:23
To: users@cloudstack.apache.org
Subject: Re: Multi-master MySQL Setup

Others may have had more success with this but from experience of MySQL in
multi-master setups I would avoid this entirely.

A common setup is using DRDB to provide a master/slave:
Management 1 (MySQL Master) w/ virtual IP Management 2 (MySQL Slave)

HA IP Address (for agents/services requiring DB write) which is assigned
to the master (using Pacemaker).

You can then send web management client to the HA IP Address as well.

It may be worth considering if you need load balancing, depending on your
setup - what loads are you experiencing?

Marty



On Tue, Nov 5, 2013 at 5:13 PM, Adrian Lewis
wrote:

> Hi All,
>
>
>
> Just wondering if anyone is using a MySQL multi-master configuration
> with auto_increment_offset (e.g.10) and auto_increment_increment (1
> for server 1, 2 for server 2 etc)? Does it work? Does anyone know a
> reason why it doesn't or wouldn't work? Is there anything from an
> application point of view that could/would trip up CS if
> auto_increment values are set as more than 1?
>
>
>
> Not planning on deploying multimaster just yet but if I at least start
> with an auto_increment of 10, I'd have the option of adding a second
> master later and being able to load-balance more effectively.
>
>
>
> Thanks in advance,
>
>
>
> Adrian
>


Re: Help needed for ip setup

2013-11-05 Thread Marty Sweet
What guide are you following?


On Tue, Nov 5, 2013 at 5:26 PM, Mario Giammarco wrote:

> Marty Sweet  writes:
>
> >
> > What have you configured VLAN 200 and 300 for in Cloudstack?
> >
> Because official documentation says to do it.
> Anyway I tried also without creating them and it does not work...
>
>
>


Re: Help needed for ip setup

2013-11-05 Thread Mario Giammarco
Marty Sweet  writes:

> 
> What have you configured VLAN 200 and 300 for in Cloudstack?
> 
Because official documentation says to do it.
Anyway I tried also without creating them and it does not work...




Re: Multi-master MySQL Setup

2013-11-05 Thread Marty Sweet
Others may have had more success with this but from experience of MySQL in
multi-master setups I would avoid this entirely.

A common setup is using DRDB to provide a master/slave:
Management 1 (MySQL Master) w/ virtual IP
Management 2 (MySQL Slave)

HA IP Address (for agents/services requiring DB write) which is assigned to
the master (using Pacemaker).

You can then send web management client to the HA IP Address as well.

It may be worth considering if you need load balancing, depending on your
setup - what loads are you experiencing?

Marty



On Tue, Nov 5, 2013 at 5:13 PM, Adrian Lewis wrote:

> Hi All,
>
>
>
> Just wondering if anyone is using a MySQL multi-master configuration with
> auto_increment_offset (e.g.10) and auto_increment_increment (1 for server
> 1, 2 for server 2 etc)? Does it work? Does anyone know a reason why it
> doesn’t or wouldn’t work? Is there anything from an application point of
> view that could/would trip up CS if auto_increment values are set as more
> than 1?
>
>
>
> Not planning on deploying multimaster just yet but if I at least start with
> an auto_increment of 10, I’d have the option of adding a second master
> later and being able to load-balance more effectively.
>
>
>
> Thanks in advance,
>
>
>
> Adrian
>


Re: Multi-master MySQL Setup

2013-11-05 Thread Nux!

On 05.11.2013 17:13, Adrian Lewis wrote:

Hi All,



Just wondering if anyone is using a MySQL multi-master configuration 
with
auto_increment_offset (e.g.10) and auto_increment_increment (1 for 
server

1, 2 for server 2 etc)? Does it work? Does anyone know a reason why it
doesn’t or wouldn’t work? Is there anything from an application point 
of
view that could/would trip up CS if auto_increment values are set as 
more

than 1?



Not planning on deploying multimaster just yet but if I at least start 
with

an auto_increment of 10, I’d have the option of adding a second master
later and being able to load-balance more effectively.


If you haven't deployed yet have a look at Galera. I try to stay away 
from the mysql master-master replication, had really bad experience with 
it in the past.


HTH
Lucian

--
Sent from the Delta quadrant using Borg technology!

Nux!
www.nux.ro


Multi-master MySQL Setup

2013-11-05 Thread Adrian Lewis
Hi All,



Just wondering if anyone is using a MySQL multi-master configuration with
auto_increment_offset (e.g.10) and auto_increment_increment (1 for server
1, 2 for server 2 etc)? Does it work? Does anyone know a reason why it
doesn’t or wouldn’t work? Is there anything from an application point of
view that could/would trip up CS if auto_increment values are set as more
than 1?



Not planning on deploying multimaster just yet but if I at least start with
an auto_increment of 10, I’d have the option of adding a second master
later and being able to load-balance more effectively.



Thanks in advance,



Adrian


Re: Help needed for ip setup

2013-11-05 Thread Marty Sweet
What have you configured VLAN 200 and 300 for in Cloudstack?

Marty


On Tue, Nov 5, 2013 at 12:26 PM, Mario Giammarco wrote:

> Marty Sweet  writes:
>
> >
> > Hi Mario,
> >
> > Are you tagging VLANS to this host?
> > If so, is the switch connected to a Layer 3 switch, which you can then
> > configure as a router to route the traffic from your cloud VLANS to your
> > local working network.
> >
> > Vlan bridges are added when network/vms are created.
> >
> > I hope that makes sense,
>
> Ok, as I have written yesterday I have tried to configure a router.
> So I put inside my router vlan 100, 200 and 300 (obviously I have already
> vlan 100 working because without it I cannot access the cloudstack server).
> So:
>
> - vlan 100: my router has 10.1.0.1
> - vlan 200: what I put in my router? tried 10.1.1.1 but it did not work
> - vlan 300: what I put in my router? tried 10.1.1.1 but it did not work
>
> I could not find anything in docs that explain me clearly what really
> cloudstack does and how to debug it.
>
> Thanks again for your precious help,
> Mario
>
>


Re: CS 4.2 VM snapshot is not enabled for hypervisor type: KVM

2013-11-05 Thread motty cruz
Hi Sebastien,

I was not able to solve the snapshot issue, I can take a snapshot of a disk
but not of the "instance",  I still get the "VM snapshot is not enabled for
hypervisor type: KVM"

I enabled KVM snapshot in Global Settings, someone suggested to turn off
the instance, which I did but no success,

Thanks,



On Mon, Nov 4, 2013 at 11:42 PM, Sebastien Goasguen wrote:

>
> On Oct 31, 2013, at 6:40 PM, motty cruz  wrote:
>
> > 2013-10-31 13:03:50,030 DEBUG [agent.manager.AgentAttache]
> > (AgentManager-Handler-9:null) Seq 5-1100677197: No more commands found
> > 2013-10-31 13:03:50,056 DEBUG [storage.snapshot.SnapshotManagerImpl]
> > (Job-Executor-3:job-128 = [ 4f046198-2bf6-4fac-9a80-9debb05ee76b ])
> Failed
> > to create snapshot
> > com.cloud.utils.exception.CloudRuntimeException:   clvmd not running on
> > node kvm2.fqdn.comDisk
> /dev/hitachi-2/ff599482-7bcf-41e6-9ca4-738f4fb94bc9
> > has no snapshot called 71bb6af455688c8d1de850551fad31c3.
> >at
> >
> org.apache.cloudstack.storage.snapshot.SnapshotServiceImpl.backupSnapshot(Sn
> >
>
> Motty, did you get that solved ?
> It seemed to be a CLVM error. Marcuse Sorensen is the expert in CLVM :)
>
> -sebastien
>
> >
> > On Thu, Oct 31, 2013 at 1:01 PM, Sebastien Goasguen  >wrote:
> >
> >> Anything in the management server logs ?
> >>
> >> On Oct 31, 2013, at 3:53 PM, motty cruz  wrote:
> >>
> >>> yes I did restart the management server, twice. but not successful,
> >>>
> >>>
> >>> On Thu, Oct 31, 2013 at 12:47 PM, Sebastien Goasguen  >>> wrote:
> >>>
> 
>  On Oct 31, 2013, at 3:32 PM, motty cruz  wrote:
> 
> > Hello,
> > I'm having issues with snapshot, when trying to take a snapshot I get
> >> the
> > following error: "VM snapshot is not enabled for hypervisor type:
> VKM"
> >
> > but I do have it enable in Global settings, am I missing a step?
> > kvm.snapshot.enabled = true,
> >
> 
>  Did you restart the management server ?
> 
> >
> > Thanks,
> 
> 
> >>
> >>
>
>


RE: domains/subdomains headaches

2013-11-05 Thread Octavian Popescu
Thanks Geoff but it's still not working...

>-Original Message-
>From: Geoff Higginbottom [mailto:geoff.higginbot...@shapeblue.com]
>Sent: 05 November 2013 17:31
>To: users@cloudstack.apache.org
>Subject: RE: domains/subdomains headaches
>
>Octavian,
>
>If I remember rightly, login as a Domain Admin for 'Base_Domain', and then
>publish the Template as a 'Featured' template, this should then be available to
>Sub-Domians
>
>Regards
>
>Geoff Higginbottom
>
>D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581
>
>geoff.higginbot...@shapeblue.com
>
>-Original Message-
>From: Octavian Popescu [mailto:octavian.pope...@interoute.com]
>Sent: 05 November 2013 15:20
>To: users@cloudstack.apache.org
>Subject: domains/subdomains headaches
>
>Hi,
>
>Have a look at the following structure:
>
>BASE_DOMAIN
>\_ CHILD_1
>\_ CHILD_2
>
>Assuming I'm using an account created in BASE_DOMAIN, I'm trying to find a
>way to publish templates from that account so that they're also accessible to
>accounts created on the child subdomains - is there any way to do this and set
>up some sort of inheritance for the templates? The default behavior seems to
>be total isolation - if you create a template via an account from the
>BASE_DOMAIN, the subdomains are not able to access it (and the other way
>around, if you create it from an account in the child domains, the
>BASE_DOMAIN account is not able to access them) I don't want to declare the
>templates as public as everyone will be able to access them then.
>
>Thanks,
>Octavian
>
>
>
>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.


RE: domains/subdomains headaches

2013-11-05 Thread Geoff Higginbottom
Octavian,

If I remember rightly, login as a Domain Admin for 'Base_Domain', and then 
publish the Template as a 'Featured' template, this should then be available to 
Sub-Domians

Regards

Geoff Higginbottom

D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581

geoff.higginbot...@shapeblue.com

-Original Message-
From: Octavian Popescu [mailto:octavian.pope...@interoute.com]
Sent: 05 November 2013 15:20
To: users@cloudstack.apache.org
Subject: domains/subdomains headaches

Hi,

Have a look at the following structure:

BASE_DOMAIN
\_ CHILD_1
\_ CHILD_2

Assuming I'm using an account created in BASE_DOMAIN, I'm trying to find a way 
to publish templates from that account so that they're also accessible to 
accounts created on the child subdomains - is there any way to do this and set 
up some sort of inheritance for the templates? The default behavior seems to be 
total isolation - if you create a template via an account from the BASE_DOMAIN, 
the subdomains are not able to access it (and the other way around, if you 
create it from an account in the child domains, the BASE_DOMAIN account is not 
able to access them) I don't want to declare the templates as public as 
everyone will be able to access them then.

Thanks,
Octavian



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.


domains/subdomains headaches

2013-11-05 Thread Octavian Popescu
Hi,

Have a look at the following structure:

BASE_DOMAIN
\_ CHILD_1
\_ CHILD_2

Assuming I'm using an account created in BASE_DOMAIN, I'm trying to find a way 
to publish templates from that account so that they're also accessible to 
accounts created on the child subdomains - is there any way to do this and set 
up some sort of inheritance for the templates? The default behavior seems to be 
total isolation - if you create a template via an account from the BASE_DOMAIN, 
the subdomains are not able to access it (and the other way around, if you 
create it from an account in the child domains, the BASE_DOMAIN account is not 
able to access them) I don't want to declare the templates as public as 
everyone will be able to access them then.

Thanks,
Octavian





VMware vCloud to CloudStack migration

2013-11-05 Thread Sean Hamilton
Hi Guys,

I have a user that is trying to export an instance from vCloud so that they
can import into CloudStack. They've exported the .ova file which contains:
- .ovf file
- .vmdk file

When they upload the template they get a deployment fail, I think that this
is due to the metadata in the .ovf file. I've seen specific entries before
on VirtualBox to CloudStack migrations but can't figure this one out.

Are there any recommendations or best practises on this at all?

Thanks,
Sean


Re: Help needed for ip setup

2013-11-05 Thread Mario Giammarco
Marty Sweet  writes:

> 
> Hi Mario,
> 
> Are you tagging VLANS to this host?
> If so, is the switch connected to a Layer 3 switch, which you can then
> configure as a router to route the traffic from your cloud VLANS to your
> local working network.
> 
> Vlan bridges are added when network/vms are created.
> 
> I hope that makes sense,

Ok, as I have written yesterday I have tried to configure a router.
So I put inside my router vlan 100, 200 and 300 (obviously I have already
vlan 100 working because without it I cannot access the cloudstack server).
So:

- vlan 100: my router has 10.1.0.1 
- vlan 200: what I put in my router? tried 10.1.1.1 but it did not work
- vlan 300: what I put in my router? tried 10.1.1.1 but it did not work

I could not find anything in docs that explain me clearly what really
cloudstack does and how to debug it.

Thanks again for your precious help,
Mario



Re: Help needed for ip setup

2013-11-05 Thread Marty Sweet
Hi Mario,

Are you tagging VLANS to this host?
If so, is the switch connected to a Layer 3 switch, which you can then
configure as a router to route the traffic from your cloud VLANS to your
local working network.

Vlan bridges are added when network/vms are created.

I hope that makes sense,

Marty


On Tue, Nov 5, 2013 at 7:00 AM, Mario Giammarco wrote:

> Marty Sweet  writes:
>
> >
> > Ok, is that IP a gateway? It would need to be able to route traffic.
> > If you haven't specified VLANS then VLANS will not be used (as far as I'm
> > aware), and it will just use the interfaces of your server. Example:
> > bridging eth0 for VM traffic
> >
> First I repeat the configuration because I have written in another thread:
>
> - only one  ubuntu server that is host AND manager (test lab...);
> - followed official guide so:
> -- three vlan (100,200,300);
> -- first vlan with ip 10.1.0.13 for management of server;
> -- cloudbr0 and cloudbr1 vlans without ip.
>
> Now I see that after installation of manager and agent many bridges and/or
> vlan are present not added by me.
>
> But I do not understand why it is not working, expecially what I should
> provide on each vlan and what is already provided by cloudstack.
>
> Thanks,
> Mario
>
>


RE: CS 4.2 Virtual Router HA

2013-11-05 Thread Geoff Higginbottom
Jerry,

CloudStack will try and keep the two Virtual Routers separate, running on 
different Hosts/Clusters/PODs to help with HA, as long as there are suitable 
resources available.

When using the Redundant Router feature, the two VRs run in an Active/Passive 
mode, and both are also treated as HA.  If the admin destroys the Active node, 
the Passive node immediately takes over and becomes Active, the destroyed node 
then gets recreated and comes back online as a new Passive node.

Regards

Geoff Higginbottom

D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581

geoff.higginbot...@shapeblue.com

-Original Message-
From: Jerry Jiang [mailto:jerry.ji...@sjcloud.cn]
Sent: 05 November 2013 02:24
To: users@cloudstack.apache.org
Subject: Re: CS 4.2 Virtual Router HA

Hi Geoff,

Will CS launch two vrouter in one pod? I know CS defaultly provides HA for 
vrouter, which enable CS auto-launch another vrouter when the previous one is 
broken?

Any difference between the two configurations?

Thanks
Jerry

-邮件原件-
发件人: Geoff Higginbottom [mailto:geoff.higginbot...@shapeblue.com]
发送时间: 2013年11月5日 星期二 0:43
收件人: users@cloudstack.apache.org
主题: RE: CS 4.2 Virtual Router HA

Hi Motty,

All you need to do is create a new Network Offering with the same settings as 
the 'DefaultIsolatedNetworkOfferingWithSourceNatService', but also enable the 
'Redundant Router Capability.  This will then give you a pair of Virtual 
Routers using VRRP for HA.


Regards

Geoff Higginbottom

D: +44 20 3603 0542 | S: +44 20 3603 0540 | M: +447968161581

geoff.higginbot...@shapeblue.com

-Original Message-
From: motty cruz [mailto:motty.c...@gmail.com]
Sent: 04 November 2013 16:15
To: users@cloudstack.apache.org
Subject: CS 4.2 Virtual Router HA

Hello, I have a Cloudstack 4.2 running with KMV hypervisors, I want to make the 
virtual router HA, any suggestion on how to accomplish HA on a virtual router?

Thanks,
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.

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.


RE: Error in Template

2013-11-05 Thread Geoff Higginbottom
Hi,

You are using a very old out of date version (we are now at version 4.2), 
please upgrade to a newer version, this will most likely solve your problem.

Regards

Geoff Higginbottom

D: +44 20 3603 0542 | S: +44 20 3603 0540 
| M: +447968161581

geoff.higginbot...@shapeblue.com

From: santhoshlife98 [mailto:santhoshlif...@gmail.com]
Sent: 05 November 2013 05:24
To: cloudstack-us...@incubator.apache.org
Subject: Error in Template

Respected Sir
  I'm using CloudStack-oss-3.0.2-1-rhel6.2 i'm getting error in 
the template uploading and instance creation please help me out. i'm waiting 
for your kind acknowledgement.


 Yours Sincerely

  B. Santhosh



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.


[ANNOUNCE] OCCI Interface

2013-11-05 Thread sebgoa
Hi,

I am pleased to announce an OGF OCCI interface to CloudStack.

Isaac Chiang contributed back to our ruby client and forked rOCCI-server to 
make this happen. Many thanks to him.

I wrote about it here:
http://buildacloud.org/blog/296-occi-interface-to-cloudstack.html

OCCI is one of the two cloud standards (with CIMI from DMTF).
It is very important for CloudStack has it finally brings an official industry 
standard API to our software.

If you want to help with CIMI, ping me.

Cheers,

-Sebastien

Re: Can't destroy system VMs

2013-11-05 Thread Daan Hoogland
Carlos,

It makes no sense trying to start the vms if not the ssvm is started first.

I would say stop the system, clear the logs and start again. Then
analyse the logs to see what is wrong with the secondary storage vm.

On Tue, Nov 5, 2013 at 2:08 AM, Carlos Reategui  wrote:
> Hi Daan,
> There is no trace of CS communicating with either of my XS hosts in the
> SMLog file or the xensource.log files when I try to start one of my stopped
> instances.
>
> thanks,
> Carlos
>
>
>
> On Sat, Nov 2, 2013 at 4:50 AM, Daan Hoogland wrote:
>
>> H Carlos,
>>
>> I wouldn't know about the mshost and mshost_peer but they seem
>> alright. The expunging ssvm are a real problem. I think Ahmed
>> mentioned that as well. You are having problems getting your ssvm in
>> the air. All other things are consequential. This is the first thing
>> to look at. Check the logs and the SMLog on the hypervisor to see what
>> happens when cs tries to start a ssvm. By your db you can see that it
>> tried to start it several times. Those are the expunging vm_instance
>> entries.
>>
>> regards,
>> Daan
>>
>> On Fri, Nov 1, 2013 at 9:10 PM, Carlos Reategui 
>> wrote:
>> > Hi Daan  :)
>> >
>> > Primary and Secondary storage are on the MS.  Primary is on a different
>> > subnet and it is currently mounted (and visible as an NFS SR from
>> > XenCenter) and working fine from the xen machines.  I have also been able
>> > to mount Secondary without a problem.
>> >
>> > Here are my current system VMs:
>> > mysql> select
>> > id,name,instance_name,state,host_id,type,vm_type,desired_state from
>> > vm_instance where type!='User';
>> >
>> ++-+---+---+-+++---+
>> > | id | name| instance_name | state | host_id | type
>>   |
>> > vm_type| desired_state |
>> >
>> ++-+---+---+-+++---+
>> > |  2 | v-2-VM  | v-2-VM| Stopped   |   1 | ConsoleProxy
>>   |
>> > ConsoleProxy   | NULL  |
>> > |  5 | r-5-VM  | r-5-VM| Stopped   |   2 | DomainRouter
>>   |
>> > DomainRouter   | NULL  |
>> > |  1 | s-1-VM  | s-1-VM| Expunging |NULL |
>> SecondaryStorageVm |
>> > SecondaryStorageVm | NULL  |
>> > |  3 | s-3-VM  | s-3-VM| Expunging |NULL |
>> SecondaryStorageVm |
>> > SecondaryStorageVm | NULL  |
>> > | 52 | s-52-VM | s-52-VM   | Expunging |NULL |
>> SecondaryStorageVm |
>> > SecondaryStorageVm | NULL  |
>> > | 53 | s-53-VM | s-53-VM   | Expunging |NULL |
>> SecondaryStorageVm |
>> > SecondaryStorageVm | NULL  |
>> > | 54 | s-54-VM | s-54-VM   | Expunging |NULL |
>> SecondaryStorageVm |
>> > SecondaryStorageVm | NULL  |
>> > | 55 | s-55-VM | s-55-VM   | Expunging |NULL |
>> SecondaryStorageVm |
>> > SecondaryStorageVm | NULL  |
>> > | 56 | s-56-VM | s-56-VM   | Expunging |NULL |
>> SecondaryStorageVm |
>> > SecondaryStorageVm | NULL  |
>> >
>> ++-+---+---+-+++---+
>> >
>> >
>> > I have been looking through the DB to see if anything sticks out.  I
>> notice
>> > that the mshost and mshost_peer table have 2 entries but they are the
>> same
>> > server.  Is that ok?  Looks like one is from the install of 4.1.0 an the
>> > other from after I upgraded to 4.1.1:
>> >
>> > mysql> select * from mshost;
>> >
>> ++-+---++---+-+-+--+-+-+-+
>> > | id | msid| runid | name   | state | version |
>> > service_ip  | service_port | last_update | removed | alert_count
>> |
>> >
>> ++-+---++---+-+-+--+-+-+-+
>> > |  1 | 233845174730255 | 1375383759777 | isbustor01 | Up| 4.1.0   |
>> > 172.30.45.2 | 9090 | 2013-10-24 21:13:10 | NULL|   0
>> |
>> > |  2 | 233845174730253 | 1383331508626 | isbustor01 | Up| 4.1.1   |
>> > 172.30.45.2 | 9090 | 2013-11-01 20:00:04 | NULL|   0
>> |
>> >
>> ++-+---++---+-+-+--+-+-+-+
>> > 2 rows in set (0.00 sec)
>> >
>> > mysql> select * from mshost_peer;
>> >
>> ++--+-+---++-+
>> > | id | owner_mshost | peer_mshost | peer_runid| peer_state |
>> > last_update |
>> >
>> ++--+-+---++-+
>> > | 17 |1 |   1 | 1375383759777 | Up |
>> 2013-08-01
>> > 19:02:49 |
>> > | 34 |2 |   2 | 1

Re: Using XenServer-6.2.0 and CloudStack-4.2.0

2013-11-05 Thread Shanker Balan
On 01-Nov-2013, at 10:42 pm, Vladimir Melnik  wrote:

> Hi there,
>
>
>
> Does anybody use XenServer-6.2.0 from xenserver.org? Does it work with
> CloudStack-4.2.0? Did you have any troubles with that?


Hi Vladimir,

XenServer 6.2 ISO which is made available at xenserver.org is fully supported
by ACS 4.2. You should have no problems with it.

Also, according to 
http://xenserver.org/open-source-virtualization-download.html,
the bits are identical to those directly available from Citrix website.

Regards.


--
@shankerbalan

M: +91 98860 60539 | O: +91 (80) 67935867
shanker.ba...@shapeblue.com | www.shapeblue.com | Twitter:@shapeblue
ShapeBlue Services India LLP, 22nd floor, Unit 2201A, World Trade Centre, 
Bangalore - 560 055

CloudStack Bootcamp Training on 27/28 November, Bangalore
http://www.shapeblue.com/cloudstack-training/




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.