error in validation global symbol '*' in deployment_tasks.yaml

Bug #1492167 reported by Maciej Relewicz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fuel for OpenStack
Fix Released
High
Elena Kosareva

Bug Description

code in deployment_task.yaml (compatible with documentation):

- id: zabbix-plugin-deploy-agents
  type: puppet
  role: '*'
  requires: [post_deployment_start]
  required_for: [post_deployment_end]
  parameters:
    puppet_manifest: puppet/manifests/agent.pp
    puppet_modules: puppet/modules:/etc/puppet/modules
    timeout: 600

generate validation error in fpb 2.0.5-dev0

$ fpb --check ./
Validation failed
File './deployment_tasks.yaml', '*' is not of type 'array', value path '3 -> role'

Revision history for this message
Ihor Kalnytskyi (ikalnytskyi) wrote :

Looks we don't support

  role: '*'

for pre/post deployment tasks in fpb's validator.

Changed in fuel:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Fuel Python Team (fuel-python)
milestone: none → 7.0
Changed in fuel:
assignee: Fuel Python Team (fuel-python) → Alexander Kislitsky (akislitsky)
Revision history for this message
Andriy Popovych (popovych-andrey) wrote :

Yes, but more intuitively for me

role: ['*'] . Because role has type of list.

Revision history for this message
Maciej Relewicz (rlu) wrote :

code:

- id: zabbix-plugin-deploy-agents
  type: puppet
  role: ['*']
  requires: [post_deployment_start]
  required_for: [post_deployment_end]
  parameters:
    puppet_manifest: puppet/manifests/agent.pp
    puppet_modules: puppet/modules:/etc/puppet/modules
    timeout: 600

produce:
Validation failed
File './deployment_tasks.yaml', '*' does not match '^[0-9a-zA-Z_-]+$', value path '3 -> role -> 0'

the problem is that fpb is expecting alphabetic or numeric character in role parameter

Revision history for this message
Alexander Kislitsky (akislitsky) wrote :

@Andriy, * is the special case. If we use ['*'] notation, then we will have roles list like ['a', 'b', '*', 'c'].

Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to fuel-plugins (master)

Fix proposed to branch: master
Review: https://review.openstack.org/220447

Changed in fuel:
status: Confirmed → In Progress
Changed in fuel:
assignee: Alexander Kislitsky (akislitsky) → Elena Kosareva (ekosareva)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to fuel-plugins (master)

Reviewed: https://review.openstack.org/220447
Committed: https://git.openstack.org/cgit/stackforge/fuel-plugins/commit/?id=bffcc793b0f04b533323ad07a57b208acbdaea12
Submitter: Jenkins
Branch: master

commit bffcc793b0f04b533323ad07a57b208acbdaea12
Author: Alexander Kislitsky <email address hidden>
Date: Fri Sep 4 13:22:41 2015 +0300

    Role * supported for deployment tasks

    JSON schema for role changed. We support '*' or list
    of tasks names in role field.
    Duplication of test 'test_check_group_type_deployment_task' removed.

    Change-Id: I32321826e5e8b45ea0e5d6cc2e1361fba9cbce14
    Closes-Bug: #1492167

Changed in fuel:
status: In Progress → Fix Committed
tags: added: on-verification
Revision history for this message
Liubov Efremova (lefremova) wrote :

Verified on: fuel-7.0-286-2015-09-07_03-14-53.iso

Changed in fuel:
status: Fix Committed → Fix Released
tags: removed: on-verification
Revision history for this message
Alexander Adamov (aadamov) wrote :
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.