2025-09-22 02:03:31,556 - INFO - Domain Default found not creating
2025-09-22 02:03:31,698 - INFO - Project ctest-TestBasicPolicy-57169741 not found, creating it
2025-09-22 02:03:32,156 - INFO - Created Project:ctest-TestBasicPolicy-57169741, ID : 30ae5531-e223-47f8-82f1-90c2e07cf537
2025-09-22 02:03:33,691 - INFO - ================================================================================
2025-09-22 02:03:33,692 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-22 02:03:33,692 - 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-22 02:03:33,954 - DEBUG - Nothing to compare xmpp stats {'10.0.0.19': {'10.20.0.17': '0'}} with
2025-09-22 02:03:33,955 - INFO - Initial checks done. Running the testcase now
2025-09-22 02:03:33,955 - INFO -
2025-09-22 02:03:34,558 - DEBUG - Response for create_network : {'network': {'id': '89af537f-9f7d-4640-981b-f6f78615f0be', 'name': 'ctest-vn-52617851', 'tenant_id': '30ae5531e22347f882f190c2e07cf537', 'project_id': '30ae5531e22347f882f190c2e07cf537', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57169741', 'ctest-vn-52617851'], 'port_security_enabled': True, 'description': ''}}
2025-09-22 02:03:34,737 - DEBUG - Response for create_subnet : {'subnet': {'id': '0d7ba067-e390-4197-995e-6e3aa5a45350', 'name': '', 'tenant_id': '30ae5531e22347f882f190c2e07cf537', 'network_id': '89af537f-9f7d-4640-981b-f6f78615f0be', 'ip_version': 4, 'cidr': '22.209.214.128/26', 'allocation_pools': [{'start': '22.209.214.130', 'end': '22.209.214.190'}], 'gateway_ip': '22.209.214.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '22.209.214.130', 'tags': [], 'project_id': '30ae5531e22347f882f190c2e07cf537'}}
2025-09-22 02:03:34,756 - INFO - Created VN ctest-vn-52617851
2025-09-22 02:03:34,808 - DEBUG - VN ctest-vn-52617851 UUID is 89af537f-9f7d-4640-981b-f6f78615f0be
2025-09-22 02:03:35,101 - DEBUG - Response for create_network : {'network': {'id': 'a608dd5a-73c2-4f07-8bbd-af64bcdfb531', 'name': 'ctest-vn-78261252', 'tenant_id': '30ae5531e22347f882f190c2e07cf537', 'project_id': '30ae5531e22347f882f190c2e07cf537', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57169741', 'ctest-vn-78261252'], 'port_security_enabled': True, 'description': ''}}
2025-09-22 02:03:35,348 - DEBUG - Response for create_subnet : {'subnet': {'id': '9eb9caf8-3370-4f2f-a63f-62129f7c27d8', 'name': '', 'tenant_id': '30ae5531e22347f882f190c2e07cf537', 'network_id': 'a608dd5a-73c2-4f07-8bbd-af64bcdfb531', 'ip_version': 4, 'cidr': '102.231.143.64/26', 'allocation_pools': [{'start': '102.231.143.66', 'end': '102.231.143.126'}], 'gateway_ip': '102.231.143.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '102.231.143.66', 'tags': [], 'project_id': '30ae5531e22347f882f190c2e07cf537'}}
2025-09-22 02:03:35,368 - INFO - Created VN ctest-vn-78261252
2025-09-22 02:03:35,420 - DEBUG - VN ctest-vn-78261252 UUID is a608dd5a-73c2-4f07-8bbd-af64bcdfb531
2025-09-22 02:03:35,537 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-57169741:ctest-vn-52617851, 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-57169741:ctest-vn-78261252, 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-22 02:03:35,830 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '89af537f-9f7d-4640-981b-f6f78615f0be', 'name': 'ctest-vn-52617851', 'tenant_id': '30ae5531e22347f882f190c2e07cf537', 'project_id': '30ae5531e22347f882f190c2e07cf537', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0d7ba067-e390-4197-995e-6e3aa5a45350'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57169741', 'ctest-vn-52617851'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57169741', 'ctest-policy-allow-all-55510373']], 'subnet_ipam': [{'subnet_cidr': '22.209.214.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-22 02:03:36,064 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a608dd5a-73c2-4f07-8bbd-af64bcdfb531', 'name': 'ctest-vn-78261252', 'tenant_id': '30ae5531e22347f882f190c2e07cf537', 'project_id': '30ae5531e22347f882f190c2e07cf537', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9eb9caf8-3370-4f2f-a63f-62129f7c27d8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-57169741', 'ctest-vn-78261252'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-57169741', 'ctest-policy-allow-all-55510373']], 'subnet_ipam': [{'subnet_cidr': '102.231.143.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-22 02:03:36,236 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-09-22 02:03:36,571 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-09-22 02:03:36,602 - DEBUG - Requesting: http://10.0.0.19:8082/domain/6dd92d91-881d-4ff3-a388-2d75be9bb5b5
2025-09-22 02:03:36,615 - DEBUG - Requesting: http://10.0.0.19:8082/project/30ae5531-e223-47f8-82f1-90c2e07cf537
2025-09-22 02:03:36,697 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/89af537f-9f7d-4640-981b-f6f78615f0be
2025-09-22 02:03:36,711 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/89af537f-9f7d-4640-981b-f6f78615f0be
2025-09-22 02:03:36,723 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/97009545-0e44-43a9-8d56-667dab8154ff
2025-09-22 02:03:36,732 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/97009545-0e44-43a9-8d56-667dab8154ff
2025-09-22 02:03:36,740 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/d6bc91fd-c8d9-484e-9fe0-c0bdbced293c
2025-09-22 02:03:36,747 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-22 02:03:36,747 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/89af537f-9f7d-4640-981b-f6f78615f0be
2025-09-22 02:03:36,758 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/97009545-0e44-43a9-8d56-667dab8154ff
2025-09-22 02:03:36,777 - INFO - Verified VN network id 11 for VN 89af537f-9f7d-4640-981b-f6f78615f0be
2025-09-22 02:03:36,777 - INFO - Verifications in API Server for VN ctest-vn-52617851 passed
2025-09-22 02:03:36,777 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/89af537f-9f7d-4640-981b-f6f78615f0be
2025-09-22 02:03:36,792 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/97009545-0e44-43a9-8d56-667dab8154ff
2025-09-22 02:03:36,801 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/97009545-0e44-43a9-8d56-667dab8154ff
2025-09-22 02:03:36,810 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/d6bc91fd-c8d9-484e-9fe0-c0bdbced293c
2025-09-22 02:03:36,823 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57169741:ctest-vn-52617851', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57169741', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '9921240311722231360', 'uuid-lslong': '10960625661103173822'}, 'enable': 'true', 'created': '2025-09-22T02:03:34', 'last-modified': '2025-09-22T02:03:35', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.014199'}
2025-09-22 02:03:36,830 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-22 02:03:36,830 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-52617851 passed
2025-09-22 02:03:36,830 - DEBUG - ====Verifying policy data for ctest-vn-52617851 in API_Server ======
2025-09-22 02:03:36,830 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-09-22 02:03:36,836 - DEBUG - Requesting: http://10.0.0.19:8082/domain/6dd92d91-881d-4ff3-a388-2d75be9bb5b5
2025-09-22 02:03:36,852 - DEBUG - Requesting: http://10.0.0.19:8082/project/30ae5531-e223-47f8-82f1-90c2e07cf537
2025-09-22 02:03:36,926 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/89af537f-9f7d-4640-981b-f6f78615f0be
2025-09-22 02:03:36,935 - DEBUG - ==>Verifying data for policy with id: 25ebd465-d5ac-443e-9b62-3edf57c6e9b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-57169741', 'ctest-policy-allow-all-55510373']
2025-09-22 02:03:36,936 - INFO - VN ctest-vn-52617851 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-22 02:03:36,936 - DEBUG - Verifying the vn in opserver
2025-09-22 02:03:36,936 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57169741:ctest-vn-52617851 virtual network link through opserver 10.0.0.19
2025-09-22 02:03:36,936 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-09-22 02:03:37,269 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-09-22 02:03:37,326 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57169741:ctest-vn-52617851', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57169741:ctest-vn-52617851?flat'}
2025-09-22 02:03:37,326 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57169741:ctest-vn-52617851 is found in opserver
2025-09-22 02:03:37,337 - DEBUG - Do not have enough data to verify VN in agent
2025-09-22 02:03:37,341 - DEBUG - VRF ids for VN ctest-vn-52617851: {}
2025-09-22 02:03:37,341 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-09-22 02:03:37,347 - DEBUG - Requesting: http://10.0.0.19:8082/domain/6dd92d91-881d-4ff3-a388-2d75be9bb5b5
2025-09-22 02:03:37,357 - DEBUG - Requesting: http://10.0.0.19:8082/project/30ae5531-e223-47f8-82f1-90c2e07cf537
2025-09-22 02:03:37,428 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a608dd5a-73c2-4f07-8bbd-af64bcdfb531
2025-09-22 02:03:37,440 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a608dd5a-73c2-4f07-8bbd-af64bcdfb531
2025-09-22 02:03:37,449 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/9a64c363-1913-4f59-95be-28a0b2f49b56
2025-09-22 02:03:37,456 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/9a64c363-1913-4f59-95be-28a0b2f49b56
2025-09-22 02:03:37,462 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/e2fe9760-978d-4b09-b842-3c33379c2071
2025-09-22 02:03:37,468 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-22 02:03:37,468 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a608dd5a-73c2-4f07-8bbd-af64bcdfb531
2025-09-22 02:03:37,476 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/9a64c363-1913-4f59-95be-28a0b2f49b56
2025-09-22 02:03:37,488 - INFO - Verified VN network id 12 for VN a608dd5a-73c2-4f07-8bbd-af64bcdfb531
2025-09-22 02:03:37,489 - INFO - Verifications in API Server for VN ctest-vn-78261252 passed
2025-09-22 02:03:37,489 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a608dd5a-73c2-4f07-8bbd-af64bcdfb531
2025-09-22 02:03:37,497 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/9a64c363-1913-4f59-95be-28a0b2f49b56
2025-09-22 02:03:37,506 - DEBUG - Requesting: http://10.0.0.19:8082/routing-instance/9a64c363-1913-4f59-95be-28a0b2f49b56
2025-09-22 02:03:37,512 - DEBUG - Requesting: http://10.0.0.19:8082/route-target/e2fe9760-978d-4b09-b842-3c33379c2071
2025-09-22 02:03:37,523 - DEBUG - Control-node 10.0.0.19 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-57169741:ctest-vn-78261252', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-57169741', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11964055790668631815', 'uuid-lslong': '10069397189070665009'}, 'enable': 'true', 'created': '2025-09-22T02:03:35', 'last-modified': '2025-09-22T02:03:36', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.482302'}
2025-09-22 02:03:37,528 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-22 02:03:37,529 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-78261252 passed
2025-09-22 02:03:37,529 - DEBUG - ====Verifying policy data for ctest-vn-78261252 in API_Server ======
2025-09-22 02:03:37,529 - DEBUG - Requesting: http://10.0.0.19:8082/domains
2025-09-22 02:03:37,535 - DEBUG - Requesting: http://10.0.0.19:8082/domain/6dd92d91-881d-4ff3-a388-2d75be9bb5b5
2025-09-22 02:03:37,546 - DEBUG - Requesting: http://10.0.0.19:8082/project/30ae5531-e223-47f8-82f1-90c2e07cf537
2025-09-22 02:03:37,622 - DEBUG - Requesting: http://10.0.0.19:8082/virtual-network/a608dd5a-73c2-4f07-8bbd-af64bcdfb531
2025-09-22 02:03:37,634 - DEBUG - ==>Verifying data for policy with id: 25ebd465-d5ac-443e-9b62-3edf57c6e9b5, fqn: ['default-domain', 'ctest-TestBasicPolicy-57169741', 'ctest-policy-allow-all-55510373']
2025-09-22 02:03:37,634 - INFO - VN ctest-vn-78261252 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-22 02:03:37,634 - DEBUG - Verifying the vn in opserver
2025-09-22 02:03:37,634 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-57169741:ctest-vn-78261252 virtual network link through opserver 10.0.0.19
2025-09-22 02:03:37,634 - DEBUG - Requesting: http://10.0.0.19:8081/analytics/uves/virtual-networks
2025-09-22 02:03:37,645 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-57169741:ctest-vn-78261252', 'href': 'http://10.0.0.19:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-57169741:ctest-vn-78261252?flat'}
2025-09-22 02:03:37,645 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-57169741:ctest-vn-78261252 is found in opserver
2025-09-22 02:03:37,655 - DEBUG - Do not have enough data to verify VN in agent
2025-09-22 02:03:37,660 - DEBUG - VRF ids for VN ctest-vn-78261252: {}
2025-09-22 02:03:37,727 - DEBUG - Services list from nova: [