2025-05-16 09:50:56,491 - INFO - Domain Default found not creating
2025-05-16 09:50:56,638 - INFO - Project ctest-TestBasicPolicy-45170823 not found, creating it
2025-05-16 09:50:57,100 - INFO - Created Project:ctest-TestBasicPolicy-45170823, ID : 0c14cc8b-4a6c-45f6-9b42-478b60af1ec7
2025-05-16 09:50:58,513 - INFO - ================================================================================
2025-05-16 09:50:58,513 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-16 09:50:58,514 - 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-05-16 09:50:58,768 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with
2025-05-16 09:50:58,768 - INFO - Initial checks done. Running the testcase now
2025-05-16 09:50:58,768 - INFO -
2025-05-16 09:50:59,291 - DEBUG - Response for create_network : {'network': {'id': 'df8c9775-8a9b-4b90-9003-c500795f94b7', 'name': 'ctest-vn-56752471', 'tenant_id': '0c14cc8b4a6c45f69b42478b60af1ec7', 'project_id': '0c14cc8b4a6c45f69b42478b60af1ec7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45170823', 'ctest-vn-56752471'], 'port_security_enabled': True, 'description': ''}}
2025-05-16 09:50:59,422 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd0030a3c-d196-4f2e-a795-cd3ca3a0f727', 'name': '', 'tenant_id': '0c14cc8b4a6c45f69b42478b60af1ec7', 'network_id': 'df8c9775-8a9b-4b90-9003-c500795f94b7', 'ip_version': 4, 'cidr': '199.112.169.128/26', 'allocation_pools': [{'start': '199.112.169.130', 'end': '199.112.169.190'}], 'gateway_ip': '199.112.169.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '199.112.169.130', 'tags': [], 'project_id': '0c14cc8b4a6c45f69b42478b60af1ec7'}}
2025-05-16 09:50:59,438 - INFO - Created VN ctest-vn-56752471
2025-05-16 09:50:59,489 - DEBUG - VN ctest-vn-56752471 UUID is df8c9775-8a9b-4b90-9003-c500795f94b7
2025-05-16 09:50:59,770 - DEBUG - Response for create_network : {'network': {'id': 'cb2a6f99-2f75-4b67-a198-46a673d3bc48', 'name': 'ctest-vn-34330355', 'tenant_id': '0c14cc8b4a6c45f69b42478b60af1ec7', 'project_id': '0c14cc8b4a6c45f69b42478b60af1ec7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45170823', 'ctest-vn-34330355'], 'port_security_enabled': True, 'description': ''}}
2025-05-16 09:50:59,938 - DEBUG - Response for create_subnet : {'subnet': {'id': '786334bf-548a-4587-b46b-3415dc1f13ab', 'name': '', 'tenant_id': '0c14cc8b4a6c45f69b42478b60af1ec7', 'network_id': 'cb2a6f99-2f75-4b67-a198-46a673d3bc48', 'ip_version': 4, 'cidr': '138.66.129.64/26', 'allocation_pools': [{'start': '138.66.129.66', 'end': '138.66.129.126'}], 'gateway_ip': '138.66.129.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '138.66.129.66', 'tags': [], 'project_id': '0c14cc8b4a6c45f69b42478b60af1ec7'}}
2025-05-16 09:50:59,954 - INFO - Created VN ctest-vn-34330355
2025-05-16 09:51:00,010 - DEBUG - VN ctest-vn-34330355 UUID is cb2a6f99-2f75-4b67-a198-46a673d3bc48
2025-05-16 09:51:00,165 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-45170823:ctest-vn-56752471, 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-45170823:ctest-vn-34330355, 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-05-16 09:51:00,505 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'df8c9775-8a9b-4b90-9003-c500795f94b7', 'name': 'ctest-vn-56752471', 'tenant_id': '0c14cc8b4a6c45f69b42478b60af1ec7', 'project_id': '0c14cc8b4a6c45f69b42478b60af1ec7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d0030a3c-d196-4f2e-a795-cd3ca3a0f727'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45170823', 'ctest-vn-56752471'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45170823', 'ctest-policy-allow-all-28065220']], 'subnet_ipam': [{'subnet_cidr': '199.112.169.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-16 09:51:00,748 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'cb2a6f99-2f75-4b67-a198-46a673d3bc48', 'name': 'ctest-vn-34330355', 'tenant_id': '0c14cc8b4a6c45f69b42478b60af1ec7', 'project_id': '0c14cc8b4a6c45f69b42478b60af1ec7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['786334bf-548a-4587-b46b-3415dc1f13ab'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-45170823', 'ctest-vn-34330355'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-45170823', 'ctest-policy-allow-all-28065220']], 'subnet_ipam': [{'subnet_cidr': '138.66.129.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-16 09:51:00,918 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-05-16 09:51:01,207 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-05-16 09:51:01,235 - DEBUG - Requesting: http://10.0.0.49:8082/domain/62b7e1c1-9e57-4bf1-9b45-6a8842f43024
2025-05-16 09:51:01,247 - DEBUG - Requesting: http://10.0.0.49:8082/project/0c14cc8b-4a6c-45f6-9b42-478b60af1ec7
2025-05-16 09:51:01,320 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/df8c9775-8a9b-4b90-9003-c500795f94b7
2025-05-16 09:51:01,332 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/df8c9775-8a9b-4b90-9003-c500795f94b7
2025-05-16 09:51:01,344 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/713bbe99-7eec-4832-915a-b93454b2950a
2025-05-16 09:51:01,352 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/713bbe99-7eec-4832-915a-b93454b2950a
2025-05-16 09:51:01,359 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/974991ad-49a1-4c79-8a5c-55f721e61c15
2025-05-16 09:51:01,367 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-16 09:51:01,367 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/df8c9775-8a9b-4b90-9003-c500795f94b7
2025-05-16 09:51:01,377 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/713bbe99-7eec-4832-915a-b93454b2950a
2025-05-16 09:51:01,391 - INFO - Verified VN network id 7 for VN df8c9775-8a9b-4b90-9003-c500795f94b7
2025-05-16 09:51:01,391 - INFO - Verifications in API Server for VN ctest-vn-56752471 passed
2025-05-16 09:51:01,392 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/df8c9775-8a9b-4b90-9003-c500795f94b7
2025-05-16 09:51:01,401 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/713bbe99-7eec-4832-915a-b93454b2950a
2025-05-16 09:51:01,409 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/713bbe99-7eec-4832-915a-b93454b2950a
2025-05-16 09:51:01,416 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/974991ad-49a1-4c79-8a5c-55f721e61c15
2025-05-16 09:51:01,429 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45170823:ctest-vn-56752471', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45170823', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16108416498289822608', 'uuid-lslong': '10377354572218733751'}, 'enable': 'true', 'created': '2025-05-16T09:50:59', 'last-modified': '2025-05-16T09:51:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.995223'}
2025-05-16 09:51:01,436 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-16 09:51:01,436 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-56752471 passed
2025-05-16 09:51:01,436 - DEBUG - ====Verifying policy data for ctest-vn-56752471 in API_Server ======
2025-05-16 09:51:01,436 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-05-16 09:51:01,443 - DEBUG - Requesting: http://10.0.0.49:8082/domain/62b7e1c1-9e57-4bf1-9b45-6a8842f43024
2025-05-16 09:51:01,454 - DEBUG - Requesting: http://10.0.0.49:8082/project/0c14cc8b-4a6c-45f6-9b42-478b60af1ec7
2025-05-16 09:51:01,528 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/df8c9775-8a9b-4b90-9003-c500795f94b7
2025-05-16 09:51:01,539 - DEBUG - ==>Verifying data for policy with id: 844fc84b-2c44-4bdb-9eea-4a2adbf65b0f, fqn: ['default-domain', 'ctest-TestBasicPolicy-45170823', 'ctest-policy-allow-all-28065220']
2025-05-16 09:51:01,539 - INFO - VN ctest-vn-56752471 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-16 09:51:01,539 - DEBUG - Verifying the vn in opserver
2025-05-16 09:51:01,539 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45170823:ctest-vn-56752471 virtual network link through opserver 10.0.0.49
2025-05-16 09:51:01,539 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-05-16 09:51:01,826 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-05-16 09:51:01,880 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45170823:ctest-vn-56752471', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45170823:ctest-vn-56752471?flat'}
2025-05-16 09:51:01,880 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45170823:ctest-vn-56752471 is found in opserver
2025-05-16 09:51:01,890 - DEBUG - Do not have enough data to verify VN in agent
2025-05-16 09:51:01,895 - DEBUG - VRF ids for VN ctest-vn-56752471: {}
2025-05-16 09:51:01,895 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-05-16 09:51:01,901 - DEBUG - Requesting: http://10.0.0.49:8082/domain/62b7e1c1-9e57-4bf1-9b45-6a8842f43024
2025-05-16 09:51:01,914 - DEBUG - Requesting: http://10.0.0.49:8082/project/0c14cc8b-4a6c-45f6-9b42-478b60af1ec7
2025-05-16 09:51:01,984 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/cb2a6f99-2f75-4b67-a198-46a673d3bc48
2025-05-16 09:51:01,997 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/cb2a6f99-2f75-4b67-a198-46a673d3bc48
2025-05-16 09:51:02,007 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f1c1f069-6278-4345-9259-1c531626b75a
2025-05-16 09:51:02,016 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f1c1f069-6278-4345-9259-1c531626b75a
2025-05-16 09:51:02,024 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/e1672e6b-d04c-405e-91e3-14bdfb4118b9
2025-05-16 09:51:02,032 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-16 09:51:02,032 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/cb2a6f99-2f75-4b67-a198-46a673d3bc48
2025-05-16 09:51:02,044 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f1c1f069-6278-4345-9259-1c531626b75a
2025-05-16 09:51:02,060 - INFO - Verified VN network id 8 for VN cb2a6f99-2f75-4b67-a198-46a673d3bc48
2025-05-16 09:51:02,060 - INFO - Verifications in API Server for VN ctest-vn-34330355 passed
2025-05-16 09:51:02,060 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/cb2a6f99-2f75-4b67-a198-46a673d3bc48
2025-05-16 09:51:02,069 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f1c1f069-6278-4345-9259-1c531626b75a
2025-05-16 09:51:02,076 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/f1c1f069-6278-4345-9259-1c531626b75a
2025-05-16 09:51:02,083 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/e1672e6b-d04c-405e-91e3-14bdfb4118b9
2025-05-16 09:51:02,094 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-45170823:ctest-vn-34330355', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-45170823', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '14639636242438114151', 'uuid-lslong': '11644134517288189000'}, 'enable': 'true', 'created': '2025-05-16T09:50:59', 'last-modified': '2025-05-16T09:51:00', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.377094'}
2025-05-16 09:51:02,100 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-16 09:51:02,100 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34330355 passed
2025-05-16 09:51:02,100 - DEBUG - ====Verifying policy data for ctest-vn-34330355 in API_Server ======
2025-05-16 09:51:02,101 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-05-16 09:51:02,106 - DEBUG - Requesting: http://10.0.0.49:8082/domain/62b7e1c1-9e57-4bf1-9b45-6a8842f43024
2025-05-16 09:51:02,117 - DEBUG - Requesting: http://10.0.0.49:8082/project/0c14cc8b-4a6c-45f6-9b42-478b60af1ec7
2025-05-16 09:51:02,192 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/cb2a6f99-2f75-4b67-a198-46a673d3bc48
2025-05-16 09:51:02,201 - DEBUG - ==>Verifying data for policy with id: 844fc84b-2c44-4bdb-9eea-4a2adbf65b0f, fqn: ['default-domain', 'ctest-TestBasicPolicy-45170823', 'ctest-policy-allow-all-28065220']
2025-05-16 09:51:02,201 - INFO - VN ctest-vn-34330355 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-16 09:51:02,201 - DEBUG - Verifying the vn in opserver
2025-05-16 09:51:02,202 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-45170823:ctest-vn-34330355 virtual network link through opserver 10.0.0.49
2025-05-16 09:51:02,202 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-05-16 09:51:02,211 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-45170823:ctest-vn-34330355', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-45170823:ctest-vn-34330355?flat'}
2025-05-16 09:51:02,211 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-45170823:ctest-vn-34330355 is found in opserver
2025-05-16 09:51:02,220 - DEBUG - Do not have enough data to verify VN in agent
2025-05-16 09:51:02,226 - DEBUG - VRF ids for VN ctest-vn-34330355: {}
2025-05-16 09:51:02,278 - DEBUG - Services list from nova: [