how to downgrade the agent on puppet from 6.16.0 to 6.14.0

537 views
Skip to first unread message

Vinay Korrapati

unread,
Jul 2, 2020, 12:49:38 PM7/2/20
to Puppet Users
Hi Team,

We have upgrade our PE to 2019.5.0 from 2019.1.0. We could observe the Puppet console showing the correct version which is 2019.5.0.

But when we ran the puppet --version we are getting the 6.16.0 rather than 6.14.0.

we are unable to downgrade the puppet agent version from 6.16.0 to 6.14.0. when we use the below command we are getting "unable to locate package datadog-agent".  But the package is existing and we tried to execute the command from the root & package location, no luck. 

sudo apt-get update && sudo apt-get install --allow-downgrades datadog-agent=1:6.14.0-1

Requesting to provide inputs to address this issue.

Regards
Vinay

Marty Ewings

unread,
Jul 2, 2020, 1:04:50 PM7/2/20
to Puppet Users
Hi There,

 datadog-agent isnt the Puppet agent, this is a separate telemetry product

This sounds like you may have installed the latest open source puppet repository which is overwriting the one Puppet enterprise requires to function

`dpkg-query --show --showformat '${Package}\n' | grep --extended-regexp '^pe-|^puppet'`

Check the list for the presence of an open-source puppet6-release package,

remove it if present, and then install the appropriate version from the local path:

sudo dpkg -i /opt/puppetlabs/server/data/packages/public/latest/<os>/<package_name/

Vinay Korrapati

unread,
Jul 2, 2020, 1:25:49 PM7/2/20
to Puppet Users
Hi Marty,

Thanks for your response. No , we are installed the latest version of Puppet Enterprise 2019.5.0. Even same we can see from the puppet console. 

Post up gradation, unfortunately ran the  : sudo apt update && sudo apt upgrade Which causes to take the PE master infrastructure (agent) to the latest version 6.16.0.

In opt/puppetlabs/server/data/packages/public/2019.5.0/Puppet_enterprise contains the 2019.5.0 packages only. 

Kindly suggest further.

Marty Ewings

unread,
Jul 2, 2020, 1:55:16 PM7/2/20
to Puppet Users
I would downgrade your installation of the agent with the command:

sudo dpkg -i /opt/puppetlabs/server/data/packages/public/latest/<os>/<package_name/

Filling in the appropriate os and package names

And ensure your OS does not have any repositories installed that would allow Puppet to upgrade to the lastest opensource version when you run apt-get 

As this is Puppet Enterprise, if you have a support contract i recommend opening a ticket with support for full details



Vinay Korrapati

unread,
Jul 2, 2020, 2:13:43 PM7/2/20
to Puppet Users
Hi Marty,

Thanks for your quick response. No packages are available under opt/puppetlabs/server/data/packages/public/(current/2019.5.0)/ubuntu-18.04-amd64-6.16.0.

ubuntu-18.04-amd64-6.14.0 contains all the expected (2019.5.0) packages.

Kindly suggest further. 

Regards
Vinay
PE_Current.PNG
PE_2019.5.0.PNG

Vinay Korrapati

unread,
Jul 2, 2020, 3:21:24 PM7/2/20
to Puppet Users
Hi Team,

Is there any way to downgrade the puppet master  (other than backup and restore process ) ?

Regards
Vinay

Marty Ewings

unread,
Jul 2, 2020, 3:30:37 PM7/2/20
to Puppet Users
The agent you need should be here:
/opt/puppetlabs/server/data/packages/public/current/ubuntu-18.04-amd64/puppet-agent-6.14*

downgrade to that version using the command above.


Downgrading in PE is not possible, as there is no way to bring the DB schema backwards.

You would need to recover from backup or snapshot, i believe if you ensure you install the correct agent as above, and make sure you don't have an open source repo in referenced by apt-get you should be ok

However if you have a support contract i recommend opening a case

Vinay Korrapati

unread,
Jul 3, 2020, 12:57:37 PM7/3/20
to Puppet Users
Hi Marty,

Thanks for your inputs. We have upgraded the puppet master from 2019.1.0 to 2019.5.0. End the end of the up gradation process its thrown the below error:


2020-07-03T12:47:37.374+01:00 [ERROR]: !! There were problems during the application of the installation catalog. !!
2020-07-03T12:47:37.392+01:00 [ERROR]: !! Review the logs at /var/log/puppetlabs/installer/2020-07-03T12.36.28+0100.install.log and resolve any issues you can find. !!
2020-07-03T12:47:37.397+01:00 [ERROR]: !! After fixing any errors, re-run the installer to complete the installation or upgrade. !!

On further verification in logs observed the below error in the log:

^[[1;31m2020-07-03T12:44:38.972+01:00 - [Error]: 'curl  -f -L -o puppet-agent-ubuntu-18.04-amd64.tar.gz https://pm.puppetlabs.com/puppet-agent/2019.5.0/6.14.0/repos/puppet-agent-ubuntu-18.04-amd64.tar.gz' returned 35 instead of one of [0]^[[0m
^[[1;31m2020-07-03T12:44:38.973+01:00 - [Error]: /Stage[main]/Pe_repo::Platform::Ubuntu_1804_amd64/Pe_repo::Debian[ubuntu-18.04-amd64]/Pe_repo::Repo[ubuntu-18.04-amd64 2019.5.0]/Pe_staging::Deploy[puppet-agent-ubuntu-18.04-amd64.tar.gz]/Pe_staging::File[puppet-agent-ubuntu-18.04-amd64.tar.gz]/Exec[/opt/puppetlabs/server/data/staging/pe_repo-puppet-agent-6.14.0/puppet-agent-ubuntu-18.04-amd64.tar.gz]/returns: change from 'notrun' to ['0'] failed: 'curl  -f -L -o puppet-agent-ubuntu-18.04-amd64.tar.gz https://pm.puppetlabs.com/puppet-agent/2019.5.0/6.14.0/repos/puppet-agent-ubuntu-18.04-amd64.tar.gz' returned 35 instead of one of [0]^[[0m


Kindly assist me to address this issue.

Regards
Vinay
Reply all
Reply to author
Forward
0 new messages