-
Notifications
You must be signed in to change notification settings - Fork 31
Description
Noted on Java8 when trying to execute a local run of integration tests
(ccm-private) mersault@stravinsky:~/work/git/dsbulk$ more integration_tests.sh
#!/usr/bin/bash
CCM_VERSION=4.0.0
CCM_IS_DSE=false
CCM_JAVA_HOME="/path/to/[email protected]"
mvn dependency:resolve-plugins
mvn -Dit.test=PrometheusEndToEndSimulacronIT* -DfailIfNoTests=false verify -Pmedium -B \
-Ddsbulk.ccm.CCM_VERSION=${CCM_VERSION} \
-Ddsbulk.ccm.CCM_IS_DSE=${CCM_IS_DSE} \
-Ddsbulk.ccm.JAVA_HOME=${CCM_JAVA_HOME} \
-Ddsbulk.ccm.PATH=${CCM_JAVA_HOME}/bin \
#-Ddsbulk.cloud.PROXY_PATH=${HOME}/proxy \
-Dmaven.test.failure.ignore=true \
-Dmax.simulacron.clusters=2 \
-Dmax.ccm.clusters=1
Test command above is derived directly from the relevant Jenkinsfile. When run I'm seeing errors kicking off the relevant Prometheus image:
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running com.datastax.oss.dsbulk.runner.simulacron.PrometheusEndToEndSimulacronIT
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 6.608 s <<< FAILURE! - in com.datastax.oss.dsbulk.runner.simulacron.PrometheusEndToEndSimulacronIT
[ERROR] com.datastax.oss.dsbulk.runner.simulacron.PrometheusEndToEndSimulacronIT Time elapsed: 6.607 s <<< ERROR!
org.testcontainers.containers.ContainerLaunchException: Container startup failed
at com.datastax.oss.dsbulk.runner.simulacron.PrometheusEndToEndSimulacronIT.exposeHostPorts(PrometheusEndToEndSimulacronIT.java:97)
Caused by: org.rnorth.ducttape.RetryCountExceededException: Retry limit hit with exception
at com.datastax.oss.dsbulk.runner.simulacron.PrometheusEndToEndSimulacronIT.exposeHostPorts(PrometheusEndToEndSimulacronIT.java:97)
Caused by: org.testcontainers.containers.ContainerLaunchException: Could not create/start container
at com.datastax.oss.dsbulk.runner.simulacron.PrometheusEndToEndSimulacronIT.exposeHostPorts(PrometheusEndToEndSimulacronIT.java:97)
Caused by: org.testcontainers.shaded.org.awaitility.core.ConditionTimeoutException: Lambda expression in org.testcontainers.containers.GenericContainer: expected the predicate to return but it returned for input of <Inspect
ContainerResponse(args=[-c, echo "root:$PASSWORD" | chpasswd && /usr/sbin/sshd -D -o PermitRootLogin=yes -o AddressFamily=inet -o GatewayPorts=yes], config=ContainerConfig(attachStderr=false, attachStdin=false, attachStdout=false, cmd=[sh
, -c, echo "root:$PASSWORD" | chpasswd && /usr/sbin/sshd -D -o PermitRootLogin=yes -o AddressFamily=inet -o GatewayPorts=yes], domainName=, entrypoint=null, env=[PASSWORD=94be7a9b-ccfa-49f0-baf9-25449a765f8c, PATH=/usr/local/sbin:/usr/loc
al/bin:/usr/sbin:/usr/bin:/sbin:/bin], exposedPorts=[22/tcp], hostName=ba8773336f27, image=testcontainers/sshd:1.0.0, labels={org.testcontainers=true, org.testcontainers.sessionId=8505d3c0-3c7f-4fcd-9a94-04bab7b22815}, macAddress=null, ne
tworkDisabled=null, onBuild=null, stdinOpen=false, portSpecs=null, stdInOnce=false, tty=false, user=, volumes=null, workingDir=, healthCheck=null), created=2025-12-16T05:06:55.038044825Z, driver=overlay2, execDriver=null, hostConfig=HostC
onfig(binds=[], blkioWeight=0, blkioWeightDevice=null, blkioDeviceReadBps=null, blkioDeviceWriteBps=null, blkioDeviceReadIOps=null, blkioDeviceWriteIOps=null, memorySwappiness=null, nanoCPUs=0, capAdd=null, capDrop=null, containerIDFile=,
cpuPeriod=0, cpuRealtimePeriod=0, cpuRealtimeRuntime=0, cpuShares=0, cpuQuota=0, cpusetCpus=, cpusetMems=, devices=null, deviceCgroupRules=null, deviceRequests=null, diskQuota=null, dns=null, dnsOptions=null, dnsSearch=null, extraHosts=[
], groupAdd=null, ipcMode=shareable, cgroup=, links=[], logConfig=LogConfig(type=json-file, config={}), lxcConf=null, memory=0, memorySwap=0, memoryReservation=0, kernelMemory=null, networkMode=bridge, oomKillDisable=null, init=null, auto
Remove=false, oomScoreAdj=0, portBindings={22/tcp=[Lcom.github.dockerjava.api.model.Ports$Binding;@53fd4420}, privileged=false, publishAllPorts=false, readonlyRootfs=false, restartPolicy=no, ulimits=null, cpuCount=0, cpuPercent=0, ioMaxim
umIOps=0, ioMaximumBandwidth=0, volumesFrom=[], mounts=null, pidMode=, isolation=null, securityOpts=null, storageOpt=null, cgroupParent=, volumeDriver=, shmSize=67108864, pidsLimit=null, runtime=runc, tmpFs=null, utSMode=, usernsMode=, sy
sctls=null, consoleSize=[0, 0], cgroupnsMode=private), hostnamePath=/var/lib/docker/containers/ba8773336f27d3fa49526ee605d16235c25c70eddc27e442e84bd20edb33db6b/hostname, hostsPath=/var/lib/docker/containers/ba8773336f27d3fa49526ee605d1623
5c25c70eddc27e442e84bd20edb33db6b/hosts, logPath=/var/lib/docker/containers/ba8773336f27d3fa49526ee605d16235c25c70eddc27e442e84bd20edb33db6b/ba8773336f27d3fa49526ee605d16235c25c70eddc27e442e84bd20edb33db6b-json.log, id=ba8773336f27d3fa495
26ee605d16235c25c70eddc27e442e84bd20edb33db6b, sizeRootFs=null, imageId=sha256:b665446a05c2fe2d551eccd8d29f6ee3d42c00f15597fd0f571900721380fd5d, mountLabel=, name=/kind_cohen, restartCount=0, networkSettings=NetworkSettings(bridge=, sandb
oxId=, hairpinMode=false, linkLocalIPv6Address=, linkLocalIPv6PrefixLen=0, ports={}, sandboxKey=, secondaryIPAddresses=null, secondaryIPv6Addresses=null, endpointID=, gateway=, portMapping=null, globalIPv6Address=, globalIPv6PrefixLen=0,
ipAddress=, ipPrefixLen=0, ipV6Gateway=, macAddress=, networks={bridge=ContainerNetwork(ipamConfig=null, links=[], aliases=null, networkID=a82a2219a4cede9e9889048d1ce6d5e7a5af0b8c1923e38860de1d55fd06d384, endpointId=, gateway=, ipAddress=
, ipPrefixLen=0, ipV6Gateway=, globalIPv6Address=, globalIPv6PrefixLen=0, macAddress=)}), path=sh, processLabel=, resolvConfPath=/var/lib/docker/containers/ba8773336f27d3fa49526ee605d16235c25c70eddc27e442e84bd20edb33db6b/resolv.conf, exec
Ids=null, state=InspectContainerResponse.ContainerState(status=exited, running=false, paused=false, restarting=false, oomKilled=false, dead=false, pid=0, exitCode=255, error=, startedAt=2025-12-16T05:06:55.092184635Z, finishedAt=2025-12-1
6T05:06:55.205283681Z, health=null), volumes=null, volumesRW=null, node=null, mounts=[], graphDriver=GraphDriver(name=overlay2, data=GraphData(rootDir=null, deviceId=null, deviceName=null, deviceSize=null, dir=null)), platform=linux)> wit
hin 5 seconds.
at com.datastax.oss.dsbulk.runner.simulacron.PrometheusEndToEndSimulacronIT.exposeHostPorts(PrometheusEndToEndSimulacronIT.java:97)[INFO]
[INFO] Results:
[INFO]
[ERROR] Errors:
[ERROR] PrometheusEndToEndSimulacronIT.exposeHostPorts:97 » ContainerLaunch Container ...
[INFO]
[ERROR] Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
For the case outlined above we're running against testcontainers 1.17.2