Skip to content

Comments

syscontainers: fix CRI-O and container-engine installation#6316

Merged
sdodson merged 7 commits intoopenshift:masterfrom
giuseppe:fix-syscontainers-installation
Dec 8, 2017
Merged

syscontainers: fix CRI-O and container-engine installation#6316
sdodson merged 7 commits intoopenshift:masterfrom
giuseppe:fix-syscontainers-installation

Conversation

@giuseppe
Copy link
Member

Signed-off-by: Giuseppe Scrivano gscrivan@redhat.com

@openshift-ci-robot openshift-ci-robot added the size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. label Nov 29, 2017
l_crio_registries: "{{ l2_docker_additional_registries + ['docker.io'] }}"
- set_fact:
l_additional_crio_registries: "{{ '\"{}\"'.format('\", \"'.join(l_crio_registries)) }}"
l_is_node_system_container: "{{ (openshift_use_node_system_container | default(openshift_use_system_containers | default(false)) | bool) }}"
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no need to use set_fact here.

We could do the same exact line in defaults/main.yml

@michaelgugino
Copy link
Contributor

@giuseppe I have a large refactor of this role out that covers some of this type of thing: #6297

Your feedback on that patch would be appreciated.

@giuseppe
Copy link
Member Author

if you are already addressing this issue in your PR, I am fine to close this one. I don't want to create merge conflicts for such a trivial change :-)

The only reason I've opened this PR is that the installation was failing for me, as openshift.common.is_node_system_container is not defined

@michaelgugino
Copy link
Contributor

@giuseppe I'm hoping to merge my PR by tomorrow. If it doesn't ship, I can merge this one and rebase, not a big deal.

@giuseppe giuseppe force-pushed the fix-syscontainers-installation branch from e5c86ff to 872accf Compare November 30, 2017 14:39
@giuseppe
Copy link
Member Author

/retest

@giuseppe
Copy link
Member Author

@michaelgugino I've done the change you requested

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 5, 2017
@giuseppe giuseppe force-pushed the fix-syscontainers-installation branch from 872accf to 2393ccb Compare December 5, 2017 08:53
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 5, 2017
@ashcrow
Copy link
Member

ashcrow commented Dec 5, 2017

/test logging

@giuseppe giuseppe force-pushed the fix-syscontainers-installation branch from 2393ccb to 25d8a2e Compare December 6, 2017 15:39
@openshift-ci-robot openshift-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. labels Dec 6, 2017
@giuseppe giuseppe changed the title crio: define and use l_is_node_system_container syscontainers: fix CRI-O and container-engine installation Dec 6, 2017
@giuseppe
Copy link
Member Author

giuseppe commented Dec 6, 2017

I've pushed more patches to this PR to address also some other issues. I've not opened a new PR since the patch already present here is necessary as well.

@giuseppe
Copy link
Member Author

giuseppe commented Dec 6, 2017

/cc @runcom @ashcrow @michaelgugino @sdodson

@ashcrow
Copy link
Member

ashcrow commented Dec 6, 2017

@michaelgugino PTAL

@giuseppe giuseppe force-pushed the fix-syscontainers-installation branch 2 times, most recently from d17945e to 6807ee7 Compare December 6, 2017 16:20
- cloud
dependencies:
- role: lib_utils
- role: container_runtime
Copy link
Contributor

Choose a reason for hiding this comment

The 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.

dependencies:
- role: lib_utils
- role: container_runtime
- role: openshift_facts
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure this is necessary here.

Copy link
Member Author

Choose a reason for hiding this comment

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

I tried without openshift_facts and it was still failing

Copy link
Contributor

Choose a reason for hiding this comment

The 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.

return string.split(separator)


def oo_list_to_dict(lst, separator='='):
Copy link
Contributor

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.

Copy link
Member Author

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.json is the template for /etc/docker/container-daemon.json which is used by docker when running in a container. So in this case log-opts is exactly the same as openshift_docker_log_options

Copy link
Contributor

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.

@giuseppe giuseppe force-pushed the fix-syscontainers-installation branch 2 times, most recently from 951ae60 to d7d7869 Compare December 6, 2017 18:24
@giuseppe
Copy link
Member Author

giuseppe commented Dec 6, 2017

@sdodson @ingvagabund could we enable container-engine in the system-containers CI tests (should be enough to openshift_docker_use_system_container=True? This would help us to catch earlier some of the issues fixed here.

@michaelgugino
Copy link
Contributor

close and reopen, I think the CI was using the old job definition for crio.

@michaelgugino
Copy link
Contributor

Close/reopen again. Updated tests weren't pushed yet, so the crio options for ansible playbook were still missing. Should be present now.

@michaelgugino
Copy link
Contributor

@michaelgugino
Copy link
Contributor

This is the last missing piece: #6394

If someone wants to review that and merge it, it should unblock crio.

@sdodson
Copy link
Member

sdodson commented Dec 8, 2017

/retest

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 8, 2017
@ashcrow
Copy link
Member

ashcrow commented Dec 8, 2017

ci/openshift-jenkins/install — Jenkins job failed. 

Oddly enough CI says it's still running. I'll rebase this PR while @giuseppe is AFK.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
change introduced with 39cf508

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@giuseppe giuseppe force-pushed the fix-syscontainers-installation branch from b8065ce to 40d63b7 Compare December 8, 2017 17:44
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Dec 8, 2017
@giuseppe
Copy link
Member Author

giuseppe commented Dec 8, 2017

@ashcrow thanks. I've just pushed a rebased version ⬆️

@sdodson
Copy link
Member

sdodson commented Dec 8, 2017

Merging based on the previously green tests and the fact that this has only been rebased. Not having this merged is blocking other work.

@sdodson sdodson merged commit 8b48428 into openshift:master Dec 8, 2017
@openshift-ci-robot
Copy link

openshift-ci-robot commented Dec 8, 2017

@giuseppe: The following test failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/openshift-jenkins/install 40d63b7 link /test install

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Details

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. I understand the commands that are listed here.

@runcom
Copy link
Member

runcom commented Dec 8, 2017

The CRI-O and Origin CI is still failing, right now with rpmbuild of openshift origin release

openshift-merge-robot added a commit that referenced this pull request Dec 11, 2017
Automatic merge from submit-queue.

Remove container_runtime from the openshift_version

We meant to remove this before merging #6316
@adelton
Copy link
Contributor

adelton commented Dec 13, 2017

Is seems this merge has caused regressions #6464.

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

Labels

size/M Denotes a PR that changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants