Text_List and TextArea_list dont allow regex

Bug #1660394 reported by Alex Ruiz Estradera
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Confirmed
Medium
Fuel Sustaining

Bug Description

When adding these two fields into a custom plugin, if a regex is configured at environment_config.yaml the + button on the settings page will become unresponsive.

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

Alex, thank you for your bug reports.
Could you please specify Fuel version and describe Steps To Reproduce (I mean smth like 1. Click this button, 2. Check this field, etc) and Actual/Expected behavior.

Cannot reproduce the issue on 9.x Fuel for dns_list setting of text_list type and regex specified: https://github.com/openstack/fuel-web/blob/stable/mitaka/nailgun/nailgun/fixtures/openstack.yaml#L1299-L1311.

Changed in fuel:
status: New → Incomplete
importance: Undecided → Medium
assignee: nobody → Alex Ruiz Estradera (ahharu)
Revision history for this message
Julia Aranovich (jkirnosova) wrote :

Could you please also provide your text_list/textarea_list settings structure which you try to build into a plugin? This will help to investigate the issue.

tags: added: area-plugins
Revision history for this message
Alex Ruiz Estradera (ahharu) wrote :

----
+/- Buttons dont work, regex wont work either on the "Other" Tab of settings for this field
----

  bgp_neighbors:
    value: '10.88.88.2/30-10.88.88.1-65535'
    label: 'BGP Peers'
    description: 'List of BGP peers. In the form of <ip>/<netlength>-<remote_ip>-<remote-as> . If more than one peer, comma separate them like 1.1.1.1/24-1.1.1.2-11111,2.2.2.2/24-2.2.2.3-11111'
    weight: 999
    type: "text_list"
    regex:
      source: '^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\/(3[012]|[12]?[0-9])-(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])-([0-9]){5}(,(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\/(3[012]|[12]?[0-9])-(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])-([0-9]){5})*$'
      error: 'BGP peers must be in the form <ip>/<netlength>-<remote_ip>-<remote-as>,<ip>/<netlength>-<remote_ip>-<remote-as>'
    restrictions:
      - condition: "settings:midonet.gateway_type.value != 'bgp'"
        action: "hide"

Changed in fuel:
status: Incomplete → New
Revision history for this message
Julia Aranovich (jkirnosova) wrote :

Alex, I see an error in your config:
for *_list settings their value should be a list:

value: ['10.88.88.2/30-10.88.88.1-65535']

Please check this fix on your environment?

Changed in fuel:
status: New → Incomplete
Revision history for this message
Alex Ruiz Estradera (ahharu) wrote :

Julia, unfortunately this wont work, FPB will complain because it asks for a string

https://bugs.launchpad.net/fuel/+bug/1616466

Revision history for this message
Julia Aranovich (jkirnosova) wrote :

Got it. So, I think we need to backport fix of https://bugs.launchpad.net/fuel/+bug/1616466 to 9.x branch to resolve your issues.

Changed in fuel:
status: Incomplete → Confirmed
assignee: Alex Ruiz Estradera (ahharu) → Fuel Sustaining (fuel-sustaining-team)
milestone: none → 9.x-updates
tags: removed: area-ui
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.