Re: [openstack-dev] [fuel][plugin] node_role only need when attribute false - where is the fuel plugin parser code?
Whoops, forgot to add a link, sorry.. Here it is [0] http://paste.openstack.org/show/484552/ On Thu, Jan 21, 2016 at 1:24 PM, Aleksandr Didenko wrote: > Hi, > > I'm working on a plugin for 8.0 atm and this is how it worked for me [0]. > It's a restriction not for node role, it's for other plugin setting, but I > suppose it should work in your case as well. > So in general it should look like: > > condition: "settings:plugin_name.attribute_name.value == false" > > Regards, > Alex > > On Wed, Jan 20, 2016 at 8:07 PM, Matthew Mosesohn > wrote: > >> Hi Nikolas, >> >> I'm not exactly sure about your case, but you should try something like >> this: >> https://github.com/openstack/fuel-plugin-detach-keystone/blob/master/node_roles.yaml#L14-L15 >> restrictions: >> - condition: "settings:opendaylight_plugin:use_external_odl == false" >> - message: "OpenDaylight role can only be used without external ODL" >> >> On Wed, Jan 20, 2016 at 9:41 PM, Nikolas Hermanns < >> nikolas.herma...@ericsson.com> wrote: >> >>> Hey, >>> >>> I am developing on a fuel plugin at the moment. >>> (fuel-plugin-opendaylight) >>> In node_roles.yaml I would like to define something similar to: >>> opendaylight: >>> limits: >>> max: 1 >>> min: if "attributes:use_external_odl == true" then 0 else 1 >>> >>> attributes:use_external_odl comes from the environment_config. Is such >>> thing possible? And where is the code where that logic is actually build >>> up. Which repo is having that? >>> >>> BR Nikolas >>> >>> >>> __ >>> 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 >> >> > __ 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] [fuel][plugin] node_role only need when attribute false - where is the fuel plugin parser code?
Hi, I'm working on a plugin for 8.0 atm and this is how it worked for me [0]. It's a restriction not for node role, it's for other plugin setting, but I suppose it should work in your case as well. So in general it should look like: condition: "settings:plugin_name.attribute_name.value == false" Regards, Alex On Wed, Jan 20, 2016 at 8:07 PM, Matthew Mosesohn wrote: > Hi Nikolas, > > I'm not exactly sure about your case, but you should try something like > this: > https://github.com/openstack/fuel-plugin-detach-keystone/blob/master/node_roles.yaml#L14-L15 > restrictions: > - condition: "settings:opendaylight_plugin:use_external_odl == false" > - message: "OpenDaylight role can only be used without external ODL" > > On Wed, Jan 20, 2016 at 9:41 PM, Nikolas Hermanns < > nikolas.herma...@ericsson.com> wrote: > >> Hey, >> >> I am developing on a fuel plugin at the moment. (fuel-plugin-opendaylight) >> In node_roles.yaml I would like to define something similar to: >> opendaylight: >> limits: >> max: 1 >> min: if "attributes:use_external_odl == true" then 0 else 1 >> >> attributes:use_external_odl comes from the environment_config. Is such >> thing possible? And where is the code where that logic is actually build >> up. Which repo is having that? >> >> BR Nikolas >> >> __ >> 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 > > __ 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] [fuel][plugin] node_role only need when attribute false - where is the fuel plugin parser code?
Hi Nikolas, I'm not exactly sure about your case, but you should try something like this: https://github.com/openstack/fuel-plugin-detach-keystone/blob/master/node_roles.yaml#L14-L15 restrictions: - condition: "settings:opendaylight_plugin:use_external_odl == false" - message: "OpenDaylight role can only be used without external ODL" On Wed, Jan 20, 2016 at 9:41 PM, Nikolas Hermanns < nikolas.herma...@ericsson.com> wrote: > Hey, > > I am developing on a fuel plugin at the moment. (fuel-plugin-opendaylight) > In node_roles.yaml I would like to define something similar to: > opendaylight: > limits: > max: 1 > min: if "attributes:use_external_odl == true" then 0 else 1 > > attributes:use_external_odl comes from the environment_config. Is such > thing possible? And where is the code where that logic is actually build > up. Which repo is having that? > > BR Nikolas > > __ > 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
[openstack-dev] [fuel][plugin] node_role only need when attribute false - where is the fuel plugin parser code?
Hey, I am developing on a fuel plugin at the moment. (fuel-plugin-opendaylight) In node_roles.yaml I would like to define something similar to: opendaylight: limits: max: 1 min: if "attributes:use_external_odl == true" then 0 else 1 attributes:use_external_odl comes from the environment_config. Is such thing possible? And where is the code where that logic is actually build up. Which repo is having that? BR Nikolas __ 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