Comments (6)
I believe that this is caused by this code. This issue will require a patch to fix.
We ran into this a few months back with Centos Stream, and added it as a new type of platform. It's a bit hacky, but you may be able to override the platform detection with platform: centosstream
added to your driver config and get a working result.
from kitchen-docker.
I can probably send in a patch, but I don't want to perpetuate the hack. Is there a way you'd like to see it done?
from kitchen-docker.
So the platform hack worked, but I get an error that a temp .sh file is not in the image (I confirmed this was correct by hoping in the running container). Related to the hack?
I, [2022-08-25T11:25:16.427242 #26582] INFO -- sandbox-amazonlinux-2022: -----> Cleaning up any prior instances of <sandbox-amazonlinux-2022>
I, [2022-08-25T11:25:16.427314 #26582] INFO -- sandbox-amazonlinux-2022: -----> Destroying <sandbox-amazonlinux-2022>...
I, [2022-08-25T11:25:16.427882 #26582] INFO -- sandbox-amazonlinux-2022: Finished destroying <sandbox-amazonlinux-2022> (0m0.00s).
I, [2022-08-25T11:25:16.428100 #26582] INFO -- sandbox-amazonlinux-2022: -----> Testing <sandbox-amazonlinux-2022>
I, [2022-08-25T11:25:16.428160 #26582] INFO -- sandbox-amazonlinux-2022: -----> Creating <sandbox-amazonlinux-2022>...
I, [2022-08-25T11:26:30.568709 #26582] INFO -- sandbox-amazonlinux-2022: Finished creating <sandbox-amazonlinux-2022> (1m14.14s).
I, [2022-08-25T11:26:30.568831 #26582] INFO -- sandbox-amazonlinux-2022: -----> Converging <sandbox-amazonlinux-2022>...
I, [2022-08-25T11:26:30.623290 #26582] INFO -- sandbox-amazonlinux-2022: Preparing files for transfer
I, [2022-08-25T11:26:30.623381 #26582] INFO -- sandbox-amazonlinux-2022: Preparing dna.json
I, [2022-08-25T11:26:30.624081 #26582] INFO -- sandbox-amazonlinux-2022: Resolving cookbook dependencies with Berkshelf 6.3.4...
I, [2022-08-25T11:26:32.059676 #26582] INFO -- sandbox-amazonlinux-2022: Removing non-cookbook files before transfer
I, [2022-08-25T11:26:32.096492 #26582] INFO -- sandbox-amazonlinux-2022: Preparing data_bags
I, [2022-08-25T11:26:32.097471 #26582] INFO -- sandbox-amazonlinux-2022: Preparing secret
I, [2022-08-25T11:26:32.097686 #26582] INFO -- sandbox-amazonlinux-2022: Preparing validation.pem
I, [2022-08-25T11:26:32.098189 #26582] INFO -- sandbox-amazonlinux-2022: Preparing client.rb
E, [2022-08-25T11:26:32.507532 #26582] ERROR -- sandbox-amazonlinux-2022: Converge failed on instance <sandbox-amazonlinux-2022>.
E, [2022-08-25T11:26:32.507629 #26582] ERROR -- sandbox-amazonlinux-2022: ------Exception-------
E, [2022-08-25T11:26:32.507640 #26582] ERROR -- sandbox-amazonlinux-2022: Class: Kitchen::ActionFailed
E, [2022-08-25T11:26:32.507648 #26582] ERROR -- sandbox-amazonlinux-2022: Message: Docker failed to execute command on container. Error Details: Failed to execute command on Linux container. Failed to execute command on Docker container. Expected process to exit with [0], but received '127'
---- Begin output of docker -H unix:///var/run/docker.sock exec -u kitchen [REDACTED] /bin/bash /tmp/docker-[REDACTED].sh ----
STDOUT:
STDERR: /bin/bash: /tmp/docker-[REDACTED].sh: No such file or directory
---- End output of docker -H unix:///var/run/docker.sock exec -u kitchen [REDACTED] /bin/bash /tmp/
from kitchen-docker.
I can probably send in a patch, but I don't want to perpetuate the hack. Is there a way you'd like to see it done?
I've got a couple ideas, but my gut says that the least amount of code involves embedding a little bit of shell script logic into the rhel_platform
block to smooth out the differences here. I don't think it'll resolve your issue though!
So the platform hack worked, but I get an error that a temp .sh file is not in the image
Are you experiencing #387? If so, the best workaround for that is to use SSH as your transport.
from kitchen-docker.
So the platform hack worked, but I get an error that a temp .sh file is not in the image
Are you experiencing #387? If so, the best workaround for that is to use SSH as your transport.
Probably? But it only seems to affect Amazon 2022, weirdly enough. I've tested across a slew of other distributions (Debian, Ubuntu, CentOS, even Amazon Linux 2) and everything runs. Anyway, will switch transports.
EDIT: Running with ssh just leaves kitchen hanging waiting for the SSH service on the container.
from kitchen-docker.
Any chance you're using x86_64 on M1 and experiencing docker/for-mac#6273?
Edit: I suspect it's actually the same cause as #395
from kitchen-docker.
Related Issues (20)
- chef-client cookbook now fails with this driver HOT 1
- Transport does not work in Windows HOT 7
- Gem v2.9.0 doesn't include the docker transport HOT 6
- Unable to fetch packages during kitchen create for ubuntu-14.04 platform HOT 1
- Message: Error getting internal IP of Docker container HOT 4
- Docker images deletions fails when instances share the same image ID
- There does not appear to be a way to clean up volumes created by kitchen-docker HOT 4
- dependency roles in requirements.yml installed successfully, but error role not found when running test playbook. HOT 1
- Create new release of kitchen-docker gem HOT 5
- kitchen-docker 2.10.0 doesn't work, at least not docker-in-docker HOT 16
- This seems to be fixed, does it still need to be here?
- Unable to use docker as transport HOT 10
- docker build output no longer matches image_helper regex HOT 1
- Unable to map docker.sock in as volume for docker-in-docker HOT 2
- Cannot use docker transport when using docker tmpfs on /tmp
- Docker build on M1 Mac can fail if the buildkit output includes timings/timestamps HOT 8
- Support for Centosstream and PhotonOS missing from kitchen-docker HOT 1
- SSH failed with Ubuntu 22 and Centos 9 HOT 2
- Waiting for SSH service on localhost:49714, retrying in 3 seconds HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitchen-docker.