Hi guys,
I've been playing around with the Aeolus nightly builds over the last few weeks and am having mostly success in getting it working. However, this week, I've hit a roadblock related to creating the admin user.
I run aeolus-configure on a clean installation and it fails upon admin user creation. So I run rake dc:create_user and get the following traceback:
[root@aeolus aeolus-conductor]# RAILS_ENV="production" rake dc:create_user[admin,password,root@localhost.localdomain,Administrator,] --trace
Using gem require instead of bundler
** Invoke dc:create_user (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute dc:create_user
rake aborted!
undefined method `active_privilege_target_types' for #<Class:0x00000005d72508>
/usr/local/share/gems/gems/activerecord-3.2.12/lib/active_record/dynamic_matchers.rb:55:in `method_missing'
/usr/share/aeolus-conductor/app/models/role.rb:49:in `privilege_target_match'
/usr/share/aeolus-conductor/app/models/pool_family.rb:86:in `derived_subtree'
/usr/share/aeolus-conductor/app/models/permission.rb:138:in `update_derived_permissions'
/usr/local/share/gems/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:559:in `_run__3098622491858983024__save__374501331206798678__callbacks'
/usr/local/share/gems/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:405:in `__run_callback'
/usr/local/share/gems/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:385:in `_run_save_callbacks'
/usr/local/share/gems/gems/activesupport-3.2.12/lib/active_support/callbacks.rb:81:in `run_callbacks'
/usr/local/share/gems/gems/activerecord-3.2.12/lib/active_record/callbacks.rb:264:in `create_or_update'
/usr/local/share/gems/gems/activerecord-3.2.12/lib/active_record/persistence.rb:104:in `save!'
/usr/local/share/gems/gems/activerecord-3.2.12/lib/active_record/validations.rb:56:in `save!'
/usr/local/share/gems/gems/activerecord-3.2.12/lib/active_record/attribute_methods/dirty.rb:33:in `save!'
/usr/local/share/gems/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:in `block in save!'
/usr/local/share/gems/gems/activerecord-3.2.12/lib/active_record/transactions.rb:313:in `block in with_transaction_returning_status'
/usr/local/share/gems/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/usr/local/share/gems/gems/activerecord-3.2.12/lib/active_record/transactions.rb:208:in `transaction'
/usr/local/share/gems/gems/activerecord-3.2.12/lib/active_record/transactions.rb:311:in `with_transaction_returning_status'
/usr/local/share/gems/gems/activerecord-3.2.12/lib/active_record/transactions.rb:264:in `save!'
/usr/local/share/gems/gems/activerecord-3.2.12/lib/active_record/validations.rb:41:in `create!'
/usr/share/aeolus-conductor/app/services/registration_service.rb:42:in `block (2 levels) in save'
/usr/share/aeolus-conductor/app/services/registration_service.rb:37:in `each'
/usr/share/aeolus-conductor/app/services/registration_service.rb:37:in `block in save'
/usr/local/share/gems/gems/activerecord-3.2.12/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction'
/usr/local/share/gems/gems/activerecord-3.2.12/lib/active_record/transactions.rb:208:in `transaction'
/usr/share/aeolus-conductor/app/services/registration_service.rb:25:in `save'
/usr/share/aeolus-conductor/lib/tasks/dc_tasks.rake:26:in `block (2 levels) in <top (required)>'
/usr/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/usr/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `block in execute'
/usr/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/usr/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/usr/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `block in invoke_with_call_chain'
/usr/share/ruby/monitor.rb:211:in `mon_synchronize'
/usr/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/usr/share/gems/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/usr/share/gems/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/usr/share/gems/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block (2 levels) in top_level'
/usr/share/gems/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/usr/share/gems/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `block in top_level'
/usr/share/gems/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/share/gems/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/usr/share/gems/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `block in run'
/usr/share/gems/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/share/gems/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/usr/bin/rake:32:in `<main>'
Tasks: TOP => dc:create_user
... which is weird because active_privilege_target_types seems to be defined in app/models/permissioned_object.rb
Anyone know how I can jump this hurdle?
Dan Macpherson
Content Author
Engineering Content Services
Red Hat Asia Pacific Pty Ltd
Brisbane, Australia
e: dmacpher(a)redhat.com