Verify
なんか、いろいろFailedとか出てます。 OKなのかどうなのか微妙だ。。。
[root@stackstorm ~]# st2 --version st2 2.0.0 [root@stackstorm ~]# st2 action list --pack=core +-------------------+------+-----------------------------------+ | ref | pack | description | +-------------------+------+-----------------------------------+ | core.announcement | core | Action that broadcasts the | | | | announcement to all stream | | | | consumers. | | core.http | core | Action that performs an http | | | | request. | | core.local | core | Action that executes an arbitrary | | | | Linux command on the localhost. | | core.local_sudo | core | Action that executes an arbitrary | | | | Linux command on the localhost. | | core.noop | core | Action that does nothing | | core.remote | core | Action to execute arbitrary linux | | | | command remotely. | | core.remote_sudo | core | Action to execute arbitrary linux | | | | command remotely. | | core.sendmail | core | This sends an email | | core.windows_cmd | core | Action to execute arbitrary | | | | Windows command remotely. | +-------------------+------+-----------------------------------+ [root@stackstorm ~]# st2 run core.local -- date -R . id: 57e413d602ebd5155fd887a5 status: failed parameters: cmd: date -R result: failed: true return_code: 1 stderr: 'sudo: sorry, you must have a tty to run sudo' stdout: '' succeeded: false [root@stackstorm ~]# st2 execution list +--------------------------+------------+--------------+---------------------+-----------------+---------------+ | id | action.ref | context.user | status | start_timestamp | end_timestamp | +--------------------------+------------+--------------+---------------------+-----------------+---------------+ | 57e413d602ebd5155fd887a5 | core.local | stanley | failed (0s elapsed) | Thu, 22 Sep | Thu, 22 Sep | | | | | | 2016 17:24:38 | 2016 17:24:38 | | | | | | UTC | UTC | +--------------------------+------------+--------------+---------------------+-----------------+---------------+ [root@stackstorm ~]# st2 run core.remote hosts='localhost' -- uname -a .. id: 57e413e802ebd5155fd887a8 status: succeeded parameters: cmd: uname -a hosts: localhost result: localhost: failed: false return_code: 0 stderr: '' stdout: 'Linux stackstorm 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux' succeeded: true [root@stackstorm ~]# st2 run packs.install packs=st2 ................................... id: 57e413f602ebd5155fd887ab action.ref: packs.install parameters: packs: - st2 status: failed error: sudo: sorry, you must have a tty to run sudo traceback: None failed_on: reload start_timestamp: 2016-09-22T17:25:10.003137Z end_timestamp: 2016-09-22T17:26:18.918321Z +--------------------------+-------------------------+----------------+----------------+-----------------+ | id | status | task | action | start_timestamp | +--------------------------+-------------------------+----------------+----------------+-----------------+ | 57e413f602ebd514c4a27e59 | succeeded (55s elapsed) | download | packs.download | Thu, 22 Sep | | | | | | 2016 17:25:10 | | | | | | UTC | | 57e4142d02ebd514c4a27e5b | succeeded (1s elapsed) | virtualenv_pre | packs.virtuale | Thu, 22 Sep | | | | run | nv_prerun | 2016 17:26:05 | | | | | | UTC | | 57e4142f02ebd514c4a27e5d | succeeded (10s elapsed) | setup_virtuale | packs.setup_vi | Thu, 22 Sep | | | | nv | rtualenv | 2016 17:26:07 | | | | | | UTC | | 57e4143902ebd514c4a27e5f | failed (1s elapsed) | reload | packs.load | Thu, 22 Sep | | | | | | 2016 17:26:17 | | | | | | UTC | +--------------------------+-------------------------+----------------+----------------+-----------------+ [root@stackstorm ~]#