Skip to content

Flaky Issue with social network TLS key #200

Closed

Description

@HacksonClark

For some reason, every other time I run a social network problem the url-shorten-mongodb pod runs into this issue, not entirely sure why. We'll need to investigate to find the root cause as I have no way of reliably reproducing it. Just wanted to document that this was a known issue.

Name:             url-shorten-mongodb-6cb949f5fd-6m6l7
Namespace:        test-social-network
Priority:         0
Service Account:  default
Node:             node2.jclark58-264964.aiopslab-pg0.utah.cloudlab.us/128.110.218.245
Start Time:       Mon, 04 Aug 2025 17:29:00 -0400
Labels:           app=url-shorten-mongodb
                  pod-template-hash=6cb949f5fd
                  service=url-shorten-mongodb
Annotations:      <none>
Status:           Pending
IP:               
IPs:              <none>
Controlled By:    ReplicaSet/url-shorten-mongodb-6cb949f5fd
Containers:
  url-shorten-mongodb:
    Container ID:  
    Image:         docker.io/library/mongo:4.4.6
    Image ID:      
    Port:          27017/TCP
    Host Port:     0/TCP
    Args:
      --config
      /social-network-microservices/config/mongod.conf
    State:          Waiting
      Reason:       ContainerCreating
    Ready:          False
    Restart Count:  0
    Environment:    <none>
    Mounts:
      /etc/tls from tls-cert (ro)
      /social-network-microservices/config/mongod.conf from url-shorten-mongodb-config (rw,path="mongod.conf")
      /var/run/secrets/kubernetes.io/serviceaccount from kube-api-access-2msrk (ro)
Conditions:
  Type                        Status
  PodReadyToStartContainers   False 
  Initialized                 True 
  Ready                       False 
  ContainersReady             False 
  PodScheduled                True 
Volumes:
  url-shorten-mongodb-config:
    Type:      ConfigMap (a volume populated by a ConfigMap)
    Name:      url-shorten-mongodb
    Optional:  false
  tls-cert:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  mongodb-tls
    Optional:    false
  kube-api-access-2msrk:
    Type:                    Projected (a volume that contains injected data from multiple sources)
    TokenExpirationSeconds:  3607
    ConfigMapName:           kube-root-ca.crt
    ConfigMapOptional:       <nil>
    DownwardAPI:             true
QoS Class:                   BestEffort
Node-Selectors:              <none>
Tolerations:                 node.kubernetes.io/not-ready:NoExecute op=Exists for 300s
                             node.kubernetes.io/unreachable:NoExecute op=Exists for 300s
Events:
  Type     Reason       Age                  From               Message
  ----     ------       ----                 ----               -------
  Normal   Scheduled    10m                  default-scheduler  Successfully assigned test-social-network/url-shorten-mongodb-6cb949f5fd-6m6l7 to node2.jclark58-264964.aiopslab-pg0.utah.cloudlab.us
  Warning  FailedMount  117s (x12 over 10m)  kubelet            MountVolume.SetUp failed for volume "tls-cert" : secret "mongodb-tls" not found

Activity

  1. added
    bug
    on Aug 4, 2025
  2. HacksonClark commented on Aug 8, 2025

    @HacksonClark
    MemberAuthor

    Seeing this come up:

    TLS secret created: error: failed to create secret secrets "mongodb-tls" is forbidden: unable to create new content in namespace social-network because it is being terminated
    

    Will be resolved in #203

  3. self-assigned this
    on Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions