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

UI no longer showing network-attachment-definitions correctly #4748

Closed
gaktive opened this issue Dec 10, 2021 · 5 comments
Closed

UI no longer showing network-attachment-definitions correctly #4748

gaktive opened this issue Dec 10, 2021 · 5 comments

Comments

@gaktive
Copy link
Member

gaktive commented Dec 10, 2021

Internal ref: SURE-3792

In 2.5, the Cluster Explorer showed NetworkAttachmentDefinitions under the k8s.cni.cncf.io API group(screenshot attached).
image-2021-12-09-10-03-23-103.png

In 2.6, the k8s.cni.cncf.io API Group is Visible and it shows the correct count of objects under the "Networks" name, but the objects are not shown (reported in 2.6.2):
image-2021-12-09-10-03-41-505.png

Repro steps:

  • Apply Multus quickstart - [https://github.com/k8snetworkplumbingwg/multus-cni/blob/master/docs/quickstart.md]
  • Apply dummy NetworkAttachmentDefinition -
cat <<EOF | kubectl create -f -
apiVersion: "k8s.cni.cncf.io/v1"
kind: NetworkAttachmentDefinition
metadata:
  name: macvlan-conf
spec:
  config: '{
      "cniVersion": "0.3.0",
      "type": "macvlan",
      "master": "eth0",
      "mode": "bridge",
      "ipam": {
        "type": "host-local",
        "subnet": "192.168.1.0/24",
        "rangeStart": "192.168.1.200",
        "rangeEnd": "192.168.1.216",
        "routes": [
          { "dst": "0.0.0.0/0" }
        ],
        "gateway": "192.168.1.1"
      }
    }'
EOF

Workaround:
Is workararound available and implemented? yes
What is the workaround: Edit resources directly with kubectl

Actual behavior:

UI shows the API group and correct count of NetworkAttachmentDefinition objects(under the name "Networks", but doesn't show the objects themselves.

Expected behavior:

UI shows the API group and objects correctly.

Other:
Logs show messages like:

All of schema is not loaded yet
No schema found to validate userpreference Object: Getter & Setter
All of management.cattle.io.project is not loaded yet
@gaktive gaktive modified the milestones: v2.6.3, v2.6.4 Dec 10, 2021
codyrancher added a commit to codyrancher/dashboard that referenced this issue Jan 26, 2022
…in rancher installs

- k8s.cni.cncf.io.networkattachmentdefinition list page was using the harvester store to find the resources. This switches between the harvester/cluster store depending on whether the cluster is harvester or not

rancher#4748
@codyrancher
Copy link
Contributor

QA should verify that the list page still functions properly with harvester.

@Josh-Diamond
Copy link

@codyrancher Could you please provide a template? Greatly appreciated

@Josh-Diamond
Copy link

Josh-Diamond commented Mar 18, 2022

Ticket #4748 - local cluster

With Docker on single-node:

Reproduced on rancher v2.6.3:

  1. Fresh install of rancher v2.6.3
  2. Download local.yaml and export to KUBECONFIG
  3. Run scripts to clone and configure multus
  4. Create networkattachmentdefinition’s
  5. In Rancher, go to Explore Cluster for local and under the tab More Resources, find and select k8s.cni.cncf.io, to view Networks
  6. Reproduced - Networks tab shows entries, however none are listed in UI

Screenshot:
Screen Shot 2022-03-17 at 4 21 30 PM

Verified on rancher v2.6-93757afc3d752491dbfc209153dfa04bdf07647f-head:

  1. Fresh install of rancher v2.6-head
  2. Download local.yaml and export to KUBECONFIG
  3. Run scripts to clone and configure multus
  4. Create networkattachmentdefinition’s
  5. In Rancher, go to Explore Cluster for local and under the tab More Resources, find and select k8s.cni.cncf.io, to view Networks
  6. Verified - Networks tab shows entries and all are listed in UI

Screenshot:
Screen Shot 2022-03-17 at 5 20 43 PM

Upgrade/Verified on rancher v2.6.3 >> v2.6-93757afc3d752491dbfc209153dfa04bdf07647f-head:

  1. Fresh install of rancher v2.6.3
  2. Download local.yaml and export to KUBECONFIG
  3. Run scripts to clone and configure multus
  4. Create networkattachmentdefinition’s
  5. Upgrade rancher to v2.6-head
  6. In Rancher, go to Explore Cluster for local and under the tab More Resources, find and select k8s.cni.cncf.io, to view Networks
  7. Verified - Networks tab shows entries and all are listed in UI

Screenshot:
Screen Shot 2022-03-17 at 4 33 57 PM

@Josh-Diamond
Copy link

Ticket #4748 - Downstream cluster

With Docker on single-node:

Reproduced on rancher v2.6.3:

  1. Fresh install of rancher v2.6.3
  2. Create downstream cluster
  3. Run scripts to clone and configure multus
  4. Create networkattachmentdefinition’s
  5. In Rancher, go to Explore Cluster, under the tab More Resources, find and select k8s.cni.cncf.io, to view Networks
  6. Reproduced - Networks tab shows entries, however none are listed in UI

Screenshot:
Screen Shot 2022-03-22 at 7 51 49 AM
reenshot:

Verified on rancher v2.6-0b4457317840d80c17990b5e04ba326eb411fb8f-head:

  1. Fresh install of rancher v2.6-head
  2. Create downstream cluster
  3. Run scripts to clone and configure multus
  4. Create networkattachmentdefinition’s
  5. In Rancher, go to Explore Cluster, under the tab More Resources, find and select k8s.cni.cncf.io, to view Networks
  6. Reproduced - Networks tab shows entries, however none are listed in UI

Screenshot:
Screen Shot 2022-03-22 at 8 16 42 AM

Upgrade/Verified on rancher v2.6.3 >> v2.6-0b4457317840d80c17990b5e04ba326eb411fb8f-head:

  1. Fresh install of rancher v2.6.3
  2. Create downstream cluster
  3. Run scripts to clone and configure multus
  4. Create networkattachmentdefinition’s
  5. Upgrade rancher to v2.6-head
  6. In Rancher, go to Explore Cluster, and under the tab More Resources, find and select k8s.cni.cncf.io, to view Networks
  7. Verified - Networks tab shows entries and all are listed in UI

Screenshot:
Screen Shot 2022-03-22 at 8 01 34 AM

@slickwarren
Copy link
Contributor

also tested on 2.6-head 85d6925 using harvester node driver clusters. Following fresh install checks from the comment above, I am able to see network-attachment-definitions in the UI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants