Files
kubernetes/pkg
Jan Safranek 9484de5d09 Improve error reporting in Ceph RBD provisioner.
- We should report an error when user references a secret that cannot be found
- We should report output of rbd create/delete commands, logging "exit code 1"
  is not enough.


Before:
```
Events:
  FirstSeen     LastSeen        Count   From                            SubobjectPath   Type            Reason                  Message
  ---------     --------        -----   ----                            -------------   --------        ------                  -------
  33m           33m             1       {persistentvolume-controller }                  Warning         ProvisioningFailed      Failed to provision volume with StorageClass "cephrbdprovisioner": rbd: create volume failed, err: exit status 1
```

After:

```
Events:
  FirstSeen     LastSeen        Count   From                            SubobjectPath   Type            Reason                  Message
  ---------     --------        -----   ----                            -------------   --------        ------                  -------
  33m           33m             1       {persistentvolume-controller }                  Warning         ProvisioningFailed      Failed to provision volume with StorageClass "cephrbdprovisioner": failed to create rbd image: exit status 1, command output: rbd: couldn't connect to the cluster
```
2016-11-28 12:08:09 +01:00
..
2016-11-23 22:30:47 -06:00
2016-11-23 22:30:47 -06:00
2016-11-23 22:30:47 -06:00
2016-11-23 22:30:47 -06:00
2016-10-21 17:32:32 -07:00
2016-11-23 22:30:47 -06:00
2016-11-23 15:53:09 -08:00
2016-11-23 22:30:47 -06:00
2016-11-23 22:30:47 -06:00
2016-11-23 15:53:09 -08:00
2016-11-23 15:53:09 -08:00
2016-11-23 15:53:09 -08:00
2016-10-21 17:32:32 -07:00
2016-11-23 22:30:47 -06:00
2016-11-23 22:30:47 -06:00
2016-10-21 17:32:32 -07:00
2016-10-21 17:32:32 -07:00
2016-11-23 22:30:47 -06:00
2016-11-23 22:30:47 -06:00
2016-11-23 15:53:09 -08:00
2016-10-21 17:32:32 -07:00
2016-11-23 22:30:47 -06:00
2016-11-23 15:53:09 -08:00
2016-10-21 17:32:32 -07:00
2016-11-23 15:53:09 -08:00
2016-11-23 22:30:47 -06:00
2016-11-23 22:30:47 -06:00
2016-11-23 22:30:47 -06:00
2016-11-23 15:53:09 -08:00
2016-11-23 15:53:09 -08:00
2016-10-21 17:32:32 -07:00
2016-11-23 15:53:09 -08:00
2016-11-23 22:30:47 -06:00
2016-10-21 17:32:32 -07:00
2016-11-23 22:30:47 -06:00
2016-10-24 14:41:56 -07:00
2016-11-23 22:30:47 -06:00