Unexpected behavior when ephemeral "primary"role strategy set to parallel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Invalid
|
Medium
|
Fuel Python (Deprecated) | ||
Mitaka |
Won't Fix
|
Medium
|
Fuel Python (Deprecated) | ||
Newton |
Invalid
|
Medium
|
Fuel Python (Deprecated) |
Bug Description
Unexpected behavior when ephemeral "primary"role strategy set to parallel
primary-<rolename> gets NilClass weight.
Steps to reproduce:
1) Compile plugin with following
deployment_
- id: primary-lcm
type: group
role: [primary-lcm]
tasks: [hiera, globals, tools, logging, netconfig, hosts, deploy_start]
required_for: [lcm]
parameters:
strategy:
type: parallel
- id: lcm
type: group
role: [lcm]
tasks: [hiera, globals, tools, logging, netconfig, hosts, deploy_start]
requires: [primary-lcm]
parameters:
strategy:
type: parallel
- id: lcm-primary-
type: puppet
required_for: [deploy_end]
requires: [hiera, netconfig, hosts, deploy_start]
groups: [primary-lcm]
parameters:
puppet_
puppet_modules: "puppet/
timeout: 600
- id: lcm-controller
type: puppet
required_for: [deploy_end]
requires: [deploy_start, hosts, lcm-primary-
groups: [lcm]
parameters:
puppet_
puppet_modules: "puppet/
timeout: 600
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) Install plugin
3) Enable plugin
4) Deploy new environment with this plugin
You should get empty role weight for 'primary-lcm' role
Strace:
2016-02-19 14:52:46 ERROR [2609] Error running RPC method granular_deploy: comparison of NilClass with 200 failed, trace:
["/usr/
"/usr/
"/usr/
"/usr/
"/usr/
"/usr/
"/usr/
"/usr/
"/usr/
"/usr/
"/usr/
"/usr/
"/usr/
"/usr/
2016-02-19 14:52:46 INFO [2609] Casting message to Nailgun:
{"method"
"args"=>
{"task_
"status"
"error"=>
"Method granular_deploy. comparison of NilClass with 200 failed.\nInspect Astute logs for the details"}}
astute log attached.
Sad, but my fuel diagnostic snapshot is about 300M and could not be attached.
Expected: ephemeral role primary-<rolename> gets integer value weight
tags: | added: area-python |
Changed in fuel: | |
milestone: | none → 9.0 |
assignee: | nobody → Fuel Python Team (fuel-python) |
importance: | Undecided → Medium |
status: | New → Confirmed |
tags: | added: team-enhancements |
Astute.log for debugging