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

cloud-init-output.log is increasing its size very quickly #4000

Closed
ubuntu-server-builder opened this issue May 12, 2023 · 4 comments
Closed
Labels
launchpad Migrated from Launchpad

Comments

@ubuntu-server-builder
Copy link
Collaborator

This bug was originally filed in Launchpad as LP: #1981960

Launchpad details
affected_projects = []
assignee = None
assignee_name = None
date_closed = 2022-09-17T04:17:22.245873+00:00
date_created = 2022-07-18T07:27:30.541016+00:00
date_fix_committed = None
date_fix_released = None
id = 1981960
importance = undecided
is_complete = True
lp_url = https://bugs.launchpad.net/cloud-init/+bug/1981960
milestone = None
owner = algol30
owner_name = Aleksandra
private = False
status = expired
submitter = algol30
submitter_name = Aleksandra
tags = []
duplicates = []

Launchpad user Aleksandra(algol30) wrote on 2022-07-18T07:27:30.541016+00:00

I use Linux machine on AWS EC2 instance with Red Hat Enterprise Linux 8.6 and my cloud-init-output.log is increasing its size very quickly causing my app logs to stop writing in one-two days even though I have 20GB of storage.

I changed logging level from default DEBUG to ERROR in /etc/cloud/cloud.cfg.d but it didn't help. Messages are also filling up fast.

I can see that app messages are written in cloud-init-output.log which is not something I want. Is there a way to turn it off?

/etc/cloud/cloud.cfg.d/05_logging.cfg is default.

@ubuntu-server-builder ubuntu-server-builder added the launchpad Migrated from Launchpad label May 12, 2023
@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Scott Moser(smoser) wrote on 2022-07-18T14:24:15.430201+00:00

Hi, thanks for taking the time to file a bug to help make cloud-init better.
Could you please run:

cloud-init collect-logs

and attach the output.

Then once you've done that , set the 'Status' field back to 'New'.

Thanks.

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Aleksandra(algol30) wrote on 2022-07-18T14:58:01+00:00

Hi Scott,

Thanks for your reply.

Since this log would be from live system and as I can see it contains a lot
of info that I can not provide outside of the company, can you tell me what
exactly you need so I can maybe extract what you need to examine the issue?

Regards,
Aleksandra

On Mon, Jul 18, 2022 at 4:30 PM Scott Moser 1981960@bugs.launchpad.net
wrote:

Hi, thanks for taking the time to file a bug to help make cloud-init
better.
Could you please run:

cloud-init collect-logs

and attach the output.

Then once you've done that , set the 'Status' field back to 'New'.

Thanks.

** Changed in: cloud-init
Status: New => Incomplete

--
You received this bug notification because you are subscribed to the bug
report.
https://bugs.launchpad.net/bugs/1981960

Title:
cloud-init-output.log is increasing its size very quickly

Status in cloud-init:
Incomplete

Bug description:
I use Linux machine on AWS EC2 instance with Red Hat Enterprise Linux
8.6 and my cloud-init-output.log is increasing its size very quickly
causing my app logs to stop writing in one-two days even though I have
20GB of storage.

I changed logging level from default DEBUG to ERROR in
/etc/cloud/cloud.cfg.d but it didn't help. Messages are also filling
up fast.

I can see that app messages are written in cloud-init-output.log which
is not something I want. Is there a way to turn it off?

/etc/cloud/cloud.cfg.d/05_logging.cfg is default.

To manage notifications about this bug go to:
https://bugs.launchpad.net/cloud-init/+bug/1981960/+subscriptions

--


Aleksandra Golubovic

Be the change you wish to see in the world

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Chad Smith(chad.smith) wrote on 2022-07-18T16:57:09.093524+00:00

Aleksandra (algol30) generally cloud-init should not be emitting debug logs with a frequency that impacts your system in "one-two days". This points to something unexpected in the environment that logs would help us better understand. Ultimately, we want to understand what types of potentially repeated events seem to be saturating your logs.

We may be able to get to that understanding a bit with some of the following:

  1. cloud-init --version
  2. cloud-nit status --long
  3. Are there repeated logs/tracebacks that seem to keep happening on the system (a bunch of failed retries/hotplug being enabled?
  4. cloud-init analyze show (Tells us how many boot events cloud-init has gone through on the system
  5. sudo cloud-init query --all (Note you will have to manually look through this JSON output specifically under the keys "ds" "merged_cfg" "vendordata", "userdata" to make sure you can change any securiry sensitive fields or passwords to REDACTED.

@ubuntu-server-builder
Copy link
Collaborator Author

Launchpad user Launchpad Janitor(janitor) wrote on 2022-09-17T04:17:22.085757+00:00

[Expired for cloud-init because there has been no activity for 60 days.]

@ubuntu-server-builder ubuntu-server-builder closed this as not planned Won't fix, can't repro, duplicate, stale May 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
launchpad Migrated from Launchpad
Projects
None yet
Development

No branches or pull requests

1 participant