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

ensure/enable dependencies needed for FC24 #2674

Closed
wants to merge 1 commit into from
Closed

ensure/enable dependencies needed for FC24 #2674

wants to merge 1 commit into from

Conversation

chrrrles
Copy link

These packages are required in order to install on Fedora Cloud 24 -- as well, NetworkManager needs to be enabled and running.

@openshift-bot
Copy link

Can one of the admins verify this patch?

@openshift-bot
Copy link

Can one of the admins verify this patch?
I understand the following comments:

  • bot, add author to whitelist
  • bot, test pull request
  • bot, test pull request once

- name: Ensure yum-utils is installed
action: "{{ ansible_pkg_mgr }} name=yum-utils state=present"
- name: Enable NetworkManager
service: name=NetworkManager enabled=yes state=started
Copy link
Member

Choose a reason for hiding this comment

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

We've deliberately avoided doing this because we've always seen it as being too risky. I'd prefer checking for this in a pre-requisites playbook so we get to it earlier than we are right now.

Copy link
Author

Choose a reason for hiding this comment

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

Hmm - I agree, but on that point it might be good to move all package / distribution oriented tasks out of openshift_facts and into a pre-req playbook/task - this would make it easier to adapt openshift-ansible for Debian, etc...

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, we have a near term goal of moving that sort of stuff out of openshift_facts into a pre-req playbook so it's not called a dozen times or more. There's also #2152 that's related to this.

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 also this PR that was recently merged that provides a byo playbook for installing and enabling NetworkManager: #2771

with_items:
- PyYAML
- yum-utils
- dbus-python
Copy link
Contributor

Choose a reason for hiding this comment

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

That will install python 2 version of the dependencies, so I would suggest doing something like this:

    with_items:
    - "libsemanage-python{{ ansible_python['version']['major']}}"
    - "python{{ ansible_python['version']['major']}}-dbus"

So this can be safely run on python 3 (I am currently testing ansible on python 3, and I was able to deploy on F24 with python 3 installed and used with ansible 2.2)

@mscherer
Copy link
Contributor

Also related #2840 (since F25 systemd is a bit less forgiving when NetworkManager is not installed)

@mscherer
Copy link
Contributor

I also took a look at F25, and there is no NetworkManager, and you can't add dispatcher script to systemd-networkd (by design).

@openshift-bot
Copy link

Can one of the admins verify this patch?

@openshift-bot
Copy link

OpenShift Ansible Action Required: Pull request cannot be automatically merged, please rebase your branch from latest HEAD and push again

@openshift-bot openshift-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Mar 5, 2017
@detiber
Copy link
Contributor

detiber commented Mar 5, 2017

@chrrrles @mscherer is this still relevant?

@openshift-bot
Copy link

Can one of the admins verify this patch?
I understand the following commands:

  • bot, add author to whitelist
  • bot, test pull request
  • bot, test pull request once

1 similar comment
@openshift-bot
Copy link

Can one of the admins verify this patch?
I understand the following commands:

  • bot, add author to whitelist
  • bot, test pull request
  • bot, test pull request once

@chrrrles
Copy link
Author

@detiber Hello. I don't feel this PR is relevant anymore -- as I am setting up the prequisites outside of openshift-ansible. Closing...

@chrrrles chrrrles closed this Apr 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants