Open sound4mation opened 6 years ago
This doesn't support 1.12, unfortunately, only 1.14. It's broken on 1.15 as well, until I can find the time to fix the issue with that
Thanks for the response. I initially tried to install it on a 1.16 server but I got the same error so I tried 1.12 which is what I run at work and that failed with the same error so I wasn’t sure if it was something I was doing wrong.
I’m sure you are very busy, but I would be very grateful if you get a chance to fix this. Hopefully it will be included in the standard build of foreman.
Sent from my iPhone
On Jan 8, 2018, at 1:49 PM, Tyler Gregory notifications@github.com wrote:
This doesn't support 1.12, unfortunately, only 1.14. It's broken on 1.15 as well, until I can find the time to fix the issue with that
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
@01100010011001010110010101110000 Is there any update on this issue? we're having the same issue with 1.15.6.
@bp85, I don't know if it helps, but try to use a later version of Foreman. 1.15 isn't supported for a while already, it would be awesome if you could upgrade at least to 1.19
@ShimShtein I'm in the process of updating foreman, it's at 1.17 now, I'm planning to go for 1.20 and will let you know if there are any issues
@bp85, awesome, let me know how it goes.
@ShimShtein I'm at 1.19.1, I installed foreman_azure_rm gem and I got a few errors which I resolved by applying first part of patch https://github.com/theforeman/foreman_azure/commit/6762f001c246ca79c6939807abfc8ab47764d14c.diff I haven't started provisioning hosts in azure yet, I'll let you know if I have any issues.
Awesome. I didn't encountered errors with alias_method_chain
though.
@bp85 Hello. That's awesome you've upgraded to 1.19. The alias_method_chain
is no longer present in the latest upstream of foreman_azure_rm. We do not have a released version with these changes yet, so if you want, you can surely use it from the source without applying any other patch. It should work for you.
Let us know if you encounter any issues.
Not really, I had the same issue with 1.3.1
Feb 27 12:34:25 foreman scl: /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/foreman_azure_rm-1.3.1/app/models/concerns/fog_extensions/azurerm/servers.rb:7:in `block in <module:Servers>': undefined method `alias_method_chain' for Fog::Compute::AzureRM::Servers:Class (NoMethodError)
Feb 27 12:34:25 foreman scl: Did you mean? alias_method
Apologies if I was not clear. The latest upstream does not have the method alias_method_chain
any more. To check: #6.
I suggest you can use foreman_azure_rm gem from source (latest upstream) as we have not yet released a newer version.
Thanks @apuntamb , I changed the Gemfile to pull from source and it worked as expected. I've another question, Is there a documentation on how/what permissions/Firewall rules required between foreman and Azure? I can create a VM using azureRM from foreman, but I can't see the VM in Azure. I can see all ResourceGroups and vnets at the time of provisioning.
What is the error message in the log file? You might want to apply my PR #19
Actually we're past that issue (It's an AMI issue), but there is a new one
[W|app|39741] Failed to create a compute azure (Azure Resource Manager) instance azure-dev01: undefined method `[]' for #<MsRestAzure::CloudErrorData:0x000000000a8f1010>
|
| NoMethodError: undefined method `[]' for #<MsRestAzure::CloudErrorData:0x000000000a8f1010>
| /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/fog-azure-rm-downgraded-0.3.1/lib/fog/azurerm/utilities/general.rb:51:in `raise_azure_exception'
| /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/foreman_azure_rm-1.3.1/app/models/concerns/fog_extensions/azurerm/compute.rb:242:in `rescue in create_managed_virtual_machine'
| /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/foreman_azure_rm-1.3.1/app/models/concerns/fog_extensions/azurerm/compute.rb:235:in `create_managed_virtual_machine'
| /opt/rh/rh-ruby24/root/usr/local/share/gems/gems/foreman_azure_rm-1.3.1/app/models/foreman_azure_rm/azure_rm.rb:220:in `create_vm'
Anyone seen this issue before?
Hi @bp85 ! I would like you to try out the latest foreman_azure_rm 2.0.0.pre1 (either from source directly or via gem and I would recommend you to try provisioning using the same. I assume you shouldn't face this issue now but, do share if you face any issues in the process. Keeping the issue open in the meantime. Thanks.
@apuntamb , I installed 2.0.0.pre1 with foreman-1.20, I'm hitting an issue when I try to do anything with Azure resource. NameError: uninitialized constant ForemanAzureRM::AzureSDKAdapter
Full Trace:
| NameError: uninitialized constant ForemanAzureRM::AzureSDKAdapter
| /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/foreman_azure_rm-2.0.0.pre1/app/models/foreman_azure_rm/azure_rm.rb:37:in `sdk'
| /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/foreman_azure_rm-2.0.0.pre1/app/models/foreman_azure_rm/azure_rm.rb:86:in `resource_groups'
| /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/foreman_azure_rm-2.0.0.pre1/app/models/foreman_azure_rm/azure_rm.rb:164:in `vms'
| /usr/share/foreman/app/controllers/compute_resources_vms_controller.rb:137:in `load_vms'
| /usr/share/foreman/app/controllers/compute_resources_vms_controller.rb:18:in `index'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/abstract_controller/base.rb:194:in `process_action'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/rendering.rb:30:in `process_action'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/abstract_controller/callbacks.rb:42:in `block in process_action'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:109:in `block in run_callbacks'
| /usr/share/foreman/app/controllers/concerns/application_shared.rb:15:in `set_timezone'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
| /usr/share/foreman/app/models/concerns/foreman/thread_session.rb:32:in `clear_thread'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
| /usr/share/foreman/app/controllers/concerns/foreman/controller/topbar_sweeper.rb:12:in `set_topbar_sweeper_controller'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
| /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/audited-4.9.0/lib/audited/sweeper.rb:14:in `around'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
| /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/audited-4.9.0/lib/audited/sweeper.rb:14:in `around'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:118:in `block in run_callbacks'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:136:in `run_callbacks'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/abstract_controller/callbacks.rb:41:in `process_action'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/rescue.rb:22:in `process_action'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:34:in `block in process_action'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `block in instrument'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications/instrumenter.rb:23:in `instrument'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/notifications.rb:168:in `instrument'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/instrumentation.rb:32:in `process_action'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal/params_wrapper.rb:256:in `process_action'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activerecord-5.2.1/lib/active_record/railties/controller_runtime.rb:24:in `process_action'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/abstract_controller/base.rb:134:in `process'
| /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/actionview-5.2.1/lib/action_view/rendering.rb:32:in `process'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal.rb:191:in `dispatch'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_controller/metal.rb:252:in `dispatch'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:52:in `dispatch'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:34:in `serve'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:52:in `block in serve'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:35:in `each'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/journey/router.rb:35:in `serve'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/routing/route_set.rb:840:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.14/lib/apipie/static_dispatcher.rb:65:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.14/lib/apipie/extractor/recorder.rb:137:in `call'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
| /usr/share/foreman/lib/middleware/telemetry.rb:9:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/apipie-rails-0.5.14/lib/apipie/middleware/checksum_in_headers.rb:27:in `call'
| /usr/share/foreman/lib/middleware/catch_json_parse_errors.rb:8:in `call'
| /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/rack-2.0.7/lib/rack/tempfile_reaper.rb:15:in `call'
| /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/rack-2.0.7/lib/rack/etag.rb:25:in `call'
| /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/rack-2.0.7/lib/rack/conditional_get.rb:25:in `call'
| /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/rack-2.0.7/lib/rack/head.rb:12:in `call'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/http/content_security_policy.rb:18:in `call'
| /usr/share/foreman/lib/middleware/logging_context.rb:23:in `call'
| /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/rack-2.0.7/lib/rack/session/abstract/id.rb:232:in `context'
| /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/rack-2.0.7/lib/rack/session/abstract/id.rb:226:in `call'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/cookies.rb:670:in `call'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/callbacks.rb:28:in `block in call'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/callbacks.rb:98:in `run_callbacks'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/callbacks.rb:26:in `call'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/debug_exceptions.rb:61:in `call'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/show_exceptions.rb:33:in `call'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/rack/logger.rb:38:in `call_app'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/rack/logger.rb:28:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/sprockets-rails-3.2.0/lib/sprockets/rails/quiet_assets.rb:13:in `call'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/remote_ip.rb:81:in `call'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/request_id.rb:27:in `call'
| /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/rack-2.0.7/lib/rack/method_override.rb:22:in `call'
| /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/rack-2.0.7/lib/rack/runtime.rb:22:in `call'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/activesupport-5.2.1/lib/active_support/cache/strategy/local_cache_middleware.rb:29:in `call'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/executor.rb:14:in `call'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/actionpack-5.2.1/lib/action_dispatch/middleware/static.rb:127:in `call'
| /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/rack-2.0.7/lib/rack/sendfile.rb:111:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/secure_headers-6.0.0/lib/secure_headers/middleware.rb:13:in `call'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/engine.rb:524:in `call'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `public_send'
| /opt/theforeman/tfm-ror52/root/usr/share/gems/gems/railties-5.2.1/lib/rails/railtie.rb:190:in `method_missing'
| /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/rack-2.0.7/lib/rack/urlmap.rb:68:in `block in call'
| /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/rack-2.0.7/lib/rack/urlmap.rb:53:in `each'
| /opt/rh/rh-ruby25/root/usr/local/share/gems/gems/rack-2.0.7/lib/rack/urlmap.rb:53:in `call'
| /opt/theforeman/tfm/root/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/rack/thread_handler_extension.rb:77:in `process_request'
| /opt/theforeman/tfm/root/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:140:in `accept_and_process_next_request'
| /opt/theforeman/tfm/root/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler/thread_handler.rb:108:in `main_loop'
| /opt/theforeman/tfm/root/usr/share/gems/gems/passenger-4.0.18/lib/phusion_passenger/request_handler.rb:441:in `block (3 levels) in start_threads'
| /opt/theforeman/tfm/root/usr/share/gems/gems/logging-2.2.2/lib/logging/diagnostic_context.rb:474:in `block in create_with_logging_context
I'm getting the following error when after installing foreman_azure_rm on a vanilla installation of foreman 1.12
Gem loading error: Unable to activate azure-storage-0.15.0.preview, because nokogiri-1.6.7.rc3 conflicts with nokogiri (>= 1.6.8, ~> 1.6) (RuntimeError)
Here is the full error message:
Web application could not be started
Gem loading error: Unable to activate azure-storage-0.15.0.preview, because nokogiri-1.6.7.rc3 conflicts with nokogiri (>= 1.6.8, ~> 1.6) (RuntimeError) /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:30:in'
/opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/builder.rb:55:in '
/usr/share/passenger/helper-scripts/rack-preloader.rb:112:in '
/usr/share/passenger/helper-scripts/rack-preloader.rb:28:in `'
strict_error' /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:56:in
rescue in block in system_require' /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:37:inblock in system_require' /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:in
each' /opt/theforeman/tfm/root/usr/share/gems/gems/bundler_ext-0.3.0/lib/bundler_ext/bundler_ext.rb:35:insystem_require' /usr/share/foreman/config/application.rb:16:in
<top (required)>' /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:inrequire' /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in
require' /usr/share/foreman/config/environment.rb:2:in<top (required)>' /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:in
require' /opt/rh/rh-ruby22/root/usr/share/rubygems/rubygems/core_ext/kernel_require.rb:54:inrequire' config.ru:3:in
block ininstance_eval' /opt/rh/sclo-ror42/root/usr/share/gems/gems/rack-1.6.2/lib/rack/builder.rb:55:in
initialize' config.ru:1:innew' config.ru:1:in
eval' /usr/share/passenger/helper-scripts/rack-preloader.rb:112:in
preload_app' /usr/share/passenger/helper-scripts/rack-preloader.rb:158:in<module:App>' /usr/share/passenger/helper-scripts/rack-preloader.rb:29:in
Error ID debfe047 Application root /usr/share/foreman Environment (value of RAILS_ENV, RACK_ENV, WSGI_ENV, NODE_ENV and PASSENGER_APP_ENV) production Ruby interpreter command
User and groups
Environment variables
Ulimits
System metrics
General Ruby interpreter information
Ruby configuration (RbConfig::CONFIG)
Activated Ruby gems
Ruby load path ($LOAD_PATH)
Ruby loaded libraries ($LOADED_FEATURES)
Powered by Phusion Passenger, mod_rails / mod_rack for Apache and Nginx.