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] Fix errors in questions.yaml #6392

Closed
1 task
james-munson opened this issue Jul 26, 2023 · 7 comments
Closed
1 task

[BUG] Fix errors in questions.yaml #6392

james-munson opened this issue Jul 26, 2023 · 7 comments
Assignees
Labels
area/chart Helm chart related backport/1.4.4 backport/1.5.2 kind/bug priority/0 Must be implement or fixed in this release (managed by PO) require/chart Require updating (chart) manifests in longhorn, longhorn-manager, charts repos require/qa-review-coverage Require QA to review coverage
Milestone

Comments

@james-munson
Copy link
Contributor

james-munson commented Jul 26, 2023

What's the task? Please describe

I noticed a few small errors from the addition of storage class node selector in #4576

Describe the items of the task (DoD, definition of done) you'd like

Please use a task list for items on a separate line with a clickable checkbox https://docs.github.com/en/issues/tracking-your-work-with-issues/about-task-lists

  • item 1

Additional context

Add any other context or screenshots about the document request here.

@longhorn-io-github-bot
Copy link
Collaborator

longhorn-io-github-bot commented Jul 26, 2023

Pre Ready-For-Testing Checklist

  • Where is the reproduce steps/test steps documented?
    The reproduce steps/test steps are (thanks to @PhanLe1010 and @ejweber):
  1. Fork and clone https://github.com/rancher/charts
  2. Make a working branch. Edit this question.yaml
  3. make zip to zip your changes
  4. Push it to the fork, branch 6392-questions-yaml
  5. Use Rancher UI to create a new repository and point to that fork and branch.
  6. Try install Longhorn 102.2.1+up1.4.2 to see if your changes make sense. (Note that with multiple repositories defined that include Longhorn, the list of Apps that can be installed will be contain multiple instances of Longhorn, only one of which points to the forked repo, but you can tell by the date on the install chart after you select it. It will probably be the last one.)
  7. During installation, put some values in the NodeSelector list.
  8. Check the installed StorageClass to see that those values got installed.

Screen shot is in the PR. Note that the Node Selector options appear on the Storage Class Settings page, and are set correctly when installed.

I will leave the Rancher fork branch in place until the PR is committed, tested, and closed.

  • Is there a workaround for the issue? If so, where is it documented?

  • Does the PR include the explanation for the fix or the feature?
    Yes

  • Does the PR include deployment change (YAML/Chart)? If so, where are the PRs for both YAML file and Chart?
    No chart change, only questions.yaml which is a UI component.

  • Have the backend code been merged (Manager, Engine, Instance Manager, BackupStore etc) (including backport-needed/*)?

  • Which areas/issues this PR might have potential impacts on?
    Area: UI
    Issues

  • If labeled: require/LEP Has the Longhorn Enhancement Proposal PR submitted?

  • If labeled: area/ui Has the UI issue filed or ready to be merged (including backport-needed/*)?

  • If labeled: require/doc Has the necessary document PR submitted or merged (including backport-needed/*)?

  • If labeled: require/automation-e2e Has the end-to-end test plan been merged? Have QAs agreed on the automation test case? If only test case skeleton w/o implementation, have you created an implementation issue (including backport-needed/*)

  • If labeled: require/automation-engine Has the engine integration test been merged (including backport-needed/*)?

  • If labeled: require/manual-test-plan Has the manual test plan been documented?

  • If the fix introduces the code for backward compatibility Has a separate issue been filed with the label release/obsolete-compatibility?

@ejweber
Copy link
Contributor

ejweber commented Jul 26, 2023

Small nit. I think this is not a [DOC] type issue since it actually fixes functionality that was broken.

@james-munson james-munson changed the title [DOC] Fix errors in questions.yaml [BUG] Fix errors in questions.yaml Jul 26, 2023
@innobead innobead added this to the v1.6.0 milestone Jul 28, 2023
@innobead
Copy link
Member

@james-munson Let's make sure the issues we are handling need to add to the current milestone. Also, add backport labels if needed.

cc @longhorn/dev

@innobead innobead added kind/bug require/chart Require updating (chart) manifests in longhorn, longhorn-manager, charts repos require/qa-review-coverage Require QA to review coverage area/chart Helm chart related and removed kind/doc Doc request labels Jul 28, 2023
@innobead
Copy link
Member

@longhorn/qa for any issues with review-coverage label mean we need to see why the bug happens. Is it duo to some missing test case coverage? If yes, need to improve our test case.

@chriscchien
Copy link
Contributor

chriscchien commented Sep 11, 2023

Verified with test steps

Can see nodeSelector set correctly in storageclass longhorn

apiVersion: storage.k8s.io/v1
kind: StorageClass
metadata:
  annotations:
    longhorn.io/last-applied-configmap: |
      kind: StorageClass
      apiVersion: storage.k8s.io/v1
      metadata:
        name: longhorn
        annotations:
          storageclass.kubernetes.io/is-default-class: "true"
      provisioner: driver.longhorn.io
      allowVolumeExpansion: true
      reclaimPolicy: "Delete"
      volumeBindingMode: Immediate
      parameters:
        numberOfReplicas: "3"
        staleReplicaTimeout: "30"
        fromBackup: ""
        fsType: "ext4"
        dataLocality: "disabled"
        nodeSelector: "ip-172-31-34-163"

Following test steps, it will test rancher/chart to install longhorn v1.4.2, but it can not guarantee question.yaml will work properly on v1.6.x too because rancher does not support to install longhorn v1.6.x yet.

I would like to keep this ticket open until v1.6.x rancher chart ready and will test again question.yaml by install longhorn v1.6.x from Rancher

@innobead innobead added the priority/0 Must be implement or fixed in this release (managed by PO) label Sep 14, 2023
@innobead innobead modified the milestones: v1.6.0, v1.6.1 Jan 31, 2024
@innobead
Copy link
Member

innobead commented Apr 8, 2024

@chriscchien We should verify this, as we will have 1.6.1 rancher chart.

@chriscchien
Copy link
Contributor

Use Rancher v2.8.2 to install Longhorn v1.6.1 and set nodeSelector in storageclass during the installation, the nodeSelector parameter applied correctly after Longhorn install complete.

> k get storageclass longhorn -o yaml | grep nodeSelector
        nodeSelector: "ip-172-31-45-216"
  nodeSelector: ip-172-31-45-216

@derekbit derekbit moved this to Closed in Longhorn Sprint Aug 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/chart Helm chart related backport/1.4.4 backport/1.5.2 kind/bug priority/0 Must be implement or fixed in this release (managed by PO) require/chart Require updating (chart) manifests in longhorn, longhorn-manager, charts repos require/qa-review-coverage Require QA to review coverage
Projects
Status: Closed
Development

No branches or pull requests

5 participants