2025-09-02 22:37:04,965 - INFO - Domain Default found not creating
2025-09-02 22:37:05,095 - INFO - Project ctest-TestBasicPolicy-48677928 not found, creating it
2025-09-02 22:37:05,522 - INFO - Created Project:ctest-TestBasicPolicy-48677928, ID : 275ad76e-0e31-46bf-81a0-3f4238306d36
2025-09-02 22:37:06,850 - INFO - ================================================================================
2025-09-02 22:37:06,850 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-02 22:37:06,850 - 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-02 22:37:07,114 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.17': '0'}} with
2025-09-02 22:37:07,114 - INFO - Initial checks done. Running the testcase now
2025-09-02 22:37:07,114 - INFO -
2025-09-02 22:37:07,619 - DEBUG - Response for create_network : {'network': {'id': '4e0c61ab-69e1-4110-9a84-311f7c91a2f2', 'name': 'ctest-vn-07716992', 'tenant_id': '275ad76e0e3146bf81a03f4238306d36', 'project_id': '275ad76e0e3146bf81a03f4238306d36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48677928', 'ctest-vn-07716992'], 'port_security_enabled': True, 'description': ''}}
2025-09-02 22:37:07,820 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c2518504-5376-4550-836c-39d221ecaa49', 'name': '', 'tenant_id': '275ad76e0e3146bf81a03f4238306d36', 'network_id': '4e0c61ab-69e1-4110-9a84-311f7c91a2f2', 'ip_version': 4, 'cidr': '169.45.124.64/26', 'allocation_pools': [{'start': '169.45.124.66', 'end': '169.45.124.126'}], 'gateway_ip': '169.45.124.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '169.45.124.66', 'tags': [], 'project_id': '275ad76e0e3146bf81a03f4238306d36'}}
2025-09-02 22:37:07,835 - INFO - Created VN ctest-vn-07716992
2025-09-02 22:37:07,883 - DEBUG - VN ctest-vn-07716992 UUID is 4e0c61ab-69e1-4110-9a84-311f7c91a2f2
2025-09-02 22:37:08,182 - DEBUG - Response for create_network : {'network': {'id': '680350e9-f4ab-4b7d-98ef-18838d46bd93', 'name': 'ctest-vn-15356625', 'tenant_id': '275ad76e0e3146bf81a03f4238306d36', 'project_id': '275ad76e0e3146bf81a03f4238306d36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48677928', 'ctest-vn-15356625'], 'port_security_enabled': True, 'description': ''}}
2025-09-02 22:37:08,360 - DEBUG - Response for create_subnet : {'subnet': {'id': '44f33848-2844-4985-8898-82bf0fb3272c', 'name': '', 'tenant_id': '275ad76e0e3146bf81a03f4238306d36', 'network_id': '680350e9-f4ab-4b7d-98ef-18838d46bd93', 'ip_version': 4, 'cidr': '151.33.109.192/26', 'allocation_pools': [{'start': '151.33.109.194', 'end': '151.33.109.254'}], 'gateway_ip': '151.33.109.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '151.33.109.194', 'tags': [], 'project_id': '275ad76e0e3146bf81a03f4238306d36'}}
2025-09-02 22:37:08,375 - INFO - Created VN ctest-vn-15356625
2025-09-02 22:37:08,427 - DEBUG - VN ctest-vn-15356625 UUID is 680350e9-f4ab-4b7d-98ef-18838d46bd93
2025-09-02 22:37:08,571 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-48677928:ctest-vn-07716992, 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-48677928:ctest-vn-15356625, 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-02 22:37:08,856 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4e0c61ab-69e1-4110-9a84-311f7c91a2f2', 'name': 'ctest-vn-07716992', 'tenant_id': '275ad76e0e3146bf81a03f4238306d36', 'project_id': '275ad76e0e3146bf81a03f4238306d36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c2518504-5376-4550-836c-39d221ecaa49'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48677928', 'ctest-vn-07716992'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48677928', 'ctest-policy-allow-all-55595877']], 'subnet_ipam': [{'subnet_cidr': '169.45.124.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-02 22:37:09,080 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '680350e9-f4ab-4b7d-98ef-18838d46bd93', 'name': 'ctest-vn-15356625', 'tenant_id': '275ad76e0e3146bf81a03f4238306d36', 'project_id': '275ad76e0e3146bf81a03f4238306d36', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['44f33848-2844-4985-8898-82bf0fb3272c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-48677928', 'ctest-vn-15356625'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-48677928', 'ctest-policy-allow-all-55595877']], 'subnet_ipam': [{'subnet_cidr': '151.33.109.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-02 22:37:09,219 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-02 22:37:09,515 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-02 22:37:09,539 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d6be2dd4-6f0e-430a-b00e-5c8fa96478a2
2025-09-02 22:37:09,549 - DEBUG - Requesting: http://10.0.0.48:8082/project/275ad76e-0e31-46bf-81a0-3f4238306d36
2025-09-02 22:37:09,617 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4e0c61ab-69e1-4110-9a84-311f7c91a2f2
2025-09-02 22:37:09,626 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4e0c61ab-69e1-4110-9a84-311f7c91a2f2
2025-09-02 22:37:09,634 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/9b7b57ea-c7ea-4ca0-b613-3be72bb4e8ef
2025-09-02 22:37:09,639 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/9b7b57ea-c7ea-4ca0-b613-3be72bb4e8ef
2025-09-02 22:37:09,644 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e16d0bba-2f49-4f57-b509-4b3ff468fbf8
2025-09-02 22:37:09,649 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-02 22:37:09,649 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4e0c61ab-69e1-4110-9a84-311f7c91a2f2
2025-09-02 22:37:09,657 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/9b7b57ea-c7ea-4ca0-b613-3be72bb4e8ef
2025-09-02 22:37:09,671 - INFO - Verified VN network id 12 for VN 4e0c61ab-69e1-4110-9a84-311f7c91a2f2
2025-09-02 22:37:09,671 - INFO - Verifications in API Server for VN ctest-vn-07716992 passed
2025-09-02 22:37:09,671 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4e0c61ab-69e1-4110-9a84-311f7c91a2f2
2025-09-02 22:37:09,679 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/9b7b57ea-c7ea-4ca0-b613-3be72bb4e8ef
2025-09-02 22:37:09,684 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/9b7b57ea-c7ea-4ca0-b613-3be72bb4e8ef
2025-09-02 22:37:09,690 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/e16d0bba-2f49-4f57-b509-4b3ff468fbf8
2025-09-02 22:37:09,699 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48677928:ctest-vn-07716992', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48677928', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5623977423522578704', 'uuid-lslong': '11134078190070375154'}, 'enable': 'true', 'created': '2025-09-02T22:37:07', 'last-modified': '2025-09-02T22:37:08', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.866369'}
2025-09-02 22:37:09,705 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-02 22:37:09,705 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-07716992 passed
2025-09-02 22:37:09,705 - DEBUG - ====Verifying policy data for ctest-vn-07716992 in API_Server ======
2025-09-02 22:37:09,705 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-02 22:37:09,710 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d6be2dd4-6f0e-430a-b00e-5c8fa96478a2
2025-09-02 22:37:09,719 - DEBUG - Requesting: http://10.0.0.48:8082/project/275ad76e-0e31-46bf-81a0-3f4238306d36
2025-09-02 22:37:09,788 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/4e0c61ab-69e1-4110-9a84-311f7c91a2f2
2025-09-02 22:37:09,796 - DEBUG - ==>Verifying data for policy with id: 03868147-dff6-464b-9aaf-eda9f05d0599, fqn: ['default-domain', 'ctest-TestBasicPolicy-48677928', 'ctest-policy-allow-all-55595877']
2025-09-02 22:37:09,796 - INFO - VN ctest-vn-07716992 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-02 22:37:09,796 - DEBUG - Verifying the vn in opserver
2025-09-02 22:37:09,796 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48677928:ctest-vn-07716992 virtual network link through opserver 10.0.0.48
2025-09-02 22:37:09,796 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-02 22:37:10,085 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-02 22:37:10,133 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48677928:ctest-vn-07716992', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48677928:ctest-vn-07716992?flat'}
2025-09-02 22:37:10,133 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48677928:ctest-vn-07716992 is found in opserver
2025-09-02 22:37:10,140 - DEBUG - Do not have enough data to verify VN in agent
2025-09-02 22:37:10,144 - DEBUG - VRF ids for VN ctest-vn-07716992: {}
2025-09-02 22:37:10,144 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-02 22:37:10,148 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d6be2dd4-6f0e-430a-b00e-5c8fa96478a2
2025-09-02 22:37:10,157 - DEBUG - Requesting: http://10.0.0.48:8082/project/275ad76e-0e31-46bf-81a0-3f4238306d36
2025-09-02 22:37:10,227 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/680350e9-f4ab-4b7d-98ef-18838d46bd93
2025-09-02 22:37:10,237 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/680350e9-f4ab-4b7d-98ef-18838d46bd93
2025-09-02 22:37:10,245 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0bd1ba8d-5305-4fce-b398-121a16a68815
2025-09-02 22:37:10,250 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0bd1ba8d-5305-4fce-b398-121a16a68815
2025-09-02 22:37:10,256 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/2f1bf8f8-bf25-47ba-a4c6-2227bd0dc92d
2025-09-02 22:37:10,261 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-02 22:37:10,261 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/680350e9-f4ab-4b7d-98ef-18838d46bd93
2025-09-02 22:37:10,268 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0bd1ba8d-5305-4fce-b398-121a16a68815
2025-09-02 22:37:10,278 - INFO - Verified VN network id 13 for VN 680350e9-f4ab-4b7d-98ef-18838d46bd93
2025-09-02 22:37:10,278 - INFO - Verifications in API Server for VN ctest-vn-15356625 passed
2025-09-02 22:37:10,278 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/680350e9-f4ab-4b7d-98ef-18838d46bd93
2025-09-02 22:37:10,285 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0bd1ba8d-5305-4fce-b398-121a16a68815
2025-09-02 22:37:10,290 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/0bd1ba8d-5305-4fce-b398-121a16a68815
2025-09-02 22:37:10,295 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/2f1bf8f8-bf25-47ba-a4c6-2227bd0dc92d
2025-09-02 22:37:10,304 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-48677928:ctest-vn-15356625', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-48677928', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7494923170637106045', 'uuid-lslong': '11020053766488898963'}, 'enable': 'true', 'created': '2025-09-02T22:37:08', 'last-modified': '2025-09-02T22:37:09', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.249678'}
2025-09-02 22:37:10,309 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-02 22:37:10,309 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-15356625 passed
2025-09-02 22:37:10,310 - DEBUG - ====Verifying policy data for ctest-vn-15356625 in API_Server ======
2025-09-02 22:37:10,310 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2025-09-02 22:37:10,314 - DEBUG - Requesting: http://10.0.0.48:8082/domain/d6be2dd4-6f0e-430a-b00e-5c8fa96478a2
2025-09-02 22:37:10,324 - DEBUG - Requesting: http://10.0.0.48:8082/project/275ad76e-0e31-46bf-81a0-3f4238306d36
2025-09-02 22:37:10,392 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/680350e9-f4ab-4b7d-98ef-18838d46bd93
2025-09-02 22:37:10,400 - DEBUG - ==>Verifying data for policy with id: 03868147-dff6-464b-9aaf-eda9f05d0599, fqn: ['default-domain', 'ctest-TestBasicPolicy-48677928', 'ctest-policy-allow-all-55595877']
2025-09-02 22:37:10,400 - INFO - VN ctest-vn-15356625 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-02 22:37:10,400 - DEBUG - Verifying the vn in opserver
2025-09-02 22:37:10,400 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-48677928:ctest-vn-15356625 virtual network link through opserver 10.0.0.48
2025-09-02 22:37:10,400 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2025-09-02 22:37:10,408 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-48677928:ctest-vn-15356625', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-48677928:ctest-vn-15356625?flat'}
2025-09-02 22:37:10,408 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-48677928:ctest-vn-15356625 is found in opserver
2025-09-02 22:37:10,416 - DEBUG - Do not have enough data to verify VN in agent
2025-09-02 22:37:10,420 - DEBUG - VRF ids for VN ctest-vn-15356625: {}
2025-09-02 22:37:10,471 - DEBUG - Services list from nova: [