Project

General

Profile

Bug #24553

PuppetCA migration does not work

Added by Lukas Zapletal 4 months ago. Updated 4 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
PuppetCA
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Team Backlog:
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

Related to Smart Proxy - Refactor #23799: Make PuppetCA pluggableClosed

Associated revisions

Revision 868366c4 (diff)
Added by Julian Todt 4 months ago

Fixes #24553 - Fix PuppetCa migrations

History

#1 Updated by Lukas Zapletal 4 months ago

#2 Updated by Lukas Zapletal 4 months ago

This helped:

touch config/settings.d/puppetca_hostname_whitelisting.yml

#3 Updated by Julian Todt 4 months ago

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

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.

#4 Updated by The Foreman Bot 4 months ago

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

#5 Updated by Lukas Zapletal 4 months ago

  • Fixed in Releases added

#6 Updated by Julian Todt 4 months ago

  • Status changed from Ready For Testing to Closed

#7 Updated by Ewoud Kohl van Wijngaarden 4 months ago

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

Also available in: Atom PDF