Skip to content
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

Bug OCPBUGS-522: Backport support golang 1.18 #688

Merged

Conversation

SchSeba
Copy link
Contributor

@SchSeba SchSeba commented Aug 24, 2022

No description provided.

novacain1 and others added 30 commits August 24, 2022 14:32
…orted card listing

- Update docs with newly supported hardware
- Update supported device ids in config map
Fixes issue openshift#249

Signed-off-by: Fred Rolland <frolland@nvidia.com>
Signed-off-by: Fred Rolland <frolland@nvidia.com>
This PR fix issues found with:
golangci-lint run --disable-all -E unused

Signed-off-by: Fred Rolland <frolland@nvidia.com>
This commit fix the issues found by:
`golangci-lint run --disable-all -E whitespace`

Signed-off-by: Fred Rolland <frolland@nvidia.com>
This commit fix the issues found by:
`golangci-lint run --disable-all -E deadcode`
and `golangci-lint run --disable-all -E goimports`

Signed-off-by: Fred Rolland <frolland@nvidia.com>
This commit fixes issues found by
`golangci-lint run --disable-all -E misspell`
and `golangci-lint run --disable-all -E staticcheck`

Signed-off-by: Fred Rolland <frolland@nvidia.com>
Signed-off-by: Adrian Chiris <adrianc@nvidia.com>
If error occures during sriov configuration in
generic plugin, config daemon will log the error
and requeue the request to reconcile the node.

On the next run, when generic plugin Apply() method
is called, interface configuration may be skipped,
leaving the interface partially configured.

To ensure generic plugin re-configures the interface
on the next iteration, we reset the interface
before returning an error.

This will also ensure that a drain will be requested
as well.

Signed-off-by: Adrian Chiris <adrianc@nvidia.com>
In case of error, it is useful to know the reason why it
was not possible to get the IP address of SR-IOV interface.

Add description to each returned error and return an error
in case the requested interface is not found.

Add "github.com/stretchr/testify/assert" dependency adn
unit tests for GetSriovNicIPs

Signed-off-by: Andrea Panattoni <apanatto@redhat.com>
This commit fixes issues found with:
`golangci-lint run --disable-all -E gosimple`

Signed-off-by: Fred Rolland <frolland@nvidia.com>
Fix issues found by:
`golangci-lint run --disable-all -E ineffassign`

Signed-off-by: Fred Rolland <frolland@nvidia.com>
This commit fixes issues found by
`golangci-lint run --disable-all -E stylecheck`

Signed-off-by: Fred Rolland <frolland@nvidia.com>
With Kubernetes 1.24, master nodes are now
labeld and tainted as `node-role.kubernetes.io/control-plane`

Support this in sriov network operator by:

- extending tolerations in relevant yaml files
- adjusting node affinity in relevant yaml files
- modify helm chart to deploy operator based on node affinity
  and not node selector

Signed-off-by: Adrian Chiris <adrianc@nvidia.com>
Signed-off-by: Sebastian Sch <sebassch@gmail.com>
Signed-off-by: Sebastian Sch <sebassch@gmail.com>
Fixed expected log for release the VFs test case
Signed-off-by: Fred Rolland <frolland@nvidia.com>
Signed-off-by: Fred Rolland <frolland@nvidia.com>
Signed-off-by: Sebastian Sch <sebassch@gmail.com>
We don't need to check for ifaceStatus.NumVfs in a 'needDrainNode'
function because it blocks drain after node reboot.

Closes: openshift#322

Signed-off-by: Ivan Kolodiazhnyi <ikolodiazhny@nvidia.com>
This commit removes the go plugins for vendors.

Fixes: k8snetworkplumbingwg/sriov-network-operator#90

Signed-off-by: Sebastian Sch <sebassch@gmail.com>
The Intel series of E810 cards with a 1591 PF ID is added to the supported card listing

- Update docs with newly supported hardware
- Update supported device ids in config map
Configure CI to collect coverage and integrate with coveralls.io
service.

Add Makefile rules for merging coverage profiles from multiple
sources, as tests are usually run by `make test-pkg` and
`make test-controllers`.

Add Makefile's rules to download gocovmerge and gcov2lcov.

Signed-off-by: Andrea Panattoni <apanatto@redhat.com>
When sending a Refresh message to Writer's refresh channel,
if the state is "Succeeded" or "Failed", the Writer will update
the sync channel when finished.

Therefore there is a need to wait on sync channel on the Daemon side
when sending "Succeeded" or "Failed".

Signed-off-by: Fred Rolland <frolland@nvidia.com>
There is a stage when the SriovNetworkNodeState is initializing
where the spec is empty because the SriovNetworkNodePolicyReconciler
did not yet applied the policies.

It can cause a non required action by the plugins,
that will try to apply the empty spec by resetting the NIC for example.

The config daemon will not run the plugins if the generation is 1
and the Spec.Interfaces is empty.

Solves issue openshift#283

For e2e tests, the wait timeout to get to initial Sync state has been
increased.
This change is needed as now the config daemon will not apply on "empty"
spec until the SriovNetworkNodePolicyReconciler will iterate on the Interfaces.
The reconcile loop interval is 5 minutes, so the test timeout needed to be increased.

Signed-off-by: Fred Rolland <frolland@nvidia.com>
This commit is needed when using DPDK with vhost-net in virtio mode.
We must load the vhost-net kernel module if we don't want the dpdk
application to run with privilege

Signed-off-by: Sebastian Sch <sebassch@gmail.com>
@SchSeba SchSeba changed the title OCPBUGS-522: Backport support golang 1.18 Bug OCPBUGS-522: Backport support golang 1.18 Aug 24, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 24, 2022

@SchSeba: No Bugzilla bug is referenced in the title of this pull request.
To reference a bug, add 'Bug XXX:' to the title of this pull request and request another bug refresh with /bugzilla refresh.

In response to this:

Bug OCPBUGS-522: Backport support golang 1.18

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@zeeke
Copy link
Contributor

zeeke commented Aug 24, 2022

/jira refresh

@openshift-ci-robot openshift-ci-robot added jira/severity-critical Referenced Jira bug's severity is critical for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. labels Aug 24, 2022
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Aug 24, 2022

@zeeke: This pull request references [Jira Issue OCPBUGS-522](https://issues.redhat.com//browse/OCPBUGS-522), which is valid.

6 validation(s) were run on this bug
  • bug is open, matching expected state (open)
  • bug target version (4.11.z) matches configured target version for branch (4.11.z)
  • bug is in the state POST, which is one of the valid states (NEW, ASSIGNED, ON_DEV, POST)
  • dependent bug [Jira Issue OCPBUGS-521](https://issues.redhat.com//browse/OCPBUGS-521) is in the state Verified (Done), which is one of the valid states (MODIFIED, ON_QA, VERIFIED)
  • dependent [Jira Issue OCPBUGS-521](https://issues.redhat.com//browse/OCPBUGS-521) targets the "4.12.0" version, which is one of the valid target versions: 4.12.0
  • bug has dependents

No GitHub users were found matching the public email listed for the QA contact in Jira (elevin@redhat.com), skipping review request.

In response to this:

/jira refresh

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@zeeke
Copy link
Contributor

zeeke commented Aug 24, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 24, 2022
Signed-off-by: Sebastian Sch <sebassch@gmail.com>
Signed-off-by: Sebastian Sch <sebassch@gmail.com>
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Aug 25, 2022
@bn222
Copy link
Contributor

bn222 commented Aug 25, 2022

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Aug 25, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 25, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: bn222, SchSeba, zeeke

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Aug 25, 2022

@SchSeba: all tests passed!

Full PR test history. Your PR dashboard.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@zshi-redhat zshi-redhat added the backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. label Aug 29, 2022
@bn222
Copy link
Contributor

bn222 commented Aug 29, 2022

/cherry-pick-approved

@zhaozhanqi
Copy link

/label cherry-pick-approved

@openshift-ci openshift-ci bot added the cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. label Aug 30, 2022
@openshift-merge-robot openshift-merge-robot merged commit cad57dd into openshift:release-4.11 Aug 30, 2022
@openshift-ci-robot
Copy link
Contributor

@SchSeba: All pull requests linked via external trackers have merged:

Jira Issue OCPBUGS-522 has been moved to the MODIFIED state.

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

SchSeba added a commit to SchSeba/sriov-network-operator that referenced this pull request May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. backport-risk-assessed Indicates a PR to a release branch has been evaluated and considered safe to accept. bugzilla/valid-bug Indicates that a referenced Bugzilla bug is valid for the branch this PR is targeting. cherry-pick-approved Indicates a cherry-pick PR into a release branch has been approved by the release branch manager. jira/severity-critical Referenced Jira bug's severity is critical for the branch this PR is targeting. jira/valid-bug Indicates that a referenced Jira bug is valid for the branch this PR is targeting. lgtm Indicates that a PR is ready to be merged.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet