-
-
Notifications
You must be signed in to change notification settings - Fork 4
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
Combining Microcks dev service with Mongo doesn't work in dev mode #30
Comments
Thanks for raising this issue. I succeeded in reproducing it, and I am now having a look at it. |
We've got this exception because Microcks is now forcing the usage of a shared network for its containers and those related to brokers (eg. Kafka). This is indeed mandatory if we want to be able to have both:
Kafka dev service manages this well by adding an extra listener when a shared network is detected. So it presents 2 possibilities for connection in the bootstrap servers property: something like MongoDB dev services (and I suppose most other dev service related to database) don't seem to have this behaviour and automatically bind the container host to the shared network only, and generate a new host name like TBH I don't know what to do at the moment |
Probably related to this too: quarkusio/quarkus#23916 What was the change that forced a shared network and why was that needed? |
Yes, I think it's related to the same issue. Forcing the shared network was mandatory as we now may start different containers. The first The problem is that So now, at startup, Microcks forces the creation of the shared network and all the container are registered within this one with well-know aliases and ports. That wasn't an issue for Kafka but seems to be one for database. Check quarkusio/quarkus#38398 (reply in thread) for more details on this. |
Have started/continued a discussion with the Quarkus team here: quarkusio/quarkus#38398 (comment) |
Hey @edeandrea! I made some changes in Quarkus and suggested enhancement here: quarkusio/quarkus#38398 (reply in thread) I hope this will help solve this issue. |
yay! I've been following that thread... |
Hey @edeandrea, I've taken some steps forward to make this work. We've changed how the data source-related DevServices are joining the shared network, having them join it only when running integration test with the containerized app - that was the original behavior and intent of shared-network. So, we're back to the initial situation where:
That said, I've got errors when I run
and also
I reverted my changes - thinking I introduced a regression - but I've got the same behaviour when getting back to the previous Quarkus 3.8.2. Is it a normal thing? Thanks, |
No it's definitely not normal :) I'm without power and Internet at the moment (freak spring snowstorm here in the northeast), but once im back online I can take a look. |
OK so wait a second - without any of your new changes, running The IT uses the |
This will be solved once this PR quarkusio/quarkus#39899 is merged and released in Quarkus. |
@lbroudoux I can confirm that this issue has been resolved with the release of Quarkus 3.10.0 and quarkus-microcks version 0.2.4. |
🎉 Thanks for the confirmation @edeandrea! I think we can now close this issue so. |
Describe the bug
When running an app in dev mode that uses both Microcks & Mongodb, dev mode fails to start. I'm not sure if it has to do with Liquibase or not, but the exception is coming from liquibase saying it can't connect to Mongo.
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
cd
intorest-fights
./mvnw clean quarkus:dev
You should see stack traces like
Microcks version or git rev
0.2.2
Install method (
docker-compose
,helm chart
,operator
,docker-desktop extension
,...)No response
Additional information
No response
The text was updated successfully, but these errors were encountered: