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

Add support for Rocky Linux 8 #229

Merged
merged 1 commit into from
Oct 19, 2021

Conversation

darxriggs
Copy link
Contributor

No description provided.

This file is a copy of RedHat_8.yml / CentOS_8.yml.
@darxriggs
Copy link
Contributor Author

It looks like that the same test failure is present for all tests. It is unrelated to this change (also present in other PRs) and should be fixed separately.

TASK [Exit playbook when there's not enough unused disks in the system] ********
fatal: [sut]: FAILED! => {
    "changed": false
}

MSG:

Unable to find enough unused disks. Exiting playbook.
	to retry, use: --limit @/tmp/tests_volume_relabel.retry

@richm
Copy link
Contributor

richm commented Sep 26, 2021

It looks like that the same test failure is present for all tests. It is unrelated to this change (also present in other PRs) and should be fixed separately.

TASK [Exit playbook when there's not enough unused disks in the system] ********
fatal: [sut]: FAILED! => {
    "changed": false
}

MSG:

Unable to find enough unused disks. Exiting playbook.
	to retry, use: --limit @/tmp/tests_volume_relabel.retry

Right. Just ignore that for now. We're working on fixing the tests to skip that.

@spetrosi
Copy link
Contributor

spetrosi commented Oct 1, 2021

[citest]

@darxriggs
Copy link
Contributor Author

darxriggs commented Oct 1, 2021

An alternative could also be to add vars/RedHat.yml (and consolidate the CentOS.8.yml, RedHat.8.yml and RedHat.9.yml files) as there is also the "{{ ansible_facts['os_family'] }}.yml" lookup (see tasks/main.yml). This would support even more OS distributions.

@richm
Copy link
Contributor

richm commented Oct 4, 2021

An alternative could also be to add vars/RedHat.yml (and consolidate the CentOS.8.yml, RedHat.8.yml and RedHat.9.yml files) as there is also the "{{ ansible_facts['os_family'] }}.yml" lookup (see tasks/main.yml). This would support even more OS distributions.

Does ansible_facts['os_family'] on a Rocky Linux system return "RedHat"? If so, do you know in which version of Ansible this is supported (if it depends on the version of Ansible - not sure how this fact works).

@darxriggs
Copy link
Contributor Author

Rocky Linux is supported since Ansible 2.11. ansible_os_family is set to RedHat in this case.
The change in the mapping from distribution to OS family can be seen in https://github.com/ansible/ansible/pull/74530/files.

Unfortunately due to the Ansible release cycle this will not be backported, see ansible/ansible#74565.

But Ansible 2.9.23-1 in EPEL contains a change that adds the Rocky Linux support, see https://koji.fedoraproject.org/koji/buildinfo?buildID=1775015.

@richm
Copy link
Contributor

richm commented Oct 5, 2021

Rocky Linux is supported since Ansible 2.11. ansible_os_family is set to RedHat in this case. The change in the mapping from distribution to OS family can be seen in https://github.com/ansible/ansible/pull/74530/files.

OK. As soon as we can drop support for Ansible 2.9, we can switch here (and the other roles) to use ansible_os_family, but for now, let's keep this like you have it.

Unfortunately due to the Ansible release cycle this will not be backported, see ansible/ansible#74565.

But Ansible 2.9.23-1 in EPEL contains a change that adds the Rocky Linux support, see https://koji.fedoraproject.org/koji/buildinfo?buildID=1775015.

@richm
Copy link
Contributor

richm commented Oct 5, 2021

[citest commit:e572ab58bee1e0490aa377f49f078464130e9c89]

@richm
Copy link
Contributor

richm commented Oct 11, 2021

[citest pending]

1 similar comment
@richm
Copy link
Contributor

richm commented Oct 11, 2021

[citest pending]

@darxriggs
Copy link
Contributor Author

I wanted to double check if there is anything on my side that I can do.

You are still in the process of fixing the overall test problems before this can get merged?

Copy link
Contributor

@richm richm left a comment

Choose a reason for hiding this comment

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

lgtm

@richm
Copy link
Contributor

richm commented Oct 18, 2021

I wanted to double check if there is anything on my side that I can do.

You are still in the process of fixing the overall test problems before this can get merged?

How do we now denote this support in the meta/main.yml file? https://github.com/linux-system-roles/storage/blob/master/meta/main.yml - should we add name: Rocky under platforms? Is it somehow included or implied by name: EL?

@darxriggs
Copy link
Contributor Author

I double checked with https://galaxy.ansible.com/docs/contributing/creating_role.html. Under "platforms" it references the Ansible Galaxy API. So I searched for Rocky via https://galaxy.ansible.com/api/v1/platforms/?name__icontains=Rocky with 0 results. There is also no "CentOS" platform. Therefore having EL only should be fine.

Copy link
Contributor

@richm richm left a comment

Choose a reason for hiding this comment

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

lgtm

@richm richm merged commit d522b48 into linux-system-roles:master Oct 19, 2021
@darxriggs darxriggs deleted the rocky-linux-8 branch October 19, 2021 21:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants