2025-09-25 01:48:59,111 - INFO - Domain Default found not creating
2025-09-25 01:48:59,258 - INFO - Project ctest-TestBasicPolicy-01613238 not found, creating it
2025-09-25 01:48:59,680 - INFO - Created Project:ctest-TestBasicPolicy-01613238, ID : 0a38ca2e-12ed-4392-b0bf-e9d2ffebc6ee
2025-09-25 01:49:01,021 - INFO - ================================================================================
2025-09-25 01:49:01,021 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-25 01:49:01,021 - 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-25 01:49:01,281 - DEBUG - Nothing to compare xmpp stats {'10.0.0.249': {'10.20.0.129': '0'}} with
2025-09-25 01:49:01,281 - INFO - Initial checks done. Running the testcase now
2025-09-25 01:49:01,281 - INFO -
2025-09-25 01:49:01,799 - DEBUG - Response for create_network : {'network': {'id': '77dc7b91-9a82-4933-8370-be6ba8c520bd', 'name': 'ctest-vn-77616692', 'tenant_id': '0a38ca2e12ed4392b0bfe9d2ffebc6ee', 'project_id': '0a38ca2e12ed4392b0bfe9d2ffebc6ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01613238', 'ctest-vn-77616692'], 'port_security_enabled': True, 'description': ''}}
2025-09-25 01:49:01,982 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd7b8c730-ecf0-4e07-8ed2-8c1abbca9d9a', 'name': '', 'tenant_id': '0a38ca2e12ed4392b0bfe9d2ffebc6ee', 'network_id': '77dc7b91-9a82-4933-8370-be6ba8c520bd', 'ip_version': 4, 'cidr': '77.5.255.192/26', 'allocation_pools': [{'start': '77.5.255.194', 'end': '77.5.255.254'}], 'gateway_ip': '77.5.255.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '77.5.255.194', 'tags': [], 'project_id': '0a38ca2e12ed4392b0bfe9d2ffebc6ee'}}
2025-09-25 01:49:02,001 - INFO - Created VN ctest-vn-77616692
2025-09-25 01:49:02,054 - DEBUG - VN ctest-vn-77616692 UUID is 77dc7b91-9a82-4933-8370-be6ba8c520bd
2025-09-25 01:49:02,377 - DEBUG - Response for create_network : {'network': {'id': '491322cb-071c-41f7-9fb0-74c1c20f3b09', 'name': 'ctest-vn-69284652', 'tenant_id': '0a38ca2e12ed4392b0bfe9d2ffebc6ee', 'project_id': '0a38ca2e12ed4392b0bfe9d2ffebc6ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01613238', 'ctest-vn-69284652'], 'port_security_enabled': True, 'description': ''}}
2025-09-25 01:49:02,584 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e32e34c0-351b-46f5-8024-03e126534d17', 'name': '', 'tenant_id': '0a38ca2e12ed4392b0bfe9d2ffebc6ee', 'network_id': '491322cb-071c-41f7-9fb0-74c1c20f3b09', 'ip_version': 4, 'cidr': '107.61.21.192/26', 'allocation_pools': [{'start': '107.61.21.194', 'end': '107.61.21.254'}], 'gateway_ip': '107.61.21.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '107.61.21.194', 'tags': [], 'project_id': '0a38ca2e12ed4392b0bfe9d2ffebc6ee'}}
2025-09-25 01:49:02,601 - INFO - Created VN ctest-vn-69284652
2025-09-25 01:49:02,654 - DEBUG - VN ctest-vn-69284652 UUID is 491322cb-071c-41f7-9fb0-74c1c20f3b09
2025-09-25 01:49:02,798 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-01613238:ctest-vn-77616692, 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-01613238:ctest-vn-69284652, 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-25 01:49:03,081 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '77dc7b91-9a82-4933-8370-be6ba8c520bd', 'name': 'ctest-vn-77616692', 'tenant_id': '0a38ca2e12ed4392b0bfe9d2ffebc6ee', 'project_id': '0a38ca2e12ed4392b0bfe9d2ffebc6ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d7b8c730-ecf0-4e07-8ed2-8c1abbca9d9a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01613238', 'ctest-vn-77616692'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01613238', 'ctest-policy-allow-all-95391519']], 'subnet_ipam': [{'subnet_cidr': '77.5.255.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-25 01:49:03,306 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '491322cb-071c-41f7-9fb0-74c1c20f3b09', 'name': 'ctest-vn-69284652', 'tenant_id': '0a38ca2e12ed4392b0bfe9d2ffebc6ee', 'project_id': '0a38ca2e12ed4392b0bfe9d2ffebc6ee', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e32e34c0-351b-46f5-8024-03e126534d17'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-01613238', 'ctest-vn-69284652'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-01613238', 'ctest-policy-allow-all-95391519']], 'subnet_ipam': [{'subnet_cidr': '107.61.21.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-25 01:49:03,462 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-09-25 01:49:03,753 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-09-25 01:49:03,779 - DEBUG - Requesting: http://10.0.0.249:8082/domain/42f4896f-8c65-4111-8d4d-af73f91f8c3c
2025-09-25 01:49:03,795 - DEBUG - Requesting: http://10.0.0.249:8082/project/0a38ca2e-12ed-4392-b0bf-e9d2ffebc6ee
2025-09-25 01:49:03,869 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/77dc7b91-9a82-4933-8370-be6ba8c520bd
2025-09-25 01:49:03,878 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/77dc7b91-9a82-4933-8370-be6ba8c520bd
2025-09-25 01:49:03,887 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a9b8db3d-a54b-40a1-adde-c751121e5075
2025-09-25 01:49:03,893 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a9b8db3d-a54b-40a1-adde-c751121e5075
2025-09-25 01:49:03,899 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/6d86408b-af90-4835-b2cf-db1ef24210ca
2025-09-25 01:49:03,906 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-25 01:49:03,906 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/77dc7b91-9a82-4933-8370-be6ba8c520bd
2025-09-25 01:49:03,915 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a9b8db3d-a54b-40a1-adde-c751121e5075
2025-09-25 01:49:03,928 - INFO - Verified VN network id 12 for VN 77dc7b91-9a82-4933-8370-be6ba8c520bd
2025-09-25 01:49:03,929 - INFO - Verifications in API Server for VN ctest-vn-77616692 passed
2025-09-25 01:49:03,929 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/77dc7b91-9a82-4933-8370-be6ba8c520bd
2025-09-25 01:49:03,937 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a9b8db3d-a54b-40a1-adde-c751121e5075
2025-09-25 01:49:03,944 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/a9b8db3d-a54b-40a1-adde-c751121e5075
2025-09-25 01:49:03,950 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/6d86408b-af90-4835-b2cf-db1ef24210ca
2025-09-25 01:49:03,961 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01613238:ctest-vn-77616692', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01613238', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8636914050682472755', 'uuid-lslong': '9471279385962422461'}, 'enable': 'true', 'created': '2025-09-25T01:49:01', 'last-modified': '2025-09-25T01:49:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.900753'}
2025-09-25 01:49:03,966 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-25 01:49:03,966 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77616692 passed
2025-09-25 01:49:03,966 - DEBUG - ====Verifying policy data for ctest-vn-77616692 in API_Server ======
2025-09-25 01:49:03,966 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-09-25 01:49:03,971 - DEBUG - Requesting: http://10.0.0.249:8082/domain/42f4896f-8c65-4111-8d4d-af73f91f8c3c
2025-09-25 01:49:03,982 - DEBUG - Requesting: http://10.0.0.249:8082/project/0a38ca2e-12ed-4392-b0bf-e9d2ffebc6ee
2025-09-25 01:49:04,048 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/77dc7b91-9a82-4933-8370-be6ba8c520bd
2025-09-25 01:49:04,056 - DEBUG - ==>Verifying data for policy with id: e849e3a1-d036-42f8-b8d7-92d5751a0b65, fqn: ['default-domain', 'ctest-TestBasicPolicy-01613238', 'ctest-policy-allow-all-95391519']
2025-09-25 01:49:04,056 - INFO - VN ctest-vn-77616692 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-25 01:49:04,057 - DEBUG - Verifying the vn in opserver
2025-09-25 01:49:04,057 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01613238:ctest-vn-77616692 virtual network link through opserver 10.0.0.249
2025-09-25 01:49:04,057 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-09-25 01:49:04,344 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-09-25 01:49:04,394 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01613238:ctest-vn-77616692', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01613238:ctest-vn-77616692?flat'}
2025-09-25 01:49:04,394 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01613238:ctest-vn-77616692 is found in opserver
2025-09-25 01:49:04,402 - DEBUG - Do not have enough data to verify VN in agent
2025-09-25 01:49:04,406 - DEBUG - VRF ids for VN ctest-vn-77616692: {}
2025-09-25 01:49:04,406 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-09-25 01:49:04,411 - DEBUG - Requesting: http://10.0.0.249:8082/domain/42f4896f-8c65-4111-8d4d-af73f91f8c3c
2025-09-25 01:49:04,421 - DEBUG - Requesting: http://10.0.0.249:8082/project/0a38ca2e-12ed-4392-b0bf-e9d2ffebc6ee
2025-09-25 01:49:04,487 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/491322cb-071c-41f7-9fb0-74c1c20f3b09
2025-09-25 01:49:04,499 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/491322cb-071c-41f7-9fb0-74c1c20f3b09
2025-09-25 01:49:04,508 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6c3739c8-a176-4d80-ad73-976588484465
2025-09-25 01:49:04,514 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6c3739c8-a176-4d80-ad73-976588484465
2025-09-25 01:49:04,520 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/d867b85d-e64b-4f75-9db9-fb68ba056308
2025-09-25 01:49:04,526 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-25 01:49:04,526 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/491322cb-071c-41f7-9fb0-74c1c20f3b09
2025-09-25 01:49:04,534 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6c3739c8-a176-4d80-ad73-976588484465
2025-09-25 01:49:04,546 - INFO - Verified VN network id 13 for VN 491322cb-071c-41f7-9fb0-74c1c20f3b09
2025-09-25 01:49:04,546 - INFO - Verifications in API Server for VN ctest-vn-69284652 passed
2025-09-25 01:49:04,547 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/491322cb-071c-41f7-9fb0-74c1c20f3b09
2025-09-25 01:49:04,555 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6c3739c8-a176-4d80-ad73-976588484465
2025-09-25 01:49:04,561 - DEBUG - Requesting: http://10.0.0.249:8082/routing-instance/6c3739c8-a176-4d80-ad73-976588484465
2025-09-25 01:49:04,567 - DEBUG - Requesting: http://10.0.0.249:8082/route-target/d867b85d-e64b-4f75-9db9-fb68ba056308
2025-09-25 01:49:04,577 - DEBUG - Control-node 10.0.0.249 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-01613238:ctest-vn-69284652', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-01613238', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '5265590644719239671', 'uuid-lslong': '11506825423464905481'}, 'enable': 'true', 'created': '2025-09-25T01:49:02', 'last-modified': '2025-09-25T01:49:03', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.294297'}
2025-09-25 01:49:04,583 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-25 01:49:04,583 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-69284652 passed
2025-09-25 01:49:04,583 - DEBUG - ====Verifying policy data for ctest-vn-69284652 in API_Server ======
2025-09-25 01:49:04,583 - DEBUG - Requesting: http://10.0.0.249:8082/domains
2025-09-25 01:49:04,589 - DEBUG - Requesting: http://10.0.0.249:8082/domain/42f4896f-8c65-4111-8d4d-af73f91f8c3c
2025-09-25 01:49:04,599 - DEBUG - Requesting: http://10.0.0.249:8082/project/0a38ca2e-12ed-4392-b0bf-e9d2ffebc6ee
2025-09-25 01:49:04,666 - DEBUG - Requesting: http://10.0.0.249:8082/virtual-network/491322cb-071c-41f7-9fb0-74c1c20f3b09
2025-09-25 01:49:04,675 - DEBUG - ==>Verifying data for policy with id: e849e3a1-d036-42f8-b8d7-92d5751a0b65, fqn: ['default-domain', 'ctest-TestBasicPolicy-01613238', 'ctest-policy-allow-all-95391519']
2025-09-25 01:49:04,675 - INFO - VN ctest-vn-69284652 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-25 01:49:04,675 - DEBUG - Verifying the vn in opserver
2025-09-25 01:49:04,675 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-01613238:ctest-vn-69284652 virtual network link through opserver 10.0.0.249
2025-09-25 01:49:04,676 - DEBUG - Requesting: http://10.0.0.249:8081/analytics/uves/virtual-networks
2025-09-25 01:49:04,685 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-01613238:ctest-vn-69284652', 'href': 'http://10.0.0.249:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-01613238:ctest-vn-69284652?flat'}
2025-09-25 01:49:04,685 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-01613238:ctest-vn-69284652 is found in opserver
2025-09-25 01:49:04,694 - DEBUG - Do not have enough data to verify VN in agent
2025-09-25 01:49:04,698 - DEBUG - VRF ids for VN ctest-vn-69284652: {}
2025-09-25 01:49:04,763 - DEBUG - Services list from nova: [