[rudder-users] apt_detected_distro limitations
Alexis Mousset
alexis.mousset at normation.com
Thu Sep 21 10:15:50 CEST 2017
On 20/09/2017 18:15, Rob Pomeroy wrote:
> I may have spoken too soon. My policy update is now failing.
>
>
> Policy update process was stopped due to an error:
>
> ⇨ Policy update error for process '134' at 2017-09-20 17:11:04
>
> ⇨ Cannot write configuration node
>
> ⇨ Exit code=1 for hook:
> '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'.
> stdout: stderr:
> '/var/rudder/share/bcaf6a14-b9e7-4cb9-9a2c-2c6ba6dd519f/rules.new/cfengine-community/sudoParameters/3.1/sudoParameters.cf:284:0:
> error: Undefined bundle
> ncf_ensure_section_content_and_purge_type with type edit_line
> ' ; Exit code=1 for hook:
> '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'.
> stdout: stderr:
> '/var/rudder/share/ec389180-d0bf-4ecb-9a41-cdc030e8c71d/rules.new/cfengine-community/sudoParameters/3.1/sudoParameters.cf:272:0:
> error: Undefined bundle
> ncf_ensure_section_content_and_purge_type with type edit_line
> ' ; Exit code=1 for hook:
> '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'.
> stdout: stderr:
> '/var/rudder/share/7b2917ca-37ce-406e-9f4b-87ef368efeeb/rules.new/cfengine-community/sudoParameters/3.1/sudoParameters.cf:284:0:
> error: Undefined bundle
> ncf_ensure_section_content_and_purge_type with type edit_line
> ' ; Exit code=1 for hook:
> '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'.
> stdout: stderr:
> '/var/rudder/share/613e8fe8-8076-4194-95f5-dfa1828e4af2/rules.new/cfengine-community/sudoParameters/3.1/sudoParameters.cf:272:0:
> error: Undefined bundle
> ncf_ensure_section_content_and_purge_type with type edit_line
> ' ; Exit code=1 for hook:
> '/opt/rudder/etc/hooks.d/policy-generation-node-ready/10-cf-promise-check'.
> stdout:
>
> [snip]
>
> Those errors are repeated a few dozen times. This error doesn't mean
> anything to me, but in case it's relevant, I have not created any
> custom techniques.
>
Hello Rob,
It seems rudder-techniques was upgraded without upgrading the ncf
package. This is a bug in the package
(https://www.rudder-project.org/redmine/issues/11411), as the current
version of rudder-techniques should depend on a newer version of ncf.
Upgrading the ncf package on the server should fix this error.
Furthermore, we can advise you to follow the upgrade documentation
(https://www.rudder-project.org/doc-4.1/_on_debian_or_ubuntu.html) and
upgrade ncf with Rudder to get the latest bug fixes, even if it is not
always strictly necessary.
> Rob
>
>
>
> --
> *Rob Pomeroy*, CISSP <https://www.isc2.org/cissp>, Solicitor
> <http://solicitors.lawsociety.org.uk/person/250541/robert-john-pomeroy>
> (non-practising)*| *rob at pomeroy.me <mailto:rob at pomeroy.me>
> My novel <https://www.smashwords.com/books/view/78386> | LinkedIn
> <http://www.linkedin.com/in/robpomeroy> | Personal blog
> <http://pomeroy.me/> | Geek & Dummy <http://geekanddummy.com/>
>
> On 20 September 2017 at 08:45, Rob Pomeroy <rob at pomeroy.me
> <mailto:rob at pomeroy.me>> wrote:
>
> Ah, I had read that and wondered if that was the solution - but I
> confess I didn't quite understand what the manual meant. This
> fixed it.
>
> Many thanks!
>
> Rob
>
>
> --
> *Rob Pomeroy*, CISSP <https://www.isc2.org/cissp>, Solicitor
> <http://solicitors.lawsociety.org.uk/person/250541/robert-john-pomeroy>
> (non-practising)*| *rob at pomeroy.me <mailto:rob at pomeroy.me>
> My novel <https://www.smashwords.com/books/view/78386> | LinkedIn
> <http://www.linkedin.com/in/robpomeroy> | Personal blog
> <http://pomeroy.me/> | Geek & Dummy <http://geekanddummy.com/>
>
> On 15 September 2017 at 10:23, Francois Armand
> <francois.armand at normation.com
> <mailto:francois.armand at normation.com>> wrote:
>
> Hello Rob,
>
> You are encountering the following problem:
> https://www.rudder-project.org/redmine/issues/11336
> <https://www.rudder-project.org/redmine/issues/11336>
>
> This problem should have been corrected if your Rudder server
> is in version 4.1.7 and the corresponding technique library
> was updated.
>
> Please note that you have to do the technique upgrade as
> documented here:
> https://www.rudder-project.org/doc-4.1/_technique_upgrade.html
> <https://www.rudder-project.org/doc-4.1/_technique_upgrade.html>
>
> Hope it helps,
>
>
> On 15/09/2017 10:17, Rob Pomeroy wrote:
>> Hi,
>>
>> I thought I'd try and use Rudder to get the agents to upgrade
>> themselves. Unfortunately the version of
>> aptPackageManagerSettings.cf in Rudder 4.5.1 and 4.7.1 seems
>> not to know about 16.04/Xenial (which is most of my
>> endpoints). So when I use the "Package sources and settings
>> (APT)" directive with "Automatically detect the distribution"
>> I get this:
>>
>> ### Managed by Rudder, edit with care ###
>> deb http://www.rudder-project.org/apt-repos/4.1.7-2/
>> <http://www.rudder-project.org/apt-repos/4.1.7-2/>
>> ${apt_detected_distro} main
>>
>>
>> Can anyone suggest a better way to roll out agent updates? Or
>> is there a better way of keeping aptPackageManagerSettings.cf
>> <http://ngs.cf> updated?
>>
>> Thanks!
>>
>> Rob
>>
>> --
>> *Rob Pomeroy*, CISSP <https://www.isc2.org/cissp>, Solicitor
>> <http://solicitors.lawsociety.org.uk/person/250541/robert-john-pomeroy>
>> (non-practising)*| *rob at pomeroy.me <mailto:rob at pomeroy.me>
>> My novel
>> <https://www.smashwords.com/books/view/78386> | LinkedIn
>> <http://www.linkedin.com/in/robpomeroy> | Personal blog
>> <http://pomeroy.me/> | Geek & Dummy <http://geekanddummy.com/>
>>
>>
>> _______________________________________________
>> rudder-users mailing list
>> rudder-users at lists.rudder-project.org
>> <mailto:rudder-users at lists.rudder-project.org>
>> http://www.rudder-project.org/mailman/listinfo/rudder-users
>> <http://www.rudder-project.org/mailman/listinfo/rudder-users>
>
>
> --
>
>
> ------------------------------------------------------------------------
> *François ARMAND*
> /Co-founder & CTO/
> Normation <http://www.normation.com>
> ------------------------------------------------------------------------
> *87 rue de Turbigo, 75003 Paris, France*
> Telephone: +33 (0)1 83 62 99 23
> <tel:+33%201%2083%2062%2099%2023>
> Mobile: +33 (0)6 63 37 60 55 <tel:+33%206%2063%2037%2060%2055>
> ------------------------------------------------------------------------
> Normation organise devops REX le 2 octobre 2017.
> Plus d'informations:
> devops-rex <https://www.devopsrex.fr/>
>
>
>
>
>
> _______________________________________________
> rudder-users mailing list
> rudder-users at lists.rudder-project.org
> http://www.rudder-project.org/mailman/listinfo/rudder-users
Regards,
--
------------------------------------------------------------------------
*Logo Normation Alexis MOUSSET*
/System Engineer/
Normation <http://www.normation.com>
------------------------------------------------------------------------
*87, Rue de Turbigo, 75003 Paris, France*
Phone: +33 (0)1 84 17 77 93
------------------------------------------------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.rudder-project.org/pipermail/rudder-users/attachments/20170921/08fef0ab/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo-square.gif
Type: image/gif
Size: 1036 bytes
Desc: not available
URL: <http://www.rudder-project.org/pipermail/rudder-users/attachments/20170921/08fef0ab/attachment-0003.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: devopsrex2017.gif
Type: image/gif
Size: 174772 bytes
Desc: not available
URL: <http://www.rudder-project.org/pipermail/rudder-users/attachments/20170921/08fef0ab/attachment-0004.gif>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: logo-square.gif
Type: image/gif
Size: 2118 bytes
Desc: not available
URL: <http://www.rudder-project.org/pipermail/rudder-users/attachments/20170921/08fef0ab/attachment-0005.gif>
More information about the rudder-users
mailing list