sul-dlss-deprecated / sdr-preservation-core

Robots for ingesting objects into SDR Preservation Core -- replaced by preservation_robots
Other
1 stars 0 forks source link

SDR -dev config points to missing mount points #61

Open dazza-codes opened 7 years ago

dazza-codes commented 7 years ago

https://github.com/sul-dlss/shared_configs/blob/sdr-preservation-core_dev/config/environments/integration.rb#L39-L40

Sdr::Config.configure do
  ingest_transfer do
    account "lyberadmin@sul-lyberservices-dev.stanford.edu"
    export_dir "/dor/export/"
  end
  sdr_storage_url "https://sdrAdmin:sdrAdmin@sul-sdr-services-dev.stanford.edu/sdr"
  logdir "#{ROBOT_ROOT}/log"
  # TODO: the sdr_recovery_home and the migration_source are pointing to paths that do not exist on sul-sdr-services-dev
  sdr_recovery_home "/services-disk02/dr-temp"
  migration_source "/services-disk/sdr2objects"
  enqueue_max 2000
  audit_verbose false
end

The sdr_recovery_home and the migration_source paths do not exist on sul-sdr-services-dev. What are these settings for and why do they point to missing mount points?

dazza-codes commented 7 years ago
$ git grep 'sdr_recovery_home'
config/environments/development.rb:  sdr_recovery_home File.join(ROBOT_ROOT,'spec', "temp")
lib/boot.rb:    sdr_recovery_home nil
lib/sdr_recovery/recovery_cleanup.rb:          recovery_path = Pathname(Sdr::Config.sdr_recovery_home).join(druid.sub('druid:', ''))
lib/sdr_recovery/recovery_cleanup.rb:          files << Sdr::Config.sdr_recovery_home
lib/sdr_recovery/recovery_restore.rb:          recovery_path = Pathname(Sdr::Config.sdr_recovery_home).join(druid.sub('druid:', ''))
lib/sdr_recovery/recovery_verify.rb:          recovery_path = Pathname(Sdr::Config.sdr_recovery_home).join(druid.sub('druid:', ''))
spec/sdr_recovery/recovery_cleanup_spec.rb:    recovery_path = Pathname(Sdr::Config.sdr_recovery_home).join(druid.sub('druid:',''))
spec/sdr_recovery/recovery_restore_spec.rb:    recovery_path = Pathname(Sdr::Config.sdr_recovery_home).join(@druid.sub('druid:',''))
spec/sdr_recovery/recovery_verify_spec.rb:    recovery_path = Pathname(Sdr::Config.sdr_recovery_home).join(@druid.sub('druid:',''))
$ git grep 'migration_source'
lib/boot.rb:    migration_source "/services-disk/sdr2objects"
lib/sdr_migration/migration_transfer.rb:          old_storage_area = Pathname(Sdr::Config.migration_source)