Bug #27957
closedProvisioning VM on GCE throws with error 'task failed with the following error: undefined method `enabled_taxonomies' for class'
Description
Description:
------------------------------
Image-Based provisioning on GCE CR from foreman nightly is showing an error 'undefined method `enabled_taxonomies' for class' but the VM is being created in GCE. Still, the provisioned host never shows the Installed status in foreman.
Reproducible:
-------------------------------
Always
Steps:
-------------------------------
1. Create a GCE Compute Resource in Foreman.
2. Attempt to provision an image-based host on GCE using above GCE CR. Choose non-user data image.
Actual Behavior:
---------------------------------
Errors in production logs are observed showing :
[DEBUG 2019-09-23T08:11:04 API] Using authenticator: HammerCLIForeman::Api::InteractiveBasicAuth
[ERROR 2019-09-23T08:11:28 API] 422 Unprocessable Entity
[DEBUG 2019-09-23T08:11:28 API] {
"errors" => {
"conflict" => [],
"interfaces.conflict" => [],
"base" => [
[0] "Prepare post installation script for jyecii2.us-east.internal task failed with the following error: undefined method `enabled_taxonomies' for #<Class:0x00000000095290c8>\nDid you mean? enable_auditing"
]
}
}
[DEBUG 2019-09-23T08:11:28 Exception] Using exception handler HammerCLIForeman::ExceptionHandler#handle_unprocessable_entity
[ERROR 2019-09-23T08:11:28 Exception] <NilClass> nil
Expected Behavior:
-----------------------------
Successful provision of host on GCE.
Updated by Kavita Gaikwad over 4 years ago
- Status changed from New to Closed
This issue is fixed and merged.
Reference PR - https://github.com/theforeman/foreman_remote_execution/pull/429