2025-03-29 21:02:13,439 - INFO - Domain Default found not creating
2025-03-29 21:02:13,661 - INFO - Project ctest-TestBasicPolicy-44678472 not found, creating it
2025-03-29 21:02:14,167 - INFO - Created Project:ctest-TestBasicPolicy-44678472, ID : 428093fd-03de-42fa-98c6-2c1e1a752216
2025-03-29 21:02:15,751 - INFO - ================================================================================
2025-03-29 21:02:15,751 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-29 21:02:15,751 - INFO - TEST DESCRIPTION :
Create 2 Vns and allow icmp traffic between them and validate with pings
Update the policy to deny the same traffic
Check that pings fail
2025-03-29 21:02:16,011 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.7': '0'}} with
2025-03-29 21:02:16,011 - INFO - Initial checks done. Running the testcase now
2025-03-29 21:02:16,012 - INFO -
2025-03-29 21:02:16,602 - DEBUG - Response for create_network : {'network': {'id': 'dfc3ac8b-a0c4-41f6-be43-6b2f6ef3ab4d', 'name': 'ctest-vn-21742341', 'tenant_id': '428093fd03de42fa98c62c1e1a752216', 'project_id': '428093fd03de42fa98c62c1e1a752216', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44678472', 'ctest-vn-21742341'], 'port_security_enabled': True, 'description': ''}}
2025-03-29 21:02:16,845 - DEBUG - Response for create_subnet : {'subnet': {'id': '40b396e4-4784-4d58-abea-2bc9916c5ceb', 'name': '', 'tenant_id': '428093fd03de42fa98c62c1e1a752216', 'network_id': 'dfc3ac8b-a0c4-41f6-be43-6b2f6ef3ab4d', 'ip_version': 4, 'cidr': '24.174.87.128/26', 'allocation_pools': [{'start': '24.174.87.130', 'end': '24.174.87.190'}], 'gateway_ip': '24.174.87.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.174.87.130', 'tags': [], 'project_id': '428093fd03de42fa98c62c1e1a752216'}}
2025-03-29 21:02:16,864 - INFO - Created VN ctest-vn-21742341
2025-03-29 21:02:16,916 - DEBUG - VN ctest-vn-21742341 UUID is dfc3ac8b-a0c4-41f6-be43-6b2f6ef3ab4d
2025-03-29 21:02:17,231 - DEBUG - Response for create_network : {'network': {'id': '99b30364-dcf8-4d58-9b0d-97a2973e6673', 'name': 'ctest-vn-15822663', 'tenant_id': '428093fd03de42fa98c62c1e1a752216', 'project_id': '428093fd03de42fa98c62c1e1a752216', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44678472', 'ctest-vn-15822663'], 'port_security_enabled': True, 'description': ''}}
2025-03-29 21:02:17,427 - DEBUG - Response for create_subnet : {'subnet': {'id': 'aa1f8f56-b120-4126-8c84-ff731071eb49', 'name': '', 'tenant_id': '428093fd03de42fa98c62c1e1a752216', 'network_id': '99b30364-dcf8-4d58-9b0d-97a2973e6673', 'ip_version': 4, 'cidr': '19.78.32.64/26', 'allocation_pools': [{'start': '19.78.32.66', 'end': '19.78.32.126'}], 'gateway_ip': '19.78.32.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.78.32.66', 'tags': [], 'project_id': '428093fd03de42fa98c62c1e1a752216'}}
2025-03-29 21:02:17,447 - INFO - Created VN ctest-vn-15822663
2025-03-29 21:02:17,499 - DEBUG - VN ctest-vn-15822663 UUID is 99b30364-dcf8-4d58-9b0d-97a2973e6673
2025-03-29 21:02:17,630 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44678472:ctest-vn-21742341, security_group = None, network_policy = None, subnet_list = []], src_ports = [start_port = -1, end_port = -1], application = [], dst_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44678472:ctest-vn-15822663, security_group = None, network_policy = None, subnet_list = []], dst_ports = [start_port = -1, end_port = -1], action_list = simple_action = pass, gateway_name = None, apply_service = [], service_properties = None, mirror_to = None, assign_routing_instance = None, log = False, alert = False, qos_action = None, host_based_service = False, ethertype = None, created = None, last_modified = None, description = None]
2025-03-29 21:02:17,957 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'dfc3ac8b-a0c4-41f6-be43-6b2f6ef3ab4d', 'name': 'ctest-vn-21742341', 'tenant_id': '428093fd03de42fa98c62c1e1a752216', 'project_id': '428093fd03de42fa98c62c1e1a752216', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['40b396e4-4784-4d58-abea-2bc9916c5ceb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44678472', 'ctest-vn-21742341'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44678472', 'ctest-policy-allow-all-78691717']], 'subnet_ipam': [{'subnet_cidr': '24.174.87.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-29 21:02:18,199 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '99b30364-dcf8-4d58-9b0d-97a2973e6673', 'name': 'ctest-vn-15822663', 'tenant_id': '428093fd03de42fa98c62c1e1a752216', 'project_id': '428093fd03de42fa98c62c1e1a752216', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['aa1f8f56-b120-4126-8c84-ff731071eb49'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44678472', 'ctest-vn-15822663'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44678472', 'ctest-policy-allow-all-78691717']], 'subnet_ipam': [{'subnet_cidr': '19.78.32.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-29 21:02:18,372 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-03-29 21:02:18,680 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-03-29 21:02:18,719 - DEBUG - Requesting: http://10.0.0.12:8082/domain/90ad27e6-36f3-4187-bd03-25f60bcf4033
2025-03-29 21:02:18,774 - DEBUG - Requesting: http://10.0.0.12:8082/project/428093fd-03de-42fa-98c6-2c1e1a752216
2025-03-29 21:02:18,884 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/dfc3ac8b-a0c4-41f6-be43-6b2f6ef3ab4d
2025-03-29 21:02:18,927 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/dfc3ac8b-a0c4-41f6-be43-6b2f6ef3ab4d
2025-03-29 21:02:18,945 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/087a4016-0943-4705-a77d-b0c98c10629c
2025-03-29 21:02:18,964 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/087a4016-0943-4705-a77d-b0c98c10629c
2025-03-29 21:02:18,979 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/637f6620-3ed9-4c57-a590-960fe8fed927
2025-03-29 21:02:19,033 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-29 21:02:19,033 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/dfc3ac8b-a0c4-41f6-be43-6b2f6ef3ab4d
2025-03-29 21:02:19,057 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/087a4016-0943-4705-a77d-b0c98c10629c
2025-03-29 21:02:19,105 - INFO - Verified VN network id 9 for VN dfc3ac8b-a0c4-41f6-be43-6b2f6ef3ab4d
2025-03-29 21:02:19,105 - INFO - Verifications in API Server for VN ctest-vn-21742341 passed
2025-03-29 21:02:19,105 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/dfc3ac8b-a0c4-41f6-be43-6b2f6ef3ab4d
2025-03-29 21:02:19,125 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/087a4016-0943-4705-a77d-b0c98c10629c
2025-03-29 21:02:19,151 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/087a4016-0943-4705-a77d-b0c98c10629c
2025-03-29 21:02:19,161 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/637f6620-3ed9-4c57-a590-960fe8fed927
2025-03-29 21:02:19,191 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44678472:ctest-vn-21742341', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44678472', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16123920806614155766', 'uuid-lslong': '13709919542115019597'}, 'enable': 'true', 'created': '2025-03-29T21:02:16', 'last-modified': '2025-03-29T21:02:17', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.258628'}
2025-03-29 21:02:19,201 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-29 21:02:19,201 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-21742341 passed
2025-03-29 21:02:19,202 - DEBUG - ====Verifying policy data for ctest-vn-21742341 in API_Server ======
2025-03-29 21:02:19,202 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-03-29 21:02:19,210 - DEBUG - Requesting: http://10.0.0.12:8082/domain/90ad27e6-36f3-4187-bd03-25f60bcf4033
2025-03-29 21:02:19,241 - DEBUG - Requesting: http://10.0.0.12:8082/project/428093fd-03de-42fa-98c6-2c1e1a752216
2025-03-29 21:02:19,349 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/dfc3ac8b-a0c4-41f6-be43-6b2f6ef3ab4d
2025-03-29 21:02:19,367 - DEBUG - ==>Verifying data for policy with id: 2aea4e2f-558a-4527-9802-b7b2aed27238, fqn: ['default-domain', 'ctest-TestBasicPolicy-44678472', 'ctest-policy-allow-all-78691717']
2025-03-29 21:02:19,367 - INFO - VN ctest-vn-21742341 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-29 21:02:19,367 - DEBUG - Verifying the vn in opserver
2025-03-29 21:02:19,367 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44678472:ctest-vn-21742341 virtual network link through opserver 10.0.0.12
2025-03-29 21:02:19,368 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-03-29 21:02:19,687 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-03-29 21:02:19,758 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44678472:ctest-vn-21742341', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44678472:ctest-vn-21742341?flat'}
2025-03-29 21:02:19,758 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44678472:ctest-vn-21742341 is found in opserver
2025-03-29 21:02:19,773 - DEBUG - Do not have enough data to verify VN in agent
2025-03-29 21:02:19,780 - DEBUG - VRF ids for VN ctest-vn-21742341: {}
2025-03-29 21:02:19,780 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-03-29 21:02:19,790 - DEBUG - Requesting: http://10.0.0.12:8082/domain/90ad27e6-36f3-4187-bd03-25f60bcf4033
2025-03-29 21:02:19,812 - DEBUG - Requesting: http://10.0.0.12:8082/project/428093fd-03de-42fa-98c6-2c1e1a752216
2025-03-29 21:02:19,902 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99b30364-dcf8-4d58-9b0d-97a2973e6673
2025-03-29 21:02:19,922 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99b30364-dcf8-4d58-9b0d-97a2973e6673
2025-03-29 21:02:19,933 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19c0de56-e315-4722-8cf9-471950ce8b13
2025-03-29 21:02:19,943 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19c0de56-e315-4722-8cf9-471950ce8b13
2025-03-29 21:02:19,951 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/5743fca9-975b-4260-8db1-8eba8d8b45aa
2025-03-29 21:02:19,958 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-29 21:02:19,958 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99b30364-dcf8-4d58-9b0d-97a2973e6673
2025-03-29 21:02:19,969 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19c0de56-e315-4722-8cf9-471950ce8b13
2025-03-29 21:02:19,989 - INFO - Verified VN network id 10 for VN 99b30364-dcf8-4d58-9b0d-97a2973e6673
2025-03-29 21:02:19,989 - INFO - Verifications in API Server for VN ctest-vn-15822663 passed
2025-03-29 21:02:19,989 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99b30364-dcf8-4d58-9b0d-97a2973e6673
2025-03-29 21:02:20,002 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19c0de56-e315-4722-8cf9-471950ce8b13
2025-03-29 21:02:20,012 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/19c0de56-e315-4722-8cf9-471950ce8b13
2025-03-29 21:02:20,021 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/5743fca9-975b-4260-8db1-8eba8d8b45aa
2025-03-29 21:02:20,036 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44678472:ctest-vn-15822663', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44678472', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11075199640373054808', 'uuid-lslong': '11172752975154013811'}, 'enable': 'true', 'created': '2025-03-29T21:02:17', 'last-modified': '2025-03-29T21:02:18', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.862154'}
2025-03-29 21:02:20,045 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-29 21:02:20,046 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15822663 passed
2025-03-29 21:02:20,046 - DEBUG - ====Verifying policy data for ctest-vn-15822663 in API_Server ======
2025-03-29 21:02:20,046 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-03-29 21:02:20,055 - DEBUG - Requesting: http://10.0.0.12:8082/domain/90ad27e6-36f3-4187-bd03-25f60bcf4033
2025-03-29 21:02:20,074 - DEBUG - Requesting: http://10.0.0.12:8082/project/428093fd-03de-42fa-98c6-2c1e1a752216
2025-03-29 21:02:20,158 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/99b30364-dcf8-4d58-9b0d-97a2973e6673
2025-03-29 21:02:20,172 - DEBUG - ==>Verifying data for policy with id: 2aea4e2f-558a-4527-9802-b7b2aed27238, fqn: ['default-domain', 'ctest-TestBasicPolicy-44678472', 'ctest-policy-allow-all-78691717']
2025-03-29 21:02:20,172 - INFO - VN ctest-vn-15822663 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-29 21:02:20,172 - DEBUG - Verifying the vn in opserver
2025-03-29 21:02:20,172 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44678472:ctest-vn-15822663 virtual network link through opserver 10.0.0.12
2025-03-29 21:02:20,172 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-03-29 21:02:20,184 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44678472:ctest-vn-15822663', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44678472:ctest-vn-15822663?flat'}
2025-03-29 21:02:20,184 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44678472:ctest-vn-15822663 is found in opserver
2025-03-29 21:02:20,203 - DEBUG - Do not have enough data to verify VN in agent
2025-03-29 21:02:20,210 - DEBUG - VRF ids for VN ctest-vn-15822663: {}
2025-03-29 21:02:20,280 - DEBUG - Services list from nova: [