Re: Loading a custom HostAllocator

2015-07-27 Thread Wido den Hollander


On 27-07-15 12:28, Amy Niklasson wrote:
> I have tried this and I still can't find it. I have tried to find it both
> in the regular installation and the source installation of CloudStack.
> However I have managed to find this link
> http://cloudstack-release-notes.readthedocs.org/en/latest/upgrade/upgrade-4.0.html
> which implies that the file has changed name to componentContext.xml.
> Unfortunately I can't find this file either.
> 
> I have found the file
> /home/ubuntu/cloudstack/server/test/async-job-component.xml which contains
> the lines:
> 
> 
>class="com.cloud.agent.manager.allocator.impl.FirstFitAllocator"/>
> 
> 
> Which are the lines according to
> http://docs.cloudstack.apache.org/en/master/alloc.html#implementing-a-
> custom-hostallocator
> 
> should be changed. However this location is in nowhere close to the
> one mentioned.
> 
> If anyone has any experience of implementing a custom hostallocator in
> CloudStack 4.5 or knows anything I would very much appreciate any
> information you got.
> 

I haven't done this, but I don't think componentContext.xml is being
used anymore.

I think you need this one:
core/resources/META-INF/cloudstack/core/spring-core-registry-core-context.xml

Wido

> Kind Regards,
> Amy
> 
> 
> On 8 July 2015 at 09:47, Wido den Hollander  wrote:
> 
> 
> 
> On 08-07-15 10:08, Amy Niklasson wrote:
 Hi, How do you load a custom HostAllocator in CloudStack 4.5? The
 only documentation I've managed to find is
 http://docs.cloudstack.apache.org/en/master/alloc.html#implementing-a-
> custom-hostallocator


> However,I can't find the files mentioned, components.xml and
 components-premium.xml, in /client/ tomcatconf. Anyone who knows?

> 
> Not exactly sure which file it is, but you could try a grep through
> the code.
> 
> It's the Spring framework which loads the modules in boot.
> 
> Wido
> 
 Regards, Amy

>>
> 


Re: Loading a custom HostAllocator

2015-07-27 Thread Amy Niklasson
I have tried this and I still can't find it. I have tried to find it both
in the regular installation and the source installation of CloudStack.
However I have managed to find this link
http://cloudstack-release-notes.readthedocs.org/en/latest/upgrade/upgrade-4.0.html
which implies that the file has changed name to componentContext.xml.
Unfortunately I can't find this file either.

I have found the file
/home/ubuntu/cloudstack/server/test/async-job-component.xml which contains
the lines:


  


Which are the lines according to
http://docs.cloudstack.apache.org/en/master/alloc.html#implementing-a-
custom-hostallocator

should be changed. However this location is in nowhere close to the
one mentioned.

If anyone has any experience of implementing a custom hostallocator in
CloudStack 4.5 or knows anything I would very much appreciate any
information you got.

Kind Regards,
Amy


On 8 July 2015 at 09:47, Wido den Hollander  wrote:

> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
>
>
> On 08-07-15 10:08, Amy Niklasson wrote:
> > Hi, How do you load a custom HostAllocator in CloudStack 4.5? The
> > only documentation I've managed to find is
> > http://docs.cloudstack.apache.org/en/master/alloc.html#implementing-a-
> custom-hostallocator
> >
> >
> However,I can't find the files mentioned, components.xml and
> > components-premium.xml, in /client/ tomcatconf. Anyone who knows?
> >
>
> Not exactly sure which file it is, but you could try a grep through
> the code.
>
> It's the Spring framework which loads the modules in boot.
>
> Wido
>
> > Regards, Amy
> >
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1
>
> iQIcBAEBAgAGBQJVnOOoAAoJEAGbWC3bPspCOLUP/jSIaX0/3nXp3o33BoC3udOb
> YDxBcgQA6LdHQEWNJUWfKiUmc5nPbVmpcEnVB+wLp1CFmWbG04Mbkq06Ujhjx5W3
> EqH5sulWGKG5RbBvtBbhA52rs/SJw4WuKhVULItTk3VqhgZQn9Sz3nmVgzO9p8fU
> 2GQCRNXkA5IGNCcq1/3d44Y0zWz0Vc7b2ghzhHFsVqDjorJF5I1m62F1uIXz12w3
> vxZtQtdkdWF8xzRuwQ46v1/R0oYHYWKXqkS3S9JyGjIjOiWKV8i0eg1KVxEGO8qU
> 3UUZOw7eiReCP2LXEkX1r703oU835y177il7tWDOAibg4s22vqtWmuquCSCP1g5t
> Avvzoz+8IPD6r1JqnViFpXAPdzD4DSNol3yIJ+s6iDSMasqpfTrHpKREepCFE0F+
> EpqsWPXLIMzdTvGZpgKL5CV4BUp8/lf9CjJ8ZvE/34N6kphUe7LbYawLs5B8Ijp6
> QkWttmwuy+esUkxxTOeNuO3ghKKqp92CvT6vw8jQLz8vETgSYLGXFeUkOlHNZU3q
> bTwi2O75cpsKNieUwTY4WkKVleED/tY+8xMz4RWyDR9OopLimN5Pkp1JsNOBtux3
> w+L0ffr4E5HUoA5nw8x/DE5MxdbQA70/4QPe+k0jOuyVRGcxhY2h5ZdJBr74NqqR
> CHEAC0F969Szp+oUZuBR
> =lBgf
> -END PGP SIGNATURE-
>


Re: Loading a custom HostAllocator

2015-07-08 Thread Wido den Hollander
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1



On 08-07-15 10:08, Amy Niklasson wrote:
> Hi, How do you load a custom HostAllocator in CloudStack 4.5? The
> only documentation I've managed to find is 
> http://docs.cloudstack.apache.org/en/master/alloc.html#implementing-a-
custom-hostallocator
>
> 
However,I can't find the files mentioned, components.xml and
> components-premium.xml, in /client/ tomcatconf. Anyone who knows?
> 

Not exactly sure which file it is, but you could try a grep through
the code.

It's the Spring framework which loads the modules in boot.

Wido

> Regards, Amy
> 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1

iQIcBAEBAgAGBQJVnOOoAAoJEAGbWC3bPspCOLUP/jSIaX0/3nXp3o33BoC3udOb
YDxBcgQA6LdHQEWNJUWfKiUmc5nPbVmpcEnVB+wLp1CFmWbG04Mbkq06Ujhjx5W3
EqH5sulWGKG5RbBvtBbhA52rs/SJw4WuKhVULItTk3VqhgZQn9Sz3nmVgzO9p8fU
2GQCRNXkA5IGNCcq1/3d44Y0zWz0Vc7b2ghzhHFsVqDjorJF5I1m62F1uIXz12w3
vxZtQtdkdWF8xzRuwQ46v1/R0oYHYWKXqkS3S9JyGjIjOiWKV8i0eg1KVxEGO8qU
3UUZOw7eiReCP2LXEkX1r703oU835y177il7tWDOAibg4s22vqtWmuquCSCP1g5t
Avvzoz+8IPD6r1JqnViFpXAPdzD4DSNol3yIJ+s6iDSMasqpfTrHpKREepCFE0F+
EpqsWPXLIMzdTvGZpgKL5CV4BUp8/lf9CjJ8ZvE/34N6kphUe7LbYawLs5B8Ijp6
QkWttmwuy+esUkxxTOeNuO3ghKKqp92CvT6vw8jQLz8vETgSYLGXFeUkOlHNZU3q
bTwi2O75cpsKNieUwTY4WkKVleED/tY+8xMz4RWyDR9OopLimN5Pkp1JsNOBtux3
w+L0ffr4E5HUoA5nw8x/DE5MxdbQA70/4QPe+k0jOuyVRGcxhY2h5ZdJBr74NqqR
CHEAC0F969Szp+oUZuBR
=lBgf
-END PGP SIGNATURE-


Loading a custom HostAllocator

2015-07-08 Thread Amy Niklasson
Hi,
How do you load a custom HostAllocator in CloudStack 4.5? The only
documentation I've managed to find is
http://docs.cloudstack.apache.org/en/master/alloc.html#implementing-a-custom-hostallocator
However,I can't find the files mentioned, components.xml and
components-premium.xml, in /client/ tomcatconf.
Anyone who knows?

Regards,
Amy