Text_list and TextArea_list don't support multiple default values

Bug #1660396 reported by Alex Ruiz Estradera
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
New
High
Fuel Sustaining
Mitaka
New
High
Fuel Sustaining
Newton
New
High
Fuel Sustaining

Bug Description

If following the docs to use

value : [ 'lalala' , 'lololo' ]

fuel plugin builder will complain that it is not a String

if using a string 'lalala' it will generate 6 entries like so

- l
- a
- l
- a
- l
- a

If using '' empty it wont even render the input fields

Tags: area-plugins
Revision history for this message
Julia Aranovich (jkirnosova) wrote :

Alex, thank you for your bug reports.
Could you please specify Fuel version?

tags: added: area-plugins
Changed in fuel:
status: New → Incomplete
importance: Undecided → High
assignee: nobody → Alex Ruiz Estradera (ahharu)
Revision history for this message
Alex Ruiz Estradera (ahharu) wrote :

Fuel Versions are 9.0 and 9.1

Changed in fuel:
status: Incomplete → New
Changed in fuel:
milestone: none → 9.2
assignee: Alex Ruiz Estradera (ahharu) → Fuel Sustaining (fuel-sustaining-team)
Dmitry Pyzhov (dpyzhov)
Changed in fuel:
milestone: 9.2 → 11.0
Revision history for this message
Alexander Kislitsky (akislitsky) wrote :

Alex, I've checked on plugins with package versions 4, 5 - text_list and textarea_list are handled properly. Could you please provide us with your plugin data or at least metadata.yaml and environment_config.yaml files. What version of the fuel-plugin-builder was used for build plugins?
It would be gread if you provide us with detailed steps to reproduce.

Changed in fuel:
status: New → Incomplete
Changed in fuel:
assignee: Fuel Sustaining (fuel-sustaining-team) → Alex Ruiz Estradera (ahharu)
Revision history for this message
Alex Ruiz Estradera (ahharu) wrote :

Fuel Plugin Builder is latest 4.1.0 available on pip

Revision history for this message
Alex Ruiz Estradera (ahharu) wrote :

Environment config

Revision history for this message
Alex Ruiz Estradera (ahharu) wrote :

Setps to reproduce is super easy

fpb --build .

Error:

2017-01-31 12:32:10 ERROR 7514 (cli) File './environment_config.yaml', ['10.88.88.4/29-10.88.88.2-65535', '10.88.88.3/29-10.88.88.2-65535'] is not of type 'string', value path 'attributes -> bgp_neighbors_test -> value'
Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/cli.py", line 126, in main
    perform_action(args)
  File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/cli.py", line 106, in perform_action
    actions.make_builder(args.build).run()
  File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/actions/build.py", line 70, in run
    self.check()
  File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/actions/build.py", line 121, in check
    self._check_structure()
  File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/actions/build.py", line 133, in _check_structure
    ValidatorManager(self.plugin_path).get_validator().validate()
  File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/validators/validator_v3.py", line 48, in validate
    super(ValidatorV3, self).validate()
  File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/validators/validator_v2.py", line 44, in validate
    self.check_schemas()
  File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/validators/validator_v4.py", line 61, in check_schemas
    self.check_env_config_attrs()
  File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/validators/base.py", line 150, in check_env_config_attrs
    value_path=['attributes', attr_id])
  File "/usr/lib/python2.7/site-packages/fuel_plugin_builder/validators/base.py", line 50, in validate_schema
    self._make_error_message(exc, file_path, value_path))
ValidationError: File './environment_config.yaml', ['10.88.88.4/29-10.88.88.2-65535', '10.88.88.3/29-10.88.88.2-65535'] is not of type 'string', value path 'attributes -> bgp_neighbors_test -> value'
Validation failed
File './environment_config.yaml', ['10.88.88.4/29-10.88.88.2-65535', '10.88.88.3/29-10.88.88.2-65535'] is not of type 'string', value path 'attributes -> bgp_neighbors_test -> value'

Revision history for this message
Alex Ruiz Estradera (ahharu) wrote :

If using the value as string for default , the field is displayed as such, Regex wont work, and +/- buttons either

Changed in fuel:
status: Incomplete → New
Changed in fuel:
assignee: Alex Ruiz Estradera (ahharu) → Fuel Sustaining (fuel-sustaining-team)
Revision history for this message
Alexander Kislitsky (akislitsky) wrote :

Alex, this bug is duplicate of https://bugs.launchpad.net/fuel/+bug/1616466. It was fixed in fuel-plugin-builder, but the version of fpb on the PyPi is outdated. As workaround please install fpb from the github.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.