Bug 1440464 - Validation fail on: Invalid conditional detected: EOL while scanning string literal (<unknown>, line 1)
Summary: Validation fail on: Invalid conditional detected: EOL while scanning string l...
Alias: None
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-validations
Version: 11.0 (Ocata)
Hardware: Unspecified
OS: Unspecified
Target Milestone: beta
: 12.0 (Pike)
Assignee: Florian Fuchs
QA Contact: Ola Pavlenko
: 1490125 (view as bug list)
Depends On: 1502603
TreeView+ depends on / blocked
Reported: 2017-04-09 05:19 UTC by Ola Pavlenko
Modified: 2018-02-05 19:07 UTC (History)
7 users (show)

Fixed In Version: openstack-tripleo-validations-7.4.0-0.20170918153806.efe8a72.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-12-13 21:23:38 UTC
Target Upstream Version:

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
OpenStack gerrit 482979 0 None None None 2017-07-12 14:20:33 UTC
Red Hat Product Errata RHEA-2017:3462 0 normal SHIPPED_LIVE Red Hat OpenStack Platform 12.0 Enhancement Advisory 2018-02-16 01:43:25 UTC

Description Ola Pavlenko 2017-04-09 05:19:20 UTC
Description of problem:
Validation: Verify existence of deployment images. fails with :

Task 'Check for required images' failed:
Host: localhost
Message: The conditional check '"{{ item }}" not in "{{ shell_result.stdout }}"' failed. The error was: Invalid conditional detected: EOL while scanning string literal (<unknown>, line 1)

The error appears to have been in '/usr/share/openstack-tripleo-validations/validations/deployment-images.yaml': line 16, column 5, but may
be elsewhere in the file depending on the exact syntax problem.

The offending line appears to be:

  - name: Check for required images
    ^ here

Failure! The validation failed for all hosts:
* localhost

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. verify overcloud images are uploaded in glance 'openstack image list --format value --column Name'
2.run " Verify existence of deployment images" validation on UI

Actual results:
Validation fails

Expected results:
Validation succeeds 

Additional info:

Comment 2 Eric Yocom 2017-09-14 16:42:50 UTC
Fix: shell_result.stdout to shell_result.stdout_lines 


  - name: Check for required images
    fail: msg='The image "{{ item }}" is missing.'
    when: '"{{ item }}" not in "{{ shell_result.stdout_lines }}"'
    - bm-deploy-kernel
    - bm-deploy-ramdisk

Comment 3 Florian Fuchs 2017-09-20 14:41:55 UTC
*** Bug 1490125 has been marked as a duplicate of this bug. ***

Comment 7 errata-xmlrpc 2017-12-13 21:23:38 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


Note You need to log in before you can comment on or make changes to this bug.