Deploy stucks when new custom role added without deployment tasks
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
High
|
Roman Prykhodchenko |
Bug Description
Steps to reproduce:
1) Setup master node
2) SSH to the master node
3) Create file nginx.yaml with role description:
meta:
description: Install Nginx
name: Nginx
name: nginx
volumes_
- allocate_size: min
id: os
4) Create new role from file with a command:
fuel role --rel 2 --create --file nginx.yaml
5) Go to the Fuel UI and create new environment.
6) Add controller, compute, and new nginx role to the environment.
7) Provide correct configuration for network, settings, etc.
8) Deploy environment.
Expected behaviour:
Deploy will fail, because there is no tasks for new role
Actual behaviour:
Deploy stucks. There is an error in the log:
[7f1a0acca740] (manager) Traceback (most recent call last):
File "/usr/lib/
to_return = method(task, *args, **kwargs)
File "/usr/lib/
orchestrato
File "/usr/lib/
cluster, nodes, ignore_
File "/usr/lib/
cluster, node_group))
File "/usr/lib/
self.
File "/usr/lib/
node['tasks'] = self.graph.
File "/usr/lib/
tasks = self.graph.
File "/usr/lib/
for task in self.predecesso
File "/usr/lib/
return list(self.
File "/usr/lib/
raise NetworkXError("The node %s is not in the digraph."%(n,))
NetworkXError: The node nginx is not in the digraph.
Fuel used:
api: '1.0'
astute_sha: d96a80b63198a57
auth_required: true
build_id: 2015-04-13_22-54-31
build_number: '310'
feature_groups:
- mirantis
fuellib_sha: 8b80657e9ceed8d
fuelmain_sha: 335d3ed09ed79bd
nailgun_sha: d22c074dec091e5
openstack_version: 2014.2-6.1
ostf_sha: c2a76a60ec4ebbd
production: docker
python-
release: '6.1'
release_versions:
2014.2-6.1:
VERSION:
api: '1.0'
astute_sha: d96a80b63198a57
build_id: 2015-04-13_22-54-31
build_number: '310'
feature_
- mirantis
fuellib_sha: 8b80657e9ceed8d
fuelmain_sha: 335d3ed09ed79bd
nailgun_sha: d22c074dec091e5
openstack
ostf_sha: c2a76a60ec4ebbd
production: docker
python-
release: '6.1'
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → Kamil Sambor (ksambor) |
Changed in fuel: | |
status: | Confirmed → In Progress |
Changed in fuel: | |
assignee: | Kamil Sambor (ksambor) → Fuel Python Team (fuel-python) |
status: | In Progress → Confirmed |
Changed in fuel: | |
status: | Confirmed → Triaged |
assignee: | Fuel Python Team (fuel-python) → Roman Prykhodchenko (romcheg) |
Changed in fuel: | |
status: | Triaged → In Progress |
I think this is because we "lost" error handling when added background tasks with mules.
We need to check if that is true