Bug 1287904 - Provide API for creating pool snapshots
Summary: Provide API for creating pool snapshots
Keywords:
Status: CLOSED DUPLICATE of bug 1382032
Alias: None
Product: Red Hat Ceph Storage
Classification: Red Hat Storage
Component: Calamari
Version: 1.3.1
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: rc
: 2.1
Assignee: Andrew Schoen
QA Contact: Harish NV Rao
Bara Ancincova
URL:
Whiteboard:
Depends On:
Blocks: 1287905 1291304 1322504 1382032
TreeView+ depends on / blocked
 
Reported: 2015-12-03 00:01 UTC by Christina Meno
Modified: 2022-02-21 18:16 UTC (History)
6 users (show)

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.
Clone Of:
: 1287905 1291304 1382032 (view as bug list)
Environment:
Last Closed: 2016-10-05 14:44:47 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Ceph Project Bug Tracker 6906 0 None None None 2016-06-14 16:13:11 UTC
Red Hat Issue Tracker RHCEPH-3304 0 None None None 2022-02-21 18:16:26 UTC

Description Christina Meno 2015-12-03 00:01:07 UTC
Description of problem:


Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Christina Meno 2016-01-27 22:17:01 UTC
http://tracker.ceph.com/issues/6906

https://ceph.com/dev-notes/rados-snapshots/

4 days to implement

Comment 3 Christina Meno 2016-04-11 23:42:58 UTC
http://hostname:8002/api/v2/cluster/<fsid>/cli

POST
{
    "command": ["ceph", "osd", "pool", "mksnap", "rbd", "rbd_snapshot", "--format=json-pretty"]
}

Comment 4 Harish NV Rao 2016-06-10 12:13:17 UTC
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

Comment 6 Christina Meno 2016-06-14 16:38:29 UTC
I'll fix it in 2.1

Comment 11 Christina Meno 2016-06-20 18:00:27 UTC
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"

Comment 14 Christina Meno 2016-07-13 16:07:16 UTC
Looks fine

Comment 16 Andrew Schoen 2016-10-05 14:44:47 UTC
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 ***


Note You need to log in before you can comment on or make changes to this bug.