settingsLogin | Registersettings

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

0 votes

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-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
asked Jul 7, 2017 in openstack-dev by Dan_Trainor (520 points)   1

5 Responses

0 votes

Hi Dan,

On Tue, Jun 27, 2017 at 9:19 PM, Dan Trainor dtrainor@redhat.com 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-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Jun 27, 2017 by Steven_Hardy (16,900 points)   2 7 11
0 votes

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-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Jun 28, 2017 by Dan_Trainor (520 points)   1
0 votes

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-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Jun 28, 2017 by renat.akhmerov_at_gm (5,640 points)   2 2 3
0 votes

On Tue, Jun 27, 2017 at 2:19 PM, Dan Trainor dtrainor@redhat.com 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-request@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-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Jul 3, 2017 by aschultz_at_redhat.c (5,800 points)   2 2 4
0 votes

On Mon, Jul 3, 2017 at 7:08 AM, Alex Schultz aschultz@redhat.com wrote:

On Tue, Jun 27, 2017 at 2:19 PM, Dan Trainor dtrainor@redhat.com 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-request@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
responded Jul 7, 2017 by Dan_Trainor (520 points)   1
...