replication controller created pods don't show up in pod-list output
Bug #1418719 reported by
wkh
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Magnum |
Invalid
|
High
|
Unassigned |
Bug Description
When you create a replication controller k8s creates the number of pods specified by the rc's replica value. Most of those pods don't show up in the output of `magnum pod-list`, in fact only the ones that were created prior to the rc and "adopted" by it show up. Worse, there is no way - outside of using kubectl - to delete those "invisible" pods.
pod-list should probably use the k8s API (or kubectl in the interim) to get the list of pods (and their state) rather than trying to manage it in the database.
Changed in magnum: | |
status: | New → Triaged |
importance: | Undecided → High |
Changed in magnum: | |
assignee: | nobody → Jay Lau (jay-lau-513) |
Changed in magnum: | |
status: | Triaged → In Progress |
Changed in magnum: | |
milestone: | none → mitaka-1 |
Changed in magnum: | |
status: | Fix Committed → Invalid |
To post a comment you must log in.
I think this project is related to k8s client https:/ /blueprints. launchpad. net/magnum/ +spec/python- k8sclient , we may need to call client to get pods from rc and then put all pods to database.
A short solution is always using "kubectl get pods" to get all pods, thoughts?