2025-05-22 02:01:46,079 - INFO - Domain Default found not creating
2025-05-22 02:01:46,237 - INFO - Project ctest-TestBasicPolicy-29921572 not found, creating it
2025-05-22 02:01:46,690 - INFO - Created Project:ctest-TestBasicPolicy-29921572, ID : 03c53176-aec8-4e41-b9fb-0bd1532e9ee9
2025-05-22 02:01:48,624 - INFO - ================================================================================
2025-05-22 02:01:48,624 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-05-22 02:01:48,624 - 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-22 02:01:48,881 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.192': '0'}} with
2025-05-22 02:01:48,882 - INFO - Initial checks done. Running the testcase now
2025-05-22 02:01:48,882 - INFO -
2025-05-22 02:01:49,420 - DEBUG - Response for create_network : {'network': {'id': '2c06a33c-b98c-445f-84f1-3ccf43b217ae', 'name': 'ctest-vn-75489772', 'tenant_id': '03c53176aec84e41b9fb0bd1532e9ee9', 'project_id': '03c53176aec84e41b9fb0bd1532e9ee9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29921572', 'ctest-vn-75489772'], 'port_security_enabled': True, 'description': ''}}
2025-05-22 02:01:49,572 - DEBUG - Response for create_subnet : {'subnet': {'id': '008207c1-0885-429c-9006-2f144f918039', 'name': '', 'tenant_id': '03c53176aec84e41b9fb0bd1532e9ee9', 'network_id': '2c06a33c-b98c-445f-84f1-3ccf43b217ae', 'ip_version': 4, 'cidr': '204.141.201.64/26', 'allocation_pools': [{'start': '204.141.201.66', 'end': '204.141.201.126'}], 'gateway_ip': '204.141.201.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.141.201.66', 'tags': [], 'project_id': '03c53176aec84e41b9fb0bd1532e9ee9'}}
2025-05-22 02:01:49,591 - INFO - Created VN ctest-vn-75489772
2025-05-22 02:01:49,648 - DEBUG - VN ctest-vn-75489772 UUID is 2c06a33c-b98c-445f-84f1-3ccf43b217ae
2025-05-22 02:01:49,981 - DEBUG - Response for create_network : {'network': {'id': '0ca80f2b-be5d-4780-b4d1-27e13e836d11', 'name': 'ctest-vn-97474385', 'tenant_id': '03c53176aec84e41b9fb0bd1532e9ee9', 'project_id': '03c53176aec84e41b9fb0bd1532e9ee9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29921572', 'ctest-vn-97474385'], 'port_security_enabled': True, 'description': ''}}
2025-05-22 02:01:50,160 - DEBUG - Response for create_subnet : {'subnet': {'id': '8baeb7b0-caa5-4f08-8564-45782c09c542', 'name': '', 'tenant_id': '03c53176aec84e41b9fb0bd1532e9ee9', 'network_id': '0ca80f2b-be5d-4780-b4d1-27e13e836d11', 'ip_version': 4, 'cidr': '187.243.136.192/26', 'allocation_pools': [{'start': '187.243.136.194', 'end': '187.243.136.254'}], 'gateway_ip': '187.243.136.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.243.136.194', 'tags': [], 'project_id': '03c53176aec84e41b9fb0bd1532e9ee9'}}
2025-05-22 02:01:50,177 - INFO - Created VN ctest-vn-97474385
2025-05-22 02:01:50,228 - DEBUG - VN ctest-vn-97474385 UUID is 0ca80f2b-be5d-4780-b4d1-27e13e836d11
2025-05-22 02:01:50,392 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-29921572:ctest-vn-75489772, 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-29921572:ctest-vn-97474385, 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-22 02:01:50,687 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2c06a33c-b98c-445f-84f1-3ccf43b217ae', 'name': 'ctest-vn-75489772', 'tenant_id': '03c53176aec84e41b9fb0bd1532e9ee9', 'project_id': '03c53176aec84e41b9fb0bd1532e9ee9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['008207c1-0885-429c-9006-2f144f918039'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29921572', 'ctest-vn-75489772'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29921572', 'ctest-policy-allow-all-77284463']], 'subnet_ipam': [{'subnet_cidr': '204.141.201.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-22 02:01:50,918 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0ca80f2b-be5d-4780-b4d1-27e13e836d11', 'name': 'ctest-vn-97474385', 'tenant_id': '03c53176aec84e41b9fb0bd1532e9ee9', 'project_id': '03c53176aec84e41b9fb0bd1532e9ee9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8baeb7b0-caa5-4f08-8564-45782c09c542'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-29921572', 'ctest-vn-97474385'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-29921572', 'ctest-policy-allow-all-77284463']], 'subnet_ipam': [{'subnet_cidr': '187.243.136.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-05-22 02:01:51,084 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-05-22 02:01:51,372 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-05-22 02:01:51,399 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d3cc741d-7aa3-42d4-a842-22d10b57c327
2025-05-22 02:01:51,412 - DEBUG - Requesting: http://10.0.0.27:8082/project/03c53176-aec8-4e41-b9fb-0bd1532e9ee9
2025-05-22 02:01:51,484 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2c06a33c-b98c-445f-84f1-3ccf43b217ae
2025-05-22 02:01:51,494 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2c06a33c-b98c-445f-84f1-3ccf43b217ae
2025-05-22 02:01:51,504 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2242d171-9dc8-4448-ab61-85d16433bd78
2025-05-22 02:01:51,512 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2242d171-9dc8-4448-ab61-85d16433bd78
2025-05-22 02:01:51,519 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c9b59301-4a65-40b1-a2ca-df92dd54dbba
2025-05-22 02:01:51,526 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-22 02:01:51,526 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2c06a33c-b98c-445f-84f1-3ccf43b217ae
2025-05-22 02:01:51,536 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2242d171-9dc8-4448-ab61-85d16433bd78
2025-05-22 02:01:51,549 - INFO - Verified VN network id 8 for VN 2c06a33c-b98c-445f-84f1-3ccf43b217ae
2025-05-22 02:01:51,549 - INFO - Verifications in API Server for VN ctest-vn-75489772 passed
2025-05-22 02:01:51,549 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2c06a33c-b98c-445f-84f1-3ccf43b217ae
2025-05-22 02:01:51,559 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2242d171-9dc8-4448-ab61-85d16433bd78
2025-05-22 02:01:51,566 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/2242d171-9dc8-4448-ab61-85d16433bd78
2025-05-22 02:01:51,573 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/c9b59301-4a65-40b1-a2ca-df92dd54dbba
2025-05-22 02:01:51,585 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29921572:ctest-vn-75489772', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29921572', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3172402468735435871', 'uuid-lslong': '9579504743285397422'}, 'enable': 'true', 'created': '2025-05-22T02:01:49', 'last-modified': '2025-05-22T02:01:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.920237'}
2025-05-22 02:01:51,591 - DEBUG - Route Targets: ['target:64512:8000005']
2025-05-22 02:01:51,592 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-75489772 passed
2025-05-22 02:01:51,592 - DEBUG - ====Verifying policy data for ctest-vn-75489772 in API_Server ======
2025-05-22 02:01:51,592 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-05-22 02:01:51,597 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d3cc741d-7aa3-42d4-a842-22d10b57c327
2025-05-22 02:01:51,607 - DEBUG - Requesting: http://10.0.0.27:8082/project/03c53176-aec8-4e41-b9fb-0bd1532e9ee9
2025-05-22 02:01:51,677 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/2c06a33c-b98c-445f-84f1-3ccf43b217ae
2025-05-22 02:01:51,686 - DEBUG - ==>Verifying data for policy with id: bd48b637-bf22-4e72-a8b9-28651f83a91b, fqn: ['default-domain', 'ctest-TestBasicPolicy-29921572', 'ctest-policy-allow-all-77284463']
2025-05-22 02:01:51,686 - INFO - VN ctest-vn-75489772 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-22 02:01:51,686 - DEBUG - Verifying the vn in opserver
2025-05-22 02:01:51,686 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29921572:ctest-vn-75489772 virtual network link through opserver 10.0.0.27
2025-05-22 02:01:51,687 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-05-22 02:01:51,974 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-05-22 02:01:52,027 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29921572:ctest-vn-75489772', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29921572:ctest-vn-75489772?flat'}
2025-05-22 02:01:52,027 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29921572:ctest-vn-75489772 is found in opserver
2025-05-22 02:01:52,039 - DEBUG - Do not have enough data to verify VN in agent
2025-05-22 02:01:52,045 - DEBUG - VRF ids for VN ctest-vn-75489772: {}
2025-05-22 02:01:52,045 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-05-22 02:01:52,050 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d3cc741d-7aa3-42d4-a842-22d10b57c327
2025-05-22 02:01:52,061 - DEBUG - Requesting: http://10.0.0.27:8082/project/03c53176-aec8-4e41-b9fb-0bd1532e9ee9
2025-05-22 02:01:52,133 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0ca80f2b-be5d-4780-b4d1-27e13e836d11
2025-05-22 02:01:52,145 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0ca80f2b-be5d-4780-b4d1-27e13e836d11
2025-05-22 02:01:52,154 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/581c1f71-d572-492d-b16e-f2afb188c803
2025-05-22 02:01:52,161 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/581c1f71-d572-492d-b16e-f2afb188c803
2025-05-22 02:01:52,168 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/17da32b6-e0cc-4017-9314-70bc046d1f16
2025-05-22 02:01:52,174 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-22 02:01:52,174 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0ca80f2b-be5d-4780-b4d1-27e13e836d11
2025-05-22 02:01:52,183 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/581c1f71-d572-492d-b16e-f2afb188c803
2025-05-22 02:01:52,197 - INFO - Verified VN network id 9 for VN 0ca80f2b-be5d-4780-b4d1-27e13e836d11
2025-05-22 02:01:52,197 - INFO - Verifications in API Server for VN ctest-vn-97474385 passed
2025-05-22 02:01:52,197 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0ca80f2b-be5d-4780-b4d1-27e13e836d11
2025-05-22 02:01:52,206 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/581c1f71-d572-492d-b16e-f2afb188c803
2025-05-22 02:01:52,213 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/581c1f71-d572-492d-b16e-f2afb188c803
2025-05-22 02:01:52,219 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/17da32b6-e0cc-4017-9314-70bc046d1f16
2025-05-22 02:01:52,230 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-29921572:ctest-vn-97474385', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-29921572', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '911995605094320000', 'uuid-lslong': '13029239045329480977'}, 'enable': 'true', 'created': '2025-05-22T02:01:49', 'last-modified': '2025-05-22T02:01:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.337293'}
2025-05-22 02:01:52,236 - DEBUG - Route Targets: ['target:64512:8000006']
2025-05-22 02:01:52,236 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97474385 passed
2025-05-22 02:01:52,236 - DEBUG - ====Verifying policy data for ctest-vn-97474385 in API_Server ======
2025-05-22 02:01:52,236 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-05-22 02:01:52,241 - DEBUG - Requesting: http://10.0.0.27:8082/domain/d3cc741d-7aa3-42d4-a842-22d10b57c327
2025-05-22 02:01:52,251 - DEBUG - Requesting: http://10.0.0.27:8082/project/03c53176-aec8-4e41-b9fb-0bd1532e9ee9
2025-05-22 02:01:52,321 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/0ca80f2b-be5d-4780-b4d1-27e13e836d11
2025-05-22 02:01:52,331 - DEBUG - ==>Verifying data for policy with id: bd48b637-bf22-4e72-a8b9-28651f83a91b, fqn: ['default-domain', 'ctest-TestBasicPolicy-29921572', 'ctest-policy-allow-all-77284463']
2025-05-22 02:01:52,331 - INFO - VN ctest-vn-97474385 Policy verification: verify_vn_policy_in_api_server, status: True
2025-05-22 02:01:52,331 - DEBUG - Verifying the vn in opserver
2025-05-22 02:01:52,331 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-29921572:ctest-vn-97474385 virtual network link through opserver 10.0.0.27
2025-05-22 02:01:52,331 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-05-22 02:01:52,341 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-29921572:ctest-vn-97474385', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-29921572:ctest-vn-97474385?flat'}
2025-05-22 02:01:52,341 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-29921572:ctest-vn-97474385 is found in opserver
2025-05-22 02:01:52,352 - DEBUG - Do not have enough data to verify VN in agent
2025-05-22 02:01:52,357 - DEBUG - VRF ids for VN ctest-vn-97474385: {}
2025-05-22 02:01:52,410 - DEBUG - Services list from nova: [