One last update. I created a soft-link from 
/opt/puppetlabs/puppet/cache/foreman_cache_data/candlepin_db_password to 
/var/lib/puppet/foreman_cache_data/candlepin_db_password
That made the candlepin_migrate complete successfully but I got a bunch of 
errors in xxx that broke Katello. 

These are what I got.
http://projects.theforeman.org/issues/17356

I'm re-installing. Like others said in the forum. Avoid Katello 3.2 if you 
can.


On Friday, February 3, 2017 at 2:36:41 PM UTC-5, Edson Manners wrote:
>
> Just an update. It looks like the candlepin migration was looking for 
> Puppet 4 and not Puppet 3. I can't seem to find any 'foreman-install' 
> arguments that indicates that you'd like to stick with Puppet 3. So if 
> Katello 3.1 uses Puppet 3 and Katello 3.2 uses Puppet 4 how does one 
> upgrade then?
>
> On Friday, February 3, 2017 at 10:50:11 AM UTC-5, Edson Manners wrote:
>>
>> I followed the following instructions to upgrade Katello 
>> https://theforeman.org/plugins/katello/3.2/upgrade/index.html.
>>
>> Everything went smoothly until I ran the foreman upgrade command. I got 
>> the error below. For some reason it's trying to use what looks like the 
>> Puppet PE path instead of the OS Puppet path.
>> I don't see any bug reports or anyone else with a similar issue so I'm 
>> wondering if there's a path argument or something that I missed. Any help 
>> is appreciated.
>>
>> HW/SW Spec
>> CentOS 7.3
>>
>>
>> [root@katello3 puppet]# foreman-installer --scenario katello --upgrade
>> Upgrading...
>> Upgrade Step: stop_services...
>> Redirecting to /bin/systemctl stop  foreman-tasks.service
>>
>> Redirecting to /bin/systemctl stop  httpd.service
>>
>> Redirecting to /bin/systemctl stop  pulp_workers.service
>>
>> Redirecting to /bin/systemctl stop  foreman-proxy.service
>>
>> Redirecting to /bin/systemctl stop  pulp_streamer.service
>>
>> Redirecting to /bin/systemctl stop  pulp_resource_manager.service
>>
>> Redirecting to /bin/systemctl stop  pulp_celerybeat.service
>>
>> Redirecting to /bin/systemctl stop  tomcat.service
>>
>> Redirecting to /bin/systemctl stop  squid.service
>>
>> Redirecting to /bin/systemctl stop  qdrouterd.service
>>
>> Redirecting to /bin/systemctl stop  qpidd.service
>>
>> Success!
>>
>> Upgrade Step: start_databases...
>> Redirecting to /bin/systemctl start  mongod.service
>>
>> Redirecting to /bin/systemctl start  postgresql.service
>>
>> Success!
>>
>> Upgrade Step: update_http_conf...
>>
>> Upgrade Step: migrate_pulp...
>>
>>
>> 27216
>>
>> Attempting to connect to localhost:27017
>> Attempting to connect to localhost:27017
>> Write concern for Mongo connection: {}
>> Loading content types.
>> Loading type descriptors []
>> Parsing type descriptors
>> Validating type descriptor syntactic integrity
>> Validating type descriptor semantic integrity
>> Loading unit model: puppet_module = pulp_puppet.plugins.db.models:Module
>> Loading unit model: docker_blob = pulp_docker.plugins.models:Blob
>> Loading unit model: docker_manifest = pulp_docker.plugins.models:Manifest
>> Loading unit model: docker_image = pulp_docker.plugins.models:Image
>> Loading unit model: docker_tag = pulp_docker.plugins.models:Tag
>> Loading unit model: erratum = pulp_rpm.plugins.db.models:Errata
>> Loading unit model: distribution = pulp_rpm.plugins.db.models:Distribution
>> Loading unit model: srpm = pulp_rpm.plugins.db.models:SRPM
>> Loading unit model: package_group = 
>> pulp_rpm.plugins.db.models:PackageGroup
>> Loading unit model: package_category = 
>> pulp_rpm.plugins.db.models:PackageCategory
>> Loading unit model: iso = pulp_rpm.plugins.db.models:ISO
>> Loading unit model: package_environment = 
>> pulp_rpm.plugins.db.models:PackageEnvironment
>> Loading unit model: drpm = pulp_rpm.plugins.db.models:DRPM
>> Loading unit model: package_langpacks = 
>> pulp_rpm.plugins.db.models:PackageLangpacks
>> Loading unit model: rpm = pulp_rpm.plugins.db.models:RPM
>> Loading unit model: yum_repo_metadata_file = 
>> pulp_rpm.plugins.db.models:YumMetadataFile
>> Updating the database with types []
>> Found the following type definitions that were not present in the update 
>> collection [puppet_module, docker_tag, docker_manifest, docker_blob, 
>> erratum, distribution, yum_repo_metadata_file, package_group, 
>> package_category, iso, package_environment, drpm, package_langpacks, rpm, 
>> srpm, docker_image]
>> Updating the database with types [puppet_module, drpm, package_langpacks, 
>> erratum, docker_blob, docker_manifest, yum_repo_metadata_file, 
>> package_group, package_category, iso, package_environment, docker_tag, 
>> distribution, rpm, srpm, docker_image]
>> Content types loaded.
>> Ensuring the admin role and user are in place.
>> Admin role and user are in place.
>> Beginning database migrations.
>> Migration package pulp.server.db.migrations is up to date at version 24
>> Migration package pulp_docker.plugins.migrations is up to date at version 
>> 2
>> Migration package pulp_puppet.plugins.migrations is up to date at version 
>> 5
>> Migration package pulp_rpm.plugins.migrations is up to date at version 35
>> Loading unit model: puppet_module = pulp_puppet.plugins.db.models:Module
>> Loading unit model: docker_blob = pulp_docker.plugins.models:Blob
>> Loading unit model: docker_manifest = pulp_docker.plugins.models:Manifest
>> Loading unit model: docker_image = pulp_docker.plugins.models:Image
>> Loading unit model: docker_tag = pulp_docker.plugins.models:Tag
>> Loading unit model: erratum = pulp_rpm.plugins.db.models:Errata
>> Loading unit model: distribution = pulp_rpm.plugins.db.models:Distribution
>> Loading unit model: srpm = pulp_rpm.plugins.db.models:SRPM
>> Loading unit model: package_group = 
>> pulp_rpm.plugins.db.models:PackageGroup
>> Loading unit model: package_category = 
>> pulp_rpm.plugins.db.models:PackageCategory
>> Loading unit model: iso = pulp_rpm.plugins.db.models:ISO
>> Loading unit model: package_environment = 
>> pulp_rpm.plugins.db.models:PackageEnvironment
>> Loading unit model: drpm = pulp_rpm.plugins.db.models:DRPM
>> Loading unit model: package_langpacks = 
>> pulp_rpm.plugins.db.models:PackageLangpacks
>> Loading unit model: rpm = pulp_rpm.plugins.db.models:RPM
>> Loading unit model: yum_repo_metadata_file = 
>> pulp_rpm.plugins.db.models:YumMetadataFile
>> Database migrations complete.
>>
>> Upgrade Step: start_httpd...
>> Redirecting to /bin/systemctl start  httpd.service
>>
>> Success!
>>
>> Upgrade Step: start_qpidd...
>> Redirecting to /bin/systemctl start  qpidd.service
>>
>> Redirecting to /bin/systemctl start  qdrouterd.service
>>
>> Success!
>>
>> Upgrade Step: start_pulp...
>> Redirecting to /bin/systemctl start  pulp_celerybeat.service
>>
>> Redirecting to /bin/systemctl start  pulp_resource_manager.service
>>
>> Redirecting to /bin/systemctl start  pulp_workers.service
>>
>> Success!
>>
>> Upgrade Step: migrate_candlepin...
>> /usr/share/ruby/vendor_ruby/puppet/vendor/safe_yaml/lib/safe_yaml.rb:188:in 
>> `initialize': No such file or directory - 
>> /opt/puppetlabs/puppet/cache/foreman_cache_data/candlepin_db_password 
>> (Errno::ENOENT)
>> from 
>> /usr/share/ruby/vendor_ruby/puppet/vendor/safe_yaml/lib/safe_yaml.rb:188:in 
>> `open'
>> from 
>> /usr/share/ruby/vendor_ruby/puppet/vendor/safe_yaml/lib/safe_yaml.rb:188:in 
>> `unsafe_load_file'
>> from 
>> /usr/share/ruby/vendor_ruby/puppet/vendor/safe_yaml/lib/safe_yaml.rb:153:in 
>> `load_file_with_options'
>> from /usr/share/katello-installer-base/hooks/boot/01-helpers.rb:30:in 
>> `read_cache_data'
>> from /usr/share/katello-installer-base/hooks/pre/30-upgrade.rb:28:in 
>> `migrate_candlepin'
>> from /usr/share/katello-installer-base/hooks/pre/30-upgrade.rb:89:in 
>> `upgrade_step'
>> from /usr/share/katello-installer-base/hooks/pre/30-upgrade.rb:125:in 
>> `block (4 levels) in load'
>> from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/hooking.rb:34:in 
>> `instance_eval'
>> from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/hooking.rb:34:in `block (4 
>> levels) in load'
>> from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/hook_context.rb:13:in 
>> `instance_exec'
>> from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/hook_context.rb:13:in 
>> `execute'
>> from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/hooking.rb:51:in `block in 
>> execute'
>> from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/hooking.rb:49:in `each'
>> from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/hooking.rb:49:in `execute'
>> from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/kafo_configure.rb:408:in 
>> `run_installation'
>> from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/kafo_configure.rb:147:in 
>> `execute'
>> from /usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:68:in `run'
>> from /usr/share/gems/gems/clamp-1.0.0/lib/clamp/command.rb:133:in `run'
>> from /usr/share/gems/gems/kafo-0.9.8/lib/kafo/kafo_configure.rb:154:in 
>> `run'
>> from /sbin/foreman-installer:8:in `<main>'
>>
>>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to