2025-08-15 08:15:57,619 - INFO - Domain Default found not creating
2025-08-15 08:15:57,757 - INFO - Project ctest-TestBasicPolicy-51136935 not found, creating it
2025-08-15 08:15:58,211 - INFO - Created Project:ctest-TestBasicPolicy-51136935, ID : 2d00983b-9c7c-425f-aa35-27820d285e39
2025-08-15 08:15:59,812 - INFO - ================================================================================
2025-08-15 08:15:59,812 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-15 08:15:59,812 - 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-08-15 08:16:00,070 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.254': '0'}} with
2025-08-15 08:16:00,070 - INFO - Initial checks done. Running the testcase now
2025-08-15 08:16:00,070 - INFO -
2025-08-15 08:16:00,668 - DEBUG - Response for create_network : {'network': {'id': 'b000955f-966c-41fe-b854-a518f253b3ad', 'name': 'ctest-vn-38745730', 'tenant_id': '2d00983b9c7c425faa3527820d285e39', 'project_id': '2d00983b9c7c425faa3527820d285e39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51136935', 'ctest-vn-38745730'], 'port_security_enabled': True, 'description': ''}}
2025-08-15 08:16:00,891 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd8dcea3a-546b-4a67-9260-2bfd81c7cae3', 'name': '', 'tenant_id': '2d00983b9c7c425faa3527820d285e39', 'network_id': 'b000955f-966c-41fe-b854-a518f253b3ad', 'ip_version': 4, 'cidr': '40.31.41.0/26', 'allocation_pools': [{'start': '40.31.41.2', 'end': '40.31.41.62'}], 'gateway_ip': '40.31.41.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '40.31.41.2', 'tags': [], 'project_id': '2d00983b9c7c425faa3527820d285e39'}}
2025-08-15 08:16:00,909 - INFO - Created VN ctest-vn-38745730
2025-08-15 08:16:00,960 - DEBUG - VN ctest-vn-38745730 UUID is b000955f-966c-41fe-b854-a518f253b3ad
2025-08-15 08:16:01,249 - DEBUG - Response for create_network : {'network': {'id': '6dc76c5c-4b06-49d4-b75c-57eda5c9484b', 'name': 'ctest-vn-74029813', 'tenant_id': '2d00983b9c7c425faa3527820d285e39', 'project_id': '2d00983b9c7c425faa3527820d285e39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51136935', 'ctest-vn-74029813'], 'port_security_enabled': True, 'description': ''}}
2025-08-15 08:16:01,461 - DEBUG - Response for create_subnet : {'subnet': {'id': '27de8c0f-1978-4032-b168-f2c49dacd321', 'name': '', 'tenant_id': '2d00983b9c7c425faa3527820d285e39', 'network_id': '6dc76c5c-4b06-49d4-b75c-57eda5c9484b', 'ip_version': 4, 'cidr': '2.38.84.128/26', 'allocation_pools': [{'start': '2.38.84.130', 'end': '2.38.84.190'}], 'gateway_ip': '2.38.84.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '2.38.84.130', 'tags': [], 'project_id': '2d00983b9c7c425faa3527820d285e39'}}
2025-08-15 08:16:01,478 - INFO - Created VN ctest-vn-74029813
2025-08-15 08:16:01,532 - DEBUG - VN ctest-vn-74029813 UUID is 6dc76c5c-4b06-49d4-b75c-57eda5c9484b
2025-08-15 08:16:01,643 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-38745730, 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-51136935:ctest-vn-74029813, 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-08-15 08:16:01,943 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b000955f-966c-41fe-b854-a518f253b3ad', 'name': 'ctest-vn-38745730', 'tenant_id': '2d00983b9c7c425faa3527820d285e39', 'project_id': '2d00983b9c7c425faa3527820d285e39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d8dcea3a-546b-4a67-9260-2bfd81c7cae3'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51136935', 'ctest-vn-38745730'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51136935', 'ctest-policy-allow-all-49136401']], 'subnet_ipam': [{'subnet_cidr': '40.31.41.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-15 08:16:02,185 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6dc76c5c-4b06-49d4-b75c-57eda5c9484b', 'name': 'ctest-vn-74029813', 'tenant_id': '2d00983b9c7c425faa3527820d285e39', 'project_id': '2d00983b9c7c425faa3527820d285e39', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['27de8c0f-1978-4032-b168-f2c49dacd321'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-51136935', 'ctest-vn-74029813'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-51136935', 'ctest-policy-allow-all-49136401']], 'subnet_ipam': [{'subnet_cidr': '2.38.84.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-15 08:16:02,332 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-08-15 08:16:02,677 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-08-15 08:16:02,705 - DEBUG - Requesting: http://10.0.0.19:8082/domain/cc066c09-3141-41f8-a8ed-11d50408a64d
2025-08-15 08:16:02,719 - DEBUG - Requesting: http://10.0.0.19:8082/project/2d00983b-9c7c-425f-aa35-27820d285e39
2025-08-15 08:16:02,794 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b000955f-966c-41fe-b854-a518f253b3ad
2025-08-15 08:16:02,805 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b000955f-966c-41fe-b854-a518f253b3ad
2025-08-15 08:16:02,816 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d164b638-47c1-4ef4-9905-6d5d695b97bd
2025-08-15 08:16:02,824 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d164b638-47c1-4ef4-9905-6d5d695b97bd
2025-08-15 08:16:02,831 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/d7468329-131e-4db2-bf83-06225a1def38
2025-08-15 08:16:02,837 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-15 08:16:02,838 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b000955f-966c-41fe-b854-a518f253b3ad
2025-08-15 08:16:02,847 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d164b638-47c1-4ef4-9905-6d5d695b97bd
2025-08-15 08:16:02,862 - INFO - Verified VN network id 12 for VN b000955f-966c-41fe-b854-a518f253b3ad
2025-08-15 08:16:02,862 - INFO - Verifications in API Server for VN ctest-vn-38745730 passed
2025-08-15 08:16:02,862 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b000955f-966c-41fe-b854-a518f253b3ad
2025-08-15 08:16:02,873 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d164b638-47c1-4ef4-9905-6d5d695b97bd
2025-08-15 08:16:02,880 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/d164b638-47c1-4ef4-9905-6d5d695b97bd
2025-08-15 08:16:02,888 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/d7468329-131e-4db2-bf83-06225a1def38
2025-08-15 08:16:02,901 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-38745730', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51136935', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12682300788453425662', 'uuid-lslong': '13282422727585805229'}, 'enable': 'true', 'created': '2025-08-15T08:16:00', 'last-modified': '2025-08-15T08:16:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.979488'}
2025-08-15 08:16:02,908 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-15 08:16:02,908 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-38745730 passed
2025-08-15 08:16:02,908 - DEBUG - ====Verifying policy data for ctest-vn-38745730 in API_Server ======
2025-08-15 08:16:02,908 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-08-15 08:16:02,913 - DEBUG - Requesting: http://10.0.0.19:8082/domain/cc066c09-3141-41f8-a8ed-11d50408a64d
2025-08-15 08:16:02,925 - DEBUG - Requesting: http://10.0.0.19:8082/project/2d00983b-9c7c-425f-aa35-27820d285e39
2025-08-15 08:16:03,001 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/b000955f-966c-41fe-b854-a518f253b3ad
2025-08-15 08:16:03,011 - DEBUG - ==>Verifying data for policy with id: 64be3c01-1f33-4794-9959-3d082b434dd5, fqn: ['default-domain', 'ctest-TestBasicPolicy-51136935', 'ctest-policy-allow-all-49136401']
2025-08-15 08:16:03,012 - INFO - VN ctest-vn-38745730 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-15 08:16:03,012 - DEBUG - Verifying the vn in opserver
2025-08-15 08:16:03,012 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-38745730 virtual network link through opserver 10.0.0.19
2025-08-15 08:16:03,012 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-08-15 08:16:03,343 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-08-15 08:16:03,400 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-38745730', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-38745730?flat'}
2025-08-15 08:16:03,400 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-38745730 is found in opserver
2025-08-15 08:16:03,411 - DEBUG - Do not have enough data to verify VN in agent
2025-08-15 08:16:03,416 - DEBUG - VRF ids for VN ctest-vn-38745730: {}
2025-08-15 08:16:03,417 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-08-15 08:16:03,422 - DEBUG - Requesting: http://10.0.0.19:8082/domain/cc066c09-3141-41f8-a8ed-11d50408a64d
2025-08-15 08:16:03,434 - DEBUG - Requesting: http://10.0.0.19:8082/project/2d00983b-9c7c-425f-aa35-27820d285e39
2025-08-15 08:16:03,510 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6dc76c5c-4b06-49d4-b75c-57eda5c9484b
2025-08-15 08:16:03,523 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6dc76c5c-4b06-49d4-b75c-57eda5c9484b
2025-08-15 08:16:03,533 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a3396d62-9b76-4cc1-8bdc-2faca86fe166
2025-08-15 08:16:03,540 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a3396d62-9b76-4cc1-8bdc-2faca86fe166
2025-08-15 08:16:03,548 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/275842ef-5a7b-4f55-b4f7-db00d01c764e
2025-08-15 08:16:03,555 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-15 08:16:03,555 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6dc76c5c-4b06-49d4-b75c-57eda5c9484b
2025-08-15 08:16:03,570 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a3396d62-9b76-4cc1-8bdc-2faca86fe166
2025-08-15 08:16:03,590 - INFO - Verified VN network id 13 for VN 6dc76c5c-4b06-49d4-b75c-57eda5c9484b
2025-08-15 08:16:03,590 - INFO - Verifications in API Server for VN ctest-vn-74029813 passed
2025-08-15 08:16:03,590 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6dc76c5c-4b06-49d4-b75c-57eda5c9484b
2025-08-15 08:16:03,604 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a3396d62-9b76-4cc1-8bdc-2faca86fe166
2025-08-15 08:16:03,611 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/a3396d62-9b76-4cc1-8bdc-2faca86fe166
2025-08-15 08:16:03,618 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/275842ef-5a7b-4f55-b4f7-db00d01c764e
2025-08-15 08:16:03,630 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-74029813', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-51136935', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7910410414151059924', 'uuid-lslong': '13212532084998490187'}, 'enable': 'true', 'created': '2025-08-15T08:16:01', 'last-modified': '2025-08-15T08:16:02', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.467085'}
2025-08-15 08:16:03,636 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-15 08:16:03,636 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-74029813 passed
2025-08-15 08:16:03,636 - DEBUG - ====Verifying policy data for ctest-vn-74029813 in API_Server ======
2025-08-15 08:16:03,636 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-08-15 08:16:03,641 - DEBUG - Requesting: http://10.0.0.19:8082/domain/cc066c09-3141-41f8-a8ed-11d50408a64d
2025-08-15 08:16:03,654 - DEBUG - Requesting: http://10.0.0.19:8082/project/2d00983b-9c7c-425f-aa35-27820d285e39
2025-08-15 08:16:03,726 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/6dc76c5c-4b06-49d4-b75c-57eda5c9484b
2025-08-15 08:16:03,737 - DEBUG - ==>Verifying data for policy with id: 64be3c01-1f33-4794-9959-3d082b434dd5, fqn: ['default-domain', 'ctest-TestBasicPolicy-51136935', 'ctest-policy-allow-all-49136401']
2025-08-15 08:16:03,737 - INFO - VN ctest-vn-74029813 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-15 08:16:03,738 - DEBUG - Verifying the vn in opserver
2025-08-15 08:16:03,738 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-74029813 virtual network link through opserver 10.0.0.19
2025-08-15 08:16:03,738 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-08-15 08:16:03,748 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-74029813', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-74029813?flat'}
2025-08-15 08:16:03,749 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-51136935:ctest-vn-74029813 is found in opserver
2025-08-15 08:16:03,760 - DEBUG - Do not have enough data to verify VN in agent
2025-08-15 08:16:03,767 - DEBUG - VRF ids for VN ctest-vn-74029813: {}
2025-08-15 08:16:03,822 - DEBUG - Services list from nova: [