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

[WIP] Split up "pod" images and managed container images #224

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

agrare
Copy link
Member

@agrare agrare commented Apr 26, 2022

Container Images on OpenShift come from two different sources, the first is from the /apis/image.openshift.io/v1 API and the second is from pods. If a pod is using an image which isn't in the /apis/image.openshift.io/v1 we create a new "unmanaged" container image record. Currently these are of the type ::ContainerImage.

Cross-repo Tests: ManageIQ/manageiq-cross_repo-tests#632

Depends on:

Comment on lines +6 to +8
def self.disconnect_inv(ids)
_log.info "Disconnecting Images [#{ids}]"
base_class.where(:id => ids).update_all(:container_image_registry_id => nil, :deleted_on => Time.now.utc)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO not sure why this is necessary, when the ContainerImage.disconnect_inv method is run from the context of the ManageIQ::Providers::Openshift::ContainerManager::ContainerImage class where isn't picking up on the child classes. Suspect something to do with the ActsAsStiLeafClass but need to investigate more

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this is due to ActsAsStiLeafClass using just [sti_class] for the type clause

@Fryguy Fryguy added the bug label May 11, 2022
@Fryguy Fryguy self-assigned this May 11, 2022
@kbrock
Copy link
Member

kbrock commented May 17, 2022

Could you update the issue description?

Currently these are of the type ::ContainerImage.

That states the before, could you share what the after value will be?

@miq-bot miq-bot added the stale label Feb 27, 2023
@miq-bot
Copy link
Member

miq-bot commented Feb 27, 2023

This pull request has been automatically marked as stale because it has not been updated for at least 3 months.

If these changes are still valid, please remove the stale label, make any changes requested by reviewers (if any), and ensure that this issue is being looked at by the assigned/reviewer(s)

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

@miq-bot miq-bot closed this May 29, 2023
@miq-bot
Copy link
Member

miq-bot commented May 29, 2023

This pull request has been automatically closed because it has not been updated for at least 3 months.

Feel free to reopen this pull request if these changes are still valid.

Thank you for all your contributions! More information about the ManageIQ triage process can be found in the triage process documentation.

@agrare agrare removed the stale label Jun 30, 2023
@agrare agrare reopened this Jun 30, 2023
@agrare agrare added the pinned label Jun 30, 2023
@miq-bot
Copy link
Member

miq-bot commented Jun 30, 2023

Checked commits agrare/manageiq-providers-openshift@5b83538~...94ed605 with ruby 2.6.10, rubocop 1.28.2, haml-lint 0.35.0, and yamllint
7 files checked, 3 offenses detected

app/models/manageiq/providers/openshift/container_manager/container_image.rb

app/models/manageiq/providers/openshift/container_manager/managed_container_image.rb

@miq-bot
Copy link
Member

miq-bot commented Feb 6, 2024

This pull request is not mergeable. Please rebase and repush.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants