Plugin doesn't have an access to its own data in pre-deployment tasks on master node.
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
In Progress
|
Medium
|
Bulat Gaifullin | ||
8.0.x |
Won't Fix
|
Medium
|
Alexander Kislitsky | ||
Mitaka |
Won't Fix
|
Medium
|
Bulat Gaifullin |
Bug Description
In our current plugins implementation tasks decoupled to several entities - pre-deployment, deployment, post-deployment. Also there several nodes when plugin can be ran, like master node and env nodes. Plugin have an access to cluster data (and to plugin own data) not in all cases. Here the flow:
User press 'Deploy Changes';
1. plugin pre-deployment for master node starts
2. plugin pre-deployment for slave node starts
3. plugin deployment for slave node starts
4. plugin post-deployment for slave node starts
With current approach plugin can't retrieve ANY data about environment on 1 step (but data already exists in DB), but there are plugins which wanted such access - and it's absolutely normal to have it.
So we need to provide for plugin on pre-deployment step on master node data about environment, like CLUSTER_ID, common cluster attributes and plugin attributes from environment_
tags: | added: area-python |
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → Alexander Kislitsky (akislitsky) |
tags: | added: team-bugfix |
Changed in fuel: | |
milestone: | 8.0 → 9.0 |
tags: | added: keep-in-9.0 |
I think for plugin's Master tasks we should put the data which are generated by `get_common_attrs` [1] method.
[1] https:/ /github. com/openstack/ fuel-web/ blob/26c78e1c29 13b8ca194126ca3 8161ff9593daef4 /nailgun/ nailgun/ orchestrator/ deployment_ serializers. py#L108