2025-02-03 12:31:21,726 - INFO - Domain Default found not creating
2025-02-03 12:31:21,876 - INFO - Project ctest-TestBasicPolicy-78657087 not found, creating it
2025-02-03 12:31:22,360 - INFO - Created Project:ctest-TestBasicPolicy-78657087, ID : 928f7567-069b-467f-8618-77d7057ea2af
2025-02-03 12:31:23,822 - INFO - ================================================================================
2025-02-03 12:31:23,822 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-03 12:31:23,822 - 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-02-03 12:31:24,085 - DEBUG - Nothing to compare xmpp stats {'10.0.0.12': {'10.20.0.5': '0'}} with
2025-02-03 12:31:24,085 - INFO - Initial checks done. Running the testcase now
2025-02-03 12:31:24,085 - INFO -
2025-02-03 12:31:24,650 - DEBUG - Response for create_network : {'network': {'id': '350c0443-dc5d-4234-b8a4-e5c7ee8e0e1b', 'name': 'ctest-vn-59918525', 'tenant_id': '928f7567069b467f861877d7057ea2af', 'project_id': '928f7567069b467f861877d7057ea2af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78657087', 'ctest-vn-59918525'], 'port_security_enabled': True, 'description': ''}}
2025-02-03 12:31:24,834 - DEBUG - Response for create_subnet : {'subnet': {'id': '76cf076c-2b3c-4678-b37b-1d317ded3a50', 'name': '', 'tenant_id': '928f7567069b467f861877d7057ea2af', 'network_id': '350c0443-dc5d-4234-b8a4-e5c7ee8e0e1b', 'ip_version': 4, 'cidr': '139.147.250.192/26', 'allocation_pools': [{'start': '139.147.250.194', 'end': '139.147.250.254'}], 'gateway_ip': '139.147.250.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '139.147.250.194', 'tags': [], 'project_id': '928f7567069b467f861877d7057ea2af'}}
2025-02-03 12:31:24,854 - INFO - Created VN ctest-vn-59918525
2025-02-03 12:31:24,907 - DEBUG - VN ctest-vn-59918525 UUID is 350c0443-dc5d-4234-b8a4-e5c7ee8e0e1b
2025-02-03 12:31:25,242 - DEBUG - Response for create_network : {'network': {'id': '981505e7-e685-446d-996b-aa296d73f168', 'name': 'ctest-vn-06454791', 'tenant_id': '928f7567069b467f861877d7057ea2af', 'project_id': '928f7567069b467f861877d7057ea2af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78657087', 'ctest-vn-06454791'], 'port_security_enabled': True, 'description': ''}}
2025-02-03 12:31:25,479 - DEBUG - Response for create_subnet : {'subnet': {'id': '944048a2-f98a-4361-bc9c-0eb8611ab85e', 'name': '', 'tenant_id': '928f7567069b467f861877d7057ea2af', 'network_id': '981505e7-e685-446d-996b-aa296d73f168', 'ip_version': 4, 'cidr': '68.193.215.0/26', 'allocation_pools': [{'start': '68.193.215.2', 'end': '68.193.215.62'}], 'gateway_ip': '68.193.215.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '68.193.215.2', 'tags': [], 'project_id': '928f7567069b467f861877d7057ea2af'}}
2025-02-03 12:31:25,502 - INFO - Created VN ctest-vn-06454791
2025-02-03 12:31:25,555 - DEBUG - VN ctest-vn-06454791 UUID is 981505e7-e685-446d-996b-aa296d73f168
2025-02-03 12:31:25,680 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-78657087:ctest-vn-59918525, 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-78657087:ctest-vn-06454791, 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-02-03 12:31:26,009 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '350c0443-dc5d-4234-b8a4-e5c7ee8e0e1b', 'name': 'ctest-vn-59918525', 'tenant_id': '928f7567069b467f861877d7057ea2af', 'project_id': '928f7567069b467f861877d7057ea2af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['76cf076c-2b3c-4678-b37b-1d317ded3a50'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78657087', 'ctest-vn-59918525'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78657087', 'ctest-policy-allow-all-64153728']], 'subnet_ipam': [{'subnet_cidr': '139.147.250.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-03 12:31:26,274 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '981505e7-e685-446d-996b-aa296d73f168', 'name': 'ctest-vn-06454791', 'tenant_id': '928f7567069b467f861877d7057ea2af', 'project_id': '928f7567069b467f861877d7057ea2af', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['944048a2-f98a-4361-bc9c-0eb8611ab85e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-78657087', 'ctest-vn-06454791'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-78657087', 'ctest-policy-allow-all-64153728']], 'subnet_ipam': [{'subnet_cidr': '68.193.215.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-03 12:31:26,447 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-03 12:31:26,755 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-03 12:31:26,786 - DEBUG - Requesting: http://10.0.0.12:8082/domain/08631338-ec34-46cf-9f81-5bd37d107390
2025-02-03 12:31:26,802 - DEBUG - Requesting: http://10.0.0.12:8082/project/928f7567-069b-467f-8618-77d7057ea2af
2025-02-03 12:31:26,882 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/350c0443-dc5d-4234-b8a4-e5c7ee8e0e1b
2025-02-03 12:31:26,896 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/350c0443-dc5d-4234-b8a4-e5c7ee8e0e1b
2025-02-03 12:31:26,908 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/6ab7f4c9-4dba-4815-aa37-5b4e9f42f10a
2025-02-03 12:31:26,918 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/6ab7f4c9-4dba-4815-aa37-5b4e9f42f10a
2025-02-03 12:31:26,927 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/40fcb872-63c5-4145-8880-801265681398
2025-02-03 12:31:26,936 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-03 12:31:26,936 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/350c0443-dc5d-4234-b8a4-e5c7ee8e0e1b
2025-02-03 12:31:26,946 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/6ab7f4c9-4dba-4815-aa37-5b4e9f42f10a
2025-02-03 12:31:26,968 - INFO - Verified VN network id 8 for VN 350c0443-dc5d-4234-b8a4-e5c7ee8e0e1b
2025-02-03 12:31:26,968 - INFO - Verifications in API Server for VN ctest-vn-59918525 passed
2025-02-03 12:31:26,969 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/350c0443-dc5d-4234-b8a4-e5c7ee8e0e1b
2025-02-03 12:31:26,988 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/6ab7f4c9-4dba-4815-aa37-5b4e9f42f10a
2025-02-03 12:31:26,998 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/6ab7f4c9-4dba-4815-aa37-5b4e9f42f10a
2025-02-03 12:31:27,008 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/40fcb872-63c5-4145-8880-801265681398
2025-02-03 12:31:27,027 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78657087:ctest-vn-59918525', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78657087', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3822434873237127732', 'uuid-lslong': '13305011846022827547'}, 'enable': 'true', 'created': '2025-02-03T12:31:24', 'last-modified': '2025-02-03T12:31:25', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.050769'}
2025-02-03 12:31:27,036 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-03 12:31:27,036 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-59918525 passed
2025-02-03 12:31:27,037 - DEBUG - ====Verifying policy data for ctest-vn-59918525 in API_Server ======
2025-02-03 12:31:27,037 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-03 12:31:27,045 - DEBUG - Requesting: http://10.0.0.12:8082/domain/08631338-ec34-46cf-9f81-5bd37d107390
2025-02-03 12:31:27,067 - DEBUG - Requesting: http://10.0.0.12:8082/project/928f7567-069b-467f-8618-77d7057ea2af
2025-02-03 12:31:27,144 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/350c0443-dc5d-4234-b8a4-e5c7ee8e0e1b
2025-02-03 12:31:27,155 - DEBUG - ==>Verifying data for policy with id: ed2fc681-9d69-430e-9443-bdf0b4ab3f5c, fqn: ['default-domain', 'ctest-TestBasicPolicy-78657087', 'ctest-policy-allow-all-64153728']
2025-02-03 12:31:27,156 - INFO - VN ctest-vn-59918525 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-03 12:31:27,156 - DEBUG - Verifying the vn in opserver
2025-02-03 12:31:27,156 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78657087:ctest-vn-59918525 virtual network link through opserver 10.0.0.12
2025-02-03 12:31:27,156 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-02-03 12:31:27,450 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-02-03 12:31:27,515 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78657087:ctest-vn-59918525', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78657087:ctest-vn-59918525?flat'}
2025-02-03 12:31:27,515 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78657087:ctest-vn-59918525 is found in opserver
2025-02-03 12:31:27,528 - DEBUG - Do not have enough data to verify VN in agent
2025-02-03 12:31:27,534 - DEBUG - VRF ids for VN ctest-vn-59918525: {}
2025-02-03 12:31:27,534 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-03 12:31:27,542 - DEBUG - Requesting: http://10.0.0.12:8082/domain/08631338-ec34-46cf-9f81-5bd37d107390
2025-02-03 12:31:27,555 - DEBUG - Requesting: http://10.0.0.12:8082/project/928f7567-069b-467f-8618-77d7057ea2af
2025-02-03 12:31:27,632 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/981505e7-e685-446d-996b-aa296d73f168
2025-02-03 12:31:27,645 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/981505e7-e685-446d-996b-aa296d73f168
2025-02-03 12:31:27,655 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a03680e2-3402-43ba-9282-19c5d154934e
2025-02-03 12:31:27,663 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a03680e2-3402-43ba-9282-19c5d154934e
2025-02-03 12:31:27,671 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/ea0ec08f-9b46-4526-94de-73bc3de34270
2025-02-03 12:31:27,679 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-03 12:31:27,679 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/981505e7-e685-446d-996b-aa296d73f168
2025-02-03 12:31:27,689 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a03680e2-3402-43ba-9282-19c5d154934e
2025-02-03 12:31:27,707 - INFO - Verified VN network id 9 for VN 981505e7-e685-446d-996b-aa296d73f168
2025-02-03 12:31:27,707 - INFO - Verifications in API Server for VN ctest-vn-06454791 passed
2025-02-03 12:31:27,707 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/981505e7-e685-446d-996b-aa296d73f168
2025-02-03 12:31:27,718 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a03680e2-3402-43ba-9282-19c5d154934e
2025-02-03 12:31:27,727 - DEBUG - Requesting: http://10.0.0.12:8082/routing-instance/a03680e2-3402-43ba-9282-19c5d154934e
2025-02-03 12:31:27,737 - DEBUG - Requesting: http://10.0.0.12:8082/route-target/ea0ec08f-9b46-4526-94de-73bc3de34270
2025-02-03 12:31:27,754 - DEBUG - Control-node 10.0.0.12 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-78657087:ctest-vn-06454791', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-78657087', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10958671761839047789', 'uuid-lslong': '11055116805217710440'}, 'enable': 'true', 'created': '2025-02-03T12:31:25', 'last-modified': '2025-02-03T12:31:26', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.510289'}
2025-02-03 12:31:27,762 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-03 12:31:27,762 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06454791 passed
2025-02-03 12:31:27,762 - DEBUG - ====Verifying policy data for ctest-vn-06454791 in API_Server ======
2025-02-03 12:31:27,762 - DEBUG - Requesting: http://10.0.0.12:8082/domains
2025-02-03 12:31:27,769 - DEBUG - Requesting: http://10.0.0.12:8082/domain/08631338-ec34-46cf-9f81-5bd37d107390
2025-02-03 12:31:27,783 - DEBUG - Requesting: http://10.0.0.12:8082/project/928f7567-069b-467f-8618-77d7057ea2af
2025-02-03 12:31:27,866 - DEBUG - Requesting: http://10.0.0.12:8082/virtual-network/981505e7-e685-446d-996b-aa296d73f168
2025-02-03 12:31:27,883 - DEBUG - ==>Verifying data for policy with id: ed2fc681-9d69-430e-9443-bdf0b4ab3f5c, fqn: ['default-domain', 'ctest-TestBasicPolicy-78657087', 'ctest-policy-allow-all-64153728']
2025-02-03 12:31:27,883 - INFO - VN ctest-vn-06454791 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-03 12:31:27,883 - DEBUG - Verifying the vn in opserver
2025-02-03 12:31:27,883 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-78657087:ctest-vn-06454791 virtual network link through opserver 10.0.0.12
2025-02-03 12:31:27,883 - DEBUG - Requesting: http://10.0.0.12:8081/analytics/uves/virtual-networks
2025-02-03 12:31:27,896 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-78657087:ctest-vn-06454791', 'href': 'http://10.0.0.12:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-78657087:ctest-vn-06454791?flat'}
2025-02-03 12:31:27,896 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-78657087:ctest-vn-06454791 is found in opserver
2025-02-03 12:31:27,909 - DEBUG - Do not have enough data to verify VN in agent
2025-02-03 12:31:27,914 - DEBUG - VRF ids for VN ctest-vn-06454791: {}
2025-02-03 12:31:27,998 - DEBUG - Services list from nova: [