Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VPC Fails to Delete in Loom 0.1.1 #24

Open
plombardi89 opened this issue May 23, 2017 · 2 comments
Open

VPC Fails to Delete in Loom 0.1.1 #24

plombardi89 opened this issue May 23, 2017 · 2 comments

Comments

@plombardi89
Copy link
Contributor

Seems to be an intermittent issue where a fabric VPC will fail to delete when a user deletes and then recreates a fabric.

Usually the issue is the Internet Gateway and 1 or more Route Tables are left behind. This should not occur.

@plombardi89
Copy link
Contributor Author

I think the Terraform state is not being fully updated before another request occurs this leads to Terraform using old / invalid state which causes issues.

@plombardi89
Copy link
Contributor Author

plombardi89 commented May 23, 2017

`Maclt-004:~ redacted$ curl -v localhost:7000/fabrics/REDACTED/cluster`

[4:59] 
and got:

[5:00] 
*   Trying ::1...
* Connected to localhost (::1) port 7000 (#0)
> GET /fabrics/foodev/cluster HTTP/1.1
> Host: localhost:7000
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Date: Tue, 23 May 2017 20:24:41 GMT
< Content-Type: application/json
< Transfer-Encoding: chunked
< Server: Jetty(9.3.z-SNAPSHOT)
<
{
  "errors" : [ {
    "code" : "1100",
    "title" : "FABRIC_NOT_EXISTS",
    "detail" : "The fabric does not exist"
  } ]
* Connection #0 to host localhost left intact

[5:00] 
So I assumed I was deleted so I then did:

[5:01] 
`Maclt-004:~ redacted$ curl v -X POST -H "Content-Type: application/json" -d '{"name": "foodev", "model": "cf-v3"}' localhost:7000/fabrics`

[5:01] 
and got:

[5:01] 
*   Trying ::1...
* Connected to localhost (::1) port 7000 (#0)
> POST /fabrics HTTP/1.1
> Host: localhost:7000
> User-Agent: curl/7.43.0
> Accept: */*
> Content-Type: application/json
> Content-Length: 36
>
* upload completely sent off: 36 out of 36 bytes
< HTTP/1.1 204 No Content
< Date: Tue, 23 May 2017 20:32:24 GMT
< Content-Type: text/html;charset=utf-8
< Server: Jetty(9.3.z-SNAPSHOT)
<
* Connection #0 to host localhost left intact

[5:02] 
Then a waited a sec and did :

[5:02] 
`Maclt-004:~ redacted$ curl -v localhost:7000/fabrics/foodev/cluster`

[5:02] 
Got back:

[5:02] 
*   Trying ::1...
* Connected to localhost (::1) port 7000 (#0)
> GET /fabrics/foodev/cluster HTTP/1.1
> Host: localhost:7000
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 404 Not Found
< Date: Tue, 23 May 2017 20:33:53 GMT
< Content-Type: application/json
< Transfer-Encoding: chunked
< Server: Jetty(9.3.z-SNAPSHOT)
<
{
  "errors" : [ {
    "code" : "1200",
    "title" : "CLUSTER_NOT_FOUND",
    "detail" : "The cluster does not exist"
  } ]
* Connection #0 to host localhost left intact

[5:03] 
At which time I jumped windows and saw the stuff I posted earlier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant