Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When AWX template parsing fails leads to a Nil dereference error when ordering a service. #20382

Closed
jarovo opened this issue Jul 23, 2020 · 4 comments · Fixed by ManageIQ/manageiq-providers-ansible_tower#230
Assignees
Labels

Comments

@jarovo
Copy link

jarovo commented Jul 23, 2020

This happens in our cfme/tests/services/test_config_provider_servicecatalogs.py::test_order_tower_catalog_item[ansible_tower-3.5-template_survey_job-v1]

The test orders a service from AWX. I am not sure why, but I see:

[----] W, [2020-07-23T12:13:45.380774 #10561:2ab1069e05c0]  WARN -- : MIQ(ManageIQ::Providers::AnsibleTower::Inventory::Parser::AutomationManager#configuration_scripts) Failed to parse job_template ID [7]: (<unknown>): found unknown escape character while parsing a quoted scalar at line 2 column 10
[----] I, [2020-07-23T12:13:45.548010 #10109:2ab1069e05c0]  INFO -- : MiqServer: local=Y, master=Y, status= 

According to @agrare this leads to

[----] E, [2020-07-23T11:44:52.946957 #7997:2b178a94227c] ERROR -- : Q-task_id([r2_service_template_provision_task_2]) MiqAeServiceModelBase.ar_method raised: <MiqException::MiqOrchestrationProvisionError>: <undefined method `merge' for nil:NilClass>
[----] E, [2020-07-23T11:44:52.946992 #7997:2b178a94227c] ERROR -- : Q-task_id([r2_service_template_provision_task_2]) /opt/rh/cfme-gemset/bundler/gems/cfme-providers-ansible_tower-f24adea66fc1/app/models/manageiq/providers/ansible_tower/shared/automation_manager/configuration_script.rb:23:in `merge_extra_vars'
/opt/rh/cfme-gemset/bundler/gems/cfme-providers-ansible_tower-f24adea66fc1/app/models/manageiq/providers/ansible_tower/shared/automation_manager/configuration_script.rb:15:in `run'
/opt/rh/cfme-gemset/bundler/gems/cfme-providers-ansible_tower-f24adea66fc1/app/models/manageiq/providers/ansible_tower/shared/automation_manager/job.rb:23:in `raw_create_stack'
/opt/rh/cfme-gemset/bundler/gems/cfme-providers-ansible_tower-f24adea66fc1/app/models/manageiq/providers/ansible_tower/shared/automation_manager/job.rb:16:in `block in create_stack'
/opt/rh/cfme-gemset/bundler/gems/cfme-providers-ansible_tower-f24adea66fc1/app/models/manageiq/providers/ansible_tower/shared/automation_manager/job.rb:15:in `tap'
/opt/rh/cfme-gemset/bundler/gems/cfme-providers-ansible_tower-f24adea66fc1/app/models/manageiq/providers/ansible_tower/shared/automation_manager/job.rb:15:in `create_stack'

Note it is trying to dereference the variables which is not set by the above configuration_scripts.

@jarovo
Copy link
Author

jarovo commented Jul 23, 2020

Seems to be affecting at least these CFME's:
5.11.6.0
5.11.7.0

@agrare
Copy link
Member

agrare commented Jul 28, 2020

@JaryN can you create a bugzilla issue so that this can be backported to ivanchuk?

@jarovo
Copy link
Author

jarovo commented Jul 29, 2020 via email

@jarovo
Copy link
Author

jarovo commented Jul 31, 2020

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants