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
Refresh container providers via api fails #7256
Comments
@alongoldboim @simon3z we are missing the refresh operation as the last part of the deployment. |
@dkorn if this is specific for containers then yes please continue researching (and fix). |
@dkorn you've been working on darga recently (for another bug), can you verify this on darga as well? |
|
@simon3z @dkorn the code for API refresh [1] does two checks:
~~I think of this two fixes (I think they are easy to implement), but both has problems :-(
UPDATE A: The API forces authentication validation on each create/edit call, it does not work when using multiple endpoints. [1] https://github.com/ManageIQ/manageiq/blob/master/app/models/ext_management_system.rb#L382 |
Add a force validation in the API, to complete the actions available in the UI Issue: ManageIQ#7256
A regression was created when introducing multiple provider endpoints. The function for updating authentications was not updated to update when changing the endpoints and authentications. This commit updates the authentication is this cases. Issue: ManageIQ#7256
This issue has been automatically marked as stale because it has not been updated for at least 6 months. If you can still reproduce this issue on the current release or on Thank you for all your contributions! |
Fixed by: |
@dkorn it appears this issue is now resolved. Please close. |
@miq-bot close_issue |
According to the docs [1] performing a refresh of providers using api request is done via the refresh action. While it works well for cloud providers, when attempting that on container provider the operation fails with the following response (provider id is 7):
Looking into it a little, I was able to trace the failure into two methods, that are being called from
def refresh_ems
from app/models/ext_management_system.rb:missing_credentials
andauthentication_status_ok
.The first isn't implemented in container_manager.rb, while its implementation in cloud_manager.rb seems lacking some logic (returns false). The second requires a bit more research.
[1] https://github.com/ManageIQ/manageiq_docs/blob/master/api/reference/providers.adoc#refresh-providers
The text was updated successfully, but these errors were encountered: