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

Debug message related to kafkaTopicCache keeps appearing even though I don't use it #339

Open
Sodki opened this issue Jul 14, 2023 · 1 comment
Labels
impact/usability Something that impacts users' ability to use the product easily and intuitively kind/bug Some behavior is incorrect or out of spec

Comments

@Sodki
Copy link

Sodki commented Jul 14, 2023

What happened?

Whenever I use any Aiven resource, I get the following message on the Diagnostics: part of my Pulumi run:

    2023/07/14 12:15:31 [DEBUG] Creating an instance of kafkaTopicCache ...

I'm using Pulumi with Python.

Expected Behavior

I'm not using any Kafka resources, so that message shouldn't appear.

Steps to reproduce

The following Python code is enough to trigger the message:

import pulumi_aiven
pulumi_aiven.Organization("organization")

And then just run a pulumi pre.

Output of pulumi about

CLI
Version      3.74.0
Go Version   go1.20.5
Go Compiler  gc

Plugins
NAME          VERSION
aiven         6.4.0
python        unknown

Host
OS	 fedora
Version  38
Arch     x86_64

This project is written in python: executable='/usr/bin/python3' version='3.11.4'

Current Stack: test   

Dependencies:
NAME                 VERSION
pip                  23.1.2
psycopg2-binary      2.9.5
pulumi-aiven         6.4.0
rsa                  4.9.0
setuptools           68.0.0
wheel                0.40.0

Pulumi locates its logs in /tmp by default

Additional context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

@Sodki Sodki added kind/bug Some behavior is incorrect or out of spec needs-triage Needs attention from the triage team labels Jul 14, 2023
@Sodki Sodki changed the title Debug message keeps appearing Debug message related to kafkaTopicCache keeps appearing even though I don't use it Jul 14, 2023
@iwahbe iwahbe added impact/usability Something that impacts users' ability to use the product easily and intuitively and removed needs-triage Needs attention from the triage team labels Jul 21, 2023
@iwahbe
Copy link
Member

iwahbe commented Jul 21, 2023

Hey @Sodki. Thanks for bringing this to our attention. The aiven provider creates the cache as part of setting up the provider, even if no kafka resources are created. This is working as expected. However, always showing debug logs is not as expected.

We can trivially repro with the following program (and no credentials):

name: repro
runtime: yaml
resources:
  app:
    type: pulumi:providers:aiven
    properties:
      apiToken: ""

I have created pulumi/pulumi-terraform-bridge#1298 to track a fix in pulumi-terraform-bridge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
impact/usability Something that impacts users' ability to use the product easily and intuitively kind/bug Some behavior is incorrect or out of spec
Projects
None yet
Development

No branches or pull requests

2 participants