2025-04-24 22:12:04,941 - INFO - Domain Default found not creating
2025-04-24 22:12:05,054 - INFO - Project ctest-TestBasicPolicy-17051618 not found, creating it
2025-04-24 22:12:05,543 - INFO - Created Project:ctest-TestBasicPolicy-17051618, ID : c78fe887-d74f-4be2-898b-6a26058f1e65
2025-04-24 22:12:06,757 - INFO - ================================================================================
2025-04-24 22:12:06,757 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-24 22:12:06,757 - 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-04-24 22:12:07,008 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.20.0.17': '0'}} with
2025-04-24 22:12:07,008 - INFO - Initial checks done. Running the testcase now
2025-04-24 22:12:07,008 - INFO -
2025-04-24 22:12:07,486 - DEBUG - Response for create_network : {'network': {'id': '5329cd29-9418-40db-a675-2da47c5a7320', 'name': 'ctest-vn-04735483', 'tenant_id': 'c78fe887d74f4be2898b6a26058f1e65', 'project_id': 'c78fe887d74f4be2898b6a26058f1e65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17051618', 'ctest-vn-04735483'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 22:12:07,674 - DEBUG - Response for create_subnet : {'subnet': {'id': '09e03959-719b-4e49-ba50-e93355bd8564', 'name': '', 'tenant_id': 'c78fe887d74f4be2898b6a26058f1e65', 'network_id': '5329cd29-9418-40db-a675-2da47c5a7320', 'ip_version': 4, 'cidr': '37.74.92.192/26', 'allocation_pools': [{'start': '37.74.92.194', 'end': '37.74.92.254'}], 'gateway_ip': '37.74.92.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '37.74.92.194', 'tags': [], 'project_id': 'c78fe887d74f4be2898b6a26058f1e65'}}
2025-04-24 22:12:07,691 - INFO - Created VN ctest-vn-04735483
2025-04-24 22:12:07,743 - DEBUG - VN ctest-vn-04735483 UUID is 5329cd29-9418-40db-a675-2da47c5a7320
2025-04-24 22:12:08,044 - DEBUG - Response for create_network : {'network': {'id': '894e453a-08c2-4d31-9839-cc4ef5074236', 'name': 'ctest-vn-19001854', 'tenant_id': 'c78fe887d74f4be2898b6a26058f1e65', 'project_id': 'c78fe887d74f4be2898b6a26058f1e65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17051618', 'ctest-vn-19001854'], 'port_security_enabled': True, 'description': ''}}
2025-04-24 22:12:08,229 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bff0183d-6fa6-48f9-aa90-28363fbb725e', 'name': '', 'tenant_id': 'c78fe887d74f4be2898b6a26058f1e65', 'network_id': '894e453a-08c2-4d31-9839-cc4ef5074236', 'ip_version': 4, 'cidr': '190.169.140.192/26', 'allocation_pools': [{'start': '190.169.140.194', 'end': '190.169.140.254'}], 'gateway_ip': '190.169.140.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '190.169.140.194', 'tags': [], 'project_id': 'c78fe887d74f4be2898b6a26058f1e65'}}
2025-04-24 22:12:08,244 - INFO - Created VN ctest-vn-19001854
2025-04-24 22:12:08,299 - DEBUG - VN ctest-vn-19001854 UUID is 894e453a-08c2-4d31-9839-cc4ef5074236
2025-04-24 22:12:08,439 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-17051618:ctest-vn-04735483, 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-17051618:ctest-vn-19001854, 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-04-24 22:12:08,728 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5329cd29-9418-40db-a675-2da47c5a7320', 'name': 'ctest-vn-04735483', 'tenant_id': 'c78fe887d74f4be2898b6a26058f1e65', 'project_id': 'c78fe887d74f4be2898b6a26058f1e65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['09e03959-719b-4e49-ba50-e93355bd8564'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17051618', 'ctest-vn-04735483'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17051618', 'ctest-policy-allow-all-93034248']], 'subnet_ipam': [{'subnet_cidr': '37.74.92.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 22:12:08,953 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '894e453a-08c2-4d31-9839-cc4ef5074236', 'name': 'ctest-vn-19001854', 'tenant_id': 'c78fe887d74f4be2898b6a26058f1e65', 'project_id': 'c78fe887d74f4be2898b6a26058f1e65', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bff0183d-6fa6-48f9-aa90-28363fbb725e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-17051618', 'ctest-vn-19001854'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-17051618', 'ctest-policy-allow-all-93034248']], 'subnet_ipam': [{'subnet_cidr': '190.169.140.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-24 22:12:09,103 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-24 22:12:09,365 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-24 22:12:09,392 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6148ba34-e649-4419-806f-400e2884e8b7
2025-04-24 22:12:09,408 - DEBUG - Requesting: http://10.0.0.22:8082/project/c78fe887-d74f-4be2-898b-6a26058f1e65
2025-04-24 22:12:09,484 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5329cd29-9418-40db-a675-2da47c5a7320
2025-04-24 22:12:09,493 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5329cd29-9418-40db-a675-2da47c5a7320
2025-04-24 22:12:09,501 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/abfe0b20-35df-414a-bbe8-0efbb9164fea
2025-04-24 22:12:09,507 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/abfe0b20-35df-414a-bbe8-0efbb9164fea
2025-04-24 22:12:09,513 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/68eb3a57-31c1-43a3-a445-55405c3ce221
2025-04-24 22:12:09,517 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 22:12:09,518 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5329cd29-9418-40db-a675-2da47c5a7320
2025-04-24 22:12:09,525 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/abfe0b20-35df-414a-bbe8-0efbb9164fea
2025-04-24 22:12:09,537 - INFO - Verified VN network id 8 for VN 5329cd29-9418-40db-a675-2da47c5a7320
2025-04-24 22:12:09,537 - INFO - Verifications in API Server for VN ctest-vn-04735483 passed
2025-04-24 22:12:09,537 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5329cd29-9418-40db-a675-2da47c5a7320
2025-04-24 22:12:09,544 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/abfe0b20-35df-414a-bbe8-0efbb9164fea
2025-04-24 22:12:09,550 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/abfe0b20-35df-414a-bbe8-0efbb9164fea
2025-04-24 22:12:09,556 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/68eb3a57-31c1-43a3-a445-55405c3ce221
2025-04-24 22:12:09,567 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17051618:ctest-vn-04735483', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17051618', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5992546357655126235', 'uuid-lslong': '11994543367055373088'}, 'enable': 'true', 'created': '2025-04-24T22:12:07', 'last-modified': '2025-04-24T22:12:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.858858'}
2025-04-24 22:12:09,573 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-24 22:12:09,573 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-04735483 passed
2025-04-24 22:12:09,573 - DEBUG - ====Verifying policy data for ctest-vn-04735483 in API_Server ======
2025-04-24 22:12:09,574 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-24 22:12:09,579 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6148ba34-e649-4419-806f-400e2884e8b7
2025-04-24 22:12:09,589 - DEBUG - Requesting: http://10.0.0.22:8082/project/c78fe887-d74f-4be2-898b-6a26058f1e65
2025-04-24 22:12:09,659 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/5329cd29-9418-40db-a675-2da47c5a7320
2025-04-24 22:12:09,668 - DEBUG - ==>Verifying data for policy with id: b2bae115-c402-4b40-abab-d900c32ceda8, fqn: ['default-domain', 'ctest-TestBasicPolicy-17051618', 'ctest-policy-allow-all-93034248']
2025-04-24 22:12:09,668 - INFO - VN ctest-vn-04735483 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 22:12:09,668 - DEBUG - Verifying the vn in opserver
2025-04-24 22:12:09,668 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17051618:ctest-vn-04735483 virtual network link through opserver 10.0.0.22
2025-04-24 22:12:09,668 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-24 22:12:09,927 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-24 22:12:09,972 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17051618:ctest-vn-04735483', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17051618:ctest-vn-04735483?flat'}
2025-04-24 22:12:09,972 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17051618:ctest-vn-04735483 is found in opserver
2025-04-24 22:12:09,981 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 22:12:09,985 - DEBUG - VRF ids for VN ctest-vn-04735483: {}
2025-04-24 22:12:09,985 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-24 22:12:09,989 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6148ba34-e649-4419-806f-400e2884e8b7
2025-04-24 22:12:09,999 - DEBUG - Requesting: http://10.0.0.22:8082/project/c78fe887-d74f-4be2-898b-6a26058f1e65
2025-04-24 22:12:10,068 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/894e453a-08c2-4d31-9839-cc4ef5074236
2025-04-24 22:12:10,078 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/894e453a-08c2-4d31-9839-cc4ef5074236
2025-04-24 22:12:10,085 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3553fd59-6478-4b48-9987-7a79774cc246
2025-04-24 22:12:10,091 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3553fd59-6478-4b48-9987-7a79774cc246
2025-04-24 22:12:10,097 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9ec1ff05-5232-4ad9-b906-5b985cedada7
2025-04-24 22:12:10,101 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 22:12:10,101 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/894e453a-08c2-4d31-9839-cc4ef5074236
2025-04-24 22:12:10,109 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3553fd59-6478-4b48-9987-7a79774cc246
2025-04-24 22:12:10,121 - INFO - Verified VN network id 9 for VN 894e453a-08c2-4d31-9839-cc4ef5074236
2025-04-24 22:12:10,121 - INFO - Verifications in API Server for VN ctest-vn-19001854 passed
2025-04-24 22:12:10,121 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/894e453a-08c2-4d31-9839-cc4ef5074236
2025-04-24 22:12:10,128 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3553fd59-6478-4b48-9987-7a79774cc246
2025-04-24 22:12:10,133 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/3553fd59-6478-4b48-9987-7a79774cc246
2025-04-24 22:12:10,139 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/9ec1ff05-5232-4ad9-b906-5b985cedada7
2025-04-24 22:12:10,148 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-17051618:ctest-vn-19001854', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-17051618', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9893921546936929585', 'uuid-lslong': '10969023006927962678'}, 'enable': 'true', 'created': '2025-04-24T22:12:08', 'last-modified': '2025-04-24T22:12:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.213010'}
2025-04-24 22:12:10,153 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-24 22:12:10,153 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-19001854 passed
2025-04-24 22:12:10,154 - DEBUG - ====Verifying policy data for ctest-vn-19001854 in API_Server ======
2025-04-24 22:12:10,154 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2025-04-24 22:12:10,157 - DEBUG - Requesting: http://10.0.0.22:8082/domain/6148ba34-e649-4419-806f-400e2884e8b7
2025-04-24 22:12:10,166 - DEBUG - Requesting: http://10.0.0.22:8082/project/c78fe887-d74f-4be2-898b-6a26058f1e65
2025-04-24 22:12:10,241 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/894e453a-08c2-4d31-9839-cc4ef5074236
2025-04-24 22:12:10,250 - DEBUG - ==>Verifying data for policy with id: b2bae115-c402-4b40-abab-d900c32ceda8, fqn: ['default-domain', 'ctest-TestBasicPolicy-17051618', 'ctest-policy-allow-all-93034248']
2025-04-24 22:12:10,250 - INFO - VN ctest-vn-19001854 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-24 22:12:10,250 - DEBUG - Verifying the vn in opserver
2025-04-24 22:12:10,251 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-17051618:ctest-vn-19001854 virtual network link through opserver 10.0.0.22
2025-04-24 22:12:10,251 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2025-04-24 22:12:10,260 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-17051618:ctest-vn-19001854', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-17051618:ctest-vn-19001854?flat'}
2025-04-24 22:12:10,260 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-17051618:ctest-vn-19001854 is found in opserver
2025-04-24 22:12:10,269 - DEBUG - Do not have enough data to verify VN in agent
2025-04-24 22:12:10,273 - DEBUG - VRF ids for VN ctest-vn-19001854: {}
2025-04-24 22:12:10,319 - DEBUG - Services list from nova: [