summaryrefslogtreecommitdiff
path: root/qpid/tools/src/py
Commit message (Collapse)AuthorAgeFilesLines
* QPID-7207: Create independent cpp and python subtrees, with content from ↵Justin Ross2016-04-2129-9833/+0
| | | | | | tools and extras git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1740289 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6767: add --sasl-service-name option to all QPID tools.Ken Giusti2015-10-027-0/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1706480 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6765 [linearstore] Add qpid-txtest mode to qpid-qls-analyze which ↵Kim van der Riet2015-09-254-67/+72
| | | | | | extracts message number from message body git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1705310 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6491: qpid-route map to use credentials, hide them from outputPavel Moravec2015-08-021-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1693816 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6571: remove socket.gethostbyname callErnest Allen2015-06-041-6/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1683567 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Add log command to qpid-config to set log levels.Alan Conway2015-04-272-2/+11
| | | | | | | | | Get current level: qpid-config log Set new level: qpid-config log <newlevel> Fixed bugs in getLogLevel and in handling invalid log levels. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1676333 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6491: qpid-route map does not use any authentication when querying ↵Pavel Moravec2015-04-211-1/+1
| | | | | | other brokers git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1675060 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6347 - Committed a patch from Irina BovermanTed Ross2015-03-271-3/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1669669 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6347: Remove the now obsolete queue_event_generation option; this is a ↵Justin Ross2015-02-111-5/+1
| | | | | | patch from Irina Boverman git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1659063 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5362: Linearstore: No store tools exist for examining the journals - ↵Kim van der Riet2015-01-164-56/+82
| | | | | | Bugfix and update for new partition and directory structure change from QPID-5671 and QPID-6303 git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1652490 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6013 qpid-route should warn when a federation link was not created ↵Ernest Allen2015-01-121-6/+19
| | | | | | successfully git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1651216 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5671 [linearstore] Add ability to use disk partitions and select ↵Kim van der Riet2015-01-021-3/+20
| | | | | | per-queue EFPs: WIP, but mostly complete. Needs additional testing. It is now possible to add queues which use a partition other than the broker default by using qpid-config --durable together with --efp--partition-num and/or --efp-pool-file-size git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1649081 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: qpid-ha don't return error status if called with -h or --help flag.Alan Conway2014-12-011-2/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1642758 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6230 [linearstore] qpid-qls-analyze fails when analyzing empty journalKim van der Riet2014-11-181-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1640353 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6177: qpid-tool should print warning when initial connection to broker ↵Pavel Moravec2014-10-231-2/+7
| | | | | | fails git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1633818 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6118: Add qmf shutdown command to the brokerAlan Conway2014-09-261-4/+10
| | | | | | | | QMF shutdown command implemented on broker. - ACL to control shutdown: acl deny all access method name=shutdown - Added "qpid-config shutdown" command to shut down the broker. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1627811 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6106: Replace empty fields with '-' in qpid-stat -c output; this is a ↵Justin Ross2014-09-231-4/+8
| | | | | | patch from Irina Boverman git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1627015 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6007: Test if hostname is valid; if not, default to trying localhost; ↵Justin Ross2014-09-091-1/+5
| | | | | | this is a patch from Ernie Allen git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1623871 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6035: HA fix bug in qpid-ha, --help does not show help.Alan Conway2014-09-021-3/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1622057 13f79535-47bb-0310-9956-ffa450edef68
* QPID-6035: HA clearly distinguish qpid-ha commands intended for cluster manager.Alan Conway2014-08-221-17/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds a --cluster-manager flag to qpid-ha tool. Without this flag - the 'promote' command is not listed in the tool help. - using the promote command raises an error saying that it is only for cluster manager use and mentioning the --cluster-manager flag. With the flag: promote functions as before. The qpid-ha help text for promote is also more clear now that it is for cluster manager only. Originally the idea was to split qpid-ha into two tools but I have kept one tool with the flag and warning messages because it: - avoids packaging changes that might trip things up. - helps people who are already using qpid-ha promote: their scripts will break but the error message explains how to fix it. I think the special role of promote is sufficiently clear now even if it is part of the same tool. This commit also updates the following to take account of the new flag: - rgmanager qpidd-primary script. - qpidd tests. - qpid book HA chapter. NOTE: THIS WILL BREAK TEST HARNESSES that do promotion outside of rgmanager. You'll need to add the --cluster-manager flag in the relevant places. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1619877 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5942: qpid HA cluster may end-up in joining state after HA primary is ↵Alan Conway2014-07-311-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | killed There are two issues here, both related to the fact that rgmanager sees qpidd and qpidd-primary as two separate services. 1. The service start/stop scripts can be called concurrently. This can lead to running a qpidd process who's pid is not in the pidfile. rgmanager cannot detect or kill this qpidd and cannot start another qpidd because of the lock on the qpidd data directory. 2. rgmanager sees a primary failure as two failures: qpidd and qpidd-primary, and will then try to stop and start both services. The order of these actions is not defined and can lead to rgmanager killing a service it has just started. This patch makes two major changes to the init scripts: 1. Uses flock to lock the sensitive stop/start part of the scripts to ensure they are not executed concurrently. 2. On "stop" the scripts check if a running qpidd is primary or not. "qpidd stop" is a no-op if the running broker is primary, "qpidd-primary stop" is a no op if it is not. This ensures that a broker will be stopped by the same stream of service actions that started it. Minor changes in this patch: - better logging of broker start-up and shut-down sequence. - qpid-ha heartbeat use half of timeout option. - add missing timeouts in qpid-ha. Notes: This changes the behavior of 'clusvcadm -d <qpidd-service>' on the primary node. Previously this would have stopped the qpidd service on that node, killed the qpidd process and relocated the primary service. Now this will stop the qpidd service (as far as rgmanager is concerned) but will not kill qpidd or relocate the primary service. When the primary is relocated the qpidd service wil not be able to re-start on that node until it is re-enabled with 'clusvcadm -e'. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1614895 13f79535-47bb-0310-9956-ffa450edef68
* [QPID-5945]: qpid-config to pass integer arguments whenever possiblePavel Moravec2014-07-301-9/+12
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1614637 13f79535-47bb-0310-9956-ffa450edef68
* [QPID-5938]: qpid-stat: remove dead code relevant to active-active clusterPavel Moravec2014-07-301-61/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1614577 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5932: Use default parameter values for method calls if necessary.Ken Giusti2014-07-281-2/+2
| | | | | | Original patch by Ernest Allen. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1614109 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: Added qpid-ha query --all flag.Alan Conway2014-07-181-24/+50
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1611747 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5850: Support for long session names (patch from Ernie Allen)Gordon Sim2014-07-161-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1611016 13f79535-47bb-0310-9956-ffa450edef68
* [QPID-5863]: qpid-config does not throws correct exception when binding ↵Pavel Moravec2014-07-011-1/+3
| | | | | | nonexisting exchange; fix from Zdenek Kraus git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1607061 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5797: [qpid-tools]: inability to call some QMF methods ↵Pavel Moravec2014-06-021-5/+17
| | | | | | (queueMoveMessages / setLogLevel or so) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1599221 13f79535-47bb-0310-9956-ffa450edef68
* NO_JIRA: [linearstore] Update to ISSUES; whitespace fix from last checkinKim van der Riet2014-05-217-115/+130
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1596633 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: HA fix hanging ha_tests.test_failover_send_receive on RHEL5Alan Conway2014-05-011-1/+3
| | | | | | | | | | | | | The test was hanging because of a python construct not available in 2.4. It was causing an exception in a strange place because this bit of code was imported at runtime, and that was hanging the test. Fixed and did some cleanup to avoid such mysterious hangs in future: - Fixed qpidtoollibs/config.py to work with python 2.4. - Import qpid-ha script at import time rather than runtime. - Fix Popen.teardown logic to avoid hanging if a process can't be killed. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1591794 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: HA qpid-ha usability: automatically use qpidd.conf if no --broker ↵Alan Conway2014-04-251-1/+13
| | | | | | option. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1590118 13f79535-47bb-0310-9956-ffa450edef68
* NO-JIRA: HA minor cleanup of qpid-ha toolAlan Conway2014-04-241-22/+9
| | | | | | | | | | - Remove some dead code. - Removed "set" command - not ready for production. All settings in qpidd.conf. - Removed related tests in ha_tests - Improved help on promote command. - Made option group for common broker connection options. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1589834 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5719: HA becomes unresponsive once any of the brokers are SIGSTOPedAlan Conway2014-04-241-22/+48
| | | | | | | | | | | | | | | | | | | | | | | | - Added timeout to qpid-ha. - qpidd init script pings broker to verify it is not hung. - updated documentation in qpid/doc/book/src/cpp-broker/Active-Passive-Cluster.xml. The new results for the cases mentioned in the bug: a] stopped ALL brokers: rgmanager restarts the entire cluster but data is lost. Equivalent to killing all the brokers at once. This does not affect quorum because only qpidd services are affected, not other services managed by cman. b] stopped the primary: rgmanager restarts the primary after a timeout and promotes one of the backups. c] stopped a backup: rgmanager restarts the backups after a timeout. Clients that are actively sending messages may see a delay while backup is restarted. Note you need to set link-heartbeat-interval in qpidd.conf. The default is very high (120 seconds), it should be set lower to see recovery from sigstop in a reasonable time. See the updated documentation in qpid/doc/book/src/cpp-broker/Active-Passive-Cluster.xml. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1589807 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5711: HA cannot promote primary if SASL security is enabled.Alan Conway2014-04-232-7/+52
| | | | | | | | | | | | Updated the qpid-ha tool and qpidd init scripts to handle SASL authentication. The qpid-ha script as as called by the qpidd-primary init script now reads authentication settings from the qpidd.conf file and uses them to connect to the local broker. - qpidd-primary script respects prefix: use installed location for qpidd script, not "service" call - qpid-ha added --config option qpid-ha options to use qpidd.conf for local broker connection. - qpid-ha --all use user/pass for each broker. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1589391 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5560: HA tests do not use AMQP 1.0Alan Conway2014-04-071-9/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The HA tests were using only AMQP 0-10. Modified the tests to use AMQP 1.0 if available (still use 0-10 if 1.0 is not available) Fixed bugs uncovered both in the tests and in the AMQP 1.0 implementation. Summary of changes: - brokertest.py: configurable support for of swig vs. native and amqp0-10 vs. 1.0 - default to swig+amqp1.0 if swig is available, native+amqp0-10 otherwise - qpidtoollibs/broker.py: enable use of swig client with BrokerAgent - Swig python client: - support for passing client_properties/properties. - expose AddressHelper pn_data read/write as PnData helper class - set sender/receiver capacity on creation - limited disposition support - rejected messages. - support for additional timeout parameters - expose messaging::Logger, allow log configuration to be set from python. - ha_tests.py: - bind, delete policies not supported by AMQP 1.0, switched to using BrokerAgent QMF. - pass protocol:amqp1.0 connection-option to c++ test clients (qpid-send, qpid-receive) - TX tests forsce use of 0-10 protocol (but still with Swig client if enabled.) - Broker fixes: - Queue::Settings::isTemporary was set in the 0-10 SessionAdapter, moved to Broker::createQueue. - broker::amqp::Session was always setting an exclusive owner in createQueue git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1585588 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5660: [legacystore] Python tests fail with syntax error on Python 2.4Kim van der Riet2014-04-031-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1584347 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5362: Bugfix for qpid_qls_analyzeKim van der Riet2014-04-011-15/+15
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1583778 13f79535-47bb-0310-9956-ffa450edef68
* QPID-4738: Fix qpid-ha status --all when used with a standalone broker.Alan Conway2014-03-241-2/+2
| | | | | | | Previously qpid-ha status --all on a standalone broker produced no output. Now it prints the status of the standalone broker. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1580962 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5643: qpid-route route map does not pass credentials to other brokers ↵Pavel Moravec2014-03-241-1/+3
| | | | | | in the route map git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1580827 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5362: No store tools exist for examining the journals - Bugfix and ↵Kim van der Riet2014-03-186-852/+1224
| | | | | | reorganization of qls python modules. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1578899 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5362: Bugfixes and enhancements for qpid_qls_analyzeKim van der Riet2014-02-054-65/+150
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1564808 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5541: HA incorrect options for expected-backups in qpid-ha toolAlan Conway2014-02-051-3/+0
| | | | | | Remove invalid --backup option from qpid-ha set and query commands. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1564797 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5530: [legacystore] store_chk raises "Operation on non-existent record: ↵Pavel Moravec2014-02-011-2/+11
| | | | | | operation=unlock; rid=.." on aborted DTX transaction in TplStore git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1563387 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5362: Bugfixes and enhancements to qpid_qls_analyzeKim van der Riet2014-01-274-153/+398
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1561848 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5362: Bugfixes for journal analysis tool qpid_qls_analyzeKim van der Riet2014-01-221-6/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1560530 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5362: WIP: Linearstore: No store tools exist for examining the ↵Kim van der Riet2014-01-095-0/+1183
| | | | | | journals. This checkin is work-in-progress. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1556888 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5321: fix exception handling in qpid-tool. Fix by Jakub ScholzGordon Sim2013-11-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1540793 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5277: handle case where objects do not all have value for given propertyGordon Sim2013-11-041-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1538694 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5277: support for generic add, del and listGordon Sim2013-11-042-1/+69
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1538626 13f79535-47bb-0310-9956-ffa450edef68
* QPID-5231: Fix QMF code to use qpid_messaging rather than cqpid.Darryl L. Pierce2013-10-151-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@1532324 13f79535-47bb-0310-9956-ffa450edef68