Project

General

Profile

Actions

Bug #24553

closed

PuppetCA migration does not work

Added by Lukas Zapletal almost 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
PuppetCA
Target version:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

Hey,

I am unsure about migration and how this is supposed to work, but in my case I have no YAML file available and it's quitting with:

Running migrations...
migrate_monolithic_config
migrate_dns_settings
migrate_dhcp_settings
migrate_virsh_to_libvirt_config
migrate_puppet_settings
migrate_realm_settings
migrate_autosign_setting
migrate_puppet_ca_settings
rake aborted!
Errno::ENOENT: No such file or directory @ rb_sysopen - /tmp/d20180807-31392-qmw94z/migrate_puppet_ca_settings/src/settings.d/puppetca_hostname_whitelisting.yml
/home/lzap/work/smart-proxy/extra/migrations/2018062000000_migrate_puppetca_settings.rb:9:in `migrate'
/home/lzap/work/smart-proxy/extra/migrate_settings.rb:151:in `block in execute_migrations'
/home/lzap/work/smart-proxy/extra/migrate_settings.rb:140:in `each'
/home/lzap/work/smart-proxy/extra/migrate_settings.rb:140:in `execute_migrations'
/home/lzap/work/smart-proxy/extra/migrate_settings.rb:133:in `migrate'
/home/lzap/work/smart-proxy/Rakefile:52:in `block (2 levels) in <top (required)>'
/home/lzap/work/smart-proxy/Rakefile:49:in `block in <top (required)>'
/home/lzap/.rbenv/versions/2.5.1/bin/bundle:23:in `load'
/home/lzap/.rbenv/versions/2.5.1/bin/bundle:23:in `<main>'
Tasks: TOP => migrate_settings

Not sure if this file should be skipped if missing.


Related issues 1 (0 open1 closed)

Related to Smart Proxy - Refactor #23799: Make PuppetCA pluggableClosedJulian TodtActions
Actions #1

Updated by Lukas Zapletal almost 6 years ago

Actions #2

Updated by Lukas Zapletal almost 6 years ago

This helped:

touch config/settings.d/puppetca_hostname_whitelisting.yml
Actions #3

Updated by Julian Todt almost 6 years ago

  • Status changed from New to Assigned
  • Assignee set to Julian Todt

It should create the file if it doesn't exist like you fixed it by yourself. Will update the migration asap. Thanks for the report.

Actions #4

Updated by The Foreman Bot almost 6 years ago

  • Status changed from Assigned to Ready For Testing
  • Pull request https://github.com/theforeman/smart-proxy/pull/601 added
Actions #5

Updated by Lukas Zapletal almost 6 years ago

  • Fixed in Releases added
Actions #6

Updated by Julian Todt almost 6 years ago

  • Status changed from Ready For Testing to Closed
Actions #7

Updated by Ewoud Kohl van Wijngaarden over 5 years ago

  • Target version set to 1.20.0
  • Fixed in Releases 1.20.0 added
  • Fixed in Releases deleted ()
Actions

Also available in: Atom PDF