You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
baremetal: Ironic bootstrap services should run as a staticpod #2251
It has been noted in #2249 that the ironic services currently enabled via a systemd unit and start/stop scripts should probably be migrated to a staticpod definition.
Raising this to keep track of this, and I'll investigate then follow up with a PR to address this.
@derekhiggins, the line you tagged in server.go will not effect podman containers (they've been filtered out by that point). However, the systemctl restart cri-o.service call will crio-wipe.service and wipe the whole storage (podman and cri-o). I have a fix in flight, such that crio-wipe will only clear the storage used by cri-o.
@derekhiggins, the line you tagged in server.go will not effect podman containers (they've been filtered out by that point).
The crio command I've pasted above (with --log-level debug) shows that the podman container hasn't been filtered out, see could not restore container 3c182da7d9e149dc75c6f1aa58ae3669659623162acaac98d165e341de8f22de
However, the systemctl restart cri-o.service call will crio-wipe.service and wipe the whole storage (podman and cri-o). I have a fix in flight, such that crio-wipe will only clear the storage used by cri-o.
I've run this while watching crio-wipe, the service is restarted when crio is restarted but I've only observed it effecting the storage the first time its run,
crio-wipe will only run the first time. It expects a version file at /usr/libexec/crio/version, and will clear storage if that version is out of date (or doesn't exist). when cri-o starts up, it lays down a version file, so further restarts won't clear.
crio-wipe will only run the first time. It expects a version file at /usr/libexec/crio/version, and will clear storage if that version is out of date (or doesn't exist). when cri-o starts up, it lays down a version file, so further restarts won't clear.
So just to clarify, your agreeing with me? Its not crio-wipe that is causing this problem, cri-o is what is removing the podman containers?
I wasn't agreeing with you earlier, but I've since thought about it more and it does seem like cri-o is deleting podman containers. I'll look into it, what container are you using?
So looking at moving these services to a static pod, it seems we'll need to move them to the MCO similar to openshift/machine-config-operator#1002 where the keepalived and coredns services got moved
So looking at moving these services to a static pod, it seems we'll need to move them to the MCO similar to openshift/machine-config-operator#1002 where the keepalived and coredns services got moved
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
Mark the issue as fresh by commenting /remove-lifecycle stale.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting /lifecycle frozen.
If this issue is safe to close now please do so with /close.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
Reopen the issue by commenting /reopen.
Mark the issue as fresh by commenting /remove-lifecycle rotten.
Exclude this issue from closing again by commenting /lifecycle frozen.
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
Activity
hardys commentedon Aug 22, 2019
/label platform/baremetal
hardys commentedon Aug 22, 2019
/assign
derekhiggins commentedon Aug 22, 2019
This came about when we had problems with ironic containers openshift-metal3/dev-scripts#753
digging into it a little the podman containers are getting deleted by the crio service
crio attempts to load the containers started by podman and fails, it then deletes them
https://github.com/cri-o/cri-o/blob/278995c/server/server.go#L208
crio is getting restarted by a failing bootkube.sh (failure to contact the DNS server)
installer/data/data/bootstrap/files/usr/local/bin/bootkube.sh.template
Line 62 in 35d1169
Aug 22 10:43:42 localhost bootkube.sh[1624]: Error: error pulling image "registry.svc.ci.openshift.org/ocp/release:4.2": unable to pull registry.svc.ci.openshift.org/ocp/release:4.2: unable to pull image: Error initializing source docker://registry.svc.ci.openshift.org/ocp/release:4.2: pinging docker registry returned: Get https://registry.svc.ci.openshift.org/v2/: dial tcp: lookup registry.svc.ci.openshift.org on [::1]:53: read udp [::1]:38894->[::1]:53: read: connection refusedrhatdan commentedon Aug 22, 2019
@mrunalp @umohnani8 @haircommander Probably should not do that...
haircommander commentedon Aug 22, 2019
@derekhiggins, the line you tagged in server.go will not effect podman containers (they've been filtered out by that point). However, the
systemctl restart cri-o.servicecall willcrio-wipe.serviceand wipe the whole storage (podman and cri-o). I have a fix in flight, such that crio-wipe will only clear the storage used by cri-o.derekhiggins commentedon Aug 22, 2019
The crio command I've pasted above (with --log-level debug) shows that the podman container hasn't been filtered out, see
could not restore container 3c182da7d9e149dc75c6f1aa58ae3669659623162acaac98d165e341de8f22deI've run this while watching crio-wipe, the service is restarted when crio is restarted but I've only observed it effecting the storage the first time its run,
haircommander commentedon Aug 22, 2019
crio-wipewill only run the first time. It expects a version file at/usr/libexec/crio/version, and will clear storage if that version is out of date (or doesn't exist). when cri-o starts up, it lays down a version file, so further restarts won't clear.derekhiggins commentedon Aug 22, 2019
So just to clarify, your agreeing with me? Its not crio-wipe that is causing this problem, cri-o is what is removing the podman containers?
haircommander commentedon Aug 22, 2019
I wasn't agreeing with you earlier, but I've since thought about it more and it does seem like cri-o is deleting podman containers. I'll look into it, what container are you using?
haircommander commentedon Aug 22, 2019
and what versions of cri-o and podman?
derekhiggins commentedon Aug 22, 2019
podman-1.4.2-1.module+el8.1.0+3423+f0eda5e0.x86_64
cri-o-1.14.10-0.3.dev.rhaos4.2.gitb5c74ef.el8.x86_64
Thanks, the containers where we noticed this are started by startironic.sh (we intend to move these to a static pod in future)
https://github.com/openshift/installer/blob/master/data/data/bootstrap/baremetal/files/usr/local/bin/startironic.sh.template
hardys commentedon Oct 1, 2019
So looking at moving these services to a static pod, it seems we'll need to move them to the MCO similar to openshift/machine-config-operator#1002 where the keepalived and coredns services got moved
abhinavdahiya commentedon Nov 5, 2019
It seems like this is already the case.
/close
openshift-bot commentedon Feb 20, 2020
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting
/remove-lifecycle stale.Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting
/lifecycle frozen.If this issue is safe to close now please do so with
/close./lifecycle stale
stbenjam commentedon Feb 20, 2020
/remove-lifecycle stale
This is still important.
openshift-bot commentedon Jun 5, 2020
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting
/remove-lifecycle stale.Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting
/lifecycle frozen.If this issue is safe to close now please do so with
/close./lifecycle stale
openshift-bot commentedon Jul 5, 2020
Stale issues rot after 30d of inactivity.
Mark the issue as fresh by commenting
/remove-lifecycle rotten.Rotten issues close after an additional 30d of inactivity.
Exclude this issue from closing by commenting
/lifecycle frozen.If this issue is safe to close now please do so with
/close./lifecycle rotten
/remove-lifecycle stale
openshift-bot commentedon Aug 4, 2020
Rotten issues close after 30d of inactivity.
Reopen the issue by commenting
/reopen.Mark the issue as fresh by commenting
/remove-lifecycle rotten.Exclude this issue from closing again by commenting
/lifecycle frozen./close
openshift-ci-robot commentedon Aug 4, 2020
@openshift-bot: Closing this issue.
Details
In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.