Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Make docker image tarball a required file #2103

Merged
merged 2 commits into from
Jul 24, 2020
Merged

Conversation

jgrund
Copy link
Member

@jgrund jgrund commented Jul 23, 2020

iml-images.tgz currently lives under /var/tmp
and is marked as ok if it's missing.

This can cause an issue if the tarball is removed, as iml-docker will
not be able to load the images and startup.

Move the tarball to /var/lib, and make it non-optional.

Signed-off-by: Joe Grund jgrund@whamcloud.io


This change is Reviewable

`iml-images.tgz` currently lives under /var/tmp
and is marked as ok if it's missing.

This can cause an issue if the tarball is removed, as `iml-docker` will
not be able to load the images and startup.

Move the tarball to `/var/lib`, and make it non-optional.

Signed-off-by: Joe Grund <jgrund@whamcloud.io>
@jgrund jgrund added the bug label Jul 23, 2020
@jgrund jgrund added this to the IML EX V3 milestone Jul 23, 2020
@jgrund jgrund requested a review from a team July 23, 2020 20:07
@jgrund jgrund self-assigned this Jul 23, 2020
Copy link
Contributor

@utopiabound utopiabound left a comment

Choose a reason for hiding this comment

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

Attr's are a little odd, but otherwise looks good.

iml-docker.spec Outdated
mv iml-cli-proxy.sh %{buildroot}%{_bindir}/iml
mv update-embedded.sh %{buildroot}%{_bindir}/update-embedded
mv iml-docker.service %{buildroot}%{_unitdir}


%files
%{_sysconfdir}/iml-docker
%attr(750, root, root) %config(missingok) %{_tmppath}/iml-images.tgz
%attr(750, root, root) %{_sharedstatedir}/iml-images.tgz
Copy link
Contributor

Choose a reason for hiding this comment

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

The attr be 0640

and the blow should be 0755

iml-docker.spec Outdated Show resolved Hide resolved
iml-docker.spec Outdated Show resolved Hide resolved
@jgrund jgrund merged commit 119f3b5 into master Jul 24, 2020
@jgrund jgrund deleted the move-image-location branch July 24, 2020 13:54
beevans pushed a commit to beevans/integrated-manager-for-lustre that referenced this pull request Aug 6, 2020
* Make docker image tarball a required file

`iml-images.tgz` currently lives under /var/tmp
and is marked as ok if it's missing.

This can cause an issue if the tarball is removed, as `iml-docker` will
not be able to load the images and startup.

Move the tarball to `/var/lib`, and make it non-optional.

Signed-off-by: Joe Grund <jgrund@whamcloud.io>

* Apply suggestions from code review
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
4 participants