Could not set "conflicts" parameter to everyone at node_roles.yaml
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Released
|
Medium
|
Fuel Python (Deprecated) |
Bug Description
steps to reproduce
1) configure plugin
# cat node_roles.yaml:
lcm:
name: "LCM - controller"
description: "Install LCM controller"
has_primary: true # whether has primary role or not
public_
weight: 1000 # weight that will be used for ordering on fuel ui
conflicts:
- '*'
or:
# cat node_roles.yaml:
lcm:
name: "LCM - controller"
description: "Install LCM controller"
has_primary: true # whether has primary role or not
public_
weight: 1000 # weight that will be used for ordering on fuel ui
conflicts: ['*']
2) configure plugin metadata
# cat metadata.yaml
# Plugin name
name: fuel-plugin-lcm
# Human-readable name for your plugin
title: LCM plugin for Fuel
# Plugin version
version: '1.0.0'
# Description
description: Enables LCM component for deployed MOS cloud (via fuel-library)
# Required fuel version
fuel_version: ['7.0','9.0']
# Specify license of your plugin
licenses: ['Apache License Version 2.0']
# Specify author or company name
authors: ['Mirantis Inc.']
# A link to the plugin's page
homepage: 'https:/
# Specify a group which your plugin implements, possible options:
# network, storage, storage::cinder, storage::glance, hypervisor
groups: []
# The plugin is compatible with releases in the list
releases:
- os: ubuntu
version: 2015.1.0-7.0
mode: ['ha']
deployment_
repository_
- os: ubuntu
version: liberty-9.0
mode: ['ha']
deployment_
repository_
# Version of plugin package
package_version: '3.0.0'
3) build plugin with one of congurations above.
actual result
Nothing of above locks role alone. I am able to assign new role (lcm) to other members.
expected
Could not assign new role to other members.
workaround
build plugin with
lcm:
conflicts: ['*']
install it
edit /var/www/
set it to
conflicts: '*'
fuel plugins --sync
create new environment, enable plugin, now role locked alone
tags: | added: area-plugins |
Changed in fuel: | |
milestone: | none → 9.0 |
assignee: | nobody → Fuel Python Team (fuel-python) |
importance: | Undecided → Medium |
tags: |
added: area-python feature-plugins removed: area-plugins |
Changed in fuel: | |
status: | Incomplete → Confirmed |
tags: | removed: need-info |
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → Andriy Popovych (popovych-andrey) |
status: | Confirmed → Fix Committed |
assignee: | Andriy Popovych (popovych-andrey) → Fuel Python Team (fuel-python) |
Changed in fuel: | |
status: | Fix Committed → Fix Released |
Setting to incomplete.
@Dmitriy, please add a bit more details to the description. What is your use case? Why cannot you just list other roles?