-
Notifications
You must be signed in to change notification settings - Fork 114
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
openstack: include support to metadata service #258
Conversation
Thanks for your PR,
To skip the vendors CIs use one of:
|
1 similar comment
Thanks for your PR,
To skip the vendors CIs use one of:
|
pkg/daemon/writer.go
Outdated
writer.metaData, writer.networkData, err = utils.FetchOpenstackData() | ||
if err != nil { | ||
glog.Errorf("Run(): failed to fetch OpenStack data: %v", err) | ||
} |
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.
@pierreprinetti I think your feedback from https://github.com/k8snetworkplumbingwg/sriov-network-operator/pull/246/files#r803725901 is addressed here. Can you please confirm?
Thanks for your PR,
To skip the vendors CIs use one of:
|
It worked fine to fetch the metadata service:
|
/lgtm |
@SchSeba can you take a look on this PR? Thanks |
LGTM |
should fetching from metadata service be the default ? |
Thanks for your PR,
To skip the vendors CIs use one of:
|
Using config-drive is considered more stable than using metadata, that's why we try to handle it first. |
Right, let's try to read the files first (cheaper & faster than fetching URL), by default, and if it's not there we just fallback into fetching the metadata URL. |
@adrianchiris Thanks for the review. Can you take another look on this PR? |
/test-all |
This commit includes a new dependency that provides a HTTP client interface with automatic retries and exponential backoff.
Thanks for your PR,
To skip the vendors CIs use one of:
|
In most cases, OpenStack metadata service is available in the cloud, which removes the requirement of config-drive. This patch will change the logic to try reading Metadata and Network data from the config-drive directory but if it's not present, it'll try to get it by safely fetching the URL.
Thanks for your PR,
To skip the vendors CIs use one of:
|
LGTM |
/test-all |
/lgtm |
In most cases, OpenStack metadata service is available in the cloud,
which removes the requirement of config-drive.
This patch will change the logic to try reading Metadata and Network data from
the config-drive directory but if it's not present, it'll try to get
it by safely fetching the URL.
Note: it's adding a new dependency on hashicorp/go-retryablehttp which
is a library which provides a HTTP client interface with automatic retries
and exponential backoff.