You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cloudstack.apache.org by "Giebner, Sascha" <Sa...@bautzen-it.de> on 2015/11/11 14:54:26 UTC

distribution of Cloudstack API plugins

Hello everyone,

I have a question: After successfully implementing a Cloudstack API plugin (no UI plugin), how would one go about sharing the results with a third party?

Is the only way to add the changes and rebuild cloudstack?

Or is there a possibility to somehow package a plugin and add it dynamically to a running cloudstack instance?

Or in general what would be the easiest way to prepare a plugin for a simple end-user-installation?

Thx a bunch,
Sascha Giebner

-- 
This email was Virus checked by UTM 9. http://www.sophos.com

RE: distribution of Cloudstack API plugins

Posted by "Giebner, Sascha" <Sa...@bautzen-it.de>.
thx a lot Mika and Marcus, I will check that out.

________________________________________
From: Mike Tutkowski [mike.tutkowski@solidfire.com]
Sent: Wednesday, November 11, 2015 9:18 PM
To: dev@cloudstack.apache.org
Subject: Re: distribution of Cloudstack API plugins

The fact that that annotation can be used instead of commands.properties is
not included in my video, as I had learned about that after that
presentation, so it's great you pointed it out as it does make the work of
installing an API plug-in easier. :)

On Wed, Nov 11, 2015 at 1:15 PM, Marcus <sh...@gmail.com> wrote:

> I have found managing commands.properties pretty painful, so figuring that
> out was a huge relief.
>
> On Wed, Nov 11, 2015 at 11:32 AM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
> > Good point, Marcus - thanks!
> >
> > On Wed, Nov 11, 2015 at 12:30 PM, Marcus <sh...@gmail.com> wrote:
> >
> > > Note you don't have to edit commands.properties if your API command has
> > the
> > > APICommand annotation:
> > >
> > > @APICommand(name = "getTimeOfDay",
> > >
> > >             description = "get time of day",
> > >
> > >             responseView = ResponseView.Restricted,
> > >
> > >             responseObject = GetTimeOfDayResponse.class,
> > >
> > >             authorized = {RoleType.Admin})
> > >
> > > On Wed, Nov 11, 2015 at 11:26 AM, Mike Tutkowski <
> > > mike.tutkowski@solidfire.com> wrote:
> > >
> > > > It sounds like you've already developed your API plug-in, so perhaps
> > this
> > > > video won't be super useful to you, but - just in case - here's my
> > > > presentation on this topic from the CloudStack Collaboration
> Conference
> > > in
> > > > Dublin, which took place last month:
> > > >
> > > >
> > > >
> > >
> >
> https://www.youtube.com/watch?v=J6N1sf43psw&list=PLGeM09tlguZSeNyOyQKJHNX4pxgK-yoTA&index=8
> > > >
> > > > On Wed, Nov 11, 2015 at 12:23 PM, Mike Tutkowski <
> > > > mike.tutkowski@solidfire.com> wrote:
> > > >
> > > > > No problem. There's actually very little for the customer to do:
> > > > >
> > > > > *Add to commands.properties (located in
> > > > > /usr/share/cloudstack-management/webapps/client/WEB-INF/classes).
> > (The
> > > > > vendor can provide these lines (API command = permission level) to
> > > you.)*
> > > > >
> > > > > *Place the new JAR file in
> > > > > /usr/share/cloudstack-management/webapps/client/WEB-INF/lib.*
> > > > >
> > > > > *Reboot the management server.*
> > > > >
> > > > > On Wed, Nov 11, 2015 at 8:56 AM, Giebner, Sascha <
> > > > > Sascha.Giebner@bautzen-it.de> wrote:
> > > > >
> > > > >> Hey Mike,
> > > > >>
> > > > >> thanks for the hint. Would you mind sharing these instructions
> with
> > > me?
> > > > ;)
> > > > >>
> > > > >> Thx and best regards,
> > > > >> Sascha
> > > > >> ________________________________________
> > > > >> From: Mike Tutkowski [mike.tutkowski@solidfire.com]
> > > > >> Sent: Wednesday, November 11, 2015 3:25 PM
> > > > >> To: dev@cloudstack.apache.org
> > > > >> Subject: Re: distribution of Cloudstack API plugins
> > > > >>
> > > > >> What I have always done is build the JAR file myself and then
> > provide
> > > to
> > > > >> the third party instructions on where it goes (and that to make
> use
> > of
> > > > it,
> > > > >> it does require a reboot of the management server).
> > > > >>
> > > > >> On Wed, Nov 11, 2015 at 6:54 AM, Giebner, Sascha <
> > > > >> Sascha.Giebner@bautzen-it.de> wrote:
> > > > >>
> > > > >> > Hello everyone,
> > > > >> >
> > > > >> > I have a question: After successfully implementing a Cloudstack
> > API
> > > > >> plugin
> > > > >> > (no UI plugin), how would one go about sharing the results with
> a
> > > > third
> > > > >> > party?
> > > > >> >
> > > > >> > Is the only way to add the changes and rebuild cloudstack?
> > > > >> >
> > > > >> > Or is there a possibility to somehow package a plugin and add it
> > > > >> > dynamically to a running cloudstack instance?
> > > > >> >
> > > > >> > Or in general what would be the easiest way to prepare a plugin
> > for
> > > a
> > > > >> > simple end-user-installation?
> > > > >> >
> > > > >> > Thx a bunch,
> > > > >> > Sascha Giebner
> > > > >> >
> > > > >> > --
> > > > >> > This email was Virus checked by UTM 9. http://www.sophos.com
> > > > >> >
> > > > >>
> > > > >>
> > > > >>
> > > > >> --
> > > > >> *Mike Tutkowski*
> > > > >> *Senior CloudStack Developer, SolidFire Inc.*
> > > > >> e: mike.tutkowski@solidfire.com
> > > > >> o: 303.746.7302
> > > > >> Advancing the way the world uses the cloud
> > > > >> <http://solidfire.com/solution/overview/?video=play>*™*
> > > > >>
> > > > >> --
> > > > >> This email was Virus checked by UTM 9. http://www.sophos.com
> > > > >>
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > *Mike Tutkowski*
> > > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > > e: mike.tutkowski@solidfire.com
> > > > > o: 303.746.7302
> > > > > Advancing the way the world uses the cloud
> > > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > *Mike Tutkowski*
> > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > e: mike.tutkowski@solidfire.com
> > > > o: 303.746.7302
> > > > Advancing the way the world uses the cloud
> > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > >
> > >
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the cloud
> > <http://solidfire.com/solution/overview/?video=play>*™*
> >
>



--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://solidfire.com/solution/overview/?video=play>*™*

Re: distribution of Cloudstack API plugins

Posted by Mike Tutkowski <mi...@solidfire.com>.
Great! Glad to hear it's working now. :)

On Thursday, November 19, 2015, Schubert, Sven <Sv...@bautzen-it.de>
wrote:

> Hello Mike,
>
> I successfully created a plugin by following your instructions from the
> video :). I guess the problem was that working on 4.5.2 was a bad idea, as
> the poms no longer have the maven SNAPSHOT tag in their version. Working on
> a fresh branch from the 4.6.0 master worked perfectly.
>
> Regards,
> Sven
> ________________________________________
> From: Mike Tutkowski [mike.tutkowski@solidfire.com <javascript:;>]
> Sent: Thursday, November 12, 2015 21:24
> To: dev@cloudstack.apache.org <javascript:;>
> Subject: Re: distribution of Cloudstack API plugins
>
> Huh...so, I am a bit confused why it's doing that.
>
> As you suggest, I would recommend you take a quick peek back at the
> presentation and see if a step was maybe missed.
>
> Let us know. :)
>
> Thanks!
> Mike
>
> On Thu, Nov 12, 2015 at 9:20 AM, Schubert, Sven <
> Sven.Schubert@bautzen-it.de <javascript:;>
> > wrote:
>
> > Hello Mike,
> >
> > I checked out cloudstack 4.5.2 and added a plugin, now I get the
> following
> > error:
> >
> > Failed to execute goal on project cloud-server: Could not resolve
> > dependencies for project org.apache.cloudstack:cloud-server:jar:4.5.2:
> > Failure to find com.cloud.test:cloud-plugin-api-timeofday:jar:4.5.2 in
> was
> > cached in the local repository, resolution will not be reattempted until
> > the update interval of central has elapsed or updates are forced ->
> [Help 1]
> >
> >
> > Maybe I missed a step. I will try again from scratch tomorrow, but if you
> > have any insight on why this error occurs I would appreciate your help.
> >
> > Thx,
> > Sven
> >
> > ________________________________________
> > From: Mike Tutkowski [mike.tutkowski@solidfire.com <javascript:;>]
> > Sent: Thursday, November 12, 2015 15:11
> > To: dev@cloudstack.apache.org <javascript:;>
> > Subject: Re: distribution of Cloudstack API plugins
> >
> > Hi Sven,
> >
> > I'm not sure I completely understand your question.
> >
> > If you follow the steps in the video, you should be able to create a new
> > project and build it, along with CloudStack, using the following command:
> >
> > mvn -P developer,systemvm clean install
> >
> > You don't have to use the systemvm profile, but I just like using it. :)
> >
> > Can you tell me what kind of an error message you're getting?
> >
> > Thanks,
> > Mike
> >
> > On Thu, Nov 12, 2015 at 5:26 AM, Schubert, Sven <
> > Sven.Schubert@bautzen-it.de <javascript:;>
> > > wrote:
> >
> > > Hello Mike,
> > >
> > > the video is great. One thing is missing for me though. How do I build
> > the
> > > jar file? I tried the standard mvn ... install command after adding a
> > > plugin, but then mvn tries to find the jar in the repository instead of
> > > compiling it. Can you help me out?
> > >
> > > Regards,
> > > Sven
> > > ________________________________________
> > > From: Mike Tutkowski [mike.tutkowski@solidfire.com <javascript:;>]
> > > Sent: Wednesday, November 11, 2015 21:18
> > > To: dev@cloudstack.apache.org <javascript:;>
> > > Subject: Re: distribution of Cloudstack API plugins
> > >
> > > The fact that that annotation can be used instead of
> commands.properties
> > is
> > > not included in my video, as I had learned about that after that
> > > presentation, so it's great you pointed it out as it does make the work
> > of
> > > installing an API plug-in easier. :)
> > >
> > > On Wed, Nov 11, 2015 at 1:15 PM, Marcus <shadowsor@gmail.com
> <javascript:;>> wrote:
> > >
> > > > I have found managing commands.properties pretty painful, so figuring
> > > that
> > > > out was a huge relief.
> > > >
> > > > On Wed, Nov 11, 2015 at 11:32 AM, Mike Tutkowski <
> > > > mike.tutkowski@solidfire.com <javascript:;>> wrote:
> > > >
> > > > > Good point, Marcus - thanks!
> > > > >
> > > > > On Wed, Nov 11, 2015 at 12:30 PM, Marcus <shadowsor@gmail.com
> <javascript:;>>
> > wrote:
> > > > >
> > > > > > Note you don't have to edit commands.properties if your API
> command
> > > has
> > > > > the
> > > > > > APICommand annotation:
> > > > > >
> > > > > > @APICommand(name = "getTimeOfDay",
> > > > > >
> > > > > >             description = "get time of day",
> > > > > >
> > > > > >             responseView = ResponseView.Restricted,
> > > > > >
> > > > > >             responseObject = GetTimeOfDayResponse.class,
> > > > > >
> > > > > >             authorized = {RoleType.Admin})
> > > > > >
> > > > > > On Wed, Nov 11, 2015 at 11:26 AM, Mike Tutkowski <
> > > > > > mike.tutkowski@solidfire.com <javascript:;>> wrote:
> > > > > >
> > > > > > > It sounds like you've already developed your API plug-in, so
> > > perhaps
> > > > > this
> > > > > > > video won't be super useful to you, but - just in case - here's
> > my
> > > > > > > presentation on this topic from the CloudStack Collaboration
> > > > Conference
> > > > > > in
> > > > > > > Dublin, which took place last month:
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://www.youtube.com/watch?v=J6N1sf43psw&list=PLGeM09tlguZSeNyOyQKJHNX4pxgK-yoTA&index=8
> > > > > > >
> > > > > > > On Wed, Nov 11, 2015 at 12:23 PM, Mike Tutkowski <
> > > > > > > mike.tutkowski@solidfire.com <javascript:;>> wrote:
> > > > > > >
> > > > > > > > No problem. There's actually very little for the customer to
> > do:
> > > > > > > >
> > > > > > > > *Add to commands.properties (located in
> > > > > > > >
> > /usr/share/cloudstack-management/webapps/client/WEB-INF/classes).
> > > > > (The
> > > > > > > > vendor can provide these lines (API command = permission
> level)
> > > to
> > > > > > you.)*
> > > > > > > >
> > > > > > > > *Place the new JAR file in
> > > > > > > > /usr/share/cloudstack-management/webapps/client/WEB-INF/lib.*
> > > > > > > >
> > > > > > > > *Reboot the management server.*
> > > > > > > >
> > > > > > > > On Wed, Nov 11, 2015 at 8:56 AM, Giebner, Sascha <
> > > > > > > > Sascha.Giebner@bautzen-it.de <javascript:;>> wrote:
> > > > > > > >
> > > > > > > >> Hey Mike,
> > > > > > > >>
> > > > > > > >> thanks for the hint. Would you mind sharing these
> instructions
> > > > with
> > > > > > me?
> > > > > > > ;)
> > > > > > > >>
> > > > > > > >> Thx and best regards,
> > > > > > > >> Sascha
> > > > > > > >> ________________________________________
> > > > > > > >> From: Mike Tutkowski [mike.tutkowski@solidfire.com
> <javascript:;>]
> > > > > > > >> Sent: Wednesday, November 11, 2015 3:25 PM
> > > > > > > >> To: dev@cloudstack.apache.org <javascript:;>
> > > > > > > >> Subject: Re: distribution of Cloudstack API plugins
> > > > > > > >>
> > > > > > > >> What I have always done is build the JAR file myself and
> then
> > > > > provide
> > > > > > to
> > > > > > > >> the third party instructions on where it goes (and that to
> > make
> > > > use
> > > > > of
> > > > > > > it,
> > > > > > > >> it does require a reboot of the management server).
> > > > > > > >>
> > > > > > > >> On Wed, Nov 11, 2015 at 6:54 AM, Giebner, Sascha <
> > > > > > > >> Sascha.Giebner@bautzen-it.de <javascript:;>> wrote:
> > > > > > > >>
> > > > > > > >> > Hello everyone,
> > > > > > > >> >
> > > > > > > >> > I have a question: After successfully implementing a
> > > Cloudstack
> > > > > API
> > > > > > > >> plugin
> > > > > > > >> > (no UI plugin), how would one go about sharing the results
> > > with
> > > > a
> > > > > > > third
> > > > > > > >> > party?
> > > > > > > >> >
> > > > > > > >> > Is the only way to add the changes and rebuild cloudstack?
> > > > > > > >> >
> > > > > > > >> > Or is there a possibility to somehow package a plugin and
> > add
> > > it
> > > > > > > >> > dynamically to a running cloudstack instance?
> > > > > > > >> >
> > > > > > > >> > Or in general what would be the easiest way to prepare a
> > > plugin
> > > > > for
> > > > > > a
> > > > > > > >> > simple end-user-installation?
> > > > > > > >> >
> > > > > > > >> > Thx a bunch,
> > > > > > > >> > Sascha Giebner
> > > > > > > >> >
> > > > > > > >> > --
> > > > > > > >> > This email was Virus checked by UTM 9.
> > http://www.sophos.com
> > > > > > > >> >
> > > > > > > >>
> > > > > > > >>
> > > > > > > >>
> > > > > > > >> --
> > > > > > > >> *Mike Tutkowski*
> > > > > > > >> *Senior CloudStack Developer, SolidFire Inc.*
> > > > > > > >> e: mike.tutkowski@solidfire.com <javascript:;>
> > > > > > > >> o: 303.746.7302
> > > > > > > >> Advancing the way the world uses the cloud
> > > > > > > >> <http://solidfire.com/solution/overview/?video=play>*™*
> > > > > > > >>
> > > > > > > >> --
> > > > > > > >> This email was Virus checked by UTM 9.
> http://www.sophos.com
> > > > > > > >>
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > *Mike Tutkowski*
> > > > > > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > > > > > e: mike.tutkowski@solidfire.com <javascript:;>
> > > > > > > > o: 303.746.7302
> > > > > > > > Advancing the way the world uses the cloud
> > > > > > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > *Mike Tutkowski*
> > > > > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > > > > e: mike.tutkowski@solidfire.com <javascript:;>
> > > > > > > o: 303.746.7302
> > > > > > > Advancing the way the world uses the cloud
> > > > > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > *Mike Tutkowski*
> > > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > > e: mike.tutkowski@solidfire.com <javascript:;>
> > > > > o: 303.746.7302
> > > > > Advancing the way the world uses the cloud
> > > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > *Mike Tutkowski*
> > > *Senior CloudStack Developer, SolidFire Inc.*
> > > e: mike.tutkowski@solidfire.com <javascript:;>
> > > o: 303.746.7302
> > > Advancing the way the world uses the cloud
> > > <http://solidfire.com/solution/overview/?video=play>*™*
> > >
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com <javascript:;>
> > o: 303.746.7302
> > Advancing the way the world uses the cloud
> > <http://solidfire.com/solution/overview/?video=play>*™*
> >
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com <javascript:;>
> o: 303.746.7302
> Advancing the way the world uses the cloud
> <http://solidfire.com/solution/overview/?video=play>*™*
>


-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://solidfire.com/solution/overview/?video=play>*™*

RE: distribution of Cloudstack API plugins

Posted by "Schubert, Sven" <Sv...@bautzen-it.de>.
Hello Mike,

I successfully created a plugin by following your instructions from the video :). I guess the problem was that working on 4.5.2 was a bad idea, as the poms no longer have the maven SNAPSHOT tag in their version. Working on a fresh branch from the 4.6.0 master worked perfectly.

Regards,
Sven
________________________________________
From: Mike Tutkowski [mike.tutkowski@solidfire.com]
Sent: Thursday, November 12, 2015 21:24
To: dev@cloudstack.apache.org
Subject: Re: distribution of Cloudstack API plugins

Huh...so, I am a bit confused why it's doing that.

As you suggest, I would recommend you take a quick peek back at the
presentation and see if a step was maybe missed.

Let us know. :)

Thanks!
Mike

On Thu, Nov 12, 2015 at 9:20 AM, Schubert, Sven <Sven.Schubert@bautzen-it.de
> wrote:

