Cloud init rsyslog module will not start on FreeBSD

Bug #1798055 reported by Carlo Maiorano
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
cloud-init
Expired
Medium
Unassigned

Bug Description

Cloud Provider: Openstack
Cloud init configuration is embedded in the attached archive
Cloud init platform: FreeBSD
FreeBSD image built using CLOUDWARE.

Cloud init port (net/cloud-init) on FreeBSD will not load rsyslog module because is not in configuration file.

Tags: freebsd
Revision history for this message
Carlo Maiorano (charliemaiors) wrote :
Revision history for this message
Scott Moser (smoser) wrote :

@Carlo,
Can you verify that the module works on FreeBSD ?

If so we can quite easily add it to the stock upstream config file generated for FreeBSD.

Revision history for this message
Carlo Maiorano (charliemaiors) wrote :

@Scott,
I've tried to test the single module but it didn't run because there are no rsyslog in configuration (The configuration is in the archive for the previous submission). I've also attached the dump from cloud-init analyze command.

Revision history for this message
Scott Moser (smoser) wrote : Re: [Bug 1798055] Re: Cloud init rsyslog module will not start on FreeBSD

I kind of suspect it will work, but before enablilng it by default in
freebsd i'd like to know that it does.

Can you do:
a.) install rsyslog package
b.) add config to /etc/cloud/cloud.cfg.d/rsyslog.cfg with something like:

rsyslog:
   configs:
        - content: "*.* @@192.0.2.1:10514"
          filename: 01-example.conf

c.) run cloud-init single --name=rsyslog --frequency=always

then verify if you have the expected content in
/etc/rsyslog.d/01-example.conf and that rsyslog was restarted.

if it gets restarted and reads those configs, then i'm really happy to
enable it.

On Wed, Oct 17, 2018 at 8:21 AM Carlo Maiorano <email address hidden> wrote:
>
> @Scott,
> I've tried to test the single module but it didn't run because there are no rsyslog in configuration (The configuration is in the archive for the previous submission). I've also attached the dump from cloud-init analyze command.
>
> ** Attachment added: "dumps.tar.gz"
> https://bugs.launchpad.net/cloud-init/+bug/1798055/+attachment/5202190/+files/dumps.tar.gz
>
> --
> You received this bug notification because you are a member of Canonical
> Cloudware, which is subscribed to cloud-init.
> Matching subscriptions: cloud-init bugs
> https://bugs.launchpad.net/bugs/1798055
>
> Title:
> Cloud init rsyslog module will not start on FreeBSD
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/cloud-init/+bug/1798055/+subscriptions

Revision history for this message
Carlo Maiorano (charliemaiors) wrote :

Yes it works !!!
Rsyslogd was already installed when I made the FreeBSD Openstack image.

do3meli (d-info-e)
tags: added: freebsd
Ryan Harper (raharper)
Changed in cloud-init:
importance: Undecided → Medium
status: New → Triaged
Revision history for this message
Mina Galić (minagalic) wrote :

if we adapt the configuration location for rsyslog on BSD to /usr/local/etc instead of /etc, we can enable it by default.

From what i gather, the module will only run when a configuration is supplied, right?

Revision history for this message
James Falcon (falcojr) wrote :
Changed in cloud-init:
status: Triaged → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.