Skip to content

Instantly share code, notes, and snippets.

@danehans
Created October 8, 2015 15:56
Show Gist options
  • Save danehans/c3affc88ed9fe56a1efe to your computer and use it in GitHub Desktop.
Save danehans/c3affc88ed9fe56a1efe to your computer and use it in GitHub Desktop.
magnum bay failure reporting
$ heat stack-show swarm-mq4od7wpiqxc
+-----------------------+------------------------------------------------------------------------------------------------------------------------------------+
| Property | Value |
+-----------------------+------------------------------------------------------------------------------------------------------------------------------------+
| capabilities | [] |
.... |
| stack_name | swarm-mq4od7wpiqxc |
| stack_owner | None |
| stack_status | CREATE_FAILED |
| stack_status_reason | Resource CREATE failed: WaitConditionFailure: |
| | resources.master_wait_condition: swarm-manager service |
| | failed to start. |
| stack_user_project_id | d42359aa85ca467cb7169665a87f2f2c |
| tags | None |
...
| timeout_mins | None |
| updated_time | None |
+-----------------------+------------------------------------------------------------------------------------------------------------------------------------+
$ magnum bay-list
+--------------------------------------+-------+------------+--------------+---------------+
| uuid | name | node_count | master_count | status |
+--------------------------------------+-------+------------+--------------+---------------+
| 7c7ea4a4-ef79-46d4-8195-4a493e0629e2 | swarm | 1 | 1 | CREATE_FAILED |
+--------------------------------------+-------+------------+--------------+---------------+
$ systemctl status swarm-manager-failure.service -l
● swarm-manager-failure.service - swarm-manager Failure Notifier
Loaded: loaded (/etc/systemd/system/swarm-manager-failure.service; static)
Active: inactive (dead) since Wed 2015-10-07 21:56:09 UTC; 25s ago
Process: 1238 ExecStart=/usr/bin/curl -sf -X PUT -H Content-Type: application/json --data-binary {"Status": "FAILURE", "Reason": "swarm-manager service failed to start.", "Data": "OK", "UniqueId": "00000"} http://172.29.74.86:8000/v1/waitcondition/arn%3Aopenstack%3Aheat%3A%3Ae2d247525bc147a297d985167519c95e%3Astacks%2Fswarm-mq4od7wpiqxc%2F405df5d8-e4f9-48b3-8235-a63c45d85473%2Fresources%2Fmaster_wait_handle?Timestamp=2015-10-07T21%3A54%3A57Z&SignatureMethod=HmacSHA256&AWSAccessKeyId=cdda90cf84334cf482191034e8487fe1&SignatureVersion=2&Signature=fLOIz9GTGsA4sENgHUeb9%2B%2FcleUTLVfPBbarhCOYEV0%3D (code=exited, status=0/SUCCESS)
Main PID: 1238 (code=exited, status=0/SUCCESS)
Oct 07 21:56:08 swarm-mq4od7wpiqxc-swarm-master-qqbmltwekihh.novalocal systemd[1]: Starting swarm-manager Failure Notifier...
Oct 07 21:56:08 swarm-mq4od7wpiqxc-swarm-master-qqbmltwekihh.novalocal systemd[1]: Started swarm-manager Failure Notifier.
Oct 07 21:56:09 swarm-mq4od7wpiqxc-swarm-master-qqbmltwekihh.novalocal curl[1238]: <resource>master_wait_handle</resource>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment