Bug 1354459
Summary: | 2.0: rbd commands via API: few commands hang when used from browser | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat Ceph Storage | Reporter: | Harish NV Rao <hnallurv> |
Component: | Calamari | Assignee: | Boris Ranto <branto> |
Calamari sub component: | Back-end | QA Contact: | Vasishta <vashastr> |
Status: | CLOSED ERRATA | Docs Contact: | Bara Ancincova <bancinco> |
Severity: | medium | ||
Priority: | medium | CC: | branto, ceph-eng-bugs, gmeno, kdreyer, uboppana |
Version: | 2.0 | ||
Target Milestone: | rc | ||
Target Release: | 2.1 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | RHEL: calamari-server-1.4.9-1.el7cp Ubuntu: calamari-server_1.4.9-2redhat1xenial | Doc Type: | Bug Fix |
Doc Text: |
.Calamari no longer hangs when interactive commands are issued
Previously, the Calamari REST API incorrectly attached a standard input to interactive commands, such as `rbd import`. When these commands were executed from Calamari, the Calamari user interface became unresponsive because it waited for an action from the user. The underlying source code has been modified, and Calamari no longer hangs when interactive commands are issued.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-22 19:28:29 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: | 1322504, 1383917 |
Description
Harish NV Rao
2016-07-11 11:31:01 UTC
This is of course not going to work. It might be good to filter out these interactive commands. I think it's 2.1 for sure. The following commands have an option ("-") to specify the input from stdin. When "-" is used from browser API window, the commands hang. 1) rbd import 2) rbd import-diff 3) rbd journal import 4) rbd merge-diff Example: {"command":"rbd import - --dest-pool test_rbd --dest importedG"} Looks good @Gregory, will this be fixed in 2.1? If so, please let me know the fix. It might help if we redirect the stdin to /dev/null when we communicate with Popen in the sources, otherwise it gets attached to the running tty afaik. A sample test on my test cluster shows that it would help in the case described above as $ rbd watch test < /dev/null exits immediately. I'll create an upstream PR. Patch was pushed to the following PR since it ~requires the bits from the first patch in the PR: https://github.com/ceph/calamari/pull/490 PR for 1.4 branch (applied cleanly): https://github.com/ceph/calamari/pull/495 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHSA-2016-2815.html |