question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PVCs will not mount in 0.12.21

See original GitHub issue

Bug

Current Behavior

After upgrading from 0.12.16 to 0.12.21 our PVCs are no longer mounting as expected. We are receiving the following error:

Failed getting status for service 'cache-volume' (from module 'cache-volume'). Here is the output:
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
persistentvolumeclaim module cache-volume doesn't specify a serviceResource in its configuration. You must specify a resourceΒ in the module config in order to use certain Garden features, such as hot
reloading, tasks and tests.
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

serviceResource isn’t mentioned in the current PVC docs

Unfortunately Homebrew has made it incredibly difficult to rollback to a previous version of a package.

Our current PVC config is

kind: Module
name: cache-volume
type: persistentvolumeclaim
include: []
spec:
  accessModes: [ReadWriteMany]
  resources:
    requests:
      storage: 128Mi

and the volume config is

- name: cache
  containerPath: /app/cache
  module: cache-volume

EDIT: the volume is used in a container module running in a local-kubernetes provider.

Expected behavior

PVCs mount as expected OR the docs are updated to reflect the serviceResource config requirement.

Reproducible example

Create a simple volume and create a PVC module for that volume without serviceResource specified.

Workaround

None so far

Suggested solution(s)

If serviceResource is required for PVC modules now a doc update would be sufficient.

Your environment

Garden 0.12.21 MacOS 11.2.3 Docker for Mac 3.3.1 (63152) Docker Engine 20.10.5 Docker Compose 1.29.0 Kubernetes 1.19.7

$ garden version
0.12.21

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

1reaction
eysi09commented, May 4, 2021

Aha, ok. We tried reproducing this on our end but came up short. Any pointers, @edvald?

And thanks for the offer @ultimatemonty, I’ll definitely reach out if we find ourselves blocked, but this should be an easy enough fix.

0reactions
eysi09commented, Jun 17, 2021

Awesome, thanks for the repro. This will make it a lot easier to diagnose and fix.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Premature Ventricular Contraction - StatPearls - NCBI Bookshelf
PVCs present as heart palpitations in most patients. They are usually benign and do not require treatment. Go to:Β ...
Read more >
openebs volume cannot be mounted to the Pod #3111 - GitHub
Description I cant deploy Workload with Volumes on OpenEBS Expected Behavior The PV gets created and attached to the Pods Current BehaviorΒ ...
Read more >
Clinical Approach to Patients with Frequent PVCs
In summary:​​ PVCs and symptoms related to PVCs are seen frequently in clinical practice, can occur in patients with or without structural heart...
Read more >
Understanding Premature Ventricular Contractions (PVCs)
Premature ventricular contractions (PVCs) are a type of abnormal heartbeat (arrhythmia). They are commonly found in people of all ages.
Read more >
Premature ventricular contractions: Reassure or refer?
Treatment of PVCs is indicated for relief of symptoms if reassurance is not sufficient. Patients who have a high PVC burden (> 10%...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found