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
Cosmos DB Linux Emulator fails to start on some Intel chips #45
Comments
Is there a way to add a constraint on the Azure Pipeline to use the CPU model that works? I am hitting this issue in Azure DevOps Pipelines, and I always get model 85, which always fails. I have tried specifying "ubuntu-latest" "ubuntu-20.04" and "ubuntu-18.04" but none have worked. The below CPU also fails.
This one with ubuntu-18.04 did work:
|
I am also facing this issue. Are there any work arounds or has any progress been made? |
@rrr-michael-aquilina The workaround that worked for me was moving to the Cosmos emulator (powershell) that's baked in the windows pipeline. High traffic times can cause the emulator to start slowly, > 5min. I had to make some modifications to it's timeout and such but it's been pretty stable since. Definitely worth having than not using the emulator at all in the DevOps pipeline. |
Also faced this issue using the Linux Docker image. Cost me a day of investigating network issues just to find the out the container is immediately shutting down. Using ubuntu-18.04 as suggested in the other Github ticket worked for me, but a fix for 20-04 would be great. |
Ubuntu agent 18.04 is getting depracated so the issue needs to be fixed before that day. |
We are seeing the exact same problem. Running fine on Azure DevOps agents running ubuntu-18.04 but fails on ubuntu-20.04 and ubuntu-22.04. |
I run a test today and it works on 20.04, see https://github.com/eddumelendez/testcontainers-cosmodb-gha-test/actions/runs/3153248862/jobs/5129495371 Can someone else confirm? |
@eddumelendez ddradar/ddradar#1002 |
I think it is flaky, ran two more times and the first failed but the last one succeeded |
Yes it's flaky. I continue to see random failures as well. |
@milismsft do you have any updates on this issue? |
+1 for working on ubuntu 20/22 We run as part of integration testing - only starts (sometimes) on ubuntu 18. But anything higher it just hangs at the "Starting" message in the container logs forever. Our devs use docker-compose stack for local dependencies which includes cosmosdb, so we would like to just spin up the same stack in ado pipelines. Ubuntu 18 deprecation date was pushed back to April '23 so we have a bit more time... |
Very actual during the current un-scheduled brownout for 18! 20 doesn't work. |
This repo doesn't look like is active so I posted question here. |
Any news on this? |
Someone asked again today but all we got is the same answer. We don't have a public facing ETA we can share for now, but we will share on Azure updates when this will be available. |
Since today the next scheduled brown-out of the Ubuntu 18.04 GHA runners happened and we are getting closer to EOL for those runners, any updates or workarounds, especially for GHA users? |
We are blocked on this issue too. Any update? |
Our current workaround is, to self-host agents with a different chipset. See my answer here: #56 |
Our org has strict policies regarding self-hosted agents, so not as straight forward. But thanks. |
We moved this job to a windows agent and rest are on ubuntu to get around this issue. |
OK. How can your code running on ubuntu access the db running on the windows agent? |
@milismsft any update here? Ubuntu 18.04 isn't available anymore so it essentially prevents us from using Linux agents.. |
any news? |
Any updates on this? |
Hi it is not supported yet, but we are actively exploring options to support this. |
This is blocking our project from running Integration Tests on github with CosmosDB, so I hope this will be fixed soon. No update since Oct 12 is not particularly encouraging. Since this involves a very basic use case for two flagship products, I would hope this would get prompt attention. |
@sajeetharan will the new version you mentioned in #79 here also fix this issue? (we're trying to use the emulator as part of our integration tests in an Azure Devops Pipeline) |
@sajeetharan - Can you provide an update on your previous comment? It would be great to use this emulator for end to end integration tests via Azure DevOps! |
hi @rrr-michael-aquilina @razvangoga @tpischke just to confirm, are you referring to the Mac OS intel chip support or #79 ? |
I struggle the most with the fact that the Emulator doesn't work in GitHub Actions, like stated in the first post. |
Same for me but in Azure Devops on ubuntu 20 or 22
…On Wed, Feb 7, 2024 at 10:20 Lev Yastrebov ***@***.***> wrote:
I struggle the most with the fact that the Emulator doesn't work in GitHub
Actions, like stated in the first post.
—
Reply to this email directly, view it on GitHub
<#45 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIETZSVR2ZDKQHYQB5BYYTYSNBPVAVCNFSM5OYZCENKU5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCOJTGE3DCMJWGQ3Q>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Hi @sajeetharan, I think what most people want is to be able to run the Cosmos emulator in a pipeline/action using Azure DevOps or GitHub. As the Linux runners that both GitHub/DevOps use do not work with the emulator because of the issue described in the first post, we've either had to switch to a Windows runner or built a custom runner. |
@sajeetharan - I was referring to the original post. For example, ubuntu-latest azure devops agent. |
Was really looking forward to getting some CI / CD integration tests going with a containerized Cosmos Emulator in our Azure dev-ops pipelines but it seems to be failing intermittently. This has been great and works very consistently when running on my desktop in Visual Studio. I have since included these tests as part of a CI/CD pipeline and the tests are failing intermittently (roughly 50% of the time I'd say). The failed runs seem to happen quickly e.g. within 3-5 seconds of the container starting, I see a Stop Docker container in the log messages there is no "reason" or error I can see for why the container has been stopped. Below of samples of failed and successful runs and my container configuration. |
@sajeetharan, it's essentially been two years now since this issue was opened, two years since people reported that it's blocking them from being able to use Microsoft hosted Linux runners on Azure DevOps Pipelines to be able to run integration tests against Cosmos DB using the docker emulator. I feel really let down by Microsoft here, no explanation has been offered as to why this hasn't been fixed yet, nor has a practical workaround been offered, for example all the following are not options which would work for us:
It feels like this blocking issue is not being prioritised by Microsoft appropriately, between the Azure DevOps Pipelines and the Cosmos DB Emulator teams, can this please get the attention it deserves. |
Building on @JonathanLydall's excellent summary: perhaps it would be productive to change the title of this issue to "Cosmos DB does not work with Microsoft-hosted Linux runners on Azure DevOps Pipelines." |
Related to: actions/runner-images#5036 (comment)
The Cosmos DB Linux Emulator fails to start on some Intel chips.
lscpu output:
Architecture: x86_64
CPU op-mode(s): 32-bit, 64-bit
Byte Order: Little Endian
Address sizes: [46]
CPU(s): 2
On-line CPU(s) list: 0,1
Thread(s) per core: 1
Core(s) per socket: 2
Socket(s): 1
NUMA node(s): 1
Vendor ID: GenuineIntel
CPU family: 6
Model: 85
Model name: Intel(R) Xeon(R) Platinum 8272CL CPU @ 2.60GHz
Stepping: 7
CPU MHz: 2593.907
BogoMIPS: 87.81
Hypervisor vendor: Microsoft
Virtualization type: full
L1d cache: 64KiB
L1i cache: 64 KiB
L2 cache: 2 MiB
L3 cache: 35.8 MiB
NUMA node0 CPU(s): 0,1
Vulnerability Itlb multihit: KVM: Mitigation: VMX unsupported
Vulnerability L1tf: Mitigation; PTE Inversion
Vulnerability Mds: Mitigation; Clear CPU buffers; SMT Host state unknown
Vulnerability Meltdown: Mitigation; PTI
Vulnerability Spec store bypass: Vulnerable
Vulnerability Spectre v1: Mitigation; usercopy/swapgs barriers and __user pointer sanitization
Vulnerability Spectre v2: Mitigation; Full generic retpoline, STIBP disabled, RSB filling
Vulnerability Srbds: Not affected
Vulnerability Tsx async abort: Mitigation; Clear CPU buffers; SMT Host state unknown
Flags: fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss ht syscall nx pdpe1gb rdtscp lm constant_tsc rep_good nopl xtopology cpuid pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti fsgsbase bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt avx512cd avx512bw avx512vl xsaveopt xsavec xsaves md_clear
/proc/cpuinfo content:
/proc/cpuinfo
The text was updated successfully, but these errors were encountered: