Skip to content

Instantly share code, notes, and snippets.

@briancain
Last active August 29, 2015 13:58
Show Gist options
  • Save briancain/9942068 to your computer and use it in GitHub Desktop.
Save briancain/9942068 to your computer and use it in GitHub Desktop.
Potential issues with ancor

After I did an environment remove, ANCOR still had instances and roles (potentially other things) left over in the database. Shouldn't this endpoint clean up these left over values in mongo?

This was discovered after I redeployed a new environment. ANCOR said I had 22 instances.

roles leftover? duplicate roles

vagrant@ancor-precise64:/vagrant$ ancor role list
  +--------------------------+------------+-------------------------------+-----+-----+
  | id                       | slug       | name                          | min | max |
  +--------------------------+------------+-------------------------------+-----+-----+
  | 533c58c03b7122ca80000002 | weblb      | Web application load balancer |     |     |
  +--------------------------+------------+-------------------------------+-----+-----+
  | 533c58c03b7122ca80000005 | webapp     | Web application               |     |     |
  +--------------------------+------------+-------------------------------+-----+-----+
  | 533c58c03b7122ca80000008 | worker     | Sidekiq worker application    |     |     |
  +--------------------------+------------+-------------------------------+-----+-----+
  | 533c58c03b7122ca8000000a | work_queue | Redis work queue              |     |     |
  +--------------------------+------------+-------------------------------+-----+-----+
  | 533c58c03b7122ca8000000d | db_master  | MySQL master                  |     |     |
  +--------------------------+------------+-------------------------------+-----+-----+
  | 533c58c03b7122ca80000010 | db_slave   | MySQL slave                   |     |     |
  +--------------------------+------------+-------------------------------+-----+-----+
  | 533c6afd3b7122ca8000016d | weblb      | Web application load balancer |     |     |
  +--------------------------+------------+-------------------------------+-----+-----+
  | 533c6afd3b7122ca80000170 | webapp     | Web application               |     |     |
  +--------------------------+------------+-------------------------------+-----+-----+
  | 533c6afd3b7122ca80000173 | worker     | Sidekiq worker application    |     |     |
  +--------------------------+------------+-------------------------------+-----+-----+
  | 533c6afd3b7122ca80000175 | work_queue | Redis work queue              |     |     |
  +--------------------------+------------+-------------------------------+-----+-----+
  | 533c6afd3b7122ca80000178 | db_master  | MySQL master                  |     |     |
  +--------------------------+------------+-------------------------------+-----+-----+
  | 533c6afd3b7122ca8000017b | db_slave   | MySQL slave                   |     |     |
  +--------------------------+------------+-------------------------------+-----+-----+

instances left over?

vagrant@ancor-precise64:/vagrant$ ancor instance list
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | id                       | name        | stage     | planned_stage | internal_ip   | public_ip |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca80000182 | weblb0      | undefined | deploy        | 10.224.110.10 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca8000018b | weblb1      | undefined | deploy        | 10.224.110.13 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca80000194 | webapp0     | undefined | deploy        | 10.224.110.16 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca8000019c | webapp1     | undefined | deploy        | 10.224.110.19 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca800001a4 | webapp2     | undefined | deploy        | 10.224.110.22 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca800001ac | worker0     | undefined | deploy        | 10.224.110.25 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca800001b2 | worker1     | undefined | deploy        | 10.224.110.28 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca800001b8 | work-queue0 | undefined | deploy        | 10.224.110.31 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca800001c0 | db-master0  | undefined | deploy        | 10.224.110.34 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca800001c8 | db-slave0   | undefined | deploy        | 10.224.110.37 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca800001d0 | db-slave1   | undefined | deploy        | 10.224.110.40 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca800001ea | webapp0     | undefined | deploy        | 10.224.110.49 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca800001d8 | weblb0      | undefined | deploy        | 10.224.110.43 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca800001e1 | weblb1      | undefined | deploy        | 10.224.110.46 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca80000208 | worker1     | undefined | deploy        | 10.224.110.61 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca800001fa | webapp2     | undefined | deploy        | 10.224.110.55 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca800001f2 | webapp1     | undefined | deploy        | 10.224.110.52 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca80000202 | worker0     | undefined | deploy        | 10.224.110.58 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca8000021e | db-slave0   | undefined | deploy        | 10.224.110.70 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca80000226 | db-slave1   | undefined | deploy        | 10.224.110.73 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca80000216 | db-master0  | undefined | deploy        | 10.224.110.67 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
  | 533c6afd3b7122ca8000020e | work-queue0 | undefined | deploy        | 10.224.110.64 |           |
  +--------------------------+-------------+-----------+---------------+---------------+-----------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment