-
Notifications
You must be signed in to change notification settings - Fork 63
Simulated Crucible Agent: Use CLI-configured IP address #649
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
Conversation
|
I think this means the server will be exposed on all local addresses. That feels like not a great default -- somebody running in their home network or even with a local internet-facing IP address would find their server exposed on those networks, too. I'm not sure it's worth the effort to do this here but it'd be nice to make this configurable and use 0.0.0.0 in the Docker environment if that's what we want there and keep using 127.0.0.1 as a more secure default. |
That's the goal, we just want to make sure this fixes the problem I'm seeing on GCP. |
|
welp. docker is not appeased. same error, now with 0.0.0.0 in it |
|
For the record here are the details. Note that the timestamps on the 500s in the nexus log (bottom) are interleaved with but don't really line up with the 200s in the sled-agent log. Very odd! |
|
The URLs being requested by Nexus also don't seem to align with the ports advertised by Crucible.... see: |
| .set(( | ||
| dsl::time_modified.eq(Utc::now()), | ||
| dsl::pool_id.eq(excluded(dsl::id)), | ||
| dsl::pool_id.eq(excluded(dsl::pool_id)), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this was the manifestation of the problem, but this was definitely a bug.
| storage: ConfigStorage { | ||
| // Create 10 "virtual" U.2s, with 1 TB of storage. | ||
| zpools: vec![ConfigZpool { size: 1 << 40 }; 10], | ||
| ip: args.sled_agent_addr.ip(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At @david-crespo 's suggestion, I'm just re-using whatever IP we supplied for the sled agent here when allocating ports for Crucible too.
Propolis changes: Update h2 dependency Add NPT ops API definitions from illumos#15639 server: return better HTTP errors when not ensured (#649) Crucible changes: Make Region test suite generic across backends (#1263) Remove async from now-synchronous functions (#1264) Agent update to support cloning. (#1262) Remove the Active → Faulted transition (#1260) Avoid race condition in crutest rand-read/write (#1261) Add Active -> Offline -> Faulted tests (#1257) Reorganize dummy downstairs tests (#1253) Switch to unbounded queues (#1256) Add Upstairs session ID to dtrace stat probe, cleanup closure (#1254) Panic instead of returning errors in unit tests (#1251) Add a clone option to downstairs create (#1249)
Propolis changes: Update h2 dependency Add NPT ops API definitions from illumos#15639 server: return better HTTP errors when not ensured (#649) Crucible changes: Make Region test suite generic across backends (#1263) Remove async from now-synchronous functions (#1264) Agent update to support cloning. (#1262) Remove the Active → Faulted transition (#1260) Avoid race condition in crutest rand-read/write (#1261) Add Active -> Offline -> Faulted tests (#1257) Reorganize dummy downstairs tests (#1253) Switch to unbounded queues (#1256) Add Upstairs session ID to dtrace stat probe, cleanup closure (#1254) Panic instead of returning errors in unit tests (#1251) Add a clone option to downstairs create (#1249) Co-authored-by: Alan Hanson <alan@oxide.computer>
No description provided.