Re: [openstack-dev] [heat][mistral][deployment] how to add deployment roles

2017-07-06 Thread Dan Trainor
On Mon, Jul 3, 2017 at 7:08 AM, Alex Schultz  wrote:

> On Tue, Jun 27, 2017 at 2:19 PM, Dan Trainor  wrote:
> > Hi -
> >
> > I'm looking for the glue that populates the overcloud role list.
> >
> > I can get a list of roles via 'openstack overcloud role list', however
> I'm
> > looking to create new roles to incorporate in to this list.
> >
> > I got as far as using 'mistral action-update' against what I beleive to
> be
> > the proper action (tripleo.role.list) but am not sure what to use as the
> > source of what I would be updating, not am I  finding any information
> about
> > how that runs and where it gets its data from.  I also had a nice
> exercise
> > pruning the output of 'mistral action-*' commands which was pretty
> > insightful and helped me hone in on what I was looking for, but still
> > uncertain of.
> >
> > Pretty sure I'm missing a few details along the way here, too.
> >
> > Can someone please shed some light on this so I can have a better
> > understanding of the process?
> >
>
> Sorry for the delay in replying (pto). The overcloud roles actions
> operate on a folder. By default this is
> /usr/share/openstack-tripleo-heat-templates/roles. However it does
> provide a command line parameter to change this folder to where ever
> you would like to keep your custom roles.  The docs around this are
> currently up for review[0] but we do have an existing readme in the
> roles folder[1] that has some of this information.  The plan is to
> eventually allow for some mistral actions around roles, but we
> probably won't have that until later.  Right now this is purely a
> tripleoclient function.
>
> Thanks,
> -Alex
>
> [0] https://review.openstack.org/#/c/476236/
> [1] https://github.com/openstack/tripleo-heat-templates/blob/
> master/roles/README.rst
>
>
Alex -

Thanks so much for the reply.  The documentation is spot-on and provides a
great introduction to role manipulation for Overcloud deployment.

Now that I have a better context for what I'm trying to ask, I think I want
to clarify that my request is more in line with the role types that are
available for assignment prior to deployment.

In the TripleO UI, several Roles are available for assigning nodes:  Block
Storage, Ceph Storage, Compute, Controller, and Object Storage.

My goal is to create an additional role for assignment in this dialogue.  I
understand now, based on your feedback and that of Steve Hardy, I can
manipulate roles per the Overcloud deployment.  However, I'm interested in
manipulating the list of roles that are available for assignment per the
UI.  I was hoping the UI was aligned close enough with tripleoclient to
provide a straight-forward interface for this, but I may be wrong.

This might be one for the UI guys.  I'll start pinging them in their
timezone.  But in the mean time if you have any suggestions, I would
appreciate the feedback.

Thanks!
-dant
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [heat][mistral][deployment] how to add deployment roles

2017-07-03 Thread Alex Schultz
On Tue, Jun 27, 2017 at 2:19 PM, Dan Trainor  wrote:
> Hi -
>
> I'm looking for the glue that populates the overcloud role list.
>
> I can get a list of roles via 'openstack overcloud role list', however I'm
> looking to create new roles to incorporate in to this list.
>
> I got as far as using 'mistral action-update' against what I beleive to be
> the proper action (tripleo.role.list) but am not sure what to use as the
> source of what I would be updating, not am I  finding any information about
> how that runs and where it gets its data from.  I also had a nice exercise
> pruning the output of 'mistral action-*' commands which was pretty
> insightful and helped me hone in on what I was looking for, but still
> uncertain of.
>
> Pretty sure I'm missing a few details along the way here, too.
>
> Can someone please shed some light on this so I can have a better
> understanding of the process?
>

Sorry for the delay in replying (pto). The overcloud roles actions
operate on a folder. By default this is
/usr/share/openstack-tripleo-heat-templates/roles. However it does
provide a command line parameter to change this folder to where ever
you would like to keep your custom roles.  The docs around this are
currently up for review[0] but we do have an existing readme in the
roles folder[1] that has some of this information.  The plan is to
eventually allow for some mistral actions around roles, but we
probably won't have that until later.  Right now this is purely a
tripleoclient function.

Thanks,
-Alex

[0] https://review.openstack.org/#/c/476236/
[1] 
https://github.com/openstack/tripleo-heat-templates/blob/master/roles/README.rst

> Thanks!
> -dant
>
>
> __
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [heat][mistral][deployment] how to add deployment roles

2017-06-27 Thread Renat Akhmerov
Hi,

Just a small addition. “mistral action-update” applies only to so-called ad-hoc 
actions which are essentially wrappers written in YAML. You can’t update a 
regular action written in Python and plugged in Mistral with stevedore using 
this command.

Renat Akhmerov
@Nokia

On 28 Jun 2017, 08:03 +0700, wrote:
>
> hone
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [heat][mistral][deployment] how to add deployment roles

2017-06-27 Thread Dan Trainor
HI, Steve -


> I think perhaps the confusion is because this was implemented in
> tripleoclient, and porting it to tripleo-common is not yet completed?
> (Alex can confirm the status of this but it was planned I think).
>
> Related ML discussion which includes links to the patches:
>
> http://lists.openstack.org/pipermail/openstack-dev/2017-June/118157.html
>
> http://lists.openstack.org/pipermail/openstack-dev/2017-June/118213.html
>
>
Thanks for digging this up.  I do vaguely remember seeing this.  This
points me more in the direction I'm looking for.

Thanks!
-dant
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [heat][mistral][deployment] how to add deployment roles

2017-06-27 Thread Steven Hardy
Hi Dan,

On Tue, Jun 27, 2017 at 9:19 PM, Dan Trainor  wrote:
> Hi -
>
> I'm looking for the glue that populates the overcloud role list.
>
> I can get a list of roles via 'openstack overcloud role list', however I'm
> looking to create new roles to incorporate in to this list.
>
> I got as far as using 'mistral action-update' against what I beleive to be
> the proper action (tripleo.role.list) but am not sure what to use as the
> source of what I would be updating, not am I  finding any information about
> how that runs and where it gets its data from.  I also had a nice exercise
> pruning the output of 'mistral action-*' commands which was pretty
> insightful and helped me hone in on what I was looking for, but still
> uncertain of.

I think perhaps the confusion is because this was implemented in
tripleoclient, and porting it to tripleo-common is not yet completed?
(Alex can confirm the status of this but it was planned I think).

Related ML discussion which includes links to the patches:

http://lists.openstack.org/pipermail/openstack-dev/2017-June/118157.html

http://lists.openstack.org/pipermail/openstack-dev/2017-June/118213.html

HTH,

Steve

__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [heat][mistral][deployment] how to add deployment roles

2017-06-27 Thread Dan Trainor
Hi -

I'm looking for the glue that populates the overcloud role list.

I can get a list of roles via 'openstack overcloud role list', however I'm
looking to create new roles to incorporate in to this list.

I got as far as using 'mistral action-update' against what I beleive to be
the proper action (tripleo.role.list) but am not sure what to use as the
source of what I would be updating, not am I  finding any information about
how that runs and where it gets its data from.  I also had a nice exercise
pruning the output of 'mistral action-*' commands which was pretty
insightful and helped me hone in on what I was looking for, but still
uncertain of.

Pretty sure I'm missing a few details along the way here, too.

Can someone please shed some light on this so I can have a better
understanding of the process?

Thanks!
-dant
__
OpenStack Development Mailing List (not for usage questions)
Unsubscribe: openstack-dev-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev