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

RM-7505 Add support for Arch Linux #461

Merged
merged 4 commits into from Jan 30, 2018
Merged

Conversation

HacKanCuBa
Copy link
Contributor

With the help of a friend, we added support for Arch Linux.
We tested it several times on different machines and VMs to make sure it works as expected.
I was specially careful on not changing current functionality.

hosts: add arch based on fedora and add detection for distro.
util: add pacman package manager and archlinux default package.
install: add distro detection and package selection
@ceph-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

Copy link
Contributor

@alfredodeza alfredodeza left a comment

Choose a reason for hiding this comment

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

We don't have the ability to test any of this, and we don't know how to maintain it moving forwards since there is no official Ceph support in Arch. Could you please expand the need to support Arch here?

hostname = distro.conn.hostname
LOG = logging.getLogger(hostname)

# I need to stop and disable services prior package removal
Copy link
Contributor

Choose a reason for hiding this comment

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

this reads like a packaging problem on Arch's side. It is the package itself that should have rules that take care of this. I guess this doesn't happen here because you have encountered this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Exactly, Arch packages don't start nor stop services, neither handle enabling/disabling.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would you prefer to notify the user, instead of starting and enabling services?

@HacKanCuBa
Copy link
Contributor Author

BTW, I can help you with the testing and maintaining of this for Arch Linux, I have a productive Arch Linux server so I will use this for a long time.

Copy link
Contributor

@alfredodeza alfredodeza left a comment

Choose a reason for hiding this comment

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

This looks OK to me. I am not excited about adding support for non-ceph supported systems though. I'm OK with merging this as-is

/cc @vasukulkarni

@vasukulkarni
Copy link
Contributor

No objections as well, but It will be nice to throw Warning message during install, something like "Arch is not a supported distro and is for experimental use" or something ( can be added in install.py).

We can merge this after that.

@alfredodeza
Copy link
Contributor

@vasukulkarni we don't do that for all the other distros that we don't support, so I am -1 on adding warnings just for Arch.

@vasukulkarni
Copy link
Contributor

@alfredodeza yep that is fair!, we have other distro's without warning message, yet some point we should add the warning based on ceph tested distro's but is a different issue.

@vasukulkarni vasukulkarni merged commit 70aca40 into ceph:master Jan 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants