2025-09-23 05:57:53,879 - INFO - Domain Default found not creating
2025-09-23 05:57:54,009 - INFO - Project ctest-TestBasicPolicy-10619834 not found, creating it
2025-09-23 05:57:54,420 - INFO - Created Project:ctest-TestBasicPolicy-10619834, ID : 0c9924a9-a2a8-4e79-8548-67d197b30094
2025-09-23 05:57:55,763 - INFO - ================================================================================
2025-09-23 05:57:55,763 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-23 05:57:55,764 - 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-09-23 05:57:56,018 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.17': '0'}} with
2025-09-23 05:57:56,018 - INFO - Initial checks done. Running the testcase now
2025-09-23 05:57:56,018 - INFO -
2025-09-23 05:57:56,537 - DEBUG - Response for create_network : {'network': {'id': '9d3fcd92-7d60-4757-ab07-869c8dc0f35a', 'name': 'ctest-vn-85282037', 'tenant_id': '0c9924a9a2a84e79854867d197b30094', 'project_id': '0c9924a9a2a84e79854867d197b30094', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10619834', 'ctest-vn-85282037'], 'port_security_enabled': True, 'description': ''}}
2025-09-23 05:57:56,700 - DEBUG - Response for create_subnet : {'subnet': {'id': '7d512186-0d11-440d-ac20-5c7ed5bd6026', 'name': '', 'tenant_id': '0c9924a9a2a84e79854867d197b30094', 'network_id': '9d3fcd92-7d60-4757-ab07-869c8dc0f35a', 'ip_version': 4, 'cidr': '73.13.110.64/26', 'allocation_pools': [{'start': '73.13.110.66', 'end': '73.13.110.126'}], 'gateway_ip': '73.13.110.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '73.13.110.66', 'tags': [], 'project_id': '0c9924a9a2a84e79854867d197b30094'}}
2025-09-23 05:57:56,720 - INFO - Created VN ctest-vn-85282037
2025-09-23 05:57:56,773 - DEBUG - VN ctest-vn-85282037 UUID is 9d3fcd92-7d60-4757-ab07-869c8dc0f35a
2025-09-23 05:57:57,100 - DEBUG - Response for create_network : {'network': {'id': 'de719831-cb6b-437b-9479-b92b9ad92f9d', 'name': 'ctest-vn-55459266', 'tenant_id': '0c9924a9a2a84e79854867d197b30094', 'project_id': '0c9924a9a2a84e79854867d197b30094', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10619834', 'ctest-vn-55459266'], 'port_security_enabled': True, 'description': ''}}
2025-09-23 05:57:57,296 - DEBUG - Response for create_subnet : {'subnet': {'id': '1b11c7a9-dd4f-4bff-b384-e4768799473f', 'name': '', 'tenant_id': '0c9924a9a2a84e79854867d197b30094', 'network_id': 'de719831-cb6b-437b-9479-b92b9ad92f9d', 'ip_version': 4, 'cidr': '112.59.157.64/26', 'allocation_pools': [{'start': '112.59.157.66', 'end': '112.59.157.126'}], 'gateway_ip': '112.59.157.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '112.59.157.66', 'tags': [], 'project_id': '0c9924a9a2a84e79854867d197b30094'}}
2025-09-23 05:57:57,315 - INFO - Created VN ctest-vn-55459266
2025-09-23 05:57:57,365 - DEBUG - VN ctest-vn-55459266 UUID is de719831-cb6b-437b-9479-b92b9ad92f9d
2025-09-23 05:57:57,509 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-10619834:ctest-vn-85282037, 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-10619834:ctest-vn-55459266, 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-09-23 05:57:57,787 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9d3fcd92-7d60-4757-ab07-869c8dc0f35a', 'name': 'ctest-vn-85282037', 'tenant_id': '0c9924a9a2a84e79854867d197b30094', 'project_id': '0c9924a9a2a84e79854867d197b30094', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['7d512186-0d11-440d-ac20-5c7ed5bd6026'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10619834', 'ctest-vn-85282037'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10619834', 'ctest-policy-allow-all-41630768']], 'subnet_ipam': [{'subnet_cidr': '73.13.110.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-23 05:57:58,047 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'de719831-cb6b-437b-9479-b92b9ad92f9d', 'name': 'ctest-vn-55459266', 'tenant_id': '0c9924a9a2a84e79854867d197b30094', 'project_id': '0c9924a9a2a84e79854867d197b30094', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1b11c7a9-dd4f-4bff-b384-e4768799473f'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-10619834', 'ctest-vn-55459266'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-10619834', 'ctest-policy-allow-all-41630768']], 'subnet_ipam': [{'subnet_cidr': '112.59.157.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-23 05:57:58,193 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-23 05:57:58,500 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-23 05:57:58,525 - DEBUG - Requesting: http://10.0.0.49:8082/domain/f691a285-fd0a-404c-a64a-98dbb009cbe3
2025-09-23 05:57:58,537 - DEBUG - Requesting: http://10.0.0.49:8082/project/0c9924a9-a2a8-4e79-8548-67d197b30094
2025-09-23 05:57:58,610 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9d3fcd92-7d60-4757-ab07-869c8dc0f35a
2025-09-23 05:57:58,621 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9d3fcd92-7d60-4757-ab07-869c8dc0f35a
2025-09-23 05:57:58,629 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/1a86a360-4fb8-4698-82c7-472d5f1d791a
2025-09-23 05:57:58,636 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/1a86a360-4fb8-4698-82c7-472d5f1d791a
2025-09-23 05:57:58,644 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/281c51a6-0c61-4390-a456-d13a82e1f443
2025-09-23 05:57:58,649 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-23 05:57:58,649 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9d3fcd92-7d60-4757-ab07-869c8dc0f35a
2025-09-23 05:57:58,658 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/1a86a360-4fb8-4698-82c7-472d5f1d791a
2025-09-23 05:57:58,671 - INFO - Verified VN network id 9 for VN 9d3fcd92-7d60-4757-ab07-869c8dc0f35a
2025-09-23 05:57:58,671 - INFO - Verifications in API Server for VN ctest-vn-85282037 passed
2025-09-23 05:57:58,672 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9d3fcd92-7d60-4757-ab07-869c8dc0f35a
2025-09-23 05:57:58,681 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/1a86a360-4fb8-4698-82c7-472d5f1d791a
2025-09-23 05:57:58,689 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/1a86a360-4fb8-4698-82c7-472d5f1d791a
2025-09-23 05:57:58,697 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/281c51a6-0c61-4390-a456-d13a82e1f443
2025-09-23 05:57:58,710 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10619834:ctest-vn-85282037', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10619834', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11331001216539838295', 'uuid-lslong': '12323966912273904474'}, 'enable': 'true', 'created': '2025-09-23T05:57:56', 'last-modified': '2025-09-23T05:57:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.944840'}
2025-09-23 05:57:58,715 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-23 05:57:58,715 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-85282037 passed
2025-09-23 05:57:58,715 - DEBUG - ====Verifying policy data for ctest-vn-85282037 in API_Server ======
2025-09-23 05:57:58,715 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-23 05:57:58,720 - DEBUG - Requesting: http://10.0.0.49:8082/domain/f691a285-fd0a-404c-a64a-98dbb009cbe3
2025-09-23 05:57:58,731 - DEBUG - Requesting: http://10.0.0.49:8082/project/0c9924a9-a2a8-4e79-8548-67d197b30094
2025-09-23 05:57:58,797 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/9d3fcd92-7d60-4757-ab07-869c8dc0f35a
2025-09-23 05:57:58,806 - DEBUG - ==>Verifying data for policy with id: 8b17bee4-bba9-4d98-a9ec-7614e60cd722, fqn: ['default-domain', 'ctest-TestBasicPolicy-10619834', 'ctest-policy-allow-all-41630768']
2025-09-23 05:57:58,806 - INFO - VN ctest-vn-85282037 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-23 05:57:58,806 - DEBUG - Verifying the vn in opserver
2025-09-23 05:57:58,806 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10619834:ctest-vn-85282037 virtual network link through opserver 10.0.0.49
2025-09-23 05:57:58,806 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-09-23 05:57:59,101 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-09-23 05:57:59,152 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10619834:ctest-vn-85282037', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10619834:ctest-vn-85282037?flat'}
2025-09-23 05:57:59,152 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10619834:ctest-vn-85282037 is found in opserver
2025-09-23 05:57:59,160 - DEBUG - Do not have enough data to verify VN in agent
2025-09-23 05:57:59,165 - DEBUG - VRF ids for VN ctest-vn-85282037: {}
2025-09-23 05:57:59,165 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-23 05:57:59,170 - DEBUG - Requesting: http://10.0.0.49:8082/domain/f691a285-fd0a-404c-a64a-98dbb009cbe3
2025-09-23 05:57:59,181 - DEBUG - Requesting: http://10.0.0.49:8082/project/0c9924a9-a2a8-4e79-8548-67d197b30094
2025-09-23 05:57:59,250 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/de719831-cb6b-437b-9479-b92b9ad92f9d
2025-09-23 05:57:59,260 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/de719831-cb6b-437b-9479-b92b9ad92f9d
2025-09-23 05:57:59,269 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7a8288df-21ad-45ca-90a5-08213e3f6e29
2025-09-23 05:57:59,275 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7a8288df-21ad-45ca-90a5-08213e3f6e29
2025-09-23 05:57:59,281 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/625b8952-0bf5-44aa-83ec-62f571777dc4
2025-09-23 05:57:59,287 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-23 05:57:59,287 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/de719831-cb6b-437b-9479-b92b9ad92f9d
2025-09-23 05:57:59,295 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7a8288df-21ad-45ca-90a5-08213e3f6e29
2025-09-23 05:57:59,307 - INFO - Verified VN network id 10 for VN de719831-cb6b-437b-9479-b92b9ad92f9d
2025-09-23 05:57:59,307 - INFO - Verifications in API Server for VN ctest-vn-55459266 passed
2025-09-23 05:57:59,307 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/de719831-cb6b-437b-9479-b92b9ad92f9d
2025-09-23 05:57:59,316 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7a8288df-21ad-45ca-90a5-08213e3f6e29
2025-09-23 05:57:59,323 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/7a8288df-21ad-45ca-90a5-08213e3f6e29
2025-09-23 05:57:59,329 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/625b8952-0bf5-44aa-83ec-62f571777dc4
2025-09-23 05:57:59,340 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-10619834:ctest-vn-55459266', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-10619834', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16028759888421929851', 'uuid-lslong': '10698785986727980957'}, 'enable': 'true', 'created': '2025-09-23T05:57:57', 'last-modified': '2025-09-23T05:57:57', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.355808'}
2025-09-23 05:57:59,345 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-23 05:57:59,345 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55459266 passed
2025-09-23 05:57:59,346 - DEBUG - ====Verifying policy data for ctest-vn-55459266 in API_Server ======
2025-09-23 05:57:59,346 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-23 05:57:59,351 - DEBUG - Requesting: http://10.0.0.49:8082/domain/f691a285-fd0a-404c-a64a-98dbb009cbe3
2025-09-23 05:57:59,361 - DEBUG - Requesting: http://10.0.0.49:8082/project/0c9924a9-a2a8-4e79-8548-67d197b30094
2025-09-23 05:57:59,428 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/de719831-cb6b-437b-9479-b92b9ad92f9d
2025-09-23 05:57:59,436 - DEBUG - ==>Verifying data for policy with id: 8b17bee4-bba9-4d98-a9ec-7614e60cd722, fqn: ['default-domain', 'ctest-TestBasicPolicy-10619834', 'ctest-policy-allow-all-41630768']
2025-09-23 05:57:59,436 - INFO - VN ctest-vn-55459266 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-23 05:57:59,436 - DEBUG - Verifying the vn in opserver
2025-09-23 05:57:59,436 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-10619834:ctest-vn-55459266 virtual network link through opserver 10.0.0.49
2025-09-23 05:57:59,436 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-09-23 05:57:59,444 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-10619834:ctest-vn-55459266', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-10619834:ctest-vn-55459266?flat'}
2025-09-23 05:57:59,444 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-10619834:ctest-vn-55459266 is found in opserver
2025-09-23 05:57:59,454 - DEBUG - Do not have enough data to verify VN in agent
2025-09-23 05:57:59,458 - DEBUG - VRF ids for VN ctest-vn-55459266: {}
2025-09-23 05:57:59,513 - DEBUG - Services list from nova: [