-
Notifications
You must be signed in to change notification settings - Fork 2.3k
syscontainers: fix CRI-O and container-engine installation #6316
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
Changes from all commits
2ae1a09
26472ab
5ee8df8
7d7c4f3
9c29b47
5431d12
40d63b7
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,6 +44,15 @@ | |
| - name: include node installer | ||
| include_tasks: install.yml | ||
|
|
||
| - name: Restart cri-o | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why does this need to be restarted here? There aren't any changes being made to crio in this role as far as I can tell.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was required when the sdn was installed just prior to this section. Since Ref: #6362 (review) |
||
| systemd: | ||
| name: cri-o | ||
| enabled: yes | ||
| state: restarted | ||
| when: openshift_use_crio | ||
| register: task_result | ||
| failed_when: task_result|failed and 'could not find the requested service' not in task_result.msg|lower | ||
|
|
||
| - name: restart NetworkManager to ensure resolv.conf is present | ||
| systemd: | ||
| name: NetworkManager | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,3 +13,5 @@ galaxy_info: | |
| - cloud | ||
| dependencies: | ||
| - role: lib_utils | ||
| - role: container_runtime | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please checkout my other patch to see the general direction that we're moving. Container runtime will be setup as a prerequisite before openshift is deployed. It cannot be a meta-dependency of any other role. |
||
| - role: openshift_facts | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure this is necessary here.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I tried without openshift_facts and it was still failing
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm happy to openshift_facts here if you like, that's not really going to change anything in this role, and it's essentially a 0 task import. |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's not do this. Let's have the user give us a dictionary and create a new variable. Since this isn't actually used by docker, no need to re-use docker's variables.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is used by docker. it is used by
daemon.jsonis the template for/etc/docker/container-daemon.jsonwhich is used by docker when running in a container. So in this caselog-optsis exactly the same asopenshift_docker_log_optionsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Okay, that sounds good then. I think in the future we should do the reverse, we've talked about the current inflexibility of the docker options as impemented. I think it would be better as a list of kv pairs, and we convert a deprecated list k=v.