> Hello Mike,
>
> I checked out cloudstack 4.5.2 and added a plugin, now I get the following
> error:
>
> Failed to execute goal on project cloud-server: Could not resolve
> dependencies for project org.apache.cloudstack:cloud-server:jar:4.5.2:
> Failure to find com.cloud.test:cloud-plugin-api-timeofday:jar:4.5.2 in  was
> cached in the local repository, resolution will not be reattempted until
> the update interval of central has elapsed or updates are forced -> [Help 1]
>
>
> Maybe I missed a step. I will try again from scratch tomorrow, but if you
> have any insight on why this error occurs I would appreciate your help.
>
> Thx,
> Sven
>
> ________________________________________
> From: Mike Tutkowski [mike.tutkowski@solidfire.com]
> Sent: Thursday, November 12, 2015 15:11
> To: dev@cloudstack.apache.org
> Subject: Re: distribution of Cloudstack API plugins
>
> Hi Sven,
>
> I'm not sure I completely understand your question.
>
> If you follow the steps in the video, you should be able to create a new
> project and build it, along with CloudStack, using the following command:
>
> mvn -P developer,systemvm clean install
>
> You don't have to use the systemvm profile, but I just like using it. :)
>
> Can you tell me what kind of an error message you're getting?
>
> Thanks,
> Mike
>
> On Thu, Nov 12, 2015 at 5:26 AM, Schubert, Sven <
> Sven.Schubert@bautzen-it.de
> > wrote:
>
> > Hello Mike,
> >
> > the video is great. One thing is missing for me though. How do I build
> the
> > jar file? I tried the standard mvn ... install command after adding a
> > plugin, but then mvn tries to find the jar in the repository instead of
> > compiling it. Can you help me out?
> >
> > Regards,
> > Sven
> > ________________________________________
> > From: Mike Tutkowski [mike.tutkowski@solidfire.com]
> > Sent: Wednesday, November 11, 2015 21:18
> > To: dev@cloudstack.apache.org
> > Subject: Re: distribution of Cloudstack API plugins
> >
> > The fact that that annotation can be used instead of commands.properties
> is
> > not included in my video, as I had learned about that after that
> > presentation, so it's great you pointed it out as it does make the work
> of
> > installing an API plug-in easier. :)
> >
> > On Wed, Nov 11, 2015 at 1:15 PM, Marcus <sh...@gmail.com> wrote:
> >
> > > I have found managing commands.properties pretty painful, so figuring
> > that
> > > out was a huge relief.
> > >
> > > On Wed, Nov 11, 2015 at 11:32 AM, Mike Tutkowski <
> > > mike.tutkowski@solidfire.com> wrote:
> > >
> > > > Good point, Marcus - thanks!
> > > >
> > > > On Wed, Nov 11, 2015 at 12:30 PM, Marcus <sh...@gmail.com>
> wrote:
> > > >
> > > > > Note you don't have to edit commands.properties if your API command
> > has
> > > > the
> > > > > APICommand annotation:
> > > > >
> > > > > @APICommand(name = "getTimeOfDay",
> > > > >
> > > > >             description = "get time of day",
> > > > >
> > > > >             responseView = ResponseView.Restricted,
> > > > >
> > > > >             responseObject = GetTimeOfDayResponse.class,
> > > > >
> > > > >             authorized = {RoleType.Admin})
> > > > >
> > > > > On Wed, Nov 11, 2015 at 11:26 AM, Mike Tutkowski <
> > > > > mike.tutkowski@solidfire.com> wrote:
> > > > >
> > > > > > It sounds like you've already developed your API plug-in, so
> > perhaps
> > > > this
> > > > > > video won't be super useful to you, but - just in case - here's
> my
> > > > > > presentation on this topic from the CloudStack Collaboration
> > > Conference
> > > > > in
> > > > > > Dublin, which took place last month:
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://www.youtube.com/watch?v=J6N1sf43psw&list=PLGeM09tlguZSeNyOyQKJHNX4pxgK-yoTA&index=8
> > > > > >
> > > > > > On Wed, Nov 11, 2015 at 12:23 PM, Mike Tutkowski <
> > > > > > mike.tutkowski@solidfire.com> wrote:
> > > > > >
> > > > > > > No problem. There's actually very little for the customer to
> do:
> > > > > > >
> > > > > > > *Add to commands.properties (located in
> > > > > > >
> /usr/share/cloudstack-management/webapps/client/WEB-INF/classes).
> > > > (The
> > > > > > > vendor can provide these lines (API command = permission level)
> > to
> > > > > you.)*
> > > > > > >
> > > > > > > *Place the new JAR file in
> > > > > > > /usr/share/cloudstack-management/webapps/client/WEB-INF/lib.*
> > > > > > >
> > > > > > > *Reboot the management server.*
> > > > > > >
> > > > > > > On Wed, Nov 11, 2015 at 8:56 AM, Giebner, Sascha <
> > > > > > > Sascha.Giebner@bautzen-it.de> wrote:
> > > > > > >
> > > > > > >> Hey Mike,
> > > > > > >>
> > > > > > >> thanks for the hint. Would you mind sharing these instructions
> > > with
> > > > > me?
> > > > > > ;)
> > > > > > >>
> > > > > > >> Thx and best regards,
> > > > > > >> Sascha
> > > > > > >> ________________________________________
> > > > > > >> From: Mike Tutkowski [mike.tutkowski@solidfire.com]
> > > > > > >> Sent: Wednesday, November 11, 2015 3:25 PM
> > > > > > >> To: dev@cloudstack.apache.org
> > > > > > >> Subject: Re: distribution of Cloudstack API plugins
> > > > > > >>
> > > > > > >> What I have always done is build the JAR file myself and then
> > > > provide
> > > > > to
> > > > > > >> the third party instructions on where it goes (and that to
> make
> > > use
> > > > of
> > > > > > it,
> > > > > > >> it does require a reboot of the management server).
> > > > > > >>
> > > > > > >> On Wed, Nov 11, 2015 at 6:54 AM, Giebner, Sascha <
> > > > > > >> Sascha.Giebner@bautzen-it.de> wrote:
> > > > > > >>
> > > > > > >> > Hello everyone,
> > > > > > >> >
> > > > > > >> > I have a question: After successfully implementing a
> > Cloudstack
> > > > API
> > > > > > >> plugin
> > > > > > >> > (no UI plugin), how would one go about sharing the results
> > with
> > > a
> > > > > > third
> > > > > > >> > party?
> > > > > > >> >
> > > > > > >> > Is the only way to add the changes and rebuild cloudstack?
> > > > > > >> >
> > > > > > >> > Or is there a possibility to somehow package a plugin and
> add
> > it
> > > > > > >> > dynamically to a running cloudstack instance?
> > > > > > >> >
> > > > > > >> > Or in general what would be the easiest way to prepare a
> > plugin
> > > > for
> > > > > a
> > > > > > >> > simple end-user-installation?
> > > > > > >> >
> > > > > > >> > Thx a bunch,
> > > > > > >> > Sascha Giebner
> > > > > > >> >
> > > > > > >> > --
> > > > > > >> > This email was Virus checked by UTM 9.
> http://www.sophos.com
> > > > > > >> >
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >> --
> > > > > > >> *Mike Tutkowski*
> > > > > > >> *Senior CloudStack Developer, SolidFire Inc.*
> > > > > > >> e: mike.tutkowski@solidfire.com
> > > > > > >> o: 303.746.7302
> > > > > > >> Advancing the way the world uses the cloud
> > > > > > >> <http://solidfire.com/solution/overview/?video=play>*™*
> > > > > > >>
> > > > > > >> --
> > > > > > >> This email was Virus checked by UTM 9. http://www.sophos.com
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > *Mike Tutkowski*
> > > > > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > > > > e: mike.tutkowski@solidfire.com
> > > > > > > o: 303.746.7302
> > > > > > > Advancing the way the world uses the cloud
> > > > > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > *Mike Tutkowski*
> > > > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > > > e: mike.tutkowski@solidfire.com
> > > > > > o: 303.746.7302
> > > > > > Advancing the way the world uses the cloud
> > > > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > *Mike Tutkowski*
> > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > e: mike.tutkowski@solidfire.com
> > > > o: 303.746.7302
> > > > Advancing the way the world uses the cloud
> > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > >
> > >
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the cloud
> > <http://solidfire.com/solution/overview/?video=play>*™*
> >
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud
> <http://solidfire.com/solution/overview/?video=play>*™*
>



--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://solidfire.com/solution/overview/?video=play>*™*

Re: distribution of Cloudstack API plugins

Posted by Mike Tutkowski <mi...@solidfire.com>.
Huh...so, I am a bit confused why it's doing that.

As you suggest, I would recommend you take a quick peek back at the
presentation and see if a step was maybe missed.

Let us know. :)

Thanks!
Mike

On Thu, Nov 12, 2015 at 9:20 AM, Schubert, Sven <Sven.Schubert@bautzen-it.de
> wrote:

> Hello Mike,
>
> I checked out cloudstack 4.5.2 and added a plugin, now I get the following
> error:
>
> Failed to execute goal on project cloud-server: Could not resolve
> dependencies for project org.apache.cloudstack:cloud-server:jar:4.5.2:
> Failure to find com.cloud.test:cloud-plugin-api-timeofday:jar:4.5.2 in  was
> cached in the local repository, resolution will not be reattempted until
> the update interval of central has elapsed or updates are forced -> [Help 1]
>
>
> Maybe I missed a step. I will try again from scratch tomorrow, but if you
> have any insight on why this error occurs I would appreciate your help.
>
> Thx,
> Sven
>
> ________________________________________
> From: Mike Tutkowski [mike.tutkowski@solidfire.com]
> Sent: Thursday, November 12, 2015 15:11
> To: dev@cloudstack.apache.org
> Subject: Re: distribution of Cloudstack API plugins
>
> Hi Sven,
>
> I'm not sure I completely understand your question.
>
> If you follow the steps in the video, you should be able to create a new
> project and build it, along with CloudStack, using the following command:
>
> mvn -P developer,systemvm clean install
>
> You don't have to use the systemvm profile, but I just like using it. :)
>
> Can you tell me what kind of an error message you're getting?
>
> Thanks,
> Mike
>
> On Thu, Nov 12, 2015 at 5:26 AM, Schubert, Sven <
> Sven.Schubert@bautzen-it.de
> > wrote:
>
> > Hello Mike,
> >
> > the video is great. One thing is missing for me though. How do I build
> the
> > jar file? I tried the standard mvn ... install command after adding a
> > plugin, but then mvn tries to find the jar in the repository instead of
> > compiling it. Can you help me out?
> >
> > Regards,
> > Sven
> > ________________________________________
> > From: Mike Tutkowski [mike.tutkowski@solidfire.com]
> > Sent: Wednesday, November 11, 2015 21:18
> > To: dev@cloudstack.apache.org
> > Subject: Re: distribution of Cloudstack API plugins
> >
> > The fact that that annotation can be used instead of commands.properties
> is
> > not included in my video, as I had learned about that after that
> > presentation, so it's great you pointed it out as it does make the work
> of
> > installing an API plug-in easier. :)
> >
> > On Wed, Nov 11, 2015 at 1:15 PM, Marcus <sh...@gmail.com> wrote:
> >
> > > I have found managing commands.properties pretty painful, so figuring
> > that
> > > out was a huge relief.
> > >
> > > On Wed, Nov 11, 2015 at 11:32 AM, Mike Tutkowski <
> > > mike.tutkowski@solidfire.com> wrote:
> > >
> > > > Good point, Marcus - thanks!
> > > >
> > > > On Wed, Nov 11, 2015 at 12:30 PM, Marcus <sh...@gmail.com>
> wrote:
> > > >
> > > > > Note you don't have to edit commands.properties if your API command
> > has
> > > > the
> > > > > APICommand annotation:
> > > > >
> > > > > @APICommand(name = "getTimeOfDay",
> > > > >
> > > > >             description = "get time of day",
> > > > >
> > > > >             responseView = ResponseView.Restricted,
> > > > >
> > > > >             responseObject = GetTimeOfDayResponse.class,
> > > > >
> > > > >             authorized = {RoleType.Admin})
> > > > >
> > > > > On Wed, Nov 11, 2015 at 11:26 AM, Mike Tutkowski <
> > > > > mike.tutkowski@solidfire.com> wrote:
> > > > >
> > > > > > It sounds like you've already developed your API plug-in, so
> > perhaps
> > > > this
> > > > > > video won't be super useful to you, but - just in case - here's
> my
> > > > > > presentation on this topic from the CloudStack Collaboration
> > > Conference
> > > > > in
> > > > > > Dublin, which took place last month:
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> https://www.youtube.com/watch?v=J6N1sf43psw&list=PLGeM09tlguZSeNyOyQKJHNX4pxgK-yoTA&index=8
> > > > > >
> > > > > > On Wed, Nov 11, 2015 at 12:23 PM, Mike Tutkowski <
> > > > > > mike.tutkowski@solidfire.com> wrote:
> > > > > >
> > > > > > > No problem. There's actually very little for the customer to
> do:
> > > > > > >
> > > > > > > *Add to commands.properties (located in
> > > > > > >
> /usr/share/cloudstack-management/webapps/client/WEB-INF/classes).
> > > > (The
> > > > > > > vendor can provide these lines (API command = permission level)
> > to
> > > > > you.)*
> > > > > > >
> > > > > > > *Place the new JAR file in
> > > > > > > /usr/share/cloudstack-management/webapps/client/WEB-INF/lib.*
> > > > > > >
> > > > > > > *Reboot the management server.*
> > > > > > >
> > > > > > > On Wed, Nov 11, 2015 at 8:56 AM, Giebner, Sascha <
> > > > > > > Sascha.Giebner@bautzen-it.de> wrote:
> > > > > > >
> > > > > > >> Hey Mike,
> > > > > > >>
> > > > > > >> thanks for the hint. Would you mind sharing these instructions
> > > with
> > > > > me?
> > > > > > ;)
> > > > > > >>
> > > > > > >> Thx and best regards,
> > > > > > >> Sascha
> > > > > > >> ________________________________________
> > > > > > >> From: Mike Tutkowski [mike.tutkowski@solidfire.com]
> > > > > > >> Sent: Wednesday, November 11, 2015 3:25 PM
> > > > > > >> To: dev@cloudstack.apache.org
> > > > > > >> Subject: Re: distribution of Cloudstack API plugins
> > > > > > >>
> > > > > > >> What I have always done is build the JAR file myself and then
> > > > provide
> > > > > to
> > > > > > >> the third party instructions on where it goes (and that to
> make
> > > use
> > > > of
> > > > > > it,
> > > > > > >> it does require a reboot of the management server).
> > > > > > >>
> > > > > > >> On Wed, Nov 11, 2015 at 6:54 AM, Giebner, Sascha <
> > > > > > >> Sascha.Giebner@bautzen-it.de> wrote:
> > > > > > >>
> > > > > > >> > Hello everyone,
> > > > > > >> >
> > > > > > >> > I have a question: After successfully implementing a
> > Cloudstack
> > > > API
> > > > > > >> plugin
> > > > > > >> > (no UI plugin), how would one go about sharing the results
> > with
> > > a
> > > > > > third
> > > > > > >> > party?
> > > > > > >> >
> > > > > > >> > Is the only way to add the changes and rebuild cloudstack?
> > > > > > >> >
> > > > > > >> > Or is there a possibility to somehow package a plugin and
> add
> > it
> > > > > > >> > dynamically to a running cloudstack instance?
> > > > > > >> >
> > > > > > >> > Or in general what would be the easiest way to prepare a
> > plugin
> > > > for
> > > > > a
> > > > > > >> > simple end-user-installation?
> > > > > > >> >
> > > > > > >> > Thx a bunch,
> > > > > > >> > Sascha Giebner
> > > > > > >> >
> > > > > > >> > --
> > > > > > >> > This email was Virus checked by UTM 9.
> http://www.sophos.com
> > > > > > >> >
> > > > > > >>
> > > > > > >>
> > > > > > >>
> > > > > > >> --
> > > > > > >> *Mike Tutkowski*
> > > > > > >> *Senior CloudStack Developer, SolidFire Inc.*
> > > > > > >> e: mike.tutkowski@solidfire.com
> > > > > > >> o: 303.746.7302
> > > > > > >> Advancing the way the world uses the cloud
> > > > > > >> <http://solidfire.com/solution/overview/?video=play>*™*
> > > > > > >>
> > > > > > >> --
> > > > > > >> This email was Virus checked by UTM 9. http://www.sophos.com
> > > > > > >>
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > *Mike Tutkowski*
> > > > > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > > > > e: mike.tutkowski@solidfire.com
> > > > > > > o: 303.746.7302
> > > > > > > Advancing the way the world uses the cloud
> > > > > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > *Mike Tutkowski*
> > > > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > > > e: mike.tutkowski@solidfire.com
> > > > > > o: 303.746.7302
> > > > > > Advancing the way the world uses the cloud
> > > > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > *Mike Tutkowski*
> > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > e: mike.tutkowski@solidfire.com
> > > > o: 303.746.7302
> > > > Advancing the way the world uses the cloud
> > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > >
> > >
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the cloud
> > <http://solidfire.com/solution/overview/?video=play>*™*
> >
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud
> <http://solidfire.com/solution/overview/?video=play>*™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://solidfire.com/solution/overview/?video=play>*™*

RE: distribution of Cloudstack API plugins

Posted by "Schubert, Sven" <Sv...@bautzen-it.de>.
Hello Mike,

I checked out cloudstack 4.5.2 and added a plugin, now I get the following error:

Failed to execute goal on project cloud-server: Could not resolve dependencies for project org.apache.cloudstack:cloud-server:jar:4.5.2: Failure to find com.cloud.test:cloud-plugin-api-timeofday:jar:4.5.2 in  was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]


Maybe I missed a step. I will try again from scratch tomorrow, but if you have any insight on why this error occurs I would appreciate your help.

Thx,
Sven

________________________________________
From: Mike Tutkowski [mike.tutkowski@solidfire.com]
Sent: Thursday, November 12, 2015 15:11
To: dev@cloudstack.apache.org
Subject: Re: distribution of Cloudstack API plugins

Hi Sven,

I'm not sure I completely understand your question.

If you follow the steps in the video, you should be able to create a new
project and build it, along with CloudStack, using the following command:

mvn -P developer,systemvm clean install

You don't have to use the systemvm profile, but I just like using it. :)

Can you tell me what kind of an error message you're getting?

Thanks,
Mike

On Thu, Nov 12, 2015 at 5:26 AM, Schubert, Sven <Sven.Schubert@bautzen-it.de
> wrote:

> Hello Mike,
>
> the video is great. One thing is missing for me though. How do I build the
> jar file? I tried the standard mvn ... install command after adding a
> plugin, but then mvn tries to find the jar in the repository instead of
> compiling it. Can you help me out?
>
> Regards,
> Sven
> ________________________________________
> From: Mike Tutkowski [mike.tutkowski@solidfire.com]
> Sent: Wednesday, November 11, 2015 21:18
> To: dev@cloudstack.apache.org
> Subject: Re: distribution of Cloudstack API plugins
>
> The fact that that annotation can be used instead of commands.properties is
> not included in my video, as I had learned about that after that
> presentation, so it's great you pointed it out as it does make the work of
> installing an API plug-in easier. :)
>
> On Wed, Nov 11, 2015 at 1:15 PM, Marcus <sh...@gmail.com> wrote:
>
> > I have found managing commands.properties pretty painful, so figuring
> that
> > out was a huge relief.
> >
> > On Wed, Nov 11, 2015 at 11:32 AM, Mike Tutkowski <
> > mike.tutkowski@solidfire.com> wrote:
> >
> > > Good point, Marcus - thanks!
> > >
> > > On Wed, Nov 11, 2015 at 12:30 PM, Marcus <sh...@gmail.com> wrote:
> > >
> > > > Note you don't have to edit commands.properties if your API command
> has
> > > the
> > > > APICommand annotation:
> > > >
> > > > @APICommand(name = "getTimeOfDay",
> > > >
> > > >             description = "get time of day",
> > > >
> > > >             responseView = ResponseView.Restricted,
> > > >
> > > >             responseObject = GetTimeOfDayResponse.class,
> > > >
> > > >             authorized = {RoleType.Admin})
> > > >
> > > > On Wed, Nov 11, 2015 at 11:26 AM, Mike Tutkowski <
> > > > mike.tutkowski@solidfire.com> wrote:
> > > >
> > > > > It sounds like you've already developed your API plug-in, so
> perhaps
> > > this
> > > > > video won't be super useful to you, but - just in case - here's my
> > > > > presentation on this topic from the CloudStack Collaboration
> > Conference
> > > > in
> > > > > Dublin, which took place last month:
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> https://www.youtube.com/watch?v=J6N1sf43psw&list=PLGeM09tlguZSeNyOyQKJHNX4pxgK-yoTA&index=8
> > > > >
> > > > > On Wed, Nov 11, 2015 at 12:23 PM, Mike Tutkowski <
> > > > > mike.tutkowski@solidfire.com> wrote:
> > > > >
> > > > > > No problem. There's actually very little for the customer to do:
> > > > > >
> > > > > > *Add to commands.properties (located in
> > > > > > /usr/share/cloudstack-management/webapps/client/WEB-INF/classes).
> > > (The
> > > > > > vendor can provide these lines (API command = permission level)
> to
> > > > you.)*
> > > > > >
> > > > > > *Place the new JAR file in
> > > > > > /usr/share/cloudstack-management/webapps/client/WEB-INF/lib.*
> > > > > >
> > > > > > *Reboot the management server.*
> > > > > >
> > > > > > On Wed, Nov 11, 2015 at 8:56 AM, Giebner, Sascha <
> > > > > > Sascha.Giebner@bautzen-it.de> wrote:
> > > > > >
> > > > > >> Hey Mike,
> > > > > >>
> > > > > >> thanks for the hint. Would you mind sharing these instructions
> > with
> > > > me?
> > > > > ;)
> > > > > >>
> > > > > >> Thx and best regards,
> > > > > >> Sascha
> > > > > >> ________________________________________
> > > > > >> From: Mike Tutkowski [mike.tutkowski@solidfire.com]
> > > > > >> Sent: Wednesday, November 11, 2015 3:25 PM
> > > > > >> To: dev@cloudstack.apache.org
> > > > > >> Subject: Re: distribution of Cloudstack API plugins
> > > > > >>
> > > > > >> What I have always done is build the JAR file myself and then
> > > provide
> > > > to
> > > > > >> the third party instructions on where it goes (and that to make
> > use
> > > of
> > > > > it,
> > > > > >> it does require a reboot of the management server).
> > > > > >>
> > > > > >> On Wed, Nov 11, 2015 at 6:54 AM, Giebner, Sascha <
> > > > > >> Sascha.Giebner@bautzen-it.de> wrote:
> > > > > >>
> > > > > >> > Hello everyone,
> > > > > >> >
> > > > > >> > I have a question: After successfully implementing a
> Cloudstack
> > > API
> > > > > >> plugin
> > > > > >> > (no UI plugin), how would one go about sharing the results
> with
> > a
> > > > > third
> > > > > >> > party?
> > > > > >> >
> > > > > >> > Is the only way to add the changes and rebuild cloudstack?
> > > > > >> >
> > > > > >> > Or is there a possibility to somehow package a plugin and add
> it
> > > > > >> > dynamically to a running cloudstack instance?
> > > > > >> >
> > > > > >> > Or in general what would be the easiest way to prepare a
> plugin
> > > for
> > > > a
> > > > > >> > simple end-user-installation?
> > > > > >> >
> > > > > >> > Thx a bunch,
> > > > > >> > Sascha Giebner
> > > > > >> >
> > > > > >> > --
> > > > > >> > This email was Virus checked by UTM 9. http://www.sophos.com
> > > > > >> >
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >> --
> > > > > >> *Mike Tutkowski*
> > > > > >> *Senior CloudStack Developer, SolidFire Inc.*
> > > > > >> e: mike.tutkowski@solidfire.com
> > > > > >> o: 303.746.7302
> > > > > >> Advancing the way the world uses the cloud
> > > > > >> <http://solidfire.com/solution/overview/?video=play>*™*
> > > > > >>
> > > > > >> --
> > > > > >> This email was Virus checked by UTM 9. http://www.sophos.com
> > > > > >>
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > *Mike Tutkowski*
> > > > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > > > e: mike.tutkowski@solidfire.com
> > > > > > o: 303.746.7302
> > > > > > Advancing the way the world uses the cloud
> > > > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > *Mike Tutkowski*
> > > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > > e: mike.tutkowski@solidfire.com
> > > > > o: 303.746.7302
> > > > > Advancing the way the world uses the cloud
> > > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > *Mike Tutkowski*
> > > *Senior CloudStack Developer, SolidFire Inc.*
> > > e: mike.tutkowski@solidfire.com
> > > o: 303.746.7302
> > > Advancing the way the world uses the cloud
> > > <http://solidfire.com/solution/overview/?video=play>*™*
> > >
> >
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud
> <http://solidfire.com/solution/overview/?video=play>*™*
>



--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://solidfire.com/solution/overview/?video=play>*™*

Re: distribution of Cloudstack API plugins

Posted by Mike Tutkowski <mi...@solidfire.com>.
Hi Sven,

I'm not sure I completely understand your question.

If you follow the steps in the video, you should be able to create a new
project and build it, along with CloudStack, using the following command:

mvn -P developer,systemvm clean install

You don't have to use the systemvm profile, but I just like using it. :)

Can you tell me what kind of an error message you're getting?

Thanks,
Mike

On Thu, Nov 12, 2015 at 5:26 AM, Schubert, Sven <Sven.Schubert@bautzen-it.de
> wrote:

> Hello Mike,
>
> the video is great. One thing is missing for me though. How do I build the
> jar file? I tried the standard mvn ... install command after adding a
> plugin, but then mvn tries to find the jar in the repository instead of
> compiling it. Can you help me out?
>
> Regards,
> Sven
> ________________________________________
> From: Mike Tutkowski [mike.tutkowski@solidfire.com]
> Sent: Wednesday, November 11, 2015 21:18
> To: dev@cloudstack.apache.org
> Subject: Re: distribution of Cloudstack API plugins
>
> The fact that that annotation can be used instead of commands.properties is
> not included in my video, as I had learned about that after that
> presentation, so it's great you pointed it out as it does make the work of
> installing an API plug-in easier. :)
>
> On Wed, Nov 11, 2015 at 1:15 PM, Marcus <sh...@gmail.com> wrote:
>
> > I have found managing commands.properties pretty painful, so figuring
> that
> > out was a huge relief.
> >
> > On Wed, Nov 11, 2015 at 11:32 AM, Mike Tutkowski <
> > mike.tutkowski@solidfire.com> wrote:
> >
> > > Good point, Marcus - thanks!
> > >
> > > On Wed, Nov 11, 2015 at 12:30 PM, Marcus <sh...@gmail.com> wrote:
> > >
> > > > Note you don't have to edit commands.properties if your API command
> has
> > > the
> > > > APICommand annotation:
> > > >
> > > > @APICommand(name = "getTimeOfDay",
> > > >
> > > >             description = "get time of day",
> > > >
> > > >             responseView = ResponseView.Restricted,
> > > >
> > > >             responseObject = GetTimeOfDayResponse.class,
> > > >
> > > >             authorized = {RoleType.Admin})
> > > >
> > > > On Wed, Nov 11, 2015 at 11:26 AM, Mike Tutkowski <
> > > > mike.tutkowski@solidfire.com> wrote:
> > > >
> > > > > It sounds like you've already developed your API plug-in, so
> perhaps
> > > this
> > > > > video won't be super useful to you, but - just in case - here's my
> > > > > presentation on this topic from the CloudStack Collaboration
> > Conference
> > > > in
> > > > > Dublin, which took place last month:
> > > > >
> > > > >
> > > > >
> > > >
> > >
> >
> https://www.youtube.com/watch?v=J6N1sf43psw&list=PLGeM09tlguZSeNyOyQKJHNX4pxgK-yoTA&index=8
> > > > >
> > > > > On Wed, Nov 11, 2015 at 12:23 PM, Mike Tutkowski <
> > > > > mike.tutkowski@solidfire.com> wrote:
> > > > >
> > > > > > No problem. There's actually very little for the customer to do:
> > > > > >
> > > > > > *Add to commands.properties (located in
> > > > > > /usr/share/cloudstack-management/webapps/client/WEB-INF/classes).
> > > (The
> > > > > > vendor can provide these lines (API command = permission level)
> to
> > > > you.)*
> > > > > >
> > > > > > *Place the new JAR file in
> > > > > > /usr/share/cloudstack-management/webapps/client/WEB-INF/lib.*
> > > > > >
> > > > > > *Reboot the management server.*
> > > > > >
> > > > > > On Wed, Nov 11, 2015 at 8:56 AM, Giebner, Sascha <
> > > > > > Sascha.Giebner@bautzen-it.de> wrote:
> > > > > >
> > > > > >> Hey Mike,
> > > > > >>
> > > > > >> thanks for the hint. Would you mind sharing these instructions
> > with
> > > > me?
> > > > > ;)
> > > > > >>
> > > > > >> Thx and best regards,
> > > > > >> Sascha
> > > > > >> ________________________________________
> > > > > >> From: Mike Tutkowski [mike.tutkowski@solidfire.com]
> > > > > >> Sent: Wednesday, November 11, 2015 3:25 PM
> > > > > >> To: dev@cloudstack.apache.org
> > > > > >> Subject: Re: distribution of Cloudstack API plugins
> > > > > >>
> > > > > >> What I have always done is build the JAR file myself and then
> > > provide
> > > > to
> > > > > >> the third party instructions on where it goes (and that to make
> > use
> > > of
> > > > > it,
> > > > > >> it does require a reboot of the management server).
> > > > > >>
> > > > > >> On Wed, Nov 11, 2015 at 6:54 AM, Giebner, Sascha <
> > > > > >> Sascha.Giebner@bautzen-it.de> wrote:
> > > > > >>
> > > > > >> > Hello everyone,
> > > > > >> >
> > > > > >> > I have a question: After successfully implementing a
> Cloudstack
> > > API
> > > > > >> plugin
> > > > > >> > (no UI plugin), how would one go about sharing the results
> with
> > a
> > > > > third
> > > > > >> > party?
> > > > > >> >
> > > > > >> > Is the only way to add the changes and rebuild cloudstack?
> > > > > >> >
> > > > > >> > Or is there a possibility to somehow package a plugin and add
> it
> > > > > >> > dynamically to a running cloudstack instance?
> > > > > >> >
> > > > > >> > Or in general what would be the easiest way to prepare a
> plugin
> > > for
> > > > a
> > > > > >> > simple end-user-installation?
> > > > > >> >
> > > > > >> > Thx a bunch,
> > > > > >> > Sascha Giebner
> > > > > >> >
> > > > > >> > --
> > > > > >> > This email was Virus checked by UTM 9. http://www.sophos.com
> > > > > >> >
> > > > > >>
> > > > > >>
> > > > > >>
> > > > > >> --
> > > > > >> *Mike Tutkowski*
> > > > > >> *Senior CloudStack Developer, SolidFire Inc.*
> > > > > >> e: mike.tutkowski@solidfire.com
> > > > > >> o: 303.746.7302
> > > > > >> Advancing the way the world uses the cloud
> > > > > >> <http://solidfire.com/solution/overview/?video=play>*™*
> > > > > >>
> > > > > >> --
> > > > > >> This email was Virus checked by UTM 9. http://www.sophos.com
> > > > > >>
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > *Mike Tutkowski*
> > > > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > > > e: mike.tutkowski@solidfire.com
> > > > > > o: 303.746.7302
> > > > > > Advancing the way the world uses the cloud
> > > > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > *Mike Tutkowski*
> > > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > > e: mike.tutkowski@solidfire.com
> > > > > o: 303.746.7302
> > > > > Advancing the way the world uses the cloud
> > > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > *Mike Tutkowski*
> > > *Senior CloudStack Developer, SolidFire Inc.*
> > > e: mike.tutkowski@solidfire.com
> > > o: 303.746.7302
> > > Advancing the way the world uses the cloud
> > > <http://solidfire.com/solution/overview/?video=play>*™*
> > >
> >
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud
> <http://solidfire.com/solution/overview/?video=play>*™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://solidfire.com/solution/overview/?video=play>*™*

RE: distribution of Cloudstack API plugins

Posted by "Schubert, Sven" <Sv...@bautzen-it.de>.
Hello Mike,

the video is great. One thing is missing for me though. How do I build the jar file? I tried the standard mvn ... install command after adding a plugin, but then mvn tries to find the jar in the repository instead of compiling it. Can you help me out?

Regards,
Sven
________________________________________
From: Mike Tutkowski [mike.tutkowski@solidfire.com]
Sent: Wednesday, November 11, 2015 21:18
To: dev@cloudstack.apache.org
Subject: Re: distribution of Cloudstack API plugins

The fact that that annotation can be used instead of commands.properties is
not included in my video, as I had learned about that after that
presentation, so it's great you pointed it out as it does make the work of
installing an API plug-in easier. :)

On Wed, Nov 11, 2015 at 1:15 PM, Marcus <sh...@gmail.com> wrote:

> I have found managing commands.properties pretty painful, so figuring that
> out was a huge relief.
>
> On Wed, Nov 11, 2015 at 11:32 AM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
> > Good point, Marcus - thanks!
> >
> > On Wed, Nov 11, 2015 at 12:30 PM, Marcus <sh...@gmail.com> wrote:
> >
> > > Note you don't have to edit commands.properties if your API command has
> > the
> > > APICommand annotation:
> > >
> > > @APICommand(name = "getTimeOfDay",
> > >
> > >             description = "get time of day",
> > >
> > >             responseView = ResponseView.Restricted,
> > >
> > >             responseObject = GetTimeOfDayResponse.class,
> > >
> > >             authorized = {RoleType.Admin})
> > >
> > > On Wed, Nov 11, 2015 at 11:26 AM, Mike Tutkowski <
> > > mike.tutkowski@solidfire.com> wrote:
> > >
> > > > It sounds like you've already developed your API plug-in, so perhaps
> > this
> > > > video won't be super useful to you, but - just in case - here's my
> > > > presentation on this topic from the CloudStack Collaboration
> Conference
> > > in
> > > > Dublin, which took place last month:
> > > >
> > > >
> > > >
> > >
> >
> https://www.youtube.com/watch?v=J6N1sf43psw&list=PLGeM09tlguZSeNyOyQKJHNX4pxgK-yoTA&index=8
> > > >
> > > > On Wed, Nov 11, 2015 at 12:23 PM, Mike Tutkowski <
> > > > mike.tutkowski@solidfire.com> wrote:
> > > >
> > > > > No problem. There's actually very little for the customer to do:
> > > > >
> > > > > *Add to commands.properties (located in
> > > > > /usr/share/cloudstack-management/webapps/client/WEB-INF/classes).
> > (The
> > > > > vendor can provide these lines (API command = permission level) to
> > > you.)*
> > > > >
> > > > > *Place the new JAR file in
> > > > > /usr/share/cloudstack-management/webapps/client/WEB-INF/lib.*
> > > > >
> > > > > *Reboot the management server.*
> > > > >
> > > > > On Wed, Nov 11, 2015 at 8:56 AM, Giebner, Sascha <
> > > > > Sascha.Giebner@bautzen-it.de> wrote:
> > > > >
> > > > >> Hey Mike,
> > > > >>
> > > > >> thanks for the hint. Would you mind sharing these instructions
> with
> > > me?
> > > > ;)
> > > > >>
> > > > >> Thx and best regards,
> > > > >> Sascha
> > > > >> ________________________________________
> > > > >> From: Mike Tutkowski [mike.tutkowski@solidfire.com]
> > > > >> Sent: Wednesday, November 11, 2015 3:25 PM
> > > > >> To: dev@cloudstack.apache.org
> > > > >> Subject: Re: distribution of Cloudstack API plugins
> > > > >>
> > > > >> What I have always done is build the JAR file myself and then
> > provide
> > > to
> > > > >> the third party instructions on where it goes (and that to make
> use
> > of
> > > > it,
> > > > >> it does require a reboot of the management server).
> > > > >>
> > > > >> On Wed, Nov 11, 2015 at 6:54 AM, Giebner, Sascha <
> > > > >> Sascha.Giebner@bautzen-it.de> wrote:
> > > > >>
> > > > >> > Hello everyone,
> > > > >> >
> > > > >> > I have a question: After successfully implementing a Cloudstack
> > API
> > > > >> plugin
> > > > >> > (no UI plugin), how would one go about sharing the results with
> a
> > > > third
> > > > >> > party?
> > > > >> >
> > > > >> > Is the only way to add the changes and rebuild cloudstack?
> > > > >> >
> > > > >> > Or is there a possibility to somehow package a plugin and add it
> > > > >> > dynamically to a running cloudstack instance?
> > > > >> >
> > > > >> > Or in general what would be the easiest way to prepare a plugin
> > for
> > > a
> > > > >> > simple end-user-installation?
> > > > >> >
> > > > >> > Thx a bunch,
> > > > >> > Sascha Giebner
> > > > >> >
> > > > >> > --
> > > > >> > This email was Virus checked by UTM 9. http://www.sophos.com
> > > > >> >
> > > > >>
> > > > >>
> > > > >>
> > > > >> --
> > > > >> *Mike Tutkowski*
> > > > >> *Senior CloudStack Developer, SolidFire Inc.*
> > > > >> e: mike.tutkowski@solidfire.com
> > > > >> o: 303.746.7302
> > > > >> Advancing the way the world uses the cloud
> > > > >> <http://solidfire.com/solution/overview/?video=play>*™*
> > > > >>
> > > > >> --
> > > > >> This email was Virus checked by UTM 9. http://www.sophos.com
> > > > >>
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > *Mike Tutkowski*
> > > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > > e: mike.tutkowski@solidfire.com
> > > > > o: 303.746.7302
> > > > > Advancing the way the world uses the cloud
> > > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > *Mike Tutkowski*
> > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > e: mike.tutkowski@solidfire.com
> > > > o: 303.746.7302
> > > > Advancing the way the world uses the cloud
> > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > >
> > >
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the cloud
> > <http://solidfire.com/solution/overview/?video=play>*™*
> >
>



--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://solidfire.com/solution/overview/?video=play>*™*

Re: distribution of Cloudstack API plugins

Posted by Mike Tutkowski <mi...@solidfire.com>.
The fact that that annotation can be used instead of commands.properties is
not included in my video, as I had learned about that after that
presentation, so it's great you pointed it out as it does make the work of
installing an API plug-in easier. :)

On Wed, Nov 11, 2015 at 1:15 PM, Marcus <sh...@gmail.com> wrote:

> I have found managing commands.properties pretty painful, so figuring that
> out was a huge relief.
>
> On Wed, Nov 11, 2015 at 11:32 AM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
> > Good point, Marcus - thanks!
> >
> > On Wed, Nov 11, 2015 at 12:30 PM, Marcus <sh...@gmail.com> wrote:
> >
> > > Note you don't have to edit commands.properties if your API command has
> > the
> > > APICommand annotation:
> > >
> > > @APICommand(name = "getTimeOfDay",
> > >
> > >             description = "get time of day",
> > >
> > >             responseView = ResponseView.Restricted,
> > >
> > >             responseObject = GetTimeOfDayResponse.class,
> > >
> > >             authorized = {RoleType.Admin})
> > >
> > > On Wed, Nov 11, 2015 at 11:26 AM, Mike Tutkowski <
> > > mike.tutkowski@solidfire.com> wrote:
> > >
> > > > It sounds like you've already developed your API plug-in, so perhaps
> > this
> > > > video won't be super useful to you, but - just in case - here's my
> > > > presentation on this topic from the CloudStack Collaboration
> Conference
> > > in
> > > > Dublin, which took place last month:
> > > >
> > > >
> > > >
> > >
> >
> https://www.youtube.com/watch?v=J6N1sf43psw&list=PLGeM09tlguZSeNyOyQKJHNX4pxgK-yoTA&index=8
> > > >
> > > > On Wed, Nov 11, 2015 at 12:23 PM, Mike Tutkowski <
> > > > mike.tutkowski@solidfire.com> wrote:
> > > >
> > > > > No problem. There's actually very little for the customer to do:
> > > > >
> > > > > *Add to commands.properties (located in
> > > > > /usr/share/cloudstack-management/webapps/client/WEB-INF/classes).
> > (The
> > > > > vendor can provide these lines (API command = permission level) to
> > > you.)*
> > > > >
> > > > > *Place the new JAR file in
> > > > > /usr/share/cloudstack-management/webapps/client/WEB-INF/lib.*
> > > > >
> > > > > *Reboot the management server.*
> > > > >
> > > > > On Wed, Nov 11, 2015 at 8:56 AM, Giebner, Sascha <
> > > > > Sascha.Giebner@bautzen-it.de> wrote:
> > > > >
> > > > >> Hey Mike,
> > > > >>
> > > > >> thanks for the hint. Would you mind sharing these instructions
> with
> > > me?
> > > > ;)
> > > > >>
> > > > >> Thx and best regards,
> > > > >> Sascha
> > > > >> ________________________________________
> > > > >> From: Mike Tutkowski [mike.tutkowski@solidfire.com]
> > > > >> Sent: Wednesday, November 11, 2015 3:25 PM
> > > > >> To: dev@cloudstack.apache.org
> > > > >> Subject: Re: distribution of Cloudstack API plugins
> > > > >>
> > > > >> What I have always done is build the JAR file myself and then
> > provide
> > > to
> > > > >> the third party instructions on where it goes (and that to make
> use
> > of
> > > > it,
> > > > >> it does require a reboot of the management server).
> > > > >>
> > > > >> On Wed, Nov 11, 2015 at 6:54 AM, Giebner, Sascha <
> > > > >> Sascha.Giebner@bautzen-it.de> wrote:
> > > > >>
> > > > >> > Hello everyone,
> > > > >> >
> > > > >> > I have a question: After successfully implementing a Cloudstack
> > API
> > > > >> plugin
> > > > >> > (no UI plugin), how would one go about sharing the results with
> a
> > > > third
> > > > >> > party?
> > > > >> >
> > > > >> > Is the only way to add the changes and rebuild cloudstack?
> > > > >> >
> > > > >> > Or is there a possibility to somehow package a plugin and add it
> > > > >> > dynamically to a running cloudstack instance?
> > > > >> >
> > > > >> > Or in general what would be the easiest way to prepare a plugin
> > for
> > > a
> > > > >> > simple end-user-installation?
> > > > >> >
> > > > >> > Thx a bunch,
> > > > >> > Sascha Giebner
> > > > >> >
> > > > >> > --
> > > > >> > This email was Virus checked by UTM 9. http://www.sophos.com
> > > > >> >
> > > > >>
> > > > >>
> > > > >>
> > > > >> --
> > > > >> *Mike Tutkowski*
> > > > >> *Senior CloudStack Developer, SolidFire Inc.*
> > > > >> e: mike.tutkowski@solidfire.com
> > > > >> o: 303.746.7302
> > > > >> Advancing the way the world uses the cloud
> > > > >> <http://solidfire.com/solution/overview/?video=play>*™*
> > > > >>
> > > > >> --
> > > > >> This email was Virus checked by UTM 9. http://www.sophos.com
> > > > >>
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > *Mike Tutkowski*
> > > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > > e: mike.tutkowski@solidfire.com
> > > > > o: 303.746.7302
> > > > > Advancing the way the world uses the cloud
> > > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > *Mike Tutkowski*
> > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > e: mike.tutkowski@solidfire.com
> > > > o: 303.746.7302
> > > > Advancing the way the world uses the cloud
> > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > >
> > >
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the cloud
> > <http://solidfire.com/solution/overview/?video=play>*™*
> >
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://solidfire.com/solution/overview/?video=play>*™*

Re: distribution of Cloudstack API plugins

Posted by Marcus <sh...@gmail.com>.
I have found managing commands.properties pretty painful, so figuring that
out was a huge relief.

