Bug 1287904
Summary: | Provide API for creating pool snapshots | |||
---|---|---|---|---|
Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | Christina Meno <gmeno> | |
Component: | Calamari | Assignee: | Andrew Schoen <aschoen> | |
Calamari sub component: | Back-end | QA Contact: | Harish NV Rao <hnallurv> | |
Status: | CLOSED DUPLICATE | Docs Contact: | Bara Ancincova <bancinco> | |
Severity: | medium | |||
Priority: | unspecified | CC: | ceph-eng-bugs, flucifre, gmeno, hnallurv, kdreyer, sankarshan | |
Version: | 1.3.1 | |||
Target Milestone: | rc | |||
Target Release: | 2.1 | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Known Issue | ||
Doc Text: |
.The Calamari API sometimes incorrectly prints standard output as an error
When using the Calamari `/cli` endpoint, the Calamari API response swaps the standard output (`stdout`) and standard error (`stderr`). As a consequence, the `err` field contains information from the `stdout` field. This behavior does not have any impact on the Calamari API commands.
|
Story Points: | --- | |
Clone Of: | ||||
: | 1287905 1291304 1382032 (view as bug list) | Environment: | ||
Last Closed: | 2016-10-05 14:44:47 UTC | Type: | Bug | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 1287905, 1291304, 1322504, 1382032 |
Description
Christina Meno
2015-12-03 00:01:07 UTC
http://tracker.ceph.com/issues/6906 https://ceph.com/dev-notes/rados-snapshots/ 4 days to implement http://hostname:8002/api/v2/cluster/<fsid>/cli POST { "command": ["ceph", "osd", "pool", "mksnap", "rbd", "rbd_snapshot", "--format=json-pretty"] } I am able to create the pool snapshots using the cli api but once api completes successfully it prints as follows: { "out": "", "err": "created pool ecpool_test3 snap ecpool_test3_snapshot_2\n", "status": 0 } Note here that "created pool ecpool_test3 snap ecpool_test3_snapshot_2\n" is a message indicating successful creation of pool but is printed as "err". This message should have been printed against "out". Looks like this is happening for all the create commands that print success message. Tested on: calamari-server-1.4.0-0.12.rc15.el7cp.x86_64 ceph version 10.2.1-13.el7cp I'll fix it in 2.1 This is wrong and to generic "When using the `create` command in the Calamari REST-based API to create for example pools or pool snapshots," I recommend saying specifically, "When using the /cli endpoint Calamari API response swaps stdout and stderr, e.g. the err field actually contains stdout" Looks fine This ticket was reopened for an error that was different than the original bug. I've opened a new ticket to track this new bug. https://bugzilla.redhat.com/show_bug.cgi?id=1382032 *** This bug has been marked as a duplicate of bug 1382032 *** |