Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1440464 - Validation fail on: Invalid conditional detected: EOL while scanning string literal (<unknown>, line 1)
Validation fail on: Invalid conditional detected: EOL while scanning string l...
Status: CLOSED ERRATA
Product: Red Hat OpenStack
Classification: Red Hat
Component: openstack-tripleo-validations (Show other bugs)
11.0 (Ocata)
Unspecified Unspecified
medium Severity medium
: beta
: 12.0 (Pike)
Assigned To: Florian Fuchs
Ola Pavlenko
: Regression, Triaged
: 1490125 (view as bug list)
Depends On: 1502603
Blocks:
  Show dependency treegraph
 
Reported: 2017-04-09 01:19 EDT by Ola Pavlenko
Modified: 2018-02-05 14:07 EST (History)
7 users (show)

See Also:
Fixed In Version: openstack-tripleo-validations-7.4.0-0.20170918153806.efe8a72.el7ost
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-12-13 16:23:38 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
OpenStack gerrit 482979 None None None 2017-07-12 10:20 EDT
Red Hat Product Errata RHEA-2017:3462 normal SHIPPED_LIVE Red Hat OpenStack Platform 12.0 Enhancement Advisory 2018-02-15 20:43:25 EST

  None (edit)
Description Ola Pavlenko 2017-04-09 01:19:20 EDT
Description of problem:
Validation: Verify existence of deployment images. fails with :
output:

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):
openstack-tripleo-ui-3.1.0-8.el7ost.noarch

How reproducible:
100%

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 12:42:50 EDT
Fix: shell_result.stdout to shell_result.stdout_lines 

Example:

  - name: Check for required images
    fail: msg='The image "{{ item }}" is missing.'
    when: '"{{ item }}" not in "{{ shell_result.stdout_lines }}"'
    with_items:
    - bm-deploy-kernel
    - bm-deploy-ramdisk
Comment 3 Florian Fuchs 2017-09-20 10:41:55 EDT
*** Bug 1490125 has been marked as a duplicate of this bug. ***
Comment 7 errata-xmlrpc 2017-12-13 16:23:38 EST
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.

https://access.redhat.com/errata/RHEA-2017:3462

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