On Wed, Nov 11, 2015 at 11:32 AM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> Good point, Marcus - thanks!
>
> On Wed, Nov 11, 2015 at 12:30 PM, Marcus <sh...@gmail.com> wrote:
>
> > Note you don't have to edit commands.properties if your API command has
> the
> > APICommand annotation:
> >
> > @APICommand(name = "getTimeOfDay",
> >
> >             description = "get time of day",
> >
> >             responseView = ResponseView.Restricted,
> >
> >             responseObject = GetTimeOfDayResponse.class,
> >
> >             authorized = {RoleType.Admin})
> >
> > On Wed, Nov 11, 2015 at 11:26 AM, Mike Tutkowski <
> > mike.tutkowski@solidfire.com> wrote:
> >
> > > It sounds like you've already developed your API plug-in, so perhaps
> this
> > > video won't be super useful to you, but - just in case - here's my
> > > presentation on this topic from the CloudStack Collaboration Conference
> > in
> > > Dublin, which took place last month:
> > >
> > >
> > >
> >
> https://www.youtube.com/watch?v=J6N1sf43psw&list=PLGeM09tlguZSeNyOyQKJHNX4pxgK-yoTA&index=8
> > >
> > > On Wed, Nov 11, 2015 at 12:23 PM, Mike Tutkowski <
> > > mike.tutkowski@solidfire.com> wrote:
> > >
> > > > No problem. There's actually very little for the customer to do:
> > > >
> > > > *Add to commands.properties (located in
> > > > /usr/share/cloudstack-management/webapps/client/WEB-INF/classes).
> (The
> > > > vendor can provide these lines (API command = permission level) to
> > you.)*
> > > >
> > > > *Place the new JAR file in
> > > > /usr/share/cloudstack-management/webapps/client/WEB-INF/lib.*
> > > >
> > > > *Reboot the management server.*
> > > >
> > > > On Wed, Nov 11, 2015 at 8:56 AM, Giebner, Sascha <
> > > > Sascha.Giebner@bautzen-it.de> wrote:
> > > >
> > > >> Hey Mike,
> > > >>
> > > >> thanks for the hint. Would you mind sharing these instructions with
> > me?
> > > ;)
> > > >>
> > > >> Thx and best regards,
> > > >> Sascha
> > > >> ________________________________________
> > > >> From: Mike Tutkowski [mike.tutkowski@solidfire.com]
> > > >> Sent: Wednesday, November 11, 2015 3:25 PM
> > > >> To: dev@cloudstack.apache.org
> > > >> Subject: Re: distribution of Cloudstack API plugins
> > > >>
> > > >> What I have always done is build the JAR file myself and then
> provide
> > to
> > > >> the third party instructions on where it goes (and that to make use
> of
> > > it,
> > > >> it does require a reboot of the management server).
> > > >>
> > > >> On Wed, Nov 11, 2015 at 6:54 AM, Giebner, Sascha <
> > > >> Sascha.Giebner@bautzen-it.de> wrote:
> > > >>
> > > >> > Hello everyone,
> > > >> >
> > > >> > I have a question: After successfully implementing a Cloudstack
> API
> > > >> plugin
> > > >> > (no UI plugin), how would one go about sharing the results with a
> > > third
> > > >> > party?
> > > >> >
> > > >> > Is the only way to add the changes and rebuild cloudstack?
> > > >> >
> > > >> > Or is there a possibility to somehow package a plugin and add it
> > > >> > dynamically to a running cloudstack instance?
> > > >> >
> > > >> > Or in general what would be the easiest way to prepare a plugin
> for
> > a
> > > >> > simple end-user-installation?
> > > >> >
> > > >> > Thx a bunch,
> > > >> > Sascha Giebner
> > > >> >
> > > >> > --
> > > >> > This email was Virus checked by UTM 9. http://www.sophos.com
> > > >> >
> > > >>
> > > >>
> > > >>
> > > >> --
> > > >> *Mike Tutkowski*
> > > >> *Senior CloudStack Developer, SolidFire Inc.*
> > > >> e: mike.tutkowski@solidfire.com
> > > >> o: 303.746.7302
> > > >> Advancing the way the world uses the cloud
> > > >> <http://solidfire.com/solution/overview/?video=play>*™*
> > > >>
> > > >> --
> > > >> This email was Virus checked by UTM 9. http://www.sophos.com
> > > >>
> > > >
> > > >
> > > >
> > > > --
> > > > *Mike Tutkowski*
> > > > *Senior CloudStack Developer, SolidFire Inc.*
> > > > e: mike.tutkowski@solidfire.com
> > > > o: 303.746.7302
> > > > Advancing the way the world uses the cloud
> > > > <http://solidfire.com/solution/overview/?video=play>*™*
> > > >
> > >
> > >
> > >
> > > --
> > > *Mike Tutkowski*
> > > *Senior CloudStack Developer, SolidFire Inc.*
> > > e: mike.tutkowski@solidfire.com
> > > o: 303.746.7302
> > > Advancing the way the world uses the cloud
> > > <http://solidfire.com/solution/overview/?video=play>*™*
> > >
> >
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud
> <http://solidfire.com/solution/overview/?video=play>*™*
>

Re: distribution of Cloudstack API plugins

Posted by Mike Tutkowski <mi...@solidfire.com>.
Good point, Marcus - thanks!

On Wed, Nov 11, 2015 at 12:30 PM, Marcus <sh...@gmail.com> wrote:

> Note you don't have to edit commands.properties if your API command has the
> APICommand annotation:
>
> @APICommand(name = "getTimeOfDay",
>
>             description = "get time of day",
>
>             responseView = ResponseView.Restricted,
>
>             responseObject = GetTimeOfDayResponse.class,
>
>             authorized = {RoleType.Admin})
>
> On Wed, Nov 11, 2015 at 11:26 AM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
> > It sounds like you've already developed your API plug-in, so perhaps this
> > video won't be super useful to you, but - just in case - here's my
> > presentation on this topic from the CloudStack Collaboration Conference
> in
> > Dublin, which took place last month:
> >
> >
> >
> https://www.youtube.com/watch?v=J6N1sf43psw&list=PLGeM09tlguZSeNyOyQKJHNX4pxgK-yoTA&index=8
> >
> > On Wed, Nov 11, 2015 at 12:23 PM, Mike Tutkowski <
> > mike.tutkowski@solidfire.com> wrote:
> >
> > > No problem. There's actually very little for the customer to do:
> > >
> > > *Add to commands.properties (located in
> > > /usr/share/cloudstack-management/webapps/client/WEB-INF/classes). (The
> > > vendor can provide these lines (API command = permission level) to
> you.)*
> > >
> > > *Place the new JAR file in
> > > /usr/share/cloudstack-management/webapps/client/WEB-INF/lib.*
> > >
> > > *Reboot the management server.*
> > >
> > > On Wed, Nov 11, 2015 at 8:56 AM, Giebner, Sascha <
> > > Sascha.Giebner@bautzen-it.de> wrote:
> > >
> > >> Hey Mike,
> > >>
> > >> thanks for the hint. Would you mind sharing these instructions with
> me?
> > ;)
> > >>
> > >> Thx and best regards,
> > >> Sascha
> > >> ________________________________________
> > >> From: Mike Tutkowski [mike.tutkowski@solidfire.com]
> > >> Sent: Wednesday, November 11, 2015 3:25 PM
> > >> To: dev@cloudstack.apache.org
> > >> Subject: Re: distribution of Cloudstack API plugins
> > >>
> > >> What I have always done is build the JAR file myself and then provide
> to
> > >> the third party instructions on where it goes (and that to make use of
> > it,
> > >> it does require a reboot of the management server).
> > >>
> > >> On Wed, Nov 11, 2015 at 6:54 AM, Giebner, Sascha <
> > >> Sascha.Giebner@bautzen-it.de> wrote:
> > >>
> > >> > Hello everyone,
> > >> >
> > >> > I have a question: After successfully implementing a Cloudstack API
> > >> plugin
> > >> > (no UI plugin), how would one go about sharing the results with a
> > third
> > >> > party?
> > >> >
> > >> > Is the only way to add the changes and rebuild cloudstack?
> > >> >
> > >> > Or is there a possibility to somehow package a plugin and add it
> > >> > dynamically to a running cloudstack instance?
> > >> >
> > >> > Or in general what would be the easiest way to prepare a plugin for
> a
> > >> > simple end-user-installation?
> > >> >
> > >> > Thx a bunch,
> > >> > Sascha Giebner
> > >> >
> > >> > --
> > >> > This email was Virus checked by UTM 9. http://www.sophos.com
> > >> >
> > >>
> > >>
> > >>
> > >> --
> > >> *Mike Tutkowski*
> > >> *Senior CloudStack Developer, SolidFire Inc.*
> > >> e: mike.tutkowski@solidfire.com
> > >> o: 303.746.7302
> > >> Advancing the way the world uses the cloud
> > >> <http://solidfire.com/solution/overview/?video=play>*™*
> > >>
> > >> --
> > >> This email was Virus checked by UTM 9. http://www.sophos.com
> > >>
> > >
> > >
> > >
> > > --
> > > *Mike Tutkowski*
> > > *Senior CloudStack Developer, SolidFire Inc.*
> > > e: mike.tutkowski@solidfire.com
> > > o: 303.746.7302
> > > Advancing the way the world uses the cloud
> > > <http://solidfire.com/solution/overview/?video=play>*™*
> > >
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the cloud
> > <http://solidfire.com/solution/overview/?video=play>*™*
> >
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://solidfire.com/solution/overview/?video=play>*™*

Re: distribution of Cloudstack API plugins

Posted by Marcus <sh...@gmail.com>.
Note you don't have to edit commands.properties if your API command has the
APICommand annotation:

@APICommand(name = "getTimeOfDay",

            description = "get time of day",

            responseView = ResponseView.Restricted,

            responseObject = GetTimeOfDayResponse.class,

            authorized = {RoleType.Admin})

