[root@fuel ~]# fuel nodes
id | status | name | cluster | ip | mac | roles | pending_roles | online | group_id
---|--------|------------------|---------|-----------|-------------------|------------|---------------|--------|---------
2 | ready | Untitled (c4:ac) | 2 | 10.20.0.5 | be:08:13:82:c4:ac | compute | | True | 2
1 | ready | Untitled (21:a5) | 2 | 10.20.0.4 | 7a:01:6d:7c:21:a5 | controller | | True | 2
[root@fuel ~]# fuel openstack-config --upload --env-id 3 --node-id 1 --file test.yaml
Openstack configuration with id 3 has been uploaded from file 'test.yaml'
[root@fuel ~]# fuel openstack-config --list --env-id 2
id | is_active | config_type | cluster_id | node_id | node_role
---|-----------|-------------|------------|---------|----------
1 | True | cluster | 2 | None | None
Expected behavior:
API should check node's cluster id and return an error if they are not equal.
Fix proposed to branch: master /review. openstack. org/254757
Review: https:/