2025-10-09 18:48:42,814 - INFO - Domain Default found not creating
2025-10-09 18:48:42,951 - INFO - Project ctest-TestBasicPolicy-01089793 not found, creating it
2025-10-09 18:48:43,395 - INFO - Created Project:ctest-TestBasicPolicy-01089793, ID : ce8392aa-53ea-4cce-af2e-837e05e173a9
2025-10-09 18:48:44,736 - INFO - ================================================================================
2025-10-09 18:48:44,736 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-09 18:48:44,736 - 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-10-09 18:48:44,990 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-10-09 18:48:44,990 - INFO - Initial checks done. Running the testcase now
2025-10-09 18:48:44,990 - INFO -
2025-10-09 18:48:45,507 - DEBUG - Response for create_network : {'network': {'id': '9da9b603-2cef-43f7-8735-d557ea0b8dec', 'name': 'ctest-vn-25740816', 'tenant_id': 'ce8392aa53ea4cceaf2e837e05e173a9', 'project_id': 'ce8392aa53ea4cceaf2e837e05e173a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01089793', 'ctest-vn-25740816'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 18:48:45,708 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c1692538-2388-4fbe-a5bd-521db47c157d', 'name': '', 'tenant_id': 'ce8392aa53ea4cceaf2e837e05e173a9', 'network_id': '9da9b603-2cef-43f7-8735-d557ea0b8dec', 'ip_version': 4, 'cidr': '62.115.209.64/26', 'allocation_pools': [{'start': '62.115.209.66', 'end': '62.115.209.126'}], 'gateway_ip': '62.115.209.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.115.209.66', 'tags': [], 'project_id': 'ce8392aa53ea4cceaf2e837e05e173a9'}}
2025-10-09 18:48:45,727 - INFO - Created VN ctest-vn-25740816
2025-10-09 18:48:45,781 - DEBUG - VN ctest-vn-25740816 UUID is 9da9b603-2cef-43f7-8735-d557ea0b8dec
2025-10-09 18:48:46,071 - DEBUG - Response for create_network : {'network': {'id': 'ab33847a-5fd4-47bc-8285-0ebc7fd53037', 'name': 'ctest-vn-42977271', 'tenant_id': 'ce8392aa53ea4cceaf2e837e05e173a9', 'project_id': 'ce8392aa53ea4cceaf2e837e05e173a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01089793', 'ctest-vn-42977271'], 'port_security_enabled': True, 'description': ''}}
2025-10-09 18:48:46,279 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e8fc6d9d-5477-4971-b8fb-4b67c386f1a1', 'name': '', 'tenant_id': 'ce8392aa53ea4cceaf2e837e05e173a9', 'network_id': 'ab33847a-5fd4-47bc-8285-0ebc7fd53037', 'ip_version': 4, 'cidr': '187.221.47.192/26', 'allocation_pools': [{'start': '187.221.47.194', 'end': '187.221.47.254'}], 'gateway_ip': '187.221.47.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '187.221.47.194', 'tags': [], 'project_id': 'ce8392aa53ea4cceaf2e837e05e173a9'}}
2025-10-09 18:48:46,294 - INFO - Created VN ctest-vn-42977271
2025-10-09 18:48:46,345 - DEBUG - VN ctest-vn-42977271 UUID is ab33847a-5fd4-47bc-8285-0ebc7fd53037
2025-10-09 18:48:46,489 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01089793:ctest-vn-25740816, 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-01089793:ctest-vn-42977271, 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-10-09 18:48:46,767 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9da9b603-2cef-43f7-8735-d557ea0b8dec', 'name': 'ctest-vn-25740816', 'tenant_id': 'ce8392aa53ea4cceaf2e837e05e173a9', 'project_id': 'ce8392aa53ea4cceaf2e837e05e173a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c1692538-2388-4fbe-a5bd-521db47c157d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01089793', 'ctest-vn-25740816'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01089793', 'ctest-policy-allow-all-51002828']], 'subnet_ipam': [{'subnet_cidr': '62.115.209.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 18:48:46,999 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ab33847a-5fd4-47bc-8285-0ebc7fd53037', 'name': 'ctest-vn-42977271', 'tenant_id': 'ce8392aa53ea4cceaf2e837e05e173a9', 'project_id': 'ce8392aa53ea4cceaf2e837e05e173a9', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e8fc6d9d-5477-4971-b8fb-4b67c386f1a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01089793', 'ctest-vn-42977271'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01089793', 'ctest-policy-allow-all-51002828']], 'subnet_ipam': [{'subnet_cidr': '187.221.47.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-09 18:48:47,157 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-09 18:48:47,456 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-09 18:48:47,481 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c43b4afb-2c1e-414f-9274-57fbae5200c8
2025-10-09 18:48:47,492 - DEBUG - Requesting: http://10.0.0.50:8082/project/ce8392aa-53ea-4cce-af2e-837e05e173a9
2025-10-09 18:48:47,564 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9da9b603-2cef-43f7-8735-d557ea0b8dec
2025-10-09 18:48:47,573 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9da9b603-2cef-43f7-8735-d557ea0b8dec
2025-10-09 18:48:47,580 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5083906-02e7-4b56-80e5-878539a9ab0d
2025-10-09 18:48:47,587 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5083906-02e7-4b56-80e5-878539a9ab0d
2025-10-09 18:48:47,592 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ea0faa35-f6ce-451d-bb04-365b839bbb2d
2025-10-09 18:48:47,598 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 18:48:47,598 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9da9b603-2cef-43f7-8735-d557ea0b8dec
2025-10-09 18:48:47,607 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5083906-02e7-4b56-80e5-878539a9ab0d
2025-10-09 18:48:47,623 - INFO - Verified VN network id 12 for VN 9da9b603-2cef-43f7-8735-d557ea0b8dec
2025-10-09 18:48:47,623 - INFO - Verifications in API Server for VN ctest-vn-25740816 passed
2025-10-09 18:48:47,623 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9da9b603-2cef-43f7-8735-d557ea0b8dec
2025-10-09 18:48:47,631 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5083906-02e7-4b56-80e5-878539a9ab0d
2025-10-09 18:48:47,637 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/e5083906-02e7-4b56-80e5-878539a9ab0d
2025-10-09 18:48:47,644 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/ea0faa35-f6ce-451d-bb04-365b839bbb2d
2025-10-09 18:48:47,655 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01089793:ctest-vn-25740816', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01089793', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11360811659773821943', 'uuid-lslong': '9742927942451432940'}, 'enable': 'true', 'created': '2025-10-09T18:48:45', 'last-modified': '2025-10-09T18:48:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.907979'}
2025-10-09 18:48:47,660 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-09 18:48:47,661 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-25740816 passed
2025-10-09 18:48:47,661 - DEBUG - ====Verifying policy data for ctest-vn-25740816 in API_Server ======
2025-10-09 18:48:47,661 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-09 18:48:47,666 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c43b4afb-2c1e-414f-9274-57fbae5200c8
2025-10-09 18:48:47,676 - DEBUG - Requesting: http://10.0.0.50:8082/project/ce8392aa-53ea-4cce-af2e-837e05e173a9
2025-10-09 18:48:47,740 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9da9b603-2cef-43f7-8735-d557ea0b8dec
2025-10-09 18:48:47,750 - DEBUG - ==>Verifying data for policy with id: c41ea22b-d264-4135-8cb9-15b649597355, fqn: ['default-domain', 'ctest-TestBasicPolicy-01089793', 'ctest-policy-allow-all-51002828']
2025-10-09 18:48:47,750 - INFO - VN ctest-vn-25740816 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 18:48:47,750 - DEBUG - Verifying the vn in opserver
2025-10-09 18:48:47,750 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01089793:ctest-vn-25740816 virtual network link through opserver 10.0.0.50
2025-10-09 18:48:47,750 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-09 18:48:48,039 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-09 18:48:48,089 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01089793:ctest-vn-25740816', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01089793:ctest-vn-25740816?flat'}
2025-10-09 18:48:48,089 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01089793:ctest-vn-25740816 is found in opserver
2025-10-09 18:48:48,097 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 18:48:48,101 - DEBUG - VRF ids for VN ctest-vn-25740816: {}
2025-10-09 18:48:48,101 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-09 18:48:48,106 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c43b4afb-2c1e-414f-9274-57fbae5200c8
2025-10-09 18:48:48,117 - DEBUG - Requesting: http://10.0.0.50:8082/project/ce8392aa-53ea-4cce-af2e-837e05e173a9
2025-10-09 18:48:48,184 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ab33847a-5fd4-47bc-8285-0ebc7fd53037
2025-10-09 18:48:48,195 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ab33847a-5fd4-47bc-8285-0ebc7fd53037
2025-10-09 18:48:48,204 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bdd41371-ae9e-46c8-8623-38593418db89
2025-10-09 18:48:48,210 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bdd41371-ae9e-46c8-8623-38593418db89
2025-10-09 18:48:48,217 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4b97edd7-cc1f-4510-ad5b-b7e5154367e1
2025-10-09 18:48:48,223 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 18:48:48,223 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ab33847a-5fd4-47bc-8285-0ebc7fd53037
2025-10-09 18:48:48,230 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bdd41371-ae9e-46c8-8623-38593418db89
2025-10-09 18:48:48,242 - INFO - Verified VN network id 13 for VN ab33847a-5fd4-47bc-8285-0ebc7fd53037
2025-10-09 18:48:48,242 - INFO - Verifications in API Server for VN ctest-vn-42977271 passed
2025-10-09 18:48:48,242 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ab33847a-5fd4-47bc-8285-0ebc7fd53037
2025-10-09 18:48:48,250 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bdd41371-ae9e-46c8-8623-38593418db89
2025-10-09 18:48:48,256 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bdd41371-ae9e-46c8-8623-38593418db89
2025-10-09 18:48:48,262 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/4b97edd7-cc1f-4510-ad5b-b7e5154367e1
2025-10-09 18:48:48,271 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01089793:ctest-vn-42977271', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01089793', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12336349465426544572', 'uuid-lslong': '9404939599594467383'}, 'enable': 'true', 'created': '2025-10-09T18:48:46', 'last-modified': '2025-10-09T18:48:46', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.294471'}
2025-10-09 18:48:48,277 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-09 18:48:48,277 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-42977271 passed
2025-10-09 18:48:48,277 - DEBUG - ====Verifying policy data for ctest-vn-42977271 in API_Server ======
2025-10-09 18:48:48,277 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-09 18:48:48,283 - DEBUG - Requesting: http://10.0.0.50:8082/domain/c43b4afb-2c1e-414f-9274-57fbae5200c8
2025-10-09 18:48:48,292 - DEBUG - Requesting: http://10.0.0.50:8082/project/ce8392aa-53ea-4cce-af2e-837e05e173a9
2025-10-09 18:48:48,358 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/ab33847a-5fd4-47bc-8285-0ebc7fd53037
2025-10-09 18:48:48,366 - DEBUG - ==>Verifying data for policy with id: c41ea22b-d264-4135-8cb9-15b649597355, fqn: ['default-domain', 'ctest-TestBasicPolicy-01089793', 'ctest-policy-allow-all-51002828']
2025-10-09 18:48:48,366 - INFO - VN ctest-vn-42977271 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-09 18:48:48,366 - DEBUG - Verifying the vn in opserver
2025-10-09 18:48:48,366 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01089793:ctest-vn-42977271 virtual network link through opserver 10.0.0.50
2025-10-09 18:48:48,366 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-09 18:48:48,375 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01089793:ctest-vn-42977271', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01089793:ctest-vn-42977271?flat'}
2025-10-09 18:48:48,375 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01089793:ctest-vn-42977271 is found in opserver
2025-10-09 18:48:48,384 - DEBUG - Do not have enough data to verify VN in agent
2025-10-09 18:48:48,389 - DEBUG - VRF ids for VN ctest-vn-42977271: {}
2025-10-09 18:48:48,439 - DEBUG - Services list from nova: [