Daniel,
running the instructions as per the puppet upgrade page failed again.
On issue we kept running into was this, from
/var/log/foreman-installer/katello.log
[ERROR 2017-02-17 13:44:48 main] mv: cannot move ‘/var/lib/puppet/ssl’ to
‘/etc/puppetlabs/puppet/ssl’: File exists
[ERROR 2017-02-17 13:44:48 main] mv: cannot move
‘/var/lib/puppet/foreman_cache_data’ to
‘/opt/puppetlabs/puppet/cache/foreman_cache_data’: File exists
[ERROR 2017-02-17 13:44:48 main] Upgrade step copy_data failed. Check logs
for more information.
If you could point me to the log file that this message is talking about,
I'd appreciate that. Note that physically removing the offending files
doesn't seem to work - obviously there is some part of the
–foreman-installer --update-puppet execution that recreates them
Moving onto the next page, we start to do the whole thing by hand, as per
http://projects.theforeman.org/projects/foreman/wiki/Upgrading_from_Puppet_3_to_4
Again, Step 1a and 1b completes fine, except for 1b.5 again - this time we
did a grep on the whole of /etc/httpd/conf.d - there is no mention of
/var/lib/puppet/ssl in there at all
Moving onto Step 2, I ran the instructions with the changes you suggested -
adding --forman to some of the command line options.
ERROR: Unrecognised option '–foreman-puppet-server-implementation'
See: 'foreman-installer --help'
So I look at the help:
foreman-installer --help | grep implementation
--capsule-puppet-server-implementation Puppet master implementation,
either "master" (traditional
And then if I do a grep on reset, none of these commands exist?
I tried noop with capsule-puppet-server-implementation=puppetserver with
both --foreman-reset-puppet-X (as per your recommendation) and
–reset-foreman-puppet-X (format in line with other options) and neither
worked - all died with "ERROR: Unrecognised option '–X-puppet-autosign'"
Any other pointers would be appreciated.
cheers
L.
···
------
The most dangerous phrase in the language is, "We've always done it this
way."
On 17 February 2017 at 11:18, Lachlan Musicman datakid@gmail.com wrote:
Great - thanks all. VM snapshot from last week has been restored. We will
try again now.
cheers
L.
The most dangerous phrase in the language is, “We’ve always done it this
way.”
On 16 February 2017 at 22:06, Daniel Lobato Garcia elobatocs@gmail.com > wrote:
On 02/13, Lachlan Musicman wrote:
Ok, I’ve found the itemized puppet upgrade instructions that are here:
About - Foreman
Upgrading_from_Puppet_3_to_4
and the place where the doc’d process fails. I start there.
When I get to Step 1b. Environments, SSL and Apache; part 5 states
"Update
SSL paths in /etc/httpd/conf.d/05-foreman-ssl.conf or
/etc/apache2/sites-available/05-foreman-ssl.conf, changing
/var/lib/puppet/ssl to /etc/puppetlabs/puppet/ssl"
but our /etc/httpd/conf.d/05-foreman-ssl.conf contains no reference to
either reference?
Skip it.
Go to next step, figuring we have little if any manual customisations,
I do
step 2 and the first run give teh error
I think all of these flags would be required and by removing them is why
you see all of the errors. In order to use them, I think you can by
appending --foreman to them, like:
–foreman-puppet-server-implementation
–foreman-reset-puppet-autosign
etc…
ERROR: Unrecognised option ‘–puppet-server-implementation’
remove it, get
ERROR: Unrecognised option ‘–reset-puppet-autosign’
remove it, get
ERROR: Unrecognised option ‘–reset-puppet-client-package’
(repeat for )…
ERROR: Unrecognised option '–reset-puppet-codedir’
ERROR: Unrecognised option '–reset-puppet-configtimeout’
ERROR: Unrecognised option ‘–reset-puppet-dir’
At this point I remove all --reset-puppet directives and hope.
There are errors. Oh, there it is, postgres isn’t started but needs to
be
started. The errors are now new errors, but the top error is the one
that
we are warned about, so I run the command without the noop - I presume
all
of these errors are related? See attached.
cheers
L.
The most dangerous phrase in the language is, “We’ve always done it this
way.”
On 13 February 2017 at 11:28, Lachlan Musicman datakid@gmail.com >> wrote:
I don’t understand what I’ve done wrong - I am literally following the
rule book here, but it seems to trip at every step.
I read the logs, and discovered that there were only three files it
couldn’t find because katello was stopped (this still amazes me -
"stop
katello, then make foreman-installer get data from katello"???!!?!?!
who
designed/wrote this?)
the files were:
java-1.8.0-something_something
puppet-agent-1.9.0-something-something
puppetserver-2.7.2-something_something
So I found them on the file system and installed them successfully by
hand.
I then repeated the above process of katello-services stop and
foreman-installer --upgrade-puppet
Now I get a fail on:
Upgrade Step: copy_data…
mv: cannot move ‘/var/lib/puppet/ssl’ to ‘/etc/puppetlabs/puppet/ssl’:
File exists
Upgrade step copy_data failed. Check logs for more information.
So I moved those files out of the way…and tried again. Failed with
the
same message.
Deleted the files, tried again - failed with the same message.
Might I suggest that the puppet upgrade notes are not actually
correct and
that the foreman-installer --upgrade-puppet service needs a
"–skip-broken"
or “–skip-copy-data”
Anyway - I guess my question now is do I even need to run the
–upgrade-puppet?
Cheers
L.
The most dangerous phrase in the language is, "We’ve always done it
this
way."
On 13 February 2017 at 10:19, Lachlan Musicman datakid@gmail.com >> wrote:
Hi,
Self hosted installation.
The upgrade foreman-installer --upgrade-puppet fails because it can’t
find packages.
Which would be because I’ve just turned off all services as asked to
in
the instructions found here
https://www.theforeman.org/plugins/katello/3.2/upgrade/puppet.html
under “in place migration”.
Seems like a chicken and an egg problem - how do I solve this issue?
cheers
L.
The most dangerous phrase in the language is, "We’ve always done it
this
way."
–
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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.
[ERROR 2017-02-13 12:47:40 main] /Stage[main]/Certs/Privkey[/et
c/pki/katello/private/katello-default-ca.key]: Could not evaluate:
Execution of ‘/usr/bin/openssl rsa -in /root/ssl-build/katello-default-ca.key
-out /root/ssl-build/katello-default-ca.key.tmp -passin
file:/etc/pki/katello/private/katello-default-ca.pwd’ returned 1: unable
to load Private Key
[ERROR 2017-02-13 12:47:40 main] 139660402321312:error:06065064:digital
envelope routines:EVP_DecryptFinal_ex:bad decrypt:evp_enc.c:604:
[ERROR 2017-02-13 12:47:40 main] 139660402321312:error:0906A065:PEM
routines:PEM_do_header:bad decrypt:pem_lib.c:483:
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/util/execution.rb:232:in execute' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/provider/command.rb:23:in
execute’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/provider.rb:221:in block in has_command' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/provider.rb:422:in
block in
create_class_and_instance_method’
[ERROR 2017-02-13 12:47:40 main] /usr/share/katello-installer-b
ase/modules/certs/lib/puppet/provider/privkey/katello_ssl_tool.rb:11:in
expected_content' [ERROR 2017-02-13 12:47:40 main] /usr/share/katello-installer-b ase/modules/certs/lib/puppet/provider/katello_ssl_tool.rb:178:in
exists?’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/property/ensure.rb:81:in retrieve' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/type.rb:1070:in
retrieve’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/type.rb:1098:in retrieve_resource' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/transaction/resource_harness.rb:300:in
from_resource’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/transaction/resource_harness.rb:20:in evaluate' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/transaction.rb:230:in
apply’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/transaction.rb:246:in eval_resource' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/transaction.rb:163:in
call’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/transaction.rb:163:in block (2 levels) in evaluate' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/util.rb:386:in
block in thinmark’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/ruby/2.1.0/benchmark.rb:294:in
realtime' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/util.rb:385:in
thinmark’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/transaction.rb:163:in block in evaluate' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/graph/relationship_graph.rb:118:in
traverse’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/transaction.rb:154:in evaluate' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/resource/catalog.rb:222:in
block in apply’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/util/log.rb:155:in with_destination' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/transaction/report.rb:142:in
as_logging_destination’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/resource/catalog.rb:221:in apply' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/configurer.rb:171:in
block in apply_catalog’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/util.rb:223:in block in benchmark' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/ruby/2.1.0/benchmark.rb:294:in
realtime’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/util.rb:222:in benchmark' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/configurer.rb:170:in
apply_catalog’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/configurer.rb:343:in run_internal' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/configurer.rb:221:in
block in run’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/context.rb:65:in override' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:293:in
override’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/configurer.rb:195:in run' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/application/apply.rb:350:in
apply_catalog’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/application/apply.rb:274:in block in main' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/context.rb:65:in
override’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet.rb:293:in
override' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/application/apply.rb:225:in
main’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/application/apply.rb:170:in run_command' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/application.rb:344:in
block in run’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/util.rb:541:in exit_on_fail' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/application.rb:344:in
run’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub
y/vendor_ruby/puppet/util/command_line.rb:132:in run' [ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/lib/rub y/vendor_ruby/puppet/util/command_line.rb:72:in
execute’
[ERROR 2017-02-13 12:47:40 main] /opt/puppetlabs/puppet/bin/puppet:5:in
`’
–
Daniel Lobato Garcia
@dLobatog
blog.daniellobato.me
daniellobato.me
GPG: http://keys.gnupg.net/pks/lookup?op=get&search=0x7A92D6DD38D6DE30
Keybase: https://keybase.io/elobato
–
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 https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.