2025-06-10 13:12:58,574 - INFO - Domain Default found not creating
2025-06-10 13:12:58,723 - INFO - Project ctest-TestBasicPolicy-85520711 not found, creating it
2025-06-10 13:12:59,226 - INFO - Created Project:ctest-TestBasicPolicy-85520711, ID : 4f8dbe4d-e197-4df6-ae3d-9edbd46cdef9
2025-06-10 13:13:00,855 - INFO - ================================================================================
2025-06-10 13:13:00,855 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-10 13:13:00,856 - 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-06-10 13:13:01,114 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-10 13:13:01,114 - INFO - Initial checks done. Running the testcase now
2025-06-10 13:13:01,114 - INFO -
2025-06-10 13:13:01,718 - DEBUG - Response for create_network : {'network': {'id': '37b32f97-85f4-4dda-ba7a-907085493d92', 'name': 'ctest-vn-06571234', 'tenant_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'project_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85520711', 'ctest-vn-06571234'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 13:13:01,917 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff45e75f-4371-4ab3-aaa8-a17a09ddb431', 'name': '', 'tenant_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'network_id': '37b32f97-85f4-4dda-ba7a-907085493d92', 'ip_version': 4, 'cidr': '128.76.31.0/26', 'allocation_pools': [{'start': '128.76.31.2', 'end': '128.76.31.62'}], 'gateway_ip': '128.76.31.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '128.76.31.2', 'tags': [], 'project_id': '4f8dbe4de1974df6ae3d9edbd46cdef9'}}
2025-06-10 13:13:01,937 - INFO - Created VN ctest-vn-06571234
2025-06-10 13:13:01,991 - DEBUG - VN ctest-vn-06571234 UUID is 37b32f97-85f4-4dda-ba7a-907085493d92
2025-06-10 13:13:02,307 - DEBUG - Response for create_network : {'network': {'id': '6dcfe08a-621d-4cfa-942c-a083ba846620', 'name': 'ctest-vn-35406288', 'tenant_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'project_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85520711', 'ctest-vn-35406288'], 'port_security_enabled': True, 'description': ''}}
2025-06-10 13:13:02,518 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c98e98fd-1bf9-4e9e-b271-fbef8d55cf5e', 'name': '', 'tenant_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'network_id': '6dcfe08a-621d-4cfa-942c-a083ba846620', 'ip_version': 4, 'cidr': '171.194.192.192/26', 'allocation_pools': [{'start': '171.194.192.194', 'end': '171.194.192.254'}], 'gateway_ip': '171.194.192.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '171.194.192.194', 'tags': [], 'project_id': '4f8dbe4de1974df6ae3d9edbd46cdef9'}}
2025-06-10 13:13:02,540 - INFO - Created VN ctest-vn-35406288
2025-06-10 13:13:02,595 - DEBUG - VN ctest-vn-35406288 UUID is 6dcfe08a-621d-4cfa-942c-a083ba846620
2025-06-10 13:13:02,720 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-06571234, 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-85520711:ctest-vn-35406288, 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-06-10 13:13:03,061 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '37b32f97-85f4-4dda-ba7a-907085493d92', 'name': 'ctest-vn-06571234', 'tenant_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'project_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff45e75f-4371-4ab3-aaa8-a17a09ddb431'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85520711', 'ctest-vn-06571234'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85520711', 'ctest-policy-allow-all-37090000']], 'subnet_ipam': [{'subnet_cidr': '128.76.31.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 13:13:03,335 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6dcfe08a-621d-4cfa-942c-a083ba846620', 'name': 'ctest-vn-35406288', 'tenant_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'project_id': '4f8dbe4de1974df6ae3d9edbd46cdef9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c98e98fd-1bf9-4e9e-b271-fbef8d55cf5e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-85520711', 'ctest-vn-35406288'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-85520711', 'ctest-policy-allow-all-37090000']], 'subnet_ipam': [{'subnet_cidr': '171.194.192.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-10 13:13:03,519 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-10 13:13:03,859 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-10 13:13:03,889 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60adc279-be8b-4f31-91b1-e24994aa419d
2025-06-10 13:13:03,908 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f8dbe4d-e197-4df6-ae3d-9edbd46cdef9
2025-06-10 13:13:03,993 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37b32f97-85f4-4dda-ba7a-907085493d92
2025-06-10 13:13:04,009 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37b32f97-85f4-4dda-ba7a-907085493d92
2025-06-10 13:13:04,024 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f9f20a3-3b92-4389-83d8-cfbe34e836ec
2025-06-10 13:13:04,033 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f9f20a3-3b92-4389-83d8-cfbe34e836ec
2025-06-10 13:13:04,041 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b1800052-ce7b-4856-b2ad-38f59ed62ace
2025-06-10 13:13:04,048 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 13:13:04,048 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37b32f97-85f4-4dda-ba7a-907085493d92
2025-06-10 13:13:04,059 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f9f20a3-3b92-4389-83d8-cfbe34e836ec
2025-06-10 13:13:04,075 - INFO - Verified VN network id 9 for VN 37b32f97-85f4-4dda-ba7a-907085493d92
2025-06-10 13:13:04,076 - INFO - Verifications in API Server for VN ctest-vn-06571234 passed
2025-06-10 13:13:04,076 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37b32f97-85f4-4dda-ba7a-907085493d92
2025-06-10 13:13:04,086 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f9f20a3-3b92-4389-83d8-cfbe34e836ec
2025-06-10 13:13:04,094 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/2f9f20a3-3b92-4389-83d8-cfbe34e836ec
2025-06-10 13:13:04,105 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b1800052-ce7b-4856-b2ad-38f59ed62ace
2025-06-10 13:13:04,126 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-06571234', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85520711', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4013604020751191514', 'uuid-lslong': '13437211251160202642'}, 'enable': 'true', 'created': '2025-06-10T13:13:01', 'last-modified': '2025-06-10T13:13:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.097078'}
2025-06-10 13:13:04,134 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-10 13:13:04,135 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-06571234 passed
2025-06-10 13:13:04,135 - DEBUG - ====Verifying policy data for ctest-vn-06571234 in API_Server ======
2025-06-10 13:13:04,135 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-10 13:13:04,141 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60adc279-be8b-4f31-91b1-e24994aa419d
2025-06-10 13:13:04,154 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f8dbe4d-e197-4df6-ae3d-9edbd46cdef9
2025-06-10 13:13:04,227 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/37b32f97-85f4-4dda-ba7a-907085493d92
2025-06-10 13:13:04,238 - DEBUG - ==>Verifying data for policy with id: 68e03c89-0b90-4e78-84c6-19390199cc19, fqn: ['default-domain', 'ctest-TestBasicPolicy-85520711', 'ctest-policy-allow-all-37090000']
2025-06-10 13:13:04,239 - INFO - VN ctest-vn-06571234 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 13:13:04,239 - DEBUG - Verifying the vn in opserver
2025-06-10 13:13:04,239 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-06571234 virtual network link through opserver 10.0.0.38
2025-06-10 13:13:04,239 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-10 13:13:04,574 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-10 13:13:04,634 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-06571234', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-06571234?flat'}
2025-06-10 13:13:04,634 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-06571234 is found in opserver
2025-06-10 13:13:04,646 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 13:13:04,652 - DEBUG - VRF ids for VN ctest-vn-06571234: {}
2025-06-10 13:13:04,652 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-10 13:13:04,658 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60adc279-be8b-4f31-91b1-e24994aa419d
2025-06-10 13:13:04,671 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f8dbe4d-e197-4df6-ae3d-9edbd46cdef9
2025-06-10 13:13:04,742 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6dcfe08a-621d-4cfa-942c-a083ba846620
2025-06-10 13:13:04,755 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6dcfe08a-621d-4cfa-942c-a083ba846620
2025-06-10 13:13:04,765 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49c72bf3-165b-419a-a932-4182e2d65131
2025-06-10 13:13:04,774 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49c72bf3-165b-419a-a932-4182e2d65131
2025-06-10 13:13:04,784 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c13a77a3-f717-4ed7-936c-61c37ba0f2b5
2025-06-10 13:13:04,792 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 13:13:04,792 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6dcfe08a-621d-4cfa-942c-a083ba846620
2025-06-10 13:13:04,804 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49c72bf3-165b-419a-a932-4182e2d65131
2025-06-10 13:13:04,820 - INFO - Verified VN network id 10 for VN 6dcfe08a-621d-4cfa-942c-a083ba846620
2025-06-10 13:13:04,820 - INFO - Verifications in API Server for VN ctest-vn-35406288 passed
2025-06-10 13:13:04,820 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6dcfe08a-621d-4cfa-942c-a083ba846620
2025-06-10 13:13:04,830 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49c72bf3-165b-419a-a932-4182e2d65131
2025-06-10 13:13:04,838 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/49c72bf3-165b-419a-a932-4182e2d65131
2025-06-10 13:13:04,847 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/c13a77a3-f717-4ed7-936c-61c37ba0f2b5
2025-06-10 13:13:04,863 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-35406288', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-85520711', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7912789955269446906', 'uuid-lslong': '10677085304219002400'}, 'enable': 'true', 'created': '2025-06-10T13:13:02', 'last-modified': '2025-06-10T13:13:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.552069'}
2025-06-10 13:13:04,871 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-10 13:13:04,871 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-35406288 passed
2025-06-10 13:13:04,871 - DEBUG - ====Verifying policy data for ctest-vn-35406288 in API_Server ======
2025-06-10 13:13:04,872 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-10 13:13:04,879 - DEBUG - Requesting: http://10.0.0.38:8082/domain/60adc279-be8b-4f31-91b1-e24994aa419d
2025-06-10 13:13:04,894 - DEBUG - Requesting: http://10.0.0.38:8082/project/4f8dbe4d-e197-4df6-ae3d-9edbd46cdef9
2025-06-10 13:13:04,970 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/6dcfe08a-621d-4cfa-942c-a083ba846620
2025-06-10 13:13:04,982 - DEBUG - ==>Verifying data for policy with id: 68e03c89-0b90-4e78-84c6-19390199cc19, fqn: ['default-domain', 'ctest-TestBasicPolicy-85520711', 'ctest-policy-allow-all-37090000']
2025-06-10 13:13:04,982 - INFO - VN ctest-vn-35406288 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-10 13:13:04,982 - DEBUG - Verifying the vn in opserver
2025-06-10 13:13:04,982 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-35406288 virtual network link through opserver 10.0.0.38
2025-06-10 13:13:04,982 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-10 13:13:04,994 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-35406288', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-35406288?flat'}
2025-06-10 13:13:04,994 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-85520711:ctest-vn-35406288 is found in opserver
2025-06-10 13:13:05,006 - DEBUG - Do not have enough data to verify VN in agent
2025-06-10 13:13:05,013 - DEBUG - VRF ids for VN ctest-vn-35406288: {}
2025-06-10 13:13:05,077 - DEBUG - Services list from nova: [