On Wed, Nov 11, 2015 at 11:26 AM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> It sounds like you've already developed your API plug-in, so perhaps this
> video won't be super useful to you, but - just in case - here's my
> presentation on this topic from the CloudStack Collaboration Conference in
> Dublin, which took place last month:
>
>
> https://www.youtube.com/watch?v=J6N1sf43psw&list=PLGeM09tlguZSeNyOyQKJHNX4pxgK-yoTA&index=8
>
> On Wed, Nov 11, 2015 at 12:23 PM, Mike Tutkowski <
> mike.tutkowski@solidfire.com> wrote:
>
> > No problem. There's actually very little for the customer to do:
> >
> > *Add to commands.properties (located in
> > /usr/share/cloudstack-management/webapps/client/WEB-INF/classes). (The
> > vendor can provide these lines (API command = permission level) to you.)*
> >
> > *Place the new JAR file in
> > /usr/share/cloudstack-management/webapps/client/WEB-INF/lib.*
> >
> > *Reboot the management server.*
> >
> > On Wed, Nov 11, 2015 at 8:56 AM, Giebner, Sascha <
> > Sascha.Giebner@bautzen-it.de> wrote:
> >
> >> Hey Mike,
> >>
> >> thanks for the hint. Would you mind sharing these instructions with me?
> ;)
> >>
> >> Thx and best regards,
> >> Sascha
> >> ________________________________________
> >> From: Mike Tutkowski [mike.tutkowski@solidfire.com]
> >> Sent: Wednesday, November 11, 2015 3:25 PM
> >> To: dev@cloudstack.apache.org
> >> Subject: Re: distribution of Cloudstack API plugins
> >>
> >> What I have always done is build the JAR file myself and then provide to
> >> the third party instructions on where it goes (and that to make use of
> it,
> >> it does require a reboot of the management server).
> >>
> >> On Wed, Nov 11, 2015 at 6:54 AM, Giebner, Sascha <
> >> Sascha.Giebner@bautzen-it.de> wrote:
> >>
> >> > Hello everyone,
> >> >
> >> > I have a question: After successfully implementing a Cloudstack API
> >> plugin
> >> > (no UI plugin), how would one go about sharing the results with a
> third
> >> > party?
> >> >
> >> > Is the only way to add the changes and rebuild cloudstack?
> >> >
> >> > Or is there a possibility to somehow package a plugin and add it
> >> > dynamically to a running cloudstack instance?
> >> >
> >> > Or in general what would be the easiest way to prepare a plugin for a
> >> > simple end-user-installation?
> >> >
> >> > Thx a bunch,
> >> > Sascha Giebner
> >> >
> >> > --
> >> > This email was Virus checked by UTM 9. http://www.sophos.com
> >> >
> >>
> >>
> >>
> >> --
> >> *Mike Tutkowski*
> >> *Senior CloudStack Developer, SolidFire Inc.*
> >> e: mike.tutkowski@solidfire.com
> >> o: 303.746.7302
> >> Advancing the way the world uses the cloud
> >> <http://solidfire.com/solution/overview/?video=play>*™*
> >>
> >> --
> >> This email was Virus checked by UTM 9. http://www.sophos.com
> >>
> >
> >
> >
> > --
> > *Mike Tutkowski*
> > *Senior CloudStack Developer, SolidFire Inc.*
> > e: mike.tutkowski@solidfire.com
> > o: 303.746.7302
> > Advancing the way the world uses the cloud
> > <http://solidfire.com/solution/overview/?video=play>*™*
> >
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud
> <http://solidfire.com/solution/overview/?video=play>*™*
>

Re: distribution of Cloudstack API plugins

Posted by Mike Tutkowski <mi...@solidfire.com>.
It sounds like you've already developed your API plug-in, so perhaps this
video won't be super useful to you, but - just in case - here's my
presentation on this topic from the CloudStack Collaboration Conference in
Dublin, which took place last month:

https://www.youtube.com/watch?v=J6N1sf43psw&list=PLGeM09tlguZSeNyOyQKJHNX4pxgK-yoTA&index=8

On Wed, Nov 11, 2015 at 12:23 PM, Mike Tutkowski <
mike.tutkowski@solidfire.com> wrote:

> No problem. There's actually very little for the customer to do:
>
> *Add to commands.properties (located in
> /usr/share/cloudstack-management/webapps/client/WEB-INF/classes). (The
> vendor can provide these lines (API command = permission level) to you.)*
>
> *Place the new JAR file in
> /usr/share/cloudstack-management/webapps/client/WEB-INF/lib.*
>
> *Reboot the management server.*
>
> On Wed, Nov 11, 2015 at 8:56 AM, Giebner, Sascha <
> Sascha.Giebner@bautzen-it.de> wrote:
>
>> Hey Mike,
>>
>> thanks for the hint. Would you mind sharing these instructions with me? ;)
>>
>> Thx and best regards,
>> Sascha
>> ________________________________________
>> From: Mike Tutkowski [mike.tutkowski@solidfire.com]
>> Sent: Wednesday, November 11, 2015 3:25 PM
>> To: dev@cloudstack.apache.org
>> Subject: Re: distribution of Cloudstack API plugins
>>
>> What I have always done is build the JAR file myself and then provide to
>> the third party instructions on where it goes (and that to make use of it,
>> it does require a reboot of the management server).
>>
>> On Wed, Nov 11, 2015 at 6:54 AM, Giebner, Sascha <
>> Sascha.Giebner@bautzen-it.de> wrote:
>>
>> > Hello everyone,
>> >
>> > I have a question: After successfully implementing a Cloudstack API
>> plugin
>> > (no UI plugin), how would one go about sharing the results with a third
>> > party?
>> >
>> > Is the only way to add the changes and rebuild cloudstack?
>> >
>> > Or is there a possibility to somehow package a plugin and add it
>> > dynamically to a running cloudstack instance?
>> >
>> > Or in general what would be the easiest way to prepare a plugin for a
>> > simple end-user-installation?
>> >
>> > Thx a bunch,
>> > Sascha Giebner
>> >
>> > --
>> > This email was Virus checked by UTM 9. http://www.sophos.com
>> >
>>
>>
>>
>> --
>> *Mike Tutkowski*
>> *Senior CloudStack Developer, SolidFire Inc.*
>> e: mike.tutkowski@solidfire.com
>> o: 303.746.7302
>> Advancing the way the world uses the cloud
>> <http://solidfire.com/solution/overview/?video=play>*™*
>>
>> --
>> This email was Virus checked by UTM 9. http://www.sophos.com
>>
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud
> <http://solidfire.com/solution/overview/?video=play>*™*
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://solidfire.com/solution/overview/?video=play>*™*

Re: distribution of Cloudstack API plugins

Posted by Mike Tutkowski <mi...@solidfire.com>.
No problem. There's actually very little for the customer to do:

*Add to commands.properties (located in
/usr/share/cloudstack-management/webapps/client/WEB-INF/classes). (The
vendor can provide these lines (API command = permission level) to you.)*

*Place the new JAR file in
/usr/share/cloudstack-management/webapps/client/WEB-INF/lib.*

*Reboot the management server.*

On Wed, Nov 11, 2015 at 8:56 AM, Giebner, Sascha <
Sascha.Giebner@bautzen-it.de> wrote:

> Hey Mike,
>
> thanks for the hint. Would you mind sharing these instructions with me? ;)
>
> Thx and best regards,
> Sascha
> ________________________________________
> From: Mike Tutkowski [mike.tutkowski@solidfire.com]
> Sent: Wednesday, November 11, 2015 3:25 PM
> To: dev@cloudstack.apache.org
> Subject: Re: distribution of Cloudstack API plugins
>
> What I have always done is build the JAR file myself and then provide to
> the third party instructions on where it goes (and that to make use of it,
> it does require a reboot of the management server).
>
> On Wed, Nov 11, 2015 at 6:54 AM, Giebner, Sascha <
> Sascha.Giebner@bautzen-it.de> wrote:
>
> > Hello everyone,
> >
> > I have a question: After successfully implementing a Cloudstack API
> plugin
> > (no UI plugin), how would one go about sharing the results with a third
> > party?
> >
> > Is the only way to add the changes and rebuild cloudstack?
> >
> > Or is there a possibility to somehow package a plugin and add it
> > dynamically to a running cloudstack instance?
> >
> > Or in general what would be the easiest way to prepare a plugin for a
> > simple end-user-installation?
> >
> > Thx a bunch,
> > Sascha Giebner
> >
> > --
> > This email was Virus checked by UTM 9. http://www.sophos.com
> >
>
>
>
> --
> *Mike Tutkowski*
> *Senior CloudStack Developer, SolidFire Inc.*
> e: mike.tutkowski@solidfire.com
> o: 303.746.7302
> Advancing the way the world uses the cloud
> <http://solidfire.com/solution/overview/?video=play>*™*
>
> --
> This email was Virus checked by UTM 9. http://www.sophos.com
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://solidfire.com/solution/overview/?video=play>*™*

RE: distribution of Cloudstack API plugins

Posted by "Giebner, Sascha" <Sa...@bautzen-it.de>.
Hey Mike,

thanks for the hint. Would you mind sharing these instructions with me? ;)

Thx and best regards,
Sascha
________________________________________
From: Mike Tutkowski [mike.tutkowski@solidfire.com]
Sent: Wednesday, November 11, 2015 3:25 PM
To: dev@cloudstack.apache.org
Subject: Re: distribution of Cloudstack API plugins

What I have always done is build the JAR file myself and then provide to
the third party instructions on where it goes (and that to make use of it,
it does require a reboot of the management server).

On Wed, Nov 11, 2015 at 6:54 AM, Giebner, Sascha <
Sascha.Giebner@bautzen-it.de> wrote:

> Hello everyone,
>
> I have a question: After successfully implementing a Cloudstack API plugin
> (no UI plugin), how would one go about sharing the results with a third
> party?
>
> Is the only way to add the changes and rebuild cloudstack?
>
> Or is there a possibility to somehow package a plugin and add it
> dynamically to a running cloudstack instance?
>
> Or in general what would be the easiest way to prepare a plugin for a
> simple end-user-installation?
>
> Thx a bunch,
> Sascha Giebner
>
> --
> This email was Virus checked by UTM 9. http://www.sophos.com
>



--
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://solidfire.com/solution/overview/?video=play>*™*

--
This email was Virus checked by UTM 9. http://www.sophos.com

Re: distribution of Cloudstack API plugins

Posted by Mike Tutkowski <mi...@solidfire.com>.
What I have always done is build the JAR file myself and then provide to
the third party instructions on where it goes (and that to make use of it,
it does require a reboot of the management server).

On Wed, Nov 11, 2015 at 6:54 AM, Giebner, Sascha <
Sascha.Giebner@bautzen-it.de> wrote:

> Hello everyone,
>
> I have a question: After successfully implementing a Cloudstack API plugin
> (no UI plugin), how would one go about sharing the results with a third
> party?
>
> Is the only way to add the changes and rebuild cloudstack?
>
> Or is there a possibility to somehow package a plugin and add it
> dynamically to a running cloudstack instance?
>
> Or in general what would be the easiest way to prepare a plugin for a
> simple end-user-installation?
>
> Thx a bunch,
> Sascha Giebner
>
> --
> This email was Virus checked by UTM 9. http://www.sophos.com
>



-- 
*Mike Tutkowski*
*Senior CloudStack Developer, SolidFire Inc.*
e: mike.tutkowski@solidfire.com
o: 303.746.7302
Advancing the way the world uses the cloud
<http://solidfire.com/solution/overview/?video=play>*™*