Skip to content

1719725: cockpit - Don't concurrently set config and attach#2116

Closed
mvollmer wants to merge 1 commit intocandlepin:masterfrom
mvollmer:cockpit-fix-config-setting
Closed

1719725: cockpit - Don't concurrently set config and attach#2116
mvollmer wants to merge 1 commit intocandlepin:masterfrom
mvollmer:cockpit-fix-config-setting

Conversation

@mvollmer
Copy link
Copy Markdown
Contributor

Previously, the code would fire off all the Config.Set calls plus the
Attach.AutoAttach call one after the other without waiting for their
replies. The daemon can't seem to cope with this and corrupts the
config file as a result.

Thus, the calls are now done strictly sequentially.

Also, restart rhsm service after changing config values. This seems
to be necessary.

@candlepin-bot
Copy link
Copy Markdown

Can one of the admins verify this patch?

@mvollmer
Copy link
Copy Markdown
Contributor Author

mvollmer commented Jun 12, 2019

This can be seen as a workaround for a bug in rhsmd, but I haven't tried to find that bug yet.

Previously, the code would fire off all the Config.Set calls plus the
Attach.AutoAttach call one after the other without waiting for their
replies.  The daemon can't seem to cope with this and corrupts the
config file as a result.

Thus, the calls are now done strictly sequentially.

Also, restart rhsm service after changing config values.  This seems
to be necessary.
@mvollmer mvollmer force-pushed the cockpit-fix-config-setting branch from 635e220 to ee7e300 Compare June 13, 2019 07:02
@mvollmer
Copy link
Copy Markdown
Contributor Author

but I haven't tried to find that bug yet.

I have started looking, so we might want to put this PR on hold for a bit longer.

@jirihnidek
Copy link
Copy Markdown
Contributor

but I haven't tried to find that bug yet.

I have started looking, so we might want to put this PR on hold for a bit longer.

I agree. I would like to fix the bug in rhsm daemon properly, because the daemon should handle such situation without corrupting rhsm.conf. I wonder why auto-attach changes rhsm.conf?

@mvollmer
Copy link
Copy Markdown
Contributor Author

I agree. I would like to fix the bug in rhsm daemon properly, because the daemon should handle such situation without corrupting rhsm.conf

I think I got it: #2120

@mvollmer mvollmer closed this Jun 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants