Activity log for bug #1385162

Date Who What changed Old value New value Message
2014-10-24 10:30:44 Xiang Hui bug added bug
2014-10-24 10:31:06 Xiang Hui tags openstack
2014-10-24 10:34:01 Xiang Hui branch linked lp:~xianghui/charm-helpers/lp1385162
2014-10-24 10:34:10 Xiang Hui keystone (Juju Charms Collection): assignee Xiang Hui (xianghui)
2014-10-24 10:34:13 Xiang Hui keystone (Juju Charms Collection): status New In Progress
2014-10-24 10:34:16 Xiang Hui keystone (Juju Charms Collection): importance Undecided Medium
2014-10-24 13:02:40 Edward Hope-Morley tags openstack cts openstack
2014-10-24 13:03:20 Edward Hope-Morley tags cts openstack backport-potential cts openstack
2014-10-27 01:44:53 Xiang Hui summary ha-relation-changed failed if set https-service-endpoints=true hooks failed if https enabled and no os-x-network is set
2014-10-27 01:45:30 Xiang Hui description test yaml for keystone: admin-password: openstack admin-token: ubuntutesting https-service-endpoints: 'True' use-https: 'yes' vip: '10.0.3.100' juju deploy test.yaml -n 3 keystone An error will be reported as below: 2014-10-23 10:25:01 INFO ha-relation-changed Traceback (most recent call last): 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/ha-relation-changed", line 382, in <module> 2014-10-23 10:25:01 INFO ha-relation-changed main() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/ha-relation-changed", line 376, in main 2014-10-23 10:25:01 INFO ha-relation-changed hooks.execute(sys.argv) 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/hookenv.py", line 508, in execute 2014-10-23 10:25:01 INFO ha-relation-changed self._hooks[hook_name]() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/host.py", line 268, in wrapped_f 2014-10-23 10:25:01 INFO ha-relation-changed f(*args) 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/ha-relation-changed", line 309, in ha_changed 2014-10-23 10:25:01 INFO ha-relation-changed CONFIGS.write_all() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 261, in write_all 2014-10-23 10:25:01 INFO ha-relation-changed [self.write(k) for k in self.templates.iterkeys()] 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 250, in write 2014-10-23 10:25:01 INFO ha-relation-changed _out = self.render(config_file) 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 221, in render 2014-10-23 10:25:01 INFO ha-relation-changed ctxt = self.templates[config_file].context() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 88, in context 2014-10-23 10:25:01 INFO ha-relation-changed _ctxt = context() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_context.py", line 33, in __call__ 2014-10-23 10:25:01 INFO ha-relation-changed return super(ApacheSSLContext, self).__call__() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/context.py", line 604, in __call__ 2014-10-23 10:25:01 INFO ha-relation-changed for cn in self.canonical_names(): 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_context.py", line 64, in canonical_names 2014-10-23 10:25:01 INFO ha-relation-changed vip): 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/network/ip.py", line 111, in is_address_in_network 2014-10-23 10:25:01 INFO ha-relation-changed network = netaddr.IPNetwork(network) 2014-10-23 10:25:01 INFO ha-relation-changed File "/usr/lib/python2.7/dist-packages/netaddr/ip/__init__.py", line 907, in __init__ 2014-10-23 10:25:01 INFO ha-relation-changed implicit_prefix, flags) 2014-10-23 10:25:01 INFO ha-relation-changed File "/usr/lib/python2.7/dist-packages/netaddr/ip/__init__.py", line 802, in parse_ip_network 2014-10-23 10:25:01 INFO ha-relation-changed raise TypeError('unexpected type %s for addr arg' % type(addr)) 2014-10-23 10:25:01 INFO ha-relation-changed TypeError: unexpected type <type 'NoneType'> for addr arg 2014-10-23 10:25:01 ERROR juju.worker.uniter uniter.go:482 hook failed: exit status 1 from code hooks/keystone_context.py " for vip in vips: if is_address_in_network(config(network_type), vip): addresses.append(vip) " funciton is_address_in_network() is default called with config(network_type) param that caused hook failed if no network_type(os_xx) is set. so it maybe worth to reset the logic to: if config(network_type) and is_address_in_network(config(network_type), vip): addresses.append(vip) else: cidrs = get_ifaces_cidr() (look up cidrs from physical interfaces except local ipv4 and ipv6) if cidrs and is_address_in_network(cidrs, vip): addresses.append(vip) test yaml for keystone:     admin-password: openstack     admin-token: ubuntutesting     https-service-endpoints: 'True'     use-https: 'yes'     vip: '10.0.3.100' juju deploy test.yaml -n 3 keystone An error will be reported as below: 2014-10-23 10:25:01 INFO ha-relation-changed Traceback (most recent call last): 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/ha-relation-changed", line 382, in <module> 2014-10-23 10:25:01 INFO ha-relation-changed main() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/ha-relation-changed", line 376, in main 2014-10-23 10:25:01 INFO ha-relation-changed hooks.execute(sys.argv) 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/hookenv.py", line 508, in execute 2014-10-23 10:25:01 INFO ha-relation-changed self._hooks[hook_name]() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/host.py", line 268, in wrapped_f 2014-10-23 10:25:01 INFO ha-relation-changed f(*args) 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/ha-relation-changed", line 309, in ha_changed 2014-10-23 10:25:01 INFO ha-relation-changed CONFIGS.write_all() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 261, in write_all 2014-10-23 10:25:01 INFO ha-relation-changed [self.write(k) for k in self.templates.iterkeys()] 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 250, in write 2014-10-23 10:25:01 INFO ha-relation-changed _out = self.render(config_file) 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 221, in render 2014-10-23 10:25:01 INFO ha-relation-changed ctxt = self.templates[config_file].context() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 88, in context 2014-10-23 10:25:01 INFO ha-relation-changed _ctxt = context() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_context.py", line 33, in __call__ 2014-10-23 10:25:01 INFO ha-relation-changed return super(ApacheSSLContext, self).__call__() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/context.py", line 604, in __call__ 2014-10-23 10:25:01 INFO ha-relation-changed for cn in self.canonical_names(): 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_context.py", line 64, in canonical_names 2014-10-23 10:25:01 INFO ha-relation-changed vip): 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/network/ip.py", line 111, in is_address_in_network 2014-10-23 10:25:01 INFO ha-relation-changed network = netaddr.IPNetwork(network) 2014-10-23 10:25:01 INFO ha-relation-changed File "/usr/lib/python2.7/dist-packages/netaddr/ip/__init__.py", line 907, in __init__ 2014-10-23 10:25:01 INFO ha-relation-changed implicit_prefix, flags) 2014-10-23 10:25:01 INFO ha-relation-changed File "/usr/lib/python2.7/dist-packages/netaddr/ip/__init__.py", line 802, in parse_ip_network 2014-10-23 10:25:01 INFO ha-relation-changed raise TypeError('unexpected type %s for addr arg' % type(addr)) 2014-10-23 10:25:01 INFO ha-relation-changed TypeError: unexpected type <type 'NoneType'> for addr arg 2014-10-23 10:25:01 ERROR juju.worker.uniter uniter.go:482 hook failed: exit status 1 from code hooks/keystone_context.py "                 for vip in vips:                     if is_address_in_network(config(network_type), vip):                         addresses.append(vip) " funciton is_address_in_network() is default called with config(network_type) param that caused hook failed if no network_type(os_x_network) is set.
2014-10-27 02:16:14 Xiang Hui branch linked lp:~xianghui/charms/trusty/keystone/lp1385162
2014-11-13 14:31:04 James Page keystone (Juju Charms Collection): importance Medium Critical
2014-11-13 17:42:03 Edward Hope-Morley branch linked lp:~hopem/charm-helpers/fix-apache-ctxt-net-addr-selection
2014-11-14 02:58:27 Xiang Hui branch unlinked lp:~xianghui/charm-helpers/lp1385162
2014-11-14 09:36:19 Xiang Hui summary hooks failed if https enabled and no os-x-network is set HA hooks failed if https enabled and no os-x-network is set
2014-11-14 09:37:29 Xiang Hui description test yaml for keystone:     admin-password: openstack     admin-token: ubuntutesting     https-service-endpoints: 'True'     use-https: 'yes'     vip: '10.0.3.100' juju deploy test.yaml -n 3 keystone An error will be reported as below: 2014-10-23 10:25:01 INFO ha-relation-changed Traceback (most recent call last): 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/ha-relation-changed", line 382, in <module> 2014-10-23 10:25:01 INFO ha-relation-changed main() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/ha-relation-changed", line 376, in main 2014-10-23 10:25:01 INFO ha-relation-changed hooks.execute(sys.argv) 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/hookenv.py", line 508, in execute 2014-10-23 10:25:01 INFO ha-relation-changed self._hooks[hook_name]() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/host.py", line 268, in wrapped_f 2014-10-23 10:25:01 INFO ha-relation-changed f(*args) 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/ha-relation-changed", line 309, in ha_changed 2014-10-23 10:25:01 INFO ha-relation-changed CONFIGS.write_all() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 261, in write_all 2014-10-23 10:25:01 INFO ha-relation-changed [self.write(k) for k in self.templates.iterkeys()] 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 250, in write 2014-10-23 10:25:01 INFO ha-relation-changed _out = self.render(config_file) 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 221, in render 2014-10-23 10:25:01 INFO ha-relation-changed ctxt = self.templates[config_file].context() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 88, in context 2014-10-23 10:25:01 INFO ha-relation-changed _ctxt = context() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_context.py", line 33, in __call__ 2014-10-23 10:25:01 INFO ha-relation-changed return super(ApacheSSLContext, self).__call__() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/context.py", line 604, in __call__ 2014-10-23 10:25:01 INFO ha-relation-changed for cn in self.canonical_names(): 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_context.py", line 64, in canonical_names 2014-10-23 10:25:01 INFO ha-relation-changed vip): 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/network/ip.py", line 111, in is_address_in_network 2014-10-23 10:25:01 INFO ha-relation-changed network = netaddr.IPNetwork(network) 2014-10-23 10:25:01 INFO ha-relation-changed File "/usr/lib/python2.7/dist-packages/netaddr/ip/__init__.py", line 907, in __init__ 2014-10-23 10:25:01 INFO ha-relation-changed implicit_prefix, flags) 2014-10-23 10:25:01 INFO ha-relation-changed File "/usr/lib/python2.7/dist-packages/netaddr/ip/__init__.py", line 802, in parse_ip_network 2014-10-23 10:25:01 INFO ha-relation-changed raise TypeError('unexpected type %s for addr arg' % type(addr)) 2014-10-23 10:25:01 INFO ha-relation-changed TypeError: unexpected type <type 'NoneType'> for addr arg 2014-10-23 10:25:01 ERROR juju.worker.uniter uniter.go:482 hook failed: exit status 1 from code hooks/keystone_context.py "                 for vip in vips:                     if is_address_in_network(config(network_type), vip):                         addresses.append(vip) " funciton is_address_in_network() is default called with config(network_type) param that caused hook failed if no network_type(os_x_network) is set. This error happened on the scenario: keystone HA + SSL + No network splits test yaml for keystone:     admin-password: openstack     admin-token: ubuntutesting     https-service-endpoints: 'True'     use-https: 'yes'     vip: '10.0.3.100' juju deploy test.yaml -n 3 keystone An error will be reported as below: 2014-10-23 10:25:01 INFO ha-relation-changed Traceback (most recent call last): 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/ha-relation-changed", line 382, in <module> 2014-10-23 10:25:01 INFO ha-relation-changed main() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/ha-relation-changed", line 376, in main 2014-10-23 10:25:01 INFO ha-relation-changed hooks.execute(sys.argv) 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/hookenv.py", line 508, in execute 2014-10-23 10:25:01 INFO ha-relation-changed self._hooks[hook_name]() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/core/host.py", line 268, in wrapped_f 2014-10-23 10:25:01 INFO ha-relation-changed f(*args) 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/ha-relation-changed", line 309, in ha_changed 2014-10-23 10:25:01 INFO ha-relation-changed CONFIGS.write_all() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 261, in write_all 2014-10-23 10:25:01 INFO ha-relation-changed [self.write(k) for k in self.templates.iterkeys()] 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 250, in write 2014-10-23 10:25:01 INFO ha-relation-changed _out = self.render(config_file) 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 221, in render 2014-10-23 10:25:01 INFO ha-relation-changed ctxt = self.templates[config_file].context() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/templating.py", line 88, in context 2014-10-23 10:25:01 INFO ha-relation-changed _ctxt = context() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_context.py", line 33, in __call__ 2014-10-23 10:25:01 INFO ha-relation-changed return super(ApacheSSLContext, self).__call__() 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/openstack/context.py", line 604, in __call__ 2014-10-23 10:25:01 INFO ha-relation-changed for cn in self.canonical_names(): 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/keystone_context.py", line 64, in canonical_names 2014-10-23 10:25:01 INFO ha-relation-changed vip): 2014-10-23 10:25:01 INFO ha-relation-changed File "/var/lib/juju/agents/unit-keystone-0/charm/hooks/charmhelpers/contrib/network/ip.py", line 111, in is_address_in_network 2014-10-23 10:25:01 INFO ha-relation-changed network = netaddr.IPNetwork(network) 2014-10-23 10:25:01 INFO ha-relation-changed File "/usr/lib/python2.7/dist-packages/netaddr/ip/__init__.py", line 907, in __init__ 2014-10-23 10:25:01 INFO ha-relation-changed implicit_prefix, flags) 2014-10-23 10:25:01 INFO ha-relation-changed File "/usr/lib/python2.7/dist-packages/netaddr/ip/__init__.py", line 802, in parse_ip_network 2014-10-23 10:25:01 INFO ha-relation-changed raise TypeError('unexpected type %s for addr arg' % type(addr)) 2014-10-23 10:25:01 INFO ha-relation-changed TypeError: unexpected type <type 'NoneType'> for addr arg 2014-10-23 10:25:01 ERROR juju.worker.uniter uniter.go:482 hook failed: exit status 1 from code hooks/keystone_context.py "                 for vip in vips:                     if is_address_in_network(config(network_type), vip):                         addresses.append(vip) " funciton is_address_in_network() is default called with config(network_type) param that caused hook failed if no network_type(os_x_network) is set.
2014-11-14 15:08:41 Edward Hope-Morley branch linked lp:~hopem/charms/trusty/keystone/lp1385162-stable-backport
2014-11-14 15:13:29 Edward Hope-Morley keystone (Juju Charms Collection): status In Progress Fix Committed
2014-12-03 11:21:52 Edward Hope-Morley keystone (Juju Charms Collection): assignee Xiang Hui (xianghui) Edward Hope-Morley (hopem)
2014-12-08 10:44:31 Edward Hope-Morley branch linked lp:~hopem/charm-helpers/backport-lp1385162
2015-01-23 10:32:52 James Page keystone (Juju Charms Collection): milestone 15.01
2015-01-30 07:48:17 James Page keystone (Juju Charms Collection): status Fix Committed Fix Released