fuel-client failing to specify neutron segmentation type raises traceback
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Fuel for OpenStack |
Fix Committed
|
Medium
|
Artem Roma |
Bug Description
{"build_id": "2014-05-
steps to reproduce:
1. deploy fuel
2. attempt to create cluster with malformed creation string "fuel env create --name aaub-ha-neu-vlan --mode ha --net neutron --nsd vlan --release 2"
result: Insert is sent all the way to DB and causes traceback and 500 error
expected result: client should ensure that required agument was passed, lower but also expected, should know that --nsd is not a valid option for this command
014-05-09 00:12:41 ERROR
[7f2ffe1fc700] (logger) Response code '500 Internal Server Error' for POST /api/v1/clusters/ from 172.17.42.1:35884
2014-05-09 00:12:41 ERROR
[7f2ffe1fc700] (logger) Traceback (most recent call last):
File "/usr/lib/
return self.handle()
File "/usr/lib/
return self._delegate(fn, self.fvars, args)
File "/usr/lib/
return handle_class(cls)
File "/usr/lib/
return tocall(*args)
File "<string>", line 2, in POST
File "/usr/lib/
data = func(*args, **kwargs)
File "/usr/lib/
new_obj = self.collection
File "/usr/lib/
return cls.single.
File "/usr/lib/
create_
File "/usr/lib/
data.
File "/usr/lib/
db().flush()
File "/usr/lib64/
self.
File "/usr/lib64/
flush_
File "/usr/lib64/
rec.
File "/usr/lib64/
uow
File "/usr/lib64/
table, insert)
File "/usr/lib64/
execute(
File "/usr/lib64/
params)
File "/usr/lib64/
compiled_sql, distilled_params
File "/usr/lib64/
context)
File "/usr/lib64/
context)
File "/usr/lib64/
cursor.
ProgrammingError: (ProgrammingError) column "segmentation_type" is of type segmentation_type but expression is of type boolean
LINE 1: ...e:00:00:00', '192.168.111.0/24', '192.168.111.1', false, 'ov...
HINT: You will need to rewrite or cast the expression.
'INSERT INTO neutron_config (id, vlan_range, gre_id_range, base_mac, internal_cidr, internal_gateway, segmentation_type, net_l23_provider) VALUES (%(id)s, %(vlan_range)s, %(gre_id_range)s, %(base_mac)s, %(internal_cidr)s, %(internal_
tags: | added: low-hanging-fruit |
Changed in fuel: | |
assignee: | Fuel Python Team (fuel-python) → Artem Roma (aroma-x) |
Fix proposed to branch: master /review. openstack. org/106014
Review: https:/