Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues with remote filebucket setup #9545

Open
mdechiaro opened this issue Feb 19, 2025 · 0 comments
Open

Issues with remote filebucket setup #9545

mdechiaro opened this issue Feb 19, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@mdechiaro
Copy link

Describe the Bug

I am trying to get remote filebucket setup, and I believe I have the right config as per the documentation, but it doesn't appear to be working.

Expected Behavior

I expect filebuckets to be uploaded remotely to a single puppetserver. Instead, these files reside locally on the puppetserver that compiled the catalog.

Steps to Reproduce

The following config is in our manifests/00site.pp file.

filebucket { 'puppetca':
  server => 'puppetca.hostname.com',
  path   => false,
}

File {
  backup => 'puppetca',
}

The following config enabled in auth.conf on puppetserver.

        {
            # Allow nodes to access all file_bucket_files.  Note that access for
            # the 'delete' method is forbidden by Puppet regardless of the
            # configuration of this rule.
            match-request: {
                path: "/puppet/v3/file_bucket_file"
                type: path
                method: [get, head, post, put]
            }
            allow: "*"
            sort-order: 500
            name: "puppetlabs file bucket file"
        },

Environment

  • OSS Puppet 8.9.0, running on Ubuntu 22.04
  • OSS Puppetserver 8.6.2 running on Ubuntu 22.04

Additional Context

I don't see any errors in puppetserver.log.

In the puppet catalog, I do a see line showing a filebucket attempt to remote server, but I don't see these files in /opt/puppetlabs/server/data/puppetserver/bucket/ on the remote server.

Info: /Stage[main]/Files/Files::Control_files[/path/to/file.txt]/File[/path/to/file.txt]: Filebucketed /path/to/file.txt to puppetca with sum c9070ced9a7b62d49656c2d7efacee909484bbc4f986d3dc0b15b3df26ccb872

I do see these files locally on the puppetserver that compiled the catalog.

I confirmed that the puppet agent is able to reach the remote filebucket server. Currently we are using our "CA" server as this remote filebucket server.

Is there any other places to review in order to troubleshoot further? I would love some assistance to narrow down what the problem is. Thanks for your help.

@mdechiaro mdechiaro added the bug Something isn't working label Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant