2025-06-17 10:58:40,337 - INFO - Domain Default found not creating
2025-06-17 10:58:40,478 - INFO - Project ctest-TestBasicPolicy-05221603 not found, creating it
2025-06-17 10:58:40,931 - INFO - Created Project:ctest-TestBasicPolicy-05221603, ID : 202b9bd5-a27a-4a15-a17d-46cc4dea817b
2025-06-17 10:58:42,367 - INFO - ================================================================================
2025-06-17 10:58:42,368 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-17 10:58:42,368 - 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-17 10:58:42,624 - DEBUG - Nothing to compare xmpp stats {'10.0.0.65': {'10.20.0.17': '0'}} with
2025-06-17 10:58:42,624 - INFO - Initial checks done. Running the testcase now
2025-06-17 10:58:42,624 - INFO -
2025-06-17 10:58:43,210 - DEBUG - Response for create_network : {'network': {'id': '753aab08-155d-4d5f-aaf2-c76a2fa4e24d', 'name': 'ctest-vn-70675215', 'tenant_id': '202b9bd5a27a4a15a17d46cc4dea817b', 'project_id': '202b9bd5a27a4a15a17d46cc4dea817b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05221603', 'ctest-vn-70675215'], 'port_security_enabled': True, 'description': ''}}
2025-06-17 10:58:43,408 - DEBUG - Response for create_subnet : {'subnet': {'id': '1645afec-abc0-487e-a8c0-e54a24630ec4', 'name': '', 'tenant_id': '202b9bd5a27a4a15a17d46cc4dea817b', 'network_id': '753aab08-155d-4d5f-aaf2-c76a2fa4e24d', 'ip_version': 4, 'cidr': '4.60.147.64/26', 'allocation_pools': [{'start': '4.60.147.66', 'end': '4.60.147.126'}], 'gateway_ip': '4.60.147.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '4.60.147.66', 'tags': [], 'project_id': '202b9bd5a27a4a15a17d46cc4dea817b'}}
2025-06-17 10:58:43,433 - INFO - Created VN ctest-vn-70675215
2025-06-17 10:58:43,486 - DEBUG - VN ctest-vn-70675215 UUID is 753aab08-155d-4d5f-aaf2-c76a2fa4e24d
2025-06-17 10:58:43,820 - DEBUG - Response for create_network : {'network': {'id': '3bfcee7a-2f86-44d1-a195-b63d4b62b108', 'name': 'ctest-vn-68334427', 'tenant_id': '202b9bd5a27a4a15a17d46cc4dea817b', 'project_id': '202b9bd5a27a4a15a17d46cc4dea817b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05221603', 'ctest-vn-68334427'], 'port_security_enabled': True, 'description': ''}}
2025-06-17 10:58:43,985 - DEBUG - Response for create_subnet : {'subnet': {'id': '0ed6e59c-b6dc-4eff-8d5d-90180ec20232', 'name': '', 'tenant_id': '202b9bd5a27a4a15a17d46cc4dea817b', 'network_id': '3bfcee7a-2f86-44d1-a195-b63d4b62b108', 'ip_version': 4, 'cidr': '194.113.64.64/26', 'allocation_pools': [{'start': '194.113.64.66', 'end': '194.113.64.126'}], 'gateway_ip': '194.113.64.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '194.113.64.66', 'tags': [], 'project_id': '202b9bd5a27a4a15a17d46cc4dea817b'}}
2025-06-17 10:58:44,004 - INFO - Created VN ctest-vn-68334427
2025-06-17 10:58:44,058 - DEBUG - VN ctest-vn-68334427 UUID is 3bfcee7a-2f86-44d1-a195-b63d4b62b108
2025-06-17 10:58:44,170 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-05221603:ctest-vn-70675215, 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-05221603:ctest-vn-68334427, 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-17 10:58:44,468 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '753aab08-155d-4d5f-aaf2-c76a2fa4e24d', 'name': 'ctest-vn-70675215', 'tenant_id': '202b9bd5a27a4a15a17d46cc4dea817b', 'project_id': '202b9bd5a27a4a15a17d46cc4dea817b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1645afec-abc0-487e-a8c0-e54a24630ec4'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05221603', 'ctest-vn-70675215'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05221603', 'ctest-policy-allow-all-72313265']], 'subnet_ipam': [{'subnet_cidr': '4.60.147.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-17 10:58:44,700 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3bfcee7a-2f86-44d1-a195-b63d4b62b108', 'name': 'ctest-vn-68334427', 'tenant_id': '202b9bd5a27a4a15a17d46cc4dea817b', 'project_id': '202b9bd5a27a4a15a17d46cc4dea817b', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0ed6e59c-b6dc-4eff-8d5d-90180ec20232'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-05221603', 'ctest-vn-68334427'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-05221603', 'ctest-policy-allow-all-72313265']], 'subnet_ipam': [{'subnet_cidr': '194.113.64.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-17 10:58:44,867 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-17 10:58:45,173 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-17 10:58:45,199 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1fcbf26e-c8f2-47f1-a21b-e31b2476a0c1
2025-06-17 10:58:45,212 - DEBUG - Requesting: http://10.0.0.65:8082/project/202b9bd5-a27a-4a15-a17d-46cc4dea817b
2025-06-17 10:58:45,288 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/753aab08-155d-4d5f-aaf2-c76a2fa4e24d
2025-06-17 10:58:45,300 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/753aab08-155d-4d5f-aaf2-c76a2fa4e24d
2025-06-17 10:58:45,311 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/96fc44ca-3c46-4204-a86f-251a3e3f7c33
2025-06-17 10:58:45,319 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/96fc44ca-3c46-4204-a86f-251a3e3f7c33
2025-06-17 10:58:45,326 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/f0e849e9-748e-437c-b1a9-ab58d134343b
2025-06-17 10:58:45,334 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-17 10:58:45,334 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/753aab08-155d-4d5f-aaf2-c76a2fa4e24d
2025-06-17 10:58:45,347 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/96fc44ca-3c46-4204-a86f-251a3e3f7c33
2025-06-17 10:58:45,362 - INFO - Verified VN network id 8 for VN 753aab08-155d-4d5f-aaf2-c76a2fa4e24d
2025-06-17 10:58:45,362 - INFO - Verifications in API Server for VN ctest-vn-70675215 passed
2025-06-17 10:58:45,362 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/753aab08-155d-4d5f-aaf2-c76a2fa4e24d
2025-06-17 10:58:45,372 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/96fc44ca-3c46-4204-a86f-251a3e3f7c33
2025-06-17 10:58:45,380 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/96fc44ca-3c46-4204-a86f-251a3e3f7c33
2025-06-17 10:58:45,387 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/f0e849e9-748e-437c-b1a9-ab58d134343b
2025-06-17 10:58:45,399 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05221603:ctest-vn-70675215', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05221603', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8447252102293310815', 'uuid-lslong': '12318127189691523661'}, 'enable': 'true', 'created': '2025-06-17T10:58:43', 'last-modified': '2025-06-17T10:58:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.950105'}
2025-06-17 10:58:45,407 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-17 10:58:45,407 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70675215 passed
2025-06-17 10:58:45,407 - DEBUG - ====Verifying policy data for ctest-vn-70675215 in API_Server ======
2025-06-17 10:58:45,407 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-17 10:58:45,414 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1fcbf26e-c8f2-47f1-a21b-e31b2476a0c1
2025-06-17 10:58:45,426 - DEBUG - Requesting: http://10.0.0.65:8082/project/202b9bd5-a27a-4a15-a17d-46cc4dea817b
2025-06-17 10:58:45,500 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/753aab08-155d-4d5f-aaf2-c76a2fa4e24d
2025-06-17 10:58:45,511 - DEBUG - ==>Verifying data for policy with id: 091f76fa-e658-46ad-ab58-31140647ee37, fqn: ['default-domain', 'ctest-TestBasicPolicy-05221603', 'ctest-policy-allow-all-72313265']
2025-06-17 10:58:45,511 - INFO - VN ctest-vn-70675215 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-17 10:58:45,511 - DEBUG - Verifying the vn in opserver
2025-06-17 10:58:45,511 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05221603:ctest-vn-70675215 virtual network link through opserver 10.0.0.65
2025-06-17 10:58:45,512 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-17 10:58:45,804 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-17 10:58:45,861 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05221603:ctest-vn-70675215', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05221603:ctest-vn-70675215?flat'}
2025-06-17 10:58:45,861 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05221603:ctest-vn-70675215 is found in opserver
2025-06-17 10:58:45,871 - DEBUG - Do not have enough data to verify VN in agent
2025-06-17 10:58:45,877 - DEBUG - VRF ids for VN ctest-vn-70675215: {}
2025-06-17 10:58:45,877 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-17 10:58:45,884 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1fcbf26e-c8f2-47f1-a21b-e31b2476a0c1
2025-06-17 10:58:45,896 - DEBUG - Requesting: http://10.0.0.65:8082/project/202b9bd5-a27a-4a15-a17d-46cc4dea817b
2025-06-17 10:58:45,965 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3bfcee7a-2f86-44d1-a195-b63d4b62b108
2025-06-17 10:58:45,978 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3bfcee7a-2f86-44d1-a195-b63d4b62b108
2025-06-17 10:58:45,987 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c32c88da-85b7-4009-96e9-70aaad4d83c2
2025-06-17 10:58:45,995 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c32c88da-85b7-4009-96e9-70aaad4d83c2
2025-06-17 10:58:46,003 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/3566299c-c647-44fc-8330-6628b88804c5
2025-06-17 10:58:46,009 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-17 10:58:46,009 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3bfcee7a-2f86-44d1-a195-b63d4b62b108
2025-06-17 10:58:46,019 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c32c88da-85b7-4009-96e9-70aaad4d83c2
2025-06-17 10:58:46,035 - INFO - Verified VN network id 9 for VN 3bfcee7a-2f86-44d1-a195-b63d4b62b108
2025-06-17 10:58:46,036 - INFO - Verifications in API Server for VN ctest-vn-68334427 passed
2025-06-17 10:58:46,036 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3bfcee7a-2f86-44d1-a195-b63d4b62b108
2025-06-17 10:58:46,047 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c32c88da-85b7-4009-96e9-70aaad4d83c2
2025-06-17 10:58:46,055 - DEBUG - Requesting: http://10.0.0.65:8082/routing-instance/c32c88da-85b7-4009-96e9-70aaad4d83c2
2025-06-17 10:58:46,063 - DEBUG - Requesting: http://10.0.0.65:8082/route-target/3566299c-c647-44fc-8330-6628b88804c5
2025-06-17 10:58:46,075 - DEBUG - Control-node 10.0.0.65 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-05221603:ctest-vn-68334427', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-05221603', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4322591950919582929', 'uuid-lslong': '11643412786010304776'}, 'enable': 'true', 'created': '2025-06-17T10:58:43', 'last-modified': '2025-06-17T10:58:44', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.395435'}
2025-06-17 10:58:46,083 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-17 10:58:46,083 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-68334427 passed
2025-06-17 10:58:46,083 - DEBUG - ====Verifying policy data for ctest-vn-68334427 in API_Server ======
2025-06-17 10:58:46,083 - DEBUG - Requesting: http://10.0.0.65:8082/domains
2025-06-17 10:58:46,090 - DEBUG - Requesting: http://10.0.0.65:8082/domain/1fcbf26e-c8f2-47f1-a21b-e31b2476a0c1
2025-06-17 10:58:46,102 - DEBUG - Requesting: http://10.0.0.65:8082/project/202b9bd5-a27a-4a15-a17d-46cc4dea817b
2025-06-17 10:58:46,176 - DEBUG - Requesting: http://10.0.0.65:8082/virtual-network/3bfcee7a-2f86-44d1-a195-b63d4b62b108
2025-06-17 10:58:46,186 - DEBUG - ==>Verifying data for policy with id: 091f76fa-e658-46ad-ab58-31140647ee37, fqn: ['default-domain', 'ctest-TestBasicPolicy-05221603', 'ctest-policy-allow-all-72313265']
2025-06-17 10:58:46,186 - INFO - VN ctest-vn-68334427 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-17 10:58:46,186 - DEBUG - Verifying the vn in opserver
2025-06-17 10:58:46,186 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-05221603:ctest-vn-68334427 virtual network link through opserver 10.0.0.65
2025-06-17 10:58:46,186 - DEBUG - Requesting: http://10.0.0.65:8081/analytics/uves/virtual-networks
2025-06-17 10:58:46,196 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-05221603:ctest-vn-68334427', 'href': 'http://10.0.0.65:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-05221603:ctest-vn-68334427?flat'}
2025-06-17 10:58:46,196 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-05221603:ctest-vn-68334427 is found in opserver
2025-06-17 10:58:46,206 - DEBUG - Do not have enough data to verify VN in agent
2025-06-17 10:58:46,211 - DEBUG - VRF ids for VN ctest-vn-68334427: {}
2025-06-17 10:58:46,268 - DEBUG - Services list from nova: [