{"action":"opened","issue":{"url":"https://api.github.com/repos/alces-software/cloudware/issues/19","repository_url":"https://api.github.com/repos/alces-software/cloudware","labels_url":"https://api.github.com/repos/alces-software/cloudware/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/alces-software/cloudware/issues/19/comments","events_url":"https://api.github.com/repos/alces-software/cloudware/issues/19/events","html_url":"https://github.com/alces-software/cloudware/issues/19","id":318855829,"number":19,"title":"Can't Destroy Empty Domain","user":{"login":"ColonelPanicks","id":27725639,"avatar_url":"https://avatars2.githubusercontent.com/u/27725639?v=4","gravatar_id":"","url":"https://api.github.com/users/ColonelPanicks","html_url":"https://github.com/ColonelPanicks","followers_url":"https://api.github.com/users/ColonelPanicks/followers","following_url":"https://api.github.com/users/ColonelPanicks/following{/other_user}","gists_url":"https://api.github.com/users/ColonelPanicks/gists{/gist_id}","starred_url":"https://api.github.com/users/ColonelPanicks/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColonelPanicks/subscriptions","organizations_url":"https://api.github.com/users/ColonelPanicks/orgs","repos_url":"https://api.github.com/users/ColonelPanicks/repos","events_url":"https://api.github.com/users/ColonelPanicks/events{/privacy}","received_events_url":"https://api.github.com/users/ColonelPanicks/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-30T11:11:35Z","updated_at":"2018-04-30T11:11:35Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Lists of current domains and machines:\r\n```\r\n[vagrant@controller ~]$ cloudware domain list\r\n[OK]  Fetching available domains\r\n+----------------+--------------+-----------------+-----------------+----------+-----------+\r\n| Domain name    | Network CIDR | Prv Subnet CIDR | Mgt Subnet CIDR | Provider | Region    |\r\n+----------------+--------------+-----------------+-----------------+----------+-----------+\r\n| laces          | 10.0.0.0/16  | 10.0.1.0/24     | 10.0.2.0/24     | aws      | eu-west-1 |\r\n| prickly-pigeon | 10.0.0.0/16  | 10.0.1.0/24     | 10.0.2.0/24     | aws      | eu-west-1 |\r\n+----------------+--------------+-----------------+-----------------+----------+-----------+\r\n[vagrant@controller ~]$ cloudware machine list\r\n[OK]  Fetching available machines\r\n+------+--------+------+----------------+----------------+------+-------+\r\n| Name | Domain | Role | Prv IP address | Mgt IP address | Type | State |\r\n+------+--------+------+----------------+----------------+------+-------+\r\n+------+--------+------+----------------+----------------+------+-------+\r\n```\r\n\r\nAttempting to delete `prickly-pigeon`\r\n```\r\n[vagrant@controller ~]$ cloudware domain destroy --name prickly-pigeon --trace\r\n[OK]  Checking domain exists\r\n/opt/cloudware/lib/cloudware/domain.rb:93:in `destroy': Unable to destroy domain with active machines (RuntimeError)\r\n\tfrom /opt/cloudware/lib/cloudware/cli.rb:134:in `block (2 levels) in <class:CLI>'\r\n\tfrom /opt/cloudware/vendor/ruby/2.4.0/gems/commander-4.4.3/lib/commander/command.rb:178:in `call'\r\n\tfrom /opt/cloudware/vendor/ruby/2.4.0/gems/commander-4.4.3/lib/commander/command.rb:153:in `run'\r\n\tfrom /opt/cloudware/vendor/ruby/2.4.0/gems/commander-4.4.3/lib/commander/runner.rb:446:in `run_active_command'\r\n\tfrom /opt/cloudware/vendor/ruby/2.4.0/gems/commander-4.4.3/lib/commander/runner.rb:68:in `run!'\r\n\tfrom /opt/cloudware/vendor/ruby/2.4.0/gems/commander-4.4.3/lib/commander/delegates.rb:15:in `run!'\r\n\tfrom /opt/cloudware/bin/cloudware:32:in `<main>'\r\n```\r\n\r\nChecked on AWS and there are no ec2 instances containing that name and no resources tagged with `cloudware_name: prickly-pigeon` besides the VPC (which it should then delete).\r\n\r\nThis issue may be specific to this domain but in case it isn't (despite having been able to delete _other_ aws domains) then this issue can be used to track any other domains that have issues to prevent this going forwards."}}
{"actor":{"display_login":"ColonelPanicks"}}