-
Notifications
You must be signed in to change notification settings - Fork 329
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
fix: raspbian pi4 dockerd failing with segmentation fault, issue #286 #287
fix: raspbian pi4 dockerd failing with segmentation fault, issue #286 #287
Conversation
Hi @auphofBSF could you update your commit messages to use conventional commit: https://www.conventionalcommits.org/en/v1.0.0/#summary |
Issue however docker version shows experimental true and version 20.10.6 Stable I believe is 19.03 Docker-compose seems to be behind release currently 1.29 This install installs 1.21 Clean does not remove docker docker install appears to often require a manual start systemctl start docker.service or rerun state.apply docker
Issue is clean stops the docker.service but does not appear to uninstall `docker` still runs at cli but services are no longer present `apt list --installed | grep docker ` lists following ``` docker-ce-cli/buster,now 5:20.10.6~3-0~raspbian-buster armhf [installed,automatic] docker-ce-rootless-extras/buster,now 5:20.10.6~3-0~raspbian-buster armhf [installed,automatic] docker-ce/buster,now 5:20.10.6~3-0~raspbian-buster armhf [installed] docker-compose/stable,now 1.21.0-3 all [installed] golang-docker-credential-helpers/stable,now 0.6.1-2 armhf [installed,automatic] python3-docker/stable,now 3.4.1-4 all [installed] python3-dockerpty/stable,now 0.4.1-1 all [installed,automatic] python3-dockerpycreds/stable,now 0.3.0-1 all [installed,automatic] ``` compose does get uninstalled
5508982
to
9e6e59d
Compare
Failing Lint check on ./docker/osarchmap.yaml, because of jinja, I note the comment in #288 (review)
I will have to understand and modify this PR accordingly |
@auphofBSF We can get around this problem in this PR by adding Lines 23 to 24 in 4a9579f
Please don't worry about that! It is a detailed job that is too much to ask from someone who hasn't got a lot of familiarity with it. Let's get the CI for this PR working and then this can be merged, if all appears to be OK. |
Nice, I was unsure about #286 but PR makes sense. |
thank you @myii and @noelmcloughlin , that appears to work, I was delayed in pushing this as I wanted to do a final test locally with the the merge including Thankfully docker appears to install, on salt v3002.6 There are a two issues !!!! and I am not sure which need to be handled here.
Reason
Fixon target sudo update-alternatives --set iptables /usr/sbin/iptables-legacy
sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy
sudo shutdown -r 0 # Do a restart, Docker.d should then function or with Salt in an SLS iptables:
alternatives.set:
- path: /usr/sbin/iptables-legacy
ip6tables:
alternatives.set:
- path: /usr/sbin/ip6tables-legacy
What to do for this PRI hesitate to implement the fix for 2) in this docker_formula because I don't know which upgrade or raspbian version introduced it. For now I would recommend a note in documentation to the effect that
with regard to issue 1) re v3003.2 maybe a similar note in docs that this only current works on v3002.6 |
Thanks for the detailed update. Could you update the README please and we can merge once CI passes? thanks |
Commitlint does not like Uppercase characters so probably these cause problems with CI.
|
35f04ee
to
5c0f3d4
Compare
previous commit was doc: should have been docs:
attemp to format commit message such that they will pass lint tests
5c0f3d4
to
6f154ad
Compare
Apologies for the multitude of commits , trying to pass linting, restructured text syntax and rewording commit messages, All things I had no idea of how to do, but hopefully that should be able to be all squashed in merge of PR |
Thanks @auphofBSF for the PR, LGTM. merged |
# [2.1.0](v2.0.7...v2.1.0) (2021-09-04) ### Bug Fixes * raspbian pi4 dockerd failing with segmentation fault, issue [#286](#286) ([#287](#287)) ([85fb5d4](85fb5d4)) ### Continuous Integration * **3003.1:** update inc. AlmaLinux, Rocky & `rst-lint` [skip ci] ([4d373a1](4d373a1)) * **gemfile+lock:** use `ssf` customised `inspec` repo [skip ci] ([16cc758](16cc758)) * **kitchen:** move `provisioner` block & update `run_command` [skip ci] ([4ea5f26](4ea5f26)) * **kitchen+ci:** update with latest `3003.2` pre-salted images [skip ci] ([4fc33ad](4fc33ad)) * add Debian 11 Bullseye & update `yamllint` configuration [skip ci] ([1e822d0](1e822d0)) * **kitchen+gitlab:** remove Ubuntu 16.04 & Fedora 32 (EOL) [skip ci] ([0615c75](0615c75)) ### Features * **alma+rocky:** add platforms (based on CentOS 8) [skip ci] ([39fc09a](39fc09a))
🎉 This PR is included in version 2.1.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
PR progress checklist (to be filled in by reviewers)
What type of PR is this?
Primary type
[build]
Changes related to the build system[chore]
Changes to the build process or auxiliary tools and libraries such as documentation generation[ci]
Changes to the continuous integration configuration[feat]
A new feature[fix]
A bug fix , [BUG] segmentation fault from dockerd on fresh Pi 4 #286[perf]
A code change that improves performance[refactor]
A code change that neither fixes a bug nor adds a feature[revert]
A change used to revert a previous commit[style]
Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc.)Secondary type
[docs]
Documentation changes[test]
Adding missing or correcting existing testsDoes this PR introduce a
BREAKING CHANGE
?Unsure.
Related issues and/or pull requests
Describe the changes you're proposing
This PR installs docker and docker-compose successfully and functionally tested on raspberry pi4 buster
This PR however should be regarded as WIP as I have limited understanding of the full functionality of this
docker-formula
and am still a very NOOB to salt and salt formulas> I am very willing to learn and the process of getting it functional to this state has been rewarding. I am anticipating the saltstack formula masters will be kind enough to show what next and guide to fixing remaining issues in style and context of the universaldocker-formula
.The following 4 are my understanding of open issues that I am stuck with
[docker.io raspbian notes]
The raspbian provisioning of docker to raspbian as achieved in this WIP PR uses functionality from https://docs.docker.com/engine/install/debian/#install-using-the-convenience-script. It specifically mentionsThe scripts require root or sudo privileges to run. Therefore, you should carefully examine and audit the scripts before running them.
The scripts attempt to detect your Linux distribution and version and configure your package management system for you. In addition, the scripts do not allow you to customize any installation parameters. This may lead to an unsupported configuration, either from Docker’s point of view or from your own organization’s guidelines and standards.
The scripts install all dependencies and recommendations of the package manager without asking for confirmation. This may install a large number of packages, depending on the current configuration of your host machine.
The script does not provide options to specify which version of Docker to install, and installs the latest version that is released in the “edge” channel.
Do not use the convenience script if Docker has already been installed on the host machine using another mechanism.
[docker provisioned is experimental]
runningdocker version
lists the provisioned docker client and engine as 20.10.6 with the client marked as experimental. I was anticipating version 19.03.xx as whatdocker-formula
provisions to a debian installation.[docker.service startup issues on state.apply]
Frequently fails on ID: docker-software-service-running-docker.on salt master the following failure is displayed
on target machine
systemctl status docker.service
showsSolved by ether redo
salt-ssh .... state.apply docker
or issuing asystemctl start docker.service
[state.apply docker.clean not removing docker]
The clean stops and removes docker.service. It uninstalls docker-compose but docker still remains installed. iedocker
still show the CLI commands butsudo docker ps
fails correctly. doing anapt list --installed | grep docker
lists the following:Pillar / config required to test the proposed changes
Non Required
Debug log showing how the proposed changes work
Documentation checklist
README
(e.g.Available states
).pillar.example
.Testing checklist
state_top
).Additional context