There is no validation of topology
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
fuel-ccp |
In Progress
|
High
|
Mikhail Zhnichkov |
Bug Description
1. Create topology file (the one defined in deploy_config), with node name that is not present in k8s cluster:
# kubectl get nodes
NAME STATUS AGE
127.0.0.1 Ready 22d
# cat /tmp/ccp-
nodes:
node1:
roles:
- controller
- stacklight-
- stacklight-backend
- openvswitch
- compute
roles:
...
2. Try to deploy with the command 'ccp deploy'
Actual result:
2016-09-06 21:06:28.229 9371 CRITICAL fuel-ccp [-] ApiException: (422)
Reason: status code 422
HTTP response headers: HTTPHeaderDict(
HTTP response body: {"kind"
ns.scheduler.
fied when `operator` is 'In' or 'NotIn'
","message"
ringSchedulingI
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp Traceback (most recent call last):
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp File "/usr/local/
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp sys.exit(main())
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp File "/usr/local/
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp func()
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp File "/usr/local/
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp deploy.
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp File "/usr/local/
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp config)
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp File "/usr/local/
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp kubernetes.
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp File "/usr/local/
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp body=object_dict, namespace=
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp File "/usr/local/
set
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp callback=
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp File "/usr/local/
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp response_type, auth_settings, callback)
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp File "/usr/local/
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp post_params=
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp File "/usr/local/
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp body=body)
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp File "/usr/local/
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp return self.IMPL.POST(*n, **kw)
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp File "/usr/local/
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp body=body)
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp File "/usr/local/
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp raise ApiException(
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp ApiException: (422)
2016-09-06 21:06:28.229 9371 ERROR fuel-ccp Reason: status code 422
The error is cryptic and it's cause isn't obvious.
Expected result: there should be some kind of validation for topology file, which will provide a clear diagnostics, for example, in the described case the error report could be: 'there is no such node: node1'.
Changed in fuel-ccp: | |
status: | New → Confirmed |
importance: | Undecided → High |
Changed in fuel-ccp: | |
assignee: | nobody → Mikhail Zhnichkov (mzhnichkov) |
Fix proposed to branch: master /review. openstack. org/424082
Review: https:/