2025-08-15 08:46:54,919 - INFO - Domain Default found not creating
2025-08-15 08:46:55,066 - INFO - Project ctest-TestBasicPolicy-67579925 not found, creating it
2025-08-15 08:46:55,861 - INFO - Created Project:ctest-TestBasicPolicy-67579925, ID : d240c05b-6090-4710-a5e6-da9b0705fc93
2025-08-15 08:46:57,511 - INFO - ================================================================================
2025-08-15 08:46:57,511 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-08-15 08:46:57,511 - 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:46:57,768 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.14': '0'}} with
2025-08-15 08:46:57,768 - INFO - Initial checks done. Running the testcase now
2025-08-15 08:46:57,768 - INFO -
2025-08-15 08:46:58,350 - DEBUG - Response for create_network : {'network': {'id': '6011d653-76ce-410c-aa05-12dbbaa3e479', 'name': 'ctest-vn-40886292', 'tenant_id': 'd240c05b60904710a5e6da9b0705fc93', 'project_id': 'd240c05b60904710a5e6da9b0705fc93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67579925', 'ctest-vn-40886292'], 'port_security_enabled': True, 'description': ''}}
2025-08-15 08:46:58,540 - DEBUG - Response for create_subnet : {'subnet': {'id': 'acdae092-9139-4dbe-9169-c7667681c508', 'name': '', 'tenant_id': 'd240c05b60904710a5e6da9b0705fc93', 'network_id': '6011d653-76ce-410c-aa05-12dbbaa3e479', 'ip_version': 4, 'cidr': '75.209.45.192/26', 'allocation_pools': [{'start': '75.209.45.194', 'end': '75.209.45.254'}], 'gateway_ip': '75.209.45.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '75.209.45.194', 'tags': [], 'project_id': 'd240c05b60904710a5e6da9b0705fc93'}}
2025-08-15 08:46:58,557 - INFO - Created VN ctest-vn-40886292
2025-08-15 08:46:58,609 - DEBUG - VN ctest-vn-40886292 UUID is 6011d653-76ce-410c-aa05-12dbbaa3e479
2025-08-15 08:46:58,932 - DEBUG - Response for create_network : {'network': {'id': '0a7c908a-4e22-41a4-993f-20806b652a01', 'name': 'ctest-vn-33476537', 'tenant_id': 'd240c05b60904710a5e6da9b0705fc93', 'project_id': 'd240c05b60904710a5e6da9b0705fc93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67579925', 'ctest-vn-33476537'], 'port_security_enabled': True, 'description': ''}}
2025-08-15 08:46:59,126 - DEBUG - Response for create_subnet : {'subnet': {'id': '18b5a429-e8d1-4df6-80fd-b7e0e09877d2', 'name': '', 'tenant_id': 'd240c05b60904710a5e6da9b0705fc93', 'network_id': '0a7c908a-4e22-41a4-993f-20806b652a01', 'ip_version': 4, 'cidr': '174.30.183.0/26', 'allocation_pools': [{'start': '174.30.183.2', 'end': '174.30.183.62'}], 'gateway_ip': '174.30.183.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '174.30.183.2', 'tags': [], 'project_id': 'd240c05b60904710a5e6da9b0705fc93'}}
2025-08-15 08:46:59,144 - INFO - Created VN ctest-vn-33476537
2025-08-15 08:46:59,197 - DEBUG - VN ctest-vn-33476537 UUID is 0a7c908a-4e22-41a4-993f-20806b652a01
2025-08-15 08:46:59,349 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-67579925:ctest-vn-40886292, 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-67579925:ctest-vn-33476537, 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:46:59,637 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '6011d653-76ce-410c-aa05-12dbbaa3e479', 'name': 'ctest-vn-40886292', 'tenant_id': 'd240c05b60904710a5e6da9b0705fc93', 'project_id': 'd240c05b60904710a5e6da9b0705fc93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['acdae092-9139-4dbe-9169-c7667681c508'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67579925', 'ctest-vn-40886292'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67579925', 'ctest-policy-allow-all-00591905']], 'subnet_ipam': [{'subnet_cidr': '75.209.45.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-15 08:46:59,908 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0a7c908a-4e22-41a4-993f-20806b652a01', 'name': 'ctest-vn-33476537', 'tenant_id': 'd240c05b60904710a5e6da9b0705fc93', 'project_id': 'd240c05b60904710a5e6da9b0705fc93', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['18b5a429-e8d1-4df6-80fd-b7e0e09877d2'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-67579925', 'ctest-vn-33476537'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-67579925', 'ctest-policy-allow-all-00591905']], 'subnet_ipam': [{'subnet_cidr': '174.30.183.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-08-15 08:47:00,057 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 08:47:00,390 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 08:47:00,417 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8c49aed2-8c45-4d24-b617-0573a15ad76e
2025-08-15 08:47:00,430 - DEBUG - Requesting: http://10.0.0.254:8082/project/d240c05b-6090-4710-a5e6-da9b0705fc93
2025-08-15 08:47:00,505 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6011d653-76ce-410c-aa05-12dbbaa3e479
2025-08-15 08:47:00,516 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6011d653-76ce-410c-aa05-12dbbaa3e479
2025-08-15 08:47:00,525 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fb3f324d-76d8-44eb-abce-017b57f58cfd
2025-08-15 08:47:00,532 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fb3f324d-76d8-44eb-abce-017b57f58cfd
2025-08-15 08:47:00,539 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e1252615-a1cd-44dd-8048-80235daf36ba
2025-08-15 08:47:00,545 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-15 08:47:00,545 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6011d653-76ce-410c-aa05-12dbbaa3e479
2025-08-15 08:47:00,554 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fb3f324d-76d8-44eb-abce-017b57f58cfd
2025-08-15 08:47:00,568 - INFO - Verified VN network id 9 for VN 6011d653-76ce-410c-aa05-12dbbaa3e479
2025-08-15 08:47:00,568 - INFO - Verifications in API Server for VN ctest-vn-40886292 passed
2025-08-15 08:47:00,568 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6011d653-76ce-410c-aa05-12dbbaa3e479
2025-08-15 08:47:00,577 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fb3f324d-76d8-44eb-abce-017b57f58cfd
2025-08-15 08:47:00,585 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/fb3f324d-76d8-44eb-abce-017b57f58cfd
2025-08-15 08:47:00,592 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/e1252615-a1cd-44dd-8048-80235daf36ba
2025-08-15 08:47:00,604 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67579925:ctest-vn-40886292', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67579925', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6922549756209021196', 'uuid-lslong': '12251219096269743225'}, 'enable': 'true', 'created': '2025-08-15T08:46:58', 'last-modified': '2025-08-15T08:46:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.990459'}
2025-08-15 08:47:00,611 - DEBUG - Route Targets: ['target:64512:8000005']
2025-08-15 08:47:00,611 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40886292 passed
2025-08-15 08:47:00,611 - DEBUG - ====Verifying policy data for ctest-vn-40886292 in API_Server ======
2025-08-15 08:47:00,611 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 08:47:00,617 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8c49aed2-8c45-4d24-b617-0573a15ad76e
2025-08-15 08:47:00,630 - DEBUG - Requesting: http://10.0.0.254:8082/project/d240c05b-6090-4710-a5e6-da9b0705fc93
2025-08-15 08:47:00,705 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/6011d653-76ce-410c-aa05-12dbbaa3e479
2025-08-15 08:47:00,716 - DEBUG - ==>Verifying data for policy with id: 6f126a20-3773-44c0-9cdd-9759b0f32c1b, fqn: ['default-domain', 'ctest-TestBasicPolicy-67579925', 'ctest-policy-allow-all-00591905']
2025-08-15 08:47:00,716 - INFO - VN ctest-vn-40886292 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-15 08:47:00,716 - DEBUG - Verifying the vn in opserver
2025-08-15 08:47:00,716 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67579925:ctest-vn-40886292 virtual network link through opserver 10.0.0.254
2025-08-15 08:47:00,716 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-15 08:47:01,279 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-15 08:47:01,349 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67579925:ctest-vn-40886292', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67579925:ctest-vn-40886292?flat'}
2025-08-15 08:47:01,349 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67579925:ctest-vn-40886292 is found in opserver
2025-08-15 08:47:01,361 - DEBUG - Do not have enough data to verify VN in agent
2025-08-15 08:47:01,366 - DEBUG - VRF ids for VN ctest-vn-40886292: {}
2025-08-15 08:47:01,366 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 08:47:01,371 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8c49aed2-8c45-4d24-b617-0573a15ad76e
2025-08-15 08:47:01,383 - DEBUG - Requesting: http://10.0.0.254:8082/project/d240c05b-6090-4710-a5e6-da9b0705fc93
2025-08-15 08:47:01,459 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0a7c908a-4e22-41a4-993f-20806b652a01
2025-08-15 08:47:01,472 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0a7c908a-4e22-41a4-993f-20806b652a01
2025-08-15 08:47:01,482 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e7aab052-fe25-4473-85eb-fad9d0e47c58
2025-08-15 08:47:01,489 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e7aab052-fe25-4473-85eb-fad9d0e47c58
2025-08-15 08:47:01,495 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0655bfe9-b5ec-475c-8de9-3642129f6af3
2025-08-15 08:47:01,501 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-15 08:47:01,501 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0a7c908a-4e22-41a4-993f-20806b652a01
2025-08-15 08:47:01,511 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e7aab052-fe25-4473-85eb-fad9d0e47c58
2025-08-15 08:47:01,524 - INFO - Verified VN network id 10 for VN 0a7c908a-4e22-41a4-993f-20806b652a01
2025-08-15 08:47:01,524 - INFO - Verifications in API Server for VN ctest-vn-33476537 passed
2025-08-15 08:47:01,524 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0a7c908a-4e22-41a4-993f-20806b652a01
2025-08-15 08:47:01,533 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e7aab052-fe25-4473-85eb-fad9d0e47c58
2025-08-15 08:47:01,540 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/e7aab052-fe25-4473-85eb-fad9d0e47c58
2025-08-15 08:47:01,546 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/0655bfe9-b5ec-475c-8de9-3642129f6af3
2025-08-15 08:47:01,558 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-67579925:ctest-vn-33476537', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-67579925', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '755637761182155172', 'uuid-lslong': '11042580547265440257'}, 'enable': 'true', 'created': '2025-08-15T08:46:58', 'last-modified': '2025-08-15T08:46:59', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.717487'}
2025-08-15 08:47:01,564 - DEBUG - Route Targets: ['target:64512:8000006']
2025-08-15 08:47:01,564 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33476537 passed
2025-08-15 08:47:01,565 - DEBUG - ====Verifying policy data for ctest-vn-33476537 in API_Server ======
2025-08-15 08:47:01,565 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-08-15 08:47:01,570 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8c49aed2-8c45-4d24-b617-0573a15ad76e
2025-08-15 08:47:01,581 - DEBUG - Requesting: http://10.0.0.254:8082/project/d240c05b-6090-4710-a5e6-da9b0705fc93
2025-08-15 08:47:01,655 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0a7c908a-4e22-41a4-993f-20806b652a01
2025-08-15 08:47:01,667 - DEBUG - ==>Verifying data for policy with id: 6f126a20-3773-44c0-9cdd-9759b0f32c1b, fqn: ['default-domain', 'ctest-TestBasicPolicy-67579925', 'ctest-policy-allow-all-00591905']
2025-08-15 08:47:01,667 - INFO - VN ctest-vn-33476537 Policy verification: verify_vn_policy_in_api_server, status: True
2025-08-15 08:47:01,667 - DEBUG - Verifying the vn in opserver
2025-08-15 08:47:01,667 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-67579925:ctest-vn-33476537 virtual network link through opserver 10.0.0.254
2025-08-15 08:47:01,667 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-08-15 08:47:01,683 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-67579925:ctest-vn-33476537', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-67579925:ctest-vn-33476537?flat'}
2025-08-15 08:47:01,683 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-67579925:ctest-vn-33476537 is found in opserver
2025-08-15 08:47:01,695 - DEBUG - Do not have enough data to verify VN in agent
2025-08-15 08:47:01,700 - DEBUG - VRF ids for VN ctest-vn-33476537: {}
2025-08-15 08:47:01,756 - DEBUG - Services list from nova: [