deploying a service to a space which has no subnets causes the agent to panic
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
juju-core |
Fix Released
|
High
|
Dimiter Naydenov | ||
1.25 |
Fix Released
|
High
|
Dimiter Naydenov |
Bug Description
To reproduce ensure you're using 1.25.
$ git rev-parse HEAD
aae914bdaf6cef2
$ juju version
1.25-beta1-
# bootstrap on EC2
$ juju bootstrap -e amazon --upload-tools
Bootstrapping environment "amazon"
Starting new instance for initial state server
Launching instance
- i-48044c9d
Building tools to upload (1.25-beta1.
Installing Juju agent on bootstrap instance
Waiting for address
Attempting to connect to 54.87.45.238:22
Attempting to connect to 10.230.166.135:22
Logging to /var/log/
Installing package: curl
Installing package: cpu-checker
Installing package: bridge-utils
Installing package: rsyslog-gnutls
Installing package: cloud-utils
Installing package: cloud-image-utils
Installing package: tmux
Bootstrapping Juju machine agent
Starting Juju machine agent (jujud-machine-0)
Bootstrap agent installed
WARNING expected one instance, got 2
Waiting for API to become available
Bootstrap complete
$ juju status
environment: amazon
machines:
"0":
agent-state: started
agent-version: 1.25-beta1.1
dns-name: 54.87.45.238
instance-id: i-48044c9d
instance-state: running
series: trusty
hardware: arch=amd64 cpu-cores=1 cpu-power=100 mem=1740M root-disk=8192M availability-
state-
services: {}
# Create some spaces - note deliberately not adding any subnets.
$ juju space create public
created space "public" with no subnets
$ juju space create dmz
created space "dmz" with no subnets
# Now deploy ubuntu using a space constraint:
$ juju deploy ubuntu --constraints spaces=dmz
this will never complete because the agent panics, gets restarted, panics, ...
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xb code=0x1 addr=0x50 pc=0xa08a68]
goroutine 508 [running]:
runtime.
/usr/lib/
github.
/home/
github.
/home/
github.
/home/
github.
/home/
github.
/home/
github.
/home/
created by github.
/home/
(the rest of the stack trace is in the attached machine-0.log)
Changed in juju-core: | |
status: | New → Triaged |
Changed in juju-core: | |
milestone: | 1.25-beta1 → 1.25-beta2 |
Changed in juju-core: | |
milestone: | 1.25-beta2 → 1.25.1 |
Changed in juju-core: | |
milestone: | 1.25.1 → 1.26-alpha1 |
Changed in juju-core: | |
milestone: | 1.26-alpha1 → 1.26-alpha2 |
Changed in juju-core: | |
status: | In Progress → Fix Committed |
Changed in juju-core: | |
status: | Fix Committed → Fix Released |
Fix proposed for 1.25 with: https:/ /github. com/juju/ juju/pull/ 3749