yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #41376
[Bug 1517653] [NEW] subnet tests generating error in tests
Public bug reported:
- function.__call__(<class 'django.http.HttpRequest'>, 'h0881d38-c3eb-4fee-9763-12de3338041d', action=u'ALLOW', description=u'new desc', destination_ip_address=None, destination_port=u'1:65535', enabled=True, ip_version=u'', name=u'new name', protocol=u'ICMP', shared=False, source_ip_address='1.2.3.0/24', source_port=None) -> None
+ function.__call__(mox.IsA(<class 'django.http.request.HttpRequest'>) , 'h0881d38-c3eb-4fee-9763-12de3338041d', action='ALLOW', description='new desc', destination_ip_address=None, destination_port='1:65535', enabled=True, name='new name', protocol='ICMP', shared=False, source_ip_address='1.2.3.0/24', source_port=None) -> <Rule: {'protocol': 'ANY', 'description': 'rule3 description', 'policy': None, 'tenant_id': '1', 'enabled': True, 'rule_id': 'h0881d38-c3eb-4fee-9763-12de3338041d', 'source_ip_address': '1.2.3.0/24', 'destination_ip_address': '4.5.6.7/32', 'firewall_policy_id': None, 'action': 'ALLOW', 'position': None, 'source_port': '80', 'shared': True, 'destination_port': '1:65535', 'id': 'h0881d38-c3eb-4fee-9763-12de3338041d', 'name': 'rule3'}>
..Failed to update rule new name: Unexpected method call. unexpected:- expected:+
- function.__call__(<class 'django.http.HttpRequest'>, 'f0881d38-c3eb-4fee-9763-12de3338041d', action=u'ALLOW', description=u'new desc', destination_ip_address=None, destination_port=u'1:65535', enabled=True, ip_version=u'', name=u'new name', protocol=u'ICMP', shared=False, source_ip_address='1.2.3.0/24', source_port=None) -> None
+ function.__call__(mox.IsA(<class 'django.http.request.HttpRequest'>) , 'f0881d38-c3eb-4fee-9763-12de3338041d', action='ALLOW', description='new desc', destination_ip_address=None, destination_port='1:65535', enabled=True, name='new name', protocol='ICMP', shared=False, source_ip_address='1.2.3.0/24', source_port=None) -> <Rule: {'protocol': 'TCP', 'description': 'rule1 description', 'policy': <Policy: {'description': 'policy with two rules', 'firewall_rules': ['f0881d38-c3eb-4fee-9763-12de3338041d', 'c6298a93-850f-4f64-b78a-959fd4f1e5df'], 'rules': [<Rule: {...}>, <Rule: {'protocol': 'udp', 'description': '', 'policy': <Policy: {...}>, 'tenant_id': '1', 'enabled': True, 'source_ip_address': '1.2.3.0/24', 'destination_ip_address': '4.5.6.7/32', 'firewall_policy_id': 'abcdef-c3eb-4fee-9763-12de3338041e', 'action': 'deny', 'position': 2, 'source_port': '80', 'shared': True, 'destination_port': '1:65535', 'id': 'c6298a93-850f-4f64-b78a-959fd4f1e5df', 'name': ''}>], 'tenant_id': '1', 'id': 'abcdef-c3eb-4fee-9763-12de3338041e', 'shared': True, 'audited': True, 'name': 'policy1'}>, 'tenant_id': '1', 'enabled': True, 'rule_id': 'f0881d38-c3eb-4fee-9763-12de3338041d', 'source_ip_address': '1.2.3.0/24', 'destination_ip_address': '4.5.6.7/32', 'firewall_policy_id': 'abcdef-c3eb-4fee-9763-12de3338041e', 'action': 'ALLOW', 'position': 1, 'source_port': '80', 'shared': True, 'destination_port': '1:65535', 'id': 'f0881d38-c3eb-4fee-9763-12de3338041d', 'name': 'rule1'}>
.Failed to update rule new name: Unexpected method call. unexpected:- expected:+
- function.__call__(<class 'django.http.HttpRequest'>, 'f0881d38-c3eb-4fee-9763-12de3338041d', action=u'ALLOW', description=u'new desc', destination_ip_address=None, destination_port=u'1:65535', enabled=True, ip_version=u'', name=u'new name', protocol=None, shared=False, source_ip_address='1.2.3.0/24', source_port=None) -> None
+ function.__call__(mox.IsA(<class 'django.http.request.HttpRequest'>) , 'f0881d38-c3eb-4fee-9763-12de3338041d', action='ALLOW', description='new desc', destination_ip_address=None, destination_port='1:65535', enabled=True, name='new name', protocol=None, shared=False, source_ip_address='1.2.3.0/24', source_port=None) -> <Rule: {'protocol': 'TCP', 'description': 'rule1 description', 'policy': <Policy: {'description': 'policy with two rules', 'firewall_rules': ['f0881d38-c3eb-4fee-9763-12de3338041d', 'c6298a93-850f-4f64-b78a-959fd4f1e5df'], 'rules': [<Rule: {...}>, <Rule: {'protocol': 'udp', 'description': '', 'policy': <Policy: {...}>, 'tenant_id': '1', 'enabled': True, 'source_ip_address': '1.2.3.0/24', 'destination_ip_address': '4.5.6.7/32', 'firewall_policy_id': 'abcdef-c3eb-4fee-9763-12de3338041e', 'action': 'deny', 'position': 2, 'source_port': '80', 'shared': True, 'destination_port': '1:65535', 'id': 'c6298a93-850f-4f64-b78a-959fd4f1e5df', 'name': ''}>], 'tenant_id': '1', 'id': 'abcdef-c3eb-4fee-9763-12de3338041e', 'shared': True, 'audited': True, 'name': 'policy1'}>, 'tenant_id': '1', 'enabled': True, 'rule_id': 'f0881d38-c3eb-4fee-9763-12de3338041d', 'source_ip_address': '1.2.3.0/24', 'destination_ip_address': '4.5.6.7/32', 'firewall_policy_id': 'abcdef-c3eb-4fee-9763-12de3338041e', 'action': 'ALLOW', 'position': 1, 'source_port': '80', 'shared': True, 'destination_port': '1:65535', 'id': 'f0881d38-c3eb-4fee-9763-12de3338041d', 'name': 'rule1'}>
.............................................................................................................................................................................................................................................................................Error while checking action permissions.
Traceback (most recent call last):
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/tables/base.py", line 1270, in _filter_action
return action._allowed(request, datum) and row_matched
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/tables/actions.py", line 136, in _allowed
return self.allowed(request, datum)
File "/home/lin-hua-cheng/Documents/workspace/horizon/openstack_dashboard/dashboards/project/networks/subnets/tables.py", line 40, in allowed
network = self.table._get_network()
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/lin-hua-cheng/Documents/workspace/horizon/openstack_dashboard/dashboards/project/networks/subnets/tables.py", line 145, in _get_network
exceptions.handle(self.request, msg, redirect=self.failure_url)
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/exceptions.py", line 368, in handle
log_method, log_entry, log_level)
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/exceptions.py", line 277, in handle_recoverable
raise Http302(redirect)
Http302
Error while checking action permissions.
Traceback (most recent call last):
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/tables/base.py", line 1270, in _filter_action
return action._allowed(request, datum) and row_matched
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/tables/actions.py", line 722, in _allowed
return super(BatchAction, self)._allowed(request, datum)
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/tables/actions.py", line 136, in _allowed
return self.allowed(request, datum)
File "/home/lin-hua-cheng/Documents/workspace/horizon/openstack_dashboard/dashboards/project/networks/subnets/tables.py", line 40, in allowed
network = self.table._get_network()
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/lin-hua-cheng/Documents/workspace/horizon/openstack_dashboard/dashboards/project/networks/subnets/tables.py", line 145, in _get_network
exceptions.handle(self.request, msg, redirect=self.failure_url)
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/exceptions.py", line 368, in handle
log_method, log_entry, log_level)
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/exceptions.py", line 277, in handle_recoverable
raise Http302(redirect)
Http302
** Affects: horizon
Importance: Undecided
Assignee: Lin Hua Cheng (lin-hua-cheng)
Status: New
** Changed in: horizon
Assignee: (unassigned) => Lin Hua Cheng (lin-hua-cheng)
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1517653
Title:
subnet tests generating error in tests
Status in OpenStack Dashboard (Horizon):
New
Bug description:
- function.__call__(<class 'django.http.HttpRequest'>, 'h0881d38-c3eb-4fee-9763-12de3338041d', action=u'ALLOW', description=u'new desc', destination_ip_address=None, destination_port=u'1:65535', enabled=True, ip_version=u'', name=u'new name', protocol=u'ICMP', shared=False, source_ip_address='1.2.3.0/24', source_port=None) -> None
+ function.__call__(mox.IsA(<class 'django.http.request.HttpRequest'>) , 'h0881d38-c3eb-4fee-9763-12de3338041d', action='ALLOW', description='new desc', destination_ip_address=None, destination_port='1:65535', enabled=True, name='new name', protocol='ICMP', shared=False, source_ip_address='1.2.3.0/24', source_port=None) -> <Rule: {'protocol': 'ANY', 'description': 'rule3 description', 'policy': None, 'tenant_id': '1', 'enabled': True, 'rule_id': 'h0881d38-c3eb-4fee-9763-12de3338041d', 'source_ip_address': '1.2.3.0/24', 'destination_ip_address': '4.5.6.7/32', 'firewall_policy_id': None, 'action': 'ALLOW', 'position': None, 'source_port': '80', 'shared': True, 'destination_port': '1:65535', 'id': 'h0881d38-c3eb-4fee-9763-12de3338041d', 'name': 'rule3'}>
..Failed to update rule new name: Unexpected method call. unexpected:- expected:+
- function.__call__(<class 'django.http.HttpRequest'>, 'f0881d38-c3eb-4fee-9763-12de3338041d', action=u'ALLOW', description=u'new desc', destination_ip_address=None, destination_port=u'1:65535', enabled=True, ip_version=u'', name=u'new name', protocol=u'ICMP', shared=False, source_ip_address='1.2.3.0/24', source_port=None) -> None
+ function.__call__(mox.IsA(<class 'django.http.request.HttpRequest'>) , 'f0881d38-c3eb-4fee-9763-12de3338041d', action='ALLOW', description='new desc', destination_ip_address=None, destination_port='1:65535', enabled=True, name='new name', protocol='ICMP', shared=False, source_ip_address='1.2.3.0/24', source_port=None) -> <Rule: {'protocol': 'TCP', 'description': 'rule1 description', 'policy': <Policy: {'description': 'policy with two rules', 'firewall_rules': ['f0881d38-c3eb-4fee-9763-12de3338041d', 'c6298a93-850f-4f64-b78a-959fd4f1e5df'], 'rules': [<Rule: {...}>, <Rule: {'protocol': 'udp', 'description': '', 'policy': <Policy: {...}>, 'tenant_id': '1', 'enabled': True, 'source_ip_address': '1.2.3.0/24', 'destination_ip_address': '4.5.6.7/32', 'firewall_policy_id': 'abcdef-c3eb-4fee-9763-12de3338041e', 'action': 'deny', 'position': 2, 'source_port': '80', 'shared': True, 'destination_port': '1:65535', 'id': 'c6298a93-850f-4f64-b78a-959fd4f1e5df', 'name': ''}>], 'tenant_id': '1', 'id': 'abcdef-c3eb-4fee-9763-12de3338041e', 'shared': True, 'audited': True, 'name': 'policy1'}>, 'tenant_id': '1', 'enabled': True, 'rule_id': 'f0881d38-c3eb-4fee-9763-12de3338041d', 'source_ip_address': '1.2.3.0/24', 'destination_ip_address': '4.5.6.7/32', 'firewall_policy_id': 'abcdef-c3eb-4fee-9763-12de3338041e', 'action': 'ALLOW', 'position': 1, 'source_port': '80', 'shared': True, 'destination_port': '1:65535', 'id': 'f0881d38-c3eb-4fee-9763-12de3338041d', 'name': 'rule1'}>
.Failed to update rule new name: Unexpected method call. unexpected:- expected:+
- function.__call__(<class 'django.http.HttpRequest'>, 'f0881d38-c3eb-4fee-9763-12de3338041d', action=u'ALLOW', description=u'new desc', destination_ip_address=None, destination_port=u'1:65535', enabled=True, ip_version=u'', name=u'new name', protocol=None, shared=False, source_ip_address='1.2.3.0/24', source_port=None) -> None
+ function.__call__(mox.IsA(<class 'django.http.request.HttpRequest'>) , 'f0881d38-c3eb-4fee-9763-12de3338041d', action='ALLOW', description='new desc', destination_ip_address=None, destination_port='1:65535', enabled=True, name='new name', protocol=None, shared=False, source_ip_address='1.2.3.0/24', source_port=None) -> <Rule: {'protocol': 'TCP', 'description': 'rule1 description', 'policy': <Policy: {'description': 'policy with two rules', 'firewall_rules': ['f0881d38-c3eb-4fee-9763-12de3338041d', 'c6298a93-850f-4f64-b78a-959fd4f1e5df'], 'rules': [<Rule: {...}>, <Rule: {'protocol': 'udp', 'description': '', 'policy': <Policy: {...}>, 'tenant_id': '1', 'enabled': True, 'source_ip_address': '1.2.3.0/24', 'destination_ip_address': '4.5.6.7/32', 'firewall_policy_id': 'abcdef-c3eb-4fee-9763-12de3338041e', 'action': 'deny', 'position': 2, 'source_port': '80', 'shared': True, 'destination_port': '1:65535', 'id': 'c6298a93-850f-4f64-b78a-959fd4f1e5df', 'name': ''}>], 'tenant_id': '1', 'id': 'abcdef-c3eb-4fee-9763-12de3338041e', 'shared': True, 'audited': True, 'name': 'policy1'}>, 'tenant_id': '1', 'enabled': True, 'rule_id': 'f0881d38-c3eb-4fee-9763-12de3338041d', 'source_ip_address': '1.2.3.0/24', 'destination_ip_address': '4.5.6.7/32', 'firewall_policy_id': 'abcdef-c3eb-4fee-9763-12de3338041e', 'action': 'ALLOW', 'position': 1, 'source_port': '80', 'shared': True, 'destination_port': '1:65535', 'id': 'f0881d38-c3eb-4fee-9763-12de3338041d', 'name': 'rule1'}>
.............................................................................................................................................................................................................................................................................Error while checking action permissions.
Traceback (most recent call last):
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/tables/base.py", line 1270, in _filter_action
return action._allowed(request, datum) and row_matched
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/tables/actions.py", line 136, in _allowed
return self.allowed(request, datum)
File "/home/lin-hua-cheng/Documents/workspace/horizon/openstack_dashboard/dashboards/project/networks/subnets/tables.py", line 40, in allowed
network = self.table._get_network()
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/lin-hua-cheng/Documents/workspace/horizon/openstack_dashboard/dashboards/project/networks/subnets/tables.py", line 145, in _get_network
exceptions.handle(self.request, msg, redirect=self.failure_url)
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/exceptions.py", line 368, in handle
log_method, log_entry, log_level)
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/exceptions.py", line 277, in handle_recoverable
raise Http302(redirect)
Http302
Error while checking action permissions.
Traceback (most recent call last):
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/tables/base.py", line 1270, in _filter_action
return action._allowed(request, datum) and row_matched
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/tables/actions.py", line 722, in _allowed
return super(BatchAction, self)._allowed(request, datum)
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/tables/actions.py", line 136, in _allowed
return self.allowed(request, datum)
File "/home/lin-hua-cheng/Documents/workspace/horizon/openstack_dashboard/dashboards/project/networks/subnets/tables.py", line 40, in allowed
network = self.table._get_network()
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/utils/memoized.py", line 90, in wrapped
value = cache[key] = func(*args, **kwargs)
File "/home/lin-hua-cheng/Documents/workspace/horizon/openstack_dashboard/dashboards/project/networks/subnets/tables.py", line 145, in _get_network
exceptions.handle(self.request, msg, redirect=self.failure_url)
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/exceptions.py", line 368, in handle
log_method, log_entry, log_level)
File "/home/lin-hua-cheng/Documents/workspace/horizon/horizon/exceptions.py", line 277, in handle_recoverable
raise Http302(redirect)
Http302
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1517653/+subscriptions
Follow ups