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

[BUG] Misleading log "BUG: replica is running but storage IP is empty" #4153

Closed
shuo-wu opened this issue Jun 20, 2022 · 5 comments
Closed
Assignees
Labels
backport/1.3.1 component/longhorn-manager Longhorn manager (control plane) kind/bug severity/4 Function working but has a minor issue (a minor incident with low impact)
Milestone

Comments

@shuo-wu
Copy link
Contributor

shuo-wu commented Jun 20, 2022

Describe the bug

The below log is misleading:

time="2022-06-20T03:26:19Z" level=error msg="BUG: replica is running but storage IP is empty" accessMode=rwo controller=longhorn-volume frontend=blockdev migratable=false n

It will be printed when the system containing volumes is upgraded to v1.3.0.

To Reproduce

Steps to reproduce the behavior:

  1. Deploy Longhorn v1.2.x
  2. Create one volume
  3. Upgrade Longhorn to v1.3.0
  4. Check the longhorn manager pod logs and search the error message BUG: replica is running but storage IP is empty

Expected behavior

There should not be this kind of logs

Log or Support bundle

time="2022-06-20T03:26:19Z" level=error msg="BUG: replica is running but storage IP is empty" accessMode=rwo controller=longhorn-volume frontend=blockdev migratable=false n

Environment

  • Longhorn version: v1.2.x -> v1.3.0

Additional context

This is reported in #4134

@shuo-wu shuo-wu added this to the v1.4.0 milestone Jun 20, 2022
@shuo-wu shuo-wu self-assigned this Jun 20, 2022
@innobead innobead added the severity/4 Function working but has a minor issue (a minor incident with low impact) label Jun 20, 2022
@longhorn-io-github-bot
Copy link

longhorn-io-github-bot commented Jun 20, 2022

Pre Ready-For-Testing Checklist

  • Where is the reproduce steps/test steps documented?
    The reproduce steps/test steps are at: the ticket description

  • Does the PR include the explanation for the fix or the feature?

  • Have the backend code been merged (Manager, Engine, Instance Manager, BackupStore etc) (including backport-needed/*)?
    The PR is at controller: Fix the misleading log for the replicas that have no StorageIP longhorn-manager#1389

  • If labeled: require/manual-test-plan Has the manual test plan been documented?
    The updated manual test plan is the same as the reproducing step

@chriscchien
Copy link
Contributor

Hi @shuo-wu ,

I tested with master-head, after upgrade LH from v1.2.4 to master-head, got log below

time="2022-06-21T04:15:32Z" level=debug msg="Replica is running but storage IP is empty, need to wait for update" accessMode=rwo controller=longhorn-volume frontend=blockdev migratable=false node=worker4 owner=worker4 replica=vol2-r-79603e7a state=attached volume=vol

The content still present but log level changed from error to debug, reference to this PR, I think this is correct behavior?

If it's OK I'll close thsi issue, thank you

@shuo-wu
Copy link
Contributor Author

shuo-wu commented Jun 21, 2022

This message is the correct one. I can close this now.

@innobead
Copy link
Member

@cchien816 We need to verify on 1.3.x as well. Please create a backport issue for that. Thanks.

@shuo-wu
Copy link
Contributor Author

shuo-wu commented Jun 21, 2022

@innobead The backported issue ticket is already there: #4156

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport/1.3.1 component/longhorn-manager Longhorn manager (control plane) kind/bug severity/4 Function working but has a minor issue (a minor incident with low impact)
Projects
None yet
Development

No branches or pull requests

4 participants