my_ip should belong to os-internal-network rather than os-data-network
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Nova Compute Charm |
Fix Released
|
Medium
|
Hua Zhang |
Bug Description
For example, the yaml file [1] (os-data-
But private-address of nova-cloud-
NOTE: The host juju-b89929-3-lxd-4 is nova-cloud-
root@juju-
# compute02:22 SSH-2.0-
|1|o9hWgq9R9lbI
root@juju-
root@juju-
PING 10.10.1.3 (10.10.1.3) 56(84) bytes of data.
From 10.198.200.1 icmp_seq=1 Destination Port Unreachable
root@juju-
PING compute02.maas (10.12.1.219) 56(84) bytes of data.
64 bytes from compute02.maas (10.12.1.219): icmp_seq=1 ttl=64 time=0.714 ms
root@compute02:~# ip addr show ens3 |grep global
inet 10.12.1.219/24 brd 10.12.1.255 scope global ens3
root@compute02:~# ip addr show ens5 |grep global
inet 10.10.1.3/24 brd 10.10.1.255 scope global ens5
root@juju-
inet 10.12.1.214/24 brd 10.12.1.255 scope global eth0
What's more, my_ip is also using private-address of nova-compute/1 (10.10.1.2):
my_ip = {{ host_ip }}
class HostIPContext(
def __call__(self):
ctxt = {}
host_ip = get_relation_
if host_ip:
return ctxt
root@compute01:~# grep -r 'my_ip' /etc/nova/
/etc/nova/
root@compute01:~# grep -r 'local_ip' /etc/neutron/
/etc/neutron/
As a result, it will fail to run 'nova resize' operation [2]. According to ubuntu openstack network topology [3], my understanding is that my_ip should belong to os-internal-network rather than private-
[1] http://
[2] https:/
[3] https:/
tags: | added: sts |
affects: | nova-compute (Juju Charms Collection) → charm-nova-compute |
Changed in charm-nova-compute: | |
milestone: | none → 17.08 |
importance: | Undecided → Medium |
status: | New → Triaged |
Changed in charm-nova-compute: | |
assignee: | nobody → Hua Zhang (zhhuabj) |
status: | Triaged → In Progress |
Changed in charm-nova-compute: | |
status: | Fix Committed → Fix Released |
This bug can be fixed by defining the following endpoint binding for nova-compute application in yaml file:
bindings:
cloud-compute: *os-internal-space
I also tested it, it works well, see http:// paste.ubuntu. com/24724682/
So submitted a patch for review - https:/ /review. openstack. org/#/c/ 469758/