mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
e2e: log events from deployment namespace
When tests run and something goes wrong during deployment, not all information is available. Logging the events from the namespace where Ceph-CSI (and Vault) is deployed, might help with troubleshooting. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
dd29c6c06b
commit
4abe128bd8
@ -164,6 +164,9 @@ var _ = Describe("cephfs", func() {
|
|||||||
logsCSIPods("app=csi-cephfsplugin-provisioner", c)
|
logsCSIPods("app=csi-cephfsplugin-provisioner", c)
|
||||||
// log node plugin
|
// log node plugin
|
||||||
logsCSIPods("app=csi-cephfsplugin", c)
|
logsCSIPods("app=csi-cephfsplugin", c)
|
||||||
|
|
||||||
|
// log all details from the namespace where Ceph-CSI is deployed
|
||||||
|
framework.DumpAllNamespaceInfo(c, cephCSINamespace)
|
||||||
}
|
}
|
||||||
err := deleteConfigMap(cephfsDirPath)
|
err := deleteConfigMap(cephfsDirPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -189,6 +189,9 @@ var _ = Describe("RBD", func() {
|
|||||||
logsCSIPods("app=csi-rbdplugin-provisioner", c)
|
logsCSIPods("app=csi-rbdplugin-provisioner", c)
|
||||||
// log node plugin
|
// log node plugin
|
||||||
logsCSIPods("app=csi-rbdplugin", c)
|
logsCSIPods("app=csi-rbdplugin", c)
|
||||||
|
|
||||||
|
// log all details from the namespace where Ceph-CSI is deployed
|
||||||
|
framework.DumpAllNamespaceInfo(c, cephCSINamespace)
|
||||||
}
|
}
|
||||||
|
|
||||||
err := deleteConfigMap(rbdDirPath)
|
err := deleteConfigMap(rbdDirPath)
|
||||||
|
@ -88,6 +88,9 @@ var _ = Describe("CephFS Upgrade Testing", func() {
|
|||||||
logsCSIPods("app=csi-cephfsplugin-provisioner", c)
|
logsCSIPods("app=csi-cephfsplugin-provisioner", c)
|
||||||
// log node plugin
|
// log node plugin
|
||||||
logsCSIPods("app=csi-cephfsplugin", c)
|
logsCSIPods("app=csi-cephfsplugin", c)
|
||||||
|
|
||||||
|
// log all details from the namespace where Ceph-CSI is deployed
|
||||||
|
framework.DumpAllNamespaceInfo(c, cephCSINamespace)
|
||||||
}
|
}
|
||||||
err = deleteConfigMap(cephfsDirPath)
|
err = deleteConfigMap(cephfsDirPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -96,6 +96,9 @@ var _ = Describe("RBD Upgrade Testing", func() {
|
|||||||
logsCSIPods("app=csi-rbdplugin-provisioner", c)
|
logsCSIPods("app=csi-rbdplugin-provisioner", c)
|
||||||
// log node plugin
|
// log node plugin
|
||||||
logsCSIPods("app=csi-rbdplugin", c)
|
logsCSIPods("app=csi-rbdplugin", c)
|
||||||
|
|
||||||
|
// log all details from the namespace where Ceph-CSI is deployed
|
||||||
|
framework.DumpAllNamespaceInfo(c, cephCSINamespace)
|
||||||
}
|
}
|
||||||
|
|
||||||
err := deleteConfigMap(rbdDirPath)
|
err := deleteConfigMap(rbdDirPath)
|
||||||
|
Loading…
Reference in New Issue
Block a user