2025-10-31 14:40:49,774 - INFO - Domain Default found not creating
2025-10-31 14:40:49,897 - INFO - Project ctest-TestBasicPolicy-11361316 not found, creating it
2025-10-31 14:40:50,325 - INFO - Created Project:ctest-TestBasicPolicy-11361316, ID : 9de64329-c7d0-4432-8d75-9f3a31a4170c
2025-10-31 14:40:51,664 - INFO - ================================================================================
2025-10-31 14:40:51,664 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-31 14:40:51,664 - 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-31 14:40:51,918 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.17': '0'}} with
2025-10-31 14:40:51,918 - INFO - Initial checks done. Running the testcase now
2025-10-31 14:40:51,918 - INFO -
2025-10-31 14:40:52,437 - DEBUG - Response for create_network : {'network': {'id': '4daa9c86-ccab-4e86-9946-33d6cbc8ab3b', 'name': 'ctest-vn-33496323', 'tenant_id': '9de64329c7d044328d759f3a31a4170c', 'project_id': '9de64329c7d044328d759f3a31a4170c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11361316', 'ctest-vn-33496323'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 14:40:52,594 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b89a68e4-24e7-4dd8-a37d-6cc3f806b927', 'name': '', 'tenant_id': '9de64329c7d044328d759f3a31a4170c', 'network_id': '4daa9c86-ccab-4e86-9946-33d6cbc8ab3b', 'ip_version': 4, 'cidr': '62.240.42.192/26', 'allocation_pools': [{'start': '62.240.42.194', 'end': '62.240.42.254'}], 'gateway_ip': '62.240.42.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '62.240.42.194', 'tags': [], 'project_id': '9de64329c7d044328d759f3a31a4170c'}}
2025-10-31 14:40:52,608 - INFO - Created VN ctest-vn-33496323
2025-10-31 14:40:52,658 - DEBUG - VN ctest-vn-33496323 UUID is 4daa9c86-ccab-4e86-9946-33d6cbc8ab3b
2025-10-31 14:40:52,967 - DEBUG - Response for create_network : {'network': {'id': '7bea3ced-81d2-4bae-b1bf-69fdd15bb975', 'name': 'ctest-vn-40746677', 'tenant_id': '9de64329c7d044328d759f3a31a4170c', 'project_id': '9de64329c7d044328d759f3a31a4170c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11361316', 'ctest-vn-40746677'], 'port_security_enabled': True, 'description': ''}}
2025-10-31 14:40:53,134 - DEBUG - Response for create_subnet : {'subnet': {'id': '5de9e6ab-7669-4632-b327-ec5b9a9c40f9', 'name': '', 'tenant_id': '9de64329c7d044328d759f3a31a4170c', 'network_id': '7bea3ced-81d2-4bae-b1bf-69fdd15bb975', 'ip_version': 4, 'cidr': '120.14.185.64/26', 'allocation_pools': [{'start': '120.14.185.66', 'end': '120.14.185.126'}], 'gateway_ip': '120.14.185.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '120.14.185.66', 'tags': [], 'project_id': '9de64329c7d044328d759f3a31a4170c'}}
2025-10-31 14:40:53,151 - INFO - Created VN ctest-vn-40746677
2025-10-31 14:40:53,202 - DEBUG - VN ctest-vn-40746677 UUID is 7bea3ced-81d2-4bae-b1bf-69fdd15bb975
2025-10-31 14:40:53,350 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11361316:ctest-vn-33496323, 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-11361316:ctest-vn-40746677, 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-31 14:40:53,622 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '4daa9c86-ccab-4e86-9946-33d6cbc8ab3b', 'name': 'ctest-vn-33496323', 'tenant_id': '9de64329c7d044328d759f3a31a4170c', 'project_id': '9de64329c7d044328d759f3a31a4170c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b89a68e4-24e7-4dd8-a37d-6cc3f806b927'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11361316', 'ctest-vn-33496323'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11361316', 'ctest-policy-allow-all-35673075']], 'subnet_ipam': [{'subnet_cidr': '62.240.42.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 14:40:53,838 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '7bea3ced-81d2-4bae-b1bf-69fdd15bb975', 'name': 'ctest-vn-40746677', 'tenant_id': '9de64329c7d044328d759f3a31a4170c', 'project_id': '9de64329c7d044328d759f3a31a4170c', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['5de9e6ab-7669-4632-b327-ec5b9a9c40f9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11361316', 'ctest-vn-40746677'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11361316', 'ctest-policy-allow-all-35673075']], 'subnet_ipam': [{'subnet_cidr': '120.14.185.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-31 14:40:54,002 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-31 14:40:54,290 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-31 14:40:54,318 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ea5ef658-181c-4ca1-bb8d-a7dd743bdfc2
2025-10-31 14:40:54,330 - DEBUG - Requesting: http://10.0.0.50:8082/project/9de64329-c7d0-4432-8d75-9f3a31a4170c
2025-10-31 14:40:54,397 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4daa9c86-ccab-4e86-9946-33d6cbc8ab3b
2025-10-31 14:40:54,407 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4daa9c86-ccab-4e86-9946-33d6cbc8ab3b
2025-10-31 14:40:54,415 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bb21b198-da64-47e6-a719-cc4219117aca
2025-10-31 14:40:54,420 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bb21b198-da64-47e6-a719-cc4219117aca
2025-10-31 14:40:54,426 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/21464971-755c-4af8-9eb9-dc863508ed0a
2025-10-31 14:40:54,430 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 14:40:54,430 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4daa9c86-ccab-4e86-9946-33d6cbc8ab3b
2025-10-31 14:40:54,437 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bb21b198-da64-47e6-a719-cc4219117aca
2025-10-31 14:40:54,451 - INFO - Verified VN network id 12 for VN 4daa9c86-ccab-4e86-9946-33d6cbc8ab3b
2025-10-31 14:40:54,451 - INFO - Verifications in API Server for VN ctest-vn-33496323 passed
2025-10-31 14:40:54,451 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4daa9c86-ccab-4e86-9946-33d6cbc8ab3b
2025-10-31 14:40:54,459 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bb21b198-da64-47e6-a719-cc4219117aca
2025-10-31 14:40:54,464 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/bb21b198-da64-47e6-a719-cc4219117aca
2025-10-31 14:40:54,470 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/21464971-755c-4af8-9eb9-dc863508ed0a
2025-10-31 14:40:54,479 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11361316:ctest-vn-33496323', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11361316', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5596457589734592134', 'uuid-lslong': '11044572133807663931'}, 'enable': 'true', 'created': '2025-10-31T14:40:52', 'last-modified': '2025-10-31T14:40:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.875580'}
2025-10-31 14:40:54,488 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-31 14:40:54,488 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33496323 passed
2025-10-31 14:40:54,488 - DEBUG - ====Verifying policy data for ctest-vn-33496323 in API_Server ======
2025-10-31 14:40:54,488 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-31 14:40:54,498 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ea5ef658-181c-4ca1-bb8d-a7dd743bdfc2
2025-10-31 14:40:54,508 - DEBUG - Requesting: http://10.0.0.50:8082/project/9de64329-c7d0-4432-8d75-9f3a31a4170c
2025-10-31 14:40:54,577 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/4daa9c86-ccab-4e86-9946-33d6cbc8ab3b
2025-10-31 14:40:54,584 - DEBUG - ==>Verifying data for policy with id: 5a718b34-9abf-41e2-98b8-4e68e0776674, fqn: ['default-domain', 'ctest-TestBasicPolicy-11361316', 'ctest-policy-allow-all-35673075']
2025-10-31 14:40:54,585 - INFO - VN ctest-vn-33496323 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 14:40:54,585 - DEBUG - Verifying the vn in opserver
2025-10-31 14:40:54,585 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11361316:ctest-vn-33496323 virtual network link through opserver 10.0.0.50
2025-10-31 14:40:54,585 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-31 14:40:54,873 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-31 14:40:54,927 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11361316:ctest-vn-33496323', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11361316:ctest-vn-33496323?flat'}
2025-10-31 14:40:54,927 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11361316:ctest-vn-33496323 is found in opserver
2025-10-31 14:40:54,935 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 14:40:54,939 - DEBUG - VRF ids for VN ctest-vn-33496323: {}
2025-10-31 14:40:54,939 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-31 14:40:54,943 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ea5ef658-181c-4ca1-bb8d-a7dd743bdfc2
2025-10-31 14:40:54,953 - DEBUG - Requesting: http://10.0.0.50:8082/project/9de64329-c7d0-4432-8d75-9f3a31a4170c
2025-10-31 14:40:55,016 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7bea3ced-81d2-4bae-b1bf-69fdd15bb975
2025-10-31 14:40:55,026 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7bea3ced-81d2-4bae-b1bf-69fdd15bb975
2025-10-31 14:40:55,034 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3b44481e-4f79-4e6f-a71f-41888db1ebf0
2025-10-31 14:40:55,040 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3b44481e-4f79-4e6f-a71f-41888db1ebf0
2025-10-31 14:40:55,046 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5dfabbb5-df75-4b5d-980d-e3b5227fe960
2025-10-31 14:40:55,052 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 14:40:55,052 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7bea3ced-81d2-4bae-b1bf-69fdd15bb975
2025-10-31 14:40:55,059 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3b44481e-4f79-4e6f-a71f-41888db1ebf0
2025-10-31 14:40:55,070 - INFO - Verified VN network id 13 for VN 7bea3ced-81d2-4bae-b1bf-69fdd15bb975
2025-10-31 14:40:55,070 - INFO - Verifications in API Server for VN ctest-vn-40746677 passed
2025-10-31 14:40:55,070 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7bea3ced-81d2-4bae-b1bf-69fdd15bb975
2025-10-31 14:40:55,078 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3b44481e-4f79-4e6f-a71f-41888db1ebf0
2025-10-31 14:40:55,084 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/3b44481e-4f79-4e6f-a71f-41888db1ebf0
2025-10-31 14:40:55,089 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/5dfabbb5-df75-4b5d-980d-e3b5227fe960
2025-10-31 14:40:55,099 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11361316:ctest-vn-40746677', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11361316', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8929016201998388142', 'uuid-lslong': '12808072404125071733'}, 'enable': 'true', 'created': '2025-10-31T14:40:52', 'last-modified': '2025-10-31T14:40:53', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.284808'}
2025-10-31 14:40:55,106 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-31 14:40:55,106 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-40746677 passed
2025-10-31 14:40:55,106 - DEBUG - ====Verifying policy data for ctest-vn-40746677 in API_Server ======
2025-10-31 14:40:55,106 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-10-31 14:40:55,111 - DEBUG - Requesting: http://10.0.0.50:8082/domain/ea5ef658-181c-4ca1-bb8d-a7dd743bdfc2
2025-10-31 14:40:55,120 - DEBUG - Requesting: http://10.0.0.50:8082/project/9de64329-c7d0-4432-8d75-9f3a31a4170c
2025-10-31 14:40:55,188 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/7bea3ced-81d2-4bae-b1bf-69fdd15bb975
2025-10-31 14:40:55,197 - DEBUG - ==>Verifying data for policy with id: 5a718b34-9abf-41e2-98b8-4e68e0776674, fqn: ['default-domain', 'ctest-TestBasicPolicy-11361316', 'ctest-policy-allow-all-35673075']
2025-10-31 14:40:55,197 - INFO - VN ctest-vn-40746677 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-31 14:40:55,197 - DEBUG - Verifying the vn in opserver
2025-10-31 14:40:55,197 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11361316:ctest-vn-40746677 virtual network link through opserver 10.0.0.50
2025-10-31 14:40:55,197 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-10-31 14:40:55,206 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11361316:ctest-vn-40746677', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11361316:ctest-vn-40746677?flat'}
2025-10-31 14:40:55,206 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11361316:ctest-vn-40746677 is found in opserver
2025-10-31 14:40:55,216 - DEBUG - Do not have enough data to verify VN in agent
2025-10-31 14:40:55,221 - DEBUG - VRF ids for VN ctest-vn-40746677: {}
2025-10-31 14:40:55,287 - DEBUG - Services list from nova: [