-
Notifications
You must be signed in to change notification settings - Fork 355
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
CC deploys successfully and then flaps when domains overlap #552
Comments
We have created an issue in Pivotal Tracker to manage this. You can view the current status of your issue at: https://www.pivotaltracker.com/story/show/114838603. |
@Amit-PivotalLabs I believe all three things should be fine to be the same domain from cloud controller's point of view even though we recommend people use a separate system domain than apps domain. We can take a look into how it's possible you got into the overlapping domains state. As far as I know, overlapping domains would only occur with apps domains. Not 100% sure, but I thought apps domains in the manifest were only used as seed values for a new deployment. |
You get an overlapping error if one domain extends the other, e.g.
Whether or not that's the desired validation, the main problem was that CC On Wed, Mar 2, 2016 at 12:26 AM, Dieu Cao notifications@github.com wrote:
|
Got it. So you had multiple domains specified in apps_domains that overlapped each other? I could see that running into an overlapping error. |
It wasn't that actually. My system_domain was foo.com, and my apps_domain On Wed, Mar 2, 2016 at 12:45 AM, Dieu Cao notifications@github.com wrote:
|
We were able to reproduce this by editing the bosh manifest to include system_domain: bosh-lite.com
app_domains:
- app.bosh-lite.com The deployment succeeds but |
This is failing because app domains shouldn't overlap with system domain, Not sure if it is a bug or a feature. But last week on cf-dev mailing list On Tuesday, 5 April 2016, Amelia Downs notifications@github.com wrote:
|
@ronakbanka can you forward that email to me please? adowns@pivotal.io Thanks, |
But it does not solve the issue mentioned here. In fact, the example in "Solution 1" suffers the same overlapping domains problem. Furthermore, the issue I wanted to highlight is the operator UX. If domains are overlapping, the deploy should fail fast so I can check the logs and quickly figure out and fix my error. Instead the deploy succeeds, and only after the fact do I notice that the VM is flapping. |
I agree. I think a better solution here is to add validations on deployment, so it fails fast and notifies the user that the domains are overlapping. |
Fixed as a bosh pre-start script in cloudfoundry/capi-release@222711a This should make it fail fast. The error message is in |
Unfortunately I don't remember what state my manifest was in when I had this problem, but I know that given my
domain
,system_domain
, andapps_domains
, I was seeingoverlapping_domain
validation errors in the CC logs. My BOSH deploy of CF succeeded, but then watchingbosh vms
I could see myapi_zN
jobs kept flapping between failing and starting.It would be nice for it to fail fast, and stop the deploy, since it needs to be corrected before anything can work.
This is related to this issue: cloudfoundry/docs-deploying-cf#86
(This issue was driven out by these stories: https://www.pivotaltracker.com/story/show/114144105, https://www.pivotaltracker.com/story/show/85293086)
The text was updated successfully, but these errors were encountered: