manual provider client cache prevents reuse of env by name
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Andrew Wilkins |
Bug Description
so i had failed manual bootstrap due to bug https:/
2013-10-11 20:00:59 INFO juju.environs.
2013-10-11 20:00:59 INFO juju.environs.
2013-10-11 20:00:59 INFO juju.environs.
2013-10-11 20:00:59 ERROR juju supercommand.go:282 machine is already provisioned
And you can't destroy-environment on a manual env to reset the client side state/cache.
Related branches
- Juju Engineering: Pending requested
-
Diff: 936 lines (+564/-49)19 files modifiedcmd/juju/destroyenvironment.go (+12/-4)
cmd/jujud/machine.go (+3/-0)
environs/manual/provisioner.go (+1/-1)
provider/dummy/environs.go (+3/-1)
provider/null/environ.go (+1/-1)
state/api/client.go (+6/-0)
state/api/machiner/environ.go (+41/-0)
state/api/machiner/machine.go (+2/-20)
state/api/machiner/machiner.go (+39/-3)
state/api/params/internal.go (+6/-0)
state/apiserver/client/destroyjuju.go (+126/-0)
state/apiserver/client/destroyjuju_test.go (+118/-0)
state/apiserver/machine/machiner.go (+31/-3)
state/environ.go (+64/-12)
state/interface.go (+1/-0)
state/state.go (+23/-2)
state/state_test.go (+36/-0)
state/watcher.go (+5/-0)
worker/machiner/machiner.go (+46/-2)
- Juju Engineering: Pending requested
-
Diff: 246 lines (+175/-2)5 files modifiedcmd/jujud/machine.go (+4/-0)
provider/null/environ.go (+23/-1)
provider/null/environ_test.go (+29/-1)
worker/terminationworker/worker.go (+60/-0)
worker/terminationworker/worker_test.go (+59/-0)
Changed in juju-core: | |
status: | New → Triaged |
importance: | Undecided → High |
tags: | added: manual-provider |
Changed in juju-core: | |
assignee: | nobody → Andrew Wilkins (axwalk) |
milestone: | none → 1.17.0 |
tags: |
added: ssh-provider removed: manual-provider |
Changed in juju-core: | |
status: | Triaged → In Progress |
Changed in juju-core: | |
milestone: | 1.17.0 → 2.0 |
tags: |
added: manual-provider removed: ssh-provider |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
milestone: | 2.0 → 1.17.1 |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
deleting the previous instance still results in an attempt to reset/clear the old instance.. but if the instance is gone it just hangs for 3m before failing.
2013-10-11 20:09:58 DEBUG juju.environs open.go:75 ConfigForName found bootstrap config map[string] interface {}{"admin- secret" :"b6d86b997f8a8 0f37bc96fda8941 e0fc", "api-port":17070, "default- series" :"precise" , "firewall- mode":" instance" , "ssl-hostname- verification" :true, "tools-url":"", "bootstrap- host":" 162.243. 42.177" , "image- metadata- url":"" , "storage- auth-key" :"fa32204f792c7 4a7a29ab59ac3ce 3226", "type":"null", "bootstrap- user":" root", "development" :false, "logging- config" :"<root> =DEBUG" , "name":"null", "state-port":37017, "authorized- keys":" ssh-dss A ender@linux\n", "ca-cert" :"----- BEGIN CERTIFICATE- ----\nMIICVzCCA cKgAwIBAgIBADAL BgkqhkiG9w0BAQU wQjENMAsGA1UECh MEanVqdTEx\ nMC8GA1UEAwwoan VqdS1nZW5lcmF0Z WQgQ0EgZm9yIGVu dmlyb25tZW50ICJ udWxs\nIjAeFw0x MzEwMTExODU3NDF aFw0yMzEwMTExOT AyNDFaMEIxDTALB gNVBAoTpUDqFfeg zQAUjdk0J1P0a/ jG3NWdMQbdxUnfl FhY\nGPWfyO3ym9 csHnluXtn/ o9Y6N75O5pCtbNw ygHVfAXc4J5J2Vk WJGQSGNDI+ bbqC\nMyAiFhlb6 akJHwDGGnHjOpcD O3s+we8q8FaL\ n-----END CERTIFICATE- ----\n" , "ca-private- key":"- ----BEGIN RSA PRIVATE KEY---- -qY0+iguC0cbXmT QH4wLHC\ nP2KIvQOSit6S2P OEylPpOCynfEeKW GxRjZI2twr35oOB IhEx0axZMSVTvyc dAkBR\n6GObG4Ku d+bQCxAcg5QpiRG Sv/Z2fpAA/ NurbuegBVXlK7jx 9PwzQN9immxJPVJ I\nuG6DU7geib/ 6wwfAe4uFAkAudI W8Xo3miJzjp2jBV ZEkj6lbiF3w2vSn kuUhIKul\ n4K4TM7ZKD0jnb7 WbWSrYy6NppYQI9 eJXY19s/ 9M45ibm\ n-----END RSA PRIVATE KEY-----\n"} configstore disk.go:77 Making /opt/juju/ environments
2013-10-11 20:09:58 DEBUG juju.environs.
2013-10-11 20:09:58 INFO juju.environs open.go:156 environment info already exists; using New not Prepare
2013-10-11 20:12:05 ERROR juju supercommand.go:282 failed to enable bootstrap storage: failed to create storage dir: exit status 255 (ssh: connect to host 162.243.42.177 port 22: Connection timed out)