Cheers Eric. OK, so…
# vi /usr/share/foreman/lib/tasks/sync_schedule_tasks.rb
# chmod u+x /usr/share/foreman/lib/tasks/sync_schedule_tasks.rb
# ll /usr/share/foreman/lib/tasks/sync_schedule_tasks.rb
-rwx------. 1 root root 989 May 29 15:43
/usr/share/foreman/lib/tasks/sync_schedule_tasks.rb
# foreman-rake list_active_sync_schedules
rake aborted!
Don't know how to build task 'list_active_sync_schedules'
(See full trace by running task with --trace)
# foreman-rake list_active_sync_schedules --trace
rake aborted!
Don't know how to build task 'list_active_sync_schedules'
/opt/rh/ruby193/root/usr/share/ruby/rake/task_manager.rb:49:in []' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:115:in
invoke_task'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in block (2 levels) in top_level' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in
each'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in block in top_level' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in
standard_exception_handling'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:88:in top_level' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:66:in
block in run'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in
standard_exception_handling' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in
run'
/opt/rh/ruby193/root/usr/bin/rake:32:in `<main>'
Not sure whether this should complete without a problem, but I thought I
would also try:
# foreman-rake --trace
** Invoke default (first_time)
** Invoke test (first_time)
** Execute test
** Invoke test:run (first_time)
** Execute test:run
** Invoke test:units (first_time)
** Invoke test:prepare (first_time)
** Invoke db:test:prepare (first_time)
** Invoke db:abort_if_pending_migrations (first_time)
** Invoke environment (first_time)
** Execute environment
API controllers newer than Apipie cache! Run apipie:cache rake task to
regenerate cache.
** Invoke db:load_config (first_time)
** Execute db:load_config
** Execute db:abort_if_pending_migrations
** Execute db:test:prepare
** Invoke db:test:load (first_time)
** Invoke db:test:purge (first_time)
** Invoke environment
** Invoke db:load_config
** Execute db:test:purge
** Execute db:test:load
** Invoke db:test:load_schema (first_time)
** Invoke db:test:purge
** Execute db:test:load_schema
rake aborted!
Please install the sqlite3 adapter: gem install activerecord-sqlite3-adapter
(Could not find sqlite3 (~> 1.3.5) amongst
[actionmailer-3.2.8, actionpa
ck-3.2.8, activemodel-3.2.8,
activerecord-3.2.8, activeresource-3.2.8, activesupport-3.2.8,
addressable-2.3.6, algebrick-0.4.0, ancestry-2.0.0, anemone
-0.7.2, angular-rails-templates-0.1.2, ansi-1.4.3, apipie-params-0.0.3,
apipie-rails-0.2.6, archive-tar-minitar-0.5.2, arel-3.0.2, audited-3.0.0,
audit
ed-activerecord-3.0.0, autoparse-0.3.3, bastion-0.3.3,
bigdecimal-1.1.0, builder-3.0.0, bundler-1.1.4, bundler_ext-0.3.0,
coffee-rails-3.2.2, coffee-sc
ript-2.2.0,
coffee-script-source-1.3.3, commonjs-0.2.7, daemons-1.1.4,
deep_cloneable-2.0.2, deface-0.7.2, diff-lcs-1.1.3, docker-api-1.17.0,
dynflow-0
.7.8, erubis-2.7.0, excon-0.43.0, execjs-1.4.0,
extlib-0.9.16, faraday-0.9.1, fast_gettext-0.9.2, fog-1.29.0,
fog-aws-0.1.0, fog-core-1.29.0, fog-json-
1.0.0, fog-xml-0.1.1,
foreigner-1.7.1, foreman-tasks-0.6.13, foreman_bootdisk-5.0.0,
foreman_discovery-3.0.0, foreman_docker-1.3.1, foreman_gutterball-
0.0.1, foreman_hooks-0.3.7, formatador-0.2.1, friendly_id-4.0.10.1,
gettext_i18n_rails-1.2.1, google-api-client-0.8.2, haml-4.0.6,
haml-rails-0.4, hash
r-0.0.22, hike-1.2.1, hooks-0.2.2,
hpricot-0.8.6, i18n-0.6.0, i18n_data-0.2.7, io-console-0.3,
ipaddress-0.8.0, journey-1.0.4, jquery-ui-rails-4.1.2, j
son-1.5.5, justified-0.0.4, jwt-1.2.0, katello-2.2.0, launchy-2.4.3,
ldap_fluff-0.3.4, less-2.5.1, less-rails-2.5.0, little-plugger-1.1.3,
logging-1.8.
1, mail-2.4.4, mime-types-1.19, minitest-2.5.1,
multi_json-1.10.1, multipart-post-1.2.0, net-http-persistent-2.7,
net-ldap-0.10.0, net-scp-1.1.0, net-s
sh-2.6.7, netrc-0.7.7,
nokogiri-1.5.11, oauth-0.4.7, passenger-4.0.18, pg-0.12.2, polyglot-0.3.3,
qpid_messaging-0.30.0, rabl-0.11.4, rack-1.4.1, rack-
cache-1.2,
rack-jsonp-1.3.1, rack-protection-1.2.0, rack-ssl-1.3.2, rack-test-0.6.1,
rails-3.2.8, railties-3.2.8, rake-0.9.2.2, rbovirt-0.0.35, rbvmomi
-1.8.2, rdoc-3.9.5, rest-client-1.6.7, retriable-1.4.1, robotex-1.0.0,
ruby-libvirt-0.5.2, ruby2ruby-2.1.3, ruby_parser-3.6.3, runcible-1.3.1,
safemode
-1.2.2, sass-3.4.9, scoped_search-2.7.1,
secure_headers-1.4.1, sequel-4.17.0, sexp_processor-4.4.4, signet-0.6.0,
sinatra-1.3.2, sprockets-2.12.3, sshk
ey-1.6.0,
strong_parameters-0.2.1, thor-0.15.4, tilt-1.3.3, tire-0.6.2,
treetop-1.4.10, trollop-2.0, turbolinks-2.5.3, tzinfo-0.3.33,
validates_lengths
_from_database-0.4.0, wicked-1.1.0,
will_paginate-3.0.2])
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/dependency.rb:247:in
to_specs' /opt/rh/ruby193/root/usr/share/rubygems/rubygems/dependency.rb:256:in
to_spec'
/opt/rh/ruby193/root/usr/share/rubygems/rubygems.rb:1231:in gem' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/sqlite3_adapter.rb:3:in
<top (required)>'
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:60:in
require' /opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:60:in
rescue in require'
/opt/rh/ruby193/root/usr/share/rubygems/rubygems/custom_require.rb:35:in
require' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in
block in require'
/opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:236:in
load_dependency' /opt/rh/ruby193/root/usr/share/gems/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in
require'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:50:in
resolve_h ash_connection' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:29:in
spec'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_specification.rb:129:in
establis h_connection' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/databases.rake:477:in
block (3 levels) in <top (required)>'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in call' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in
block in execute'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in each' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in
execute'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in block in invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in
mon_synchronize'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in
invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:in
invoke'
/opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/databases.rake:459:in
block (3 levels) in <top (required)>' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in
call'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in block in execute' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in
each'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in execute' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in
block in
invoke_with_call_chain'
/opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in mon_synchronize' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in
invoke_with_call_chain'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:in invoke' /opt/rh/ruby193/root/usr/share/gems/gems/activerecord-3.2.8/lib/active_record/railties/databases.rake:524:in
block (3 levels) in <top (required)>'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in call' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in
block in execute'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in each' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in
execute'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in block in invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in
mon_synchronize'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in
invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:176:in
block in
invoke_prerequisites'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:174:in each' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:174:in
invoke_prerequisites'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:157:in block in invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in
mon_synchronize'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in
invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:176:in
block in
invoke_prerequisites'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:174:in each' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:174:in
invoke_prerequisites'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:157:in block in invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in
mon_synchronize'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in
invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:in
invoke'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/test_unit/testing.rake:61:in
block (3 levels) in <top (required)>' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/test_unit/testing.rake:59:in
collect'
/opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/test_unit/testing.rake:59:in
block (2 levels) in <top (required)>' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in
call'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in block in execute' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in
each'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in execute' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in
block in
invoke_with_call_chain'
/opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in mon_synchronize' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in
invoke_with_call_chain'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:in invoke' /opt/rh/ruby193/root/usr/share/gems/gems/railties-3.2.8/lib/rails/test_unit/testing.rake:50:in
block in <top (required)>'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in call' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:205:in
block in execute'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in each' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:200:in
execute'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:158:in block in invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in
mon_synchronize'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in
invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:176:in
block in
invoke_prerequisites'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:174:in each' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:174:in
invoke_prerequisites'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:157:in block in invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/monitor.rb:211:in
mon_synchronize'
/opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:151:in
invoke_with_call_chain' /opt/rh/ruby193/root/usr/share/ruby/rake/task.rb:144:in
invoke'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:116:in invoke_task' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in
block (2
levels) in top_level'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in each' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:94:in
block in
top_level'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in
standard_exception_handling' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:88:in
top_level'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:66:in block in run' /opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:133:in
standard_exception_handling'
/opt/rh/ruby193/root/usr/share/ruby/rake/application.rb:63:in run' /opt/rh/ruby193/root/usr/bin/rake:32:in
<main>'
Tasks: TOP => db:test:load_schema
···
On 29 May 2015 at 15:28, Eric D Helms wrote:
Let’s try to verify that these sync plans are known to Pulp. If you take
the contents of [1] and put them in a file at
/usr/share/foreman/lib/tasks/sync_schedule_tasks.rb you can then run:
foreman-rake list_active_sync_schedules
This will tell us what repositories have active sync schedules in Pulp to
see if there is possibly a mismatch between what we think and what Pulp
thinks.
[1] https://gist.github.com/ehelms/52405ed3e75ec54ed91f
On Fri, May 29, 2015 at 5:04 AM, JC mr.jamie.caldwell@gmail.com wrote:
I used these under 2.1, but no action appears to be taken with my current
install.
- I create a sync plan - for example, hourly. The tasks completes
successfully.
- I apply that plan to product. The update completes successfully.
Nothing happens.
/var/log/foreman/production.log contains a record for the creation of
the sync-plan/association with a product. But I can’t find anything else
under /var/log using the sync-plan name.
Can anyone help? Cheers.
–
You received this message because you are subscribed to the Google Groups
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.
–
You received this message because you are subscribed to a topic in the
Google Groups “Foreman users” group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/foreman-users/sRuZvzQcJh0/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
foreman-users+unsubscribe@googlegroups.com.
To post to this group, send email to foreman-users@googlegroups.com.
Visit this group at http://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.
–
Jamie.