-
Notifications
You must be signed in to change notification settings - Fork 17
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
fcos-policy-engine: fetch graph from fcos-graph-builder instance #21
Conversation
A local run shows the expected and same behavior as the dumnati counterpart: fcos-graph-builderGET http://127.0.0.1:6060/metrics
GET http://127.0.0.1:5050/v1/graph?basearch=x86_64&stream=stable
fcos-policy-engineGET http://127.0.0.1:6061/metrics
GET http://127.0.0.1:5051/v1/graph?basearch=x86_64&stream=stable
|
2a7c110
to
d470688
Compare
d470688
to
80a328c
Compare
Removed the port bits out of this PR and updated according to reviews. Rebased on master. |
80a328c
to
ca4b76f
Compare
ca4b76f
to
20b1f74
Compare
Removes previous empty dummy graph returned by fcos-policy-engine and fetches the graph from fcos-graph-builder instance, which is running under the same pod as fcos-policy-engine. Signed-off-by: Allen Bai <[email protected]>
20b1f74
to
a43cb89
Compare
node_uuid: None, | ||
}; | ||
// Cannot use `?` directly here otherwise will produce the error: | ||
// the trait `std::marker::Sync` is not implemented for `(dyn std::error::Error + std::marker::Send + 'static)` |
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.
This is because errors coming from serde_qs
are not Sync (due to their use of error-chain).
Can you please open a bug to the upstream repo and ask them to consider using a better library for error-handling (i.e. thiserror
or snafu
)?
Removes previous empty dummy graph returned by
fcos-policy-engine
and fetches the graph fromfcos-graph-builder
instance, which is running under the same pod asfcos-policy-engine
.Also changes ports used by
fcos-*
such that they don't conflict withdumnati
ports.Related to: #3
Signed-off-by: Allen Bai [email protected]