Giter VIP home page Giter VIP logo

Comments (6)

RulerOf avatar RulerOf commented on September 22, 2024

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.

olhado avatar olhado commented on September 22, 2024

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.

olhado avatar olhado commented on September 22, 2024

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.

RulerOf avatar RulerOf commented on September 22, 2024

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.

olhado avatar olhado commented on September 22, 2024

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.

RulerOf avatar RulerOf commented on September 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.