2025-10-17 08:37:43,036 - INFO - Domain Default found not creating
2025-10-17 08:37:43,210 - INFO - Project ctest-TestBasicPolicy-09573462 not found, creating it
2025-10-17 08:37:43,652 - INFO - Created Project:ctest-TestBasicPolicy-09573462, ID : de32742d-c05a-4ca8-848b-bea24daba623
2025-10-17 08:37:45,000 - INFO - ================================================================================
2025-10-17 08:37:45,000 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-10-17 08:37:45,000 - 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-17 08:37:45,254 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-10-17 08:37:45,254 - INFO - Initial checks done. Running the testcase now
2025-10-17 08:37:45,254 - INFO -
2025-10-17 08:37:45,771 - DEBUG - Response for create_network : {'network': {'id': 'b25ac6f6-8357-43f3-918b-7a7519d64a91', 'name': 'ctest-vn-44819867', 'tenant_id': 'de32742dc05a4ca8848bbea24daba623', 'project_id': 'de32742dc05a4ca8848bbea24daba623', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09573462', 'ctest-vn-44819867'], 'port_security_enabled': True, 'description': ''}}
2025-10-17 08:37:45,990 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c03bd427-2d4e-4855-8f17-12610783ee8b', 'name': '', 'tenant_id': 'de32742dc05a4ca8848bbea24daba623', 'network_id': 'b25ac6f6-8357-43f3-918b-7a7519d64a91', 'ip_version': 4, 'cidr': '17.231.242.64/26', 'allocation_pools': [{'start': '17.231.242.66', 'end': '17.231.242.126'}], 'gateway_ip': '17.231.242.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '17.231.242.66', 'tags': [], 'project_id': 'de32742dc05a4ca8848bbea24daba623'}}
2025-10-17 08:37:46,009 - INFO - Created VN ctest-vn-44819867
2025-10-17 08:37:46,066 - DEBUG - VN ctest-vn-44819867 UUID is b25ac6f6-8357-43f3-918b-7a7519d64a91
2025-10-17 08:37:46,381 - DEBUG - Response for create_network : {'network': {'id': 'e80389e8-4c39-4ee4-8950-c3982b5656eb', 'name': 'ctest-vn-95678808', 'tenant_id': 'de32742dc05a4ca8848bbea24daba623', 'project_id': 'de32742dc05a4ca8848bbea24daba623', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09573462', 'ctest-vn-95678808'], 'port_security_enabled': True, 'description': ''}}
2025-10-17 08:37:46,543 - DEBUG - Response for create_subnet : {'subnet': {'id': '0b3667e3-cd2e-4092-8b73-b5e7107c9102', 'name': '', 'tenant_id': 'de32742dc05a4ca8848bbea24daba623', 'network_id': 'e80389e8-4c39-4ee4-8950-c3982b5656eb', 'ip_version': 4, 'cidr': '218.252.77.192/26', 'allocation_pools': [{'start': '218.252.77.194', 'end': '218.252.77.254'}], 'gateway_ip': '218.252.77.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '218.252.77.194', 'tags': [], 'project_id': 'de32742dc05a4ca8848bbea24daba623'}}
2025-10-17 08:37:46,562 - INFO - Created VN ctest-vn-95678808
2025-10-17 08:37:46,614 - DEBUG - VN ctest-vn-95678808 UUID is e80389e8-4c39-4ee4-8950-c3982b5656eb
2025-10-17 08:37:46,761 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09573462:ctest-vn-44819867, 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-09573462:ctest-vn-95678808, 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-17 08:37:47,062 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b25ac6f6-8357-43f3-918b-7a7519d64a91', 'name': 'ctest-vn-44819867', 'tenant_id': 'de32742dc05a4ca8848bbea24daba623', 'project_id': 'de32742dc05a4ca8848bbea24daba623', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c03bd427-2d4e-4855-8f17-12610783ee8b'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09573462', 'ctest-vn-44819867'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09573462', 'ctest-policy-allow-all-04773831']], 'subnet_ipam': [{'subnet_cidr': '17.231.242.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-17 08:37:47,275 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e80389e8-4c39-4ee4-8950-c3982b5656eb', 'name': 'ctest-vn-95678808', 'tenant_id': 'de32742dc05a4ca8848bbea24daba623', 'project_id': 'de32742dc05a4ca8848bbea24daba623', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['0b3667e3-cd2e-4092-8b73-b5e7107c9102'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09573462', 'ctest-vn-95678808'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09573462', 'ctest-policy-allow-all-04773831']], 'subnet_ipam': [{'subnet_cidr': '218.252.77.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-10-17 08:37:47,434 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-17 08:37:47,722 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-17 08:37:47,754 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fb4f9b30-d70f-4a95-aa17-c59d60681efe
2025-10-17 08:37:47,765 - DEBUG - Requesting: http://10.0.0.38:8082/project/de32742d-c05a-4ca8-848b-bea24daba623
2025-10-17 08:37:47,835 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b25ac6f6-8357-43f3-918b-7a7519d64a91
2025-10-17 08:37:47,845 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b25ac6f6-8357-43f3-918b-7a7519d64a91
2025-10-17 08:37:47,854 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af1988ed-e4f2-414c-95b1-696f4cf8bccc
2025-10-17 08:37:47,861 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af1988ed-e4f2-414c-95b1-696f4cf8bccc
2025-10-17 08:37:47,866 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9f022503-f836-4eba-911d-309f04e52336
2025-10-17 08:37:47,871 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-17 08:37:47,871 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b25ac6f6-8357-43f3-918b-7a7519d64a91
2025-10-17 08:37:47,879 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af1988ed-e4f2-414c-95b1-696f4cf8bccc
2025-10-17 08:37:47,891 - INFO - Verified VN network id 12 for VN b25ac6f6-8357-43f3-918b-7a7519d64a91
2025-10-17 08:37:47,891 - INFO - Verifications in API Server for VN ctest-vn-44819867 passed
2025-10-17 08:37:47,891 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b25ac6f6-8357-43f3-918b-7a7519d64a91
2025-10-17 08:37:47,899 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af1988ed-e4f2-414c-95b1-696f4cf8bccc
2025-10-17 08:37:47,904 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/af1988ed-e4f2-414c-95b1-696f4cf8bccc
2025-10-17 08:37:47,909 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/9f022503-f836-4eba-911d-309f04e52336
2025-10-17 08:37:47,921 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09573462:ctest-vn-44819867', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09573462', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12851803248722920435', 'uuid-lslong': '10487610800625568401'}, 'enable': 'true', 'created': '2025-10-17T08:37:45', 'last-modified': '2025-10-17T08:37:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.878076'}
2025-10-17 08:37:47,928 - DEBUG - Route Targets: ['target:64512:8000004']
2025-10-17 08:37:47,928 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-44819867 passed
2025-10-17 08:37:47,928 - DEBUG - ====Verifying policy data for ctest-vn-44819867 in API_Server ======
2025-10-17 08:37:47,929 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-17 08:37:47,934 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fb4f9b30-d70f-4a95-aa17-c59d60681efe
2025-10-17 08:37:47,944 - DEBUG - Requesting: http://10.0.0.38:8082/project/de32742d-c05a-4ca8-848b-bea24daba623
2025-10-17 08:37:48,015 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/b25ac6f6-8357-43f3-918b-7a7519d64a91
2025-10-17 08:37:48,024 - DEBUG - ==>Verifying data for policy with id: 38222394-e0c5-4de3-927e-1c7c844d7f10, fqn: ['default-domain', 'ctest-TestBasicPolicy-09573462', 'ctest-policy-allow-all-04773831']
2025-10-17 08:37:48,024 - INFO - VN ctest-vn-44819867 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-17 08:37:48,024 - DEBUG - Verifying the vn in opserver
2025-10-17 08:37:48,024 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09573462:ctest-vn-44819867 virtual network link through opserver 10.0.0.38
2025-10-17 08:37:48,025 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-17 08:37:48,318 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-17 08:37:48,373 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09573462:ctest-vn-44819867', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09573462:ctest-vn-44819867?flat'}
2025-10-17 08:37:48,373 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09573462:ctest-vn-44819867 is found in opserver
2025-10-17 08:37:48,382 - DEBUG - Do not have enough data to verify VN in agent
2025-10-17 08:37:48,386 - DEBUG - VRF ids for VN ctest-vn-44819867: {}
2025-10-17 08:37:48,386 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-17 08:37:48,391 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fb4f9b30-d70f-4a95-aa17-c59d60681efe
2025-10-17 08:37:48,401 - DEBUG - Requesting: http://10.0.0.38:8082/project/de32742d-c05a-4ca8-848b-bea24daba623
2025-10-17 08:37:48,470 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e80389e8-4c39-4ee4-8950-c3982b5656eb
2025-10-17 08:37:48,481 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e80389e8-4c39-4ee4-8950-c3982b5656eb
2025-10-17 08:37:48,488 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cb469636-c2bf-481f-8519-4ee6151eb007
2025-10-17 08:37:48,495 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cb469636-c2bf-481f-8519-4ee6151eb007
2025-10-17 08:37:48,500 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7ef5b6c5-5d87-4918-bc3e-4e601970a1f1
2025-10-17 08:37:48,506 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-17 08:37:48,506 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e80389e8-4c39-4ee4-8950-c3982b5656eb
2025-10-17 08:37:48,514 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cb469636-c2bf-481f-8519-4ee6151eb007
2025-10-17 08:37:48,526 - INFO - Verified VN network id 13 for VN e80389e8-4c39-4ee4-8950-c3982b5656eb
2025-10-17 08:37:48,526 - INFO - Verifications in API Server for VN ctest-vn-95678808 passed
2025-10-17 08:37:48,526 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e80389e8-4c39-4ee4-8950-c3982b5656eb
2025-10-17 08:37:48,534 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cb469636-c2bf-481f-8519-4ee6151eb007
2025-10-17 08:37:48,539 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/cb469636-c2bf-481f-8519-4ee6151eb007
2025-10-17 08:37:48,544 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/7ef5b6c5-5d87-4918-bc3e-4e601970a1f1
2025-10-17 08:37:48,553 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09573462:ctest-vn-95678808', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09573462', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16718357872533655268', 'uuid-lslong': '9894623439662503659'}, 'enable': 'true', 'created': '2025-10-17T08:37:46', 'last-modified': '2025-10-17T08:37:47', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.318404'}
2025-10-17 08:37:48,558 - DEBUG - Route Targets: ['target:64512:8000005']
2025-10-17 08:37:48,558 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-95678808 passed
2025-10-17 08:37:48,558 - DEBUG - ====Verifying policy data for ctest-vn-95678808 in API_Server ======
2025-10-17 08:37:48,558 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-10-17 08:37:48,562 - DEBUG - Requesting: http://10.0.0.38:8082/domain/fb4f9b30-d70f-4a95-aa17-c59d60681efe
2025-10-17 08:37:48,571 - DEBUG - Requesting: http://10.0.0.38:8082/project/de32742d-c05a-4ca8-848b-bea24daba623
2025-10-17 08:37:48,636 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/e80389e8-4c39-4ee4-8950-c3982b5656eb
2025-10-17 08:37:48,645 - DEBUG - ==>Verifying data for policy with id: 38222394-e0c5-4de3-927e-1c7c844d7f10, fqn: ['default-domain', 'ctest-TestBasicPolicy-09573462', 'ctest-policy-allow-all-04773831']
2025-10-17 08:37:48,645 - INFO - VN ctest-vn-95678808 Policy verification: verify_vn_policy_in_api_server, status: True
2025-10-17 08:37:48,645 - DEBUG - Verifying the vn in opserver
2025-10-17 08:37:48,645 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09573462:ctest-vn-95678808 virtual network link through opserver 10.0.0.38
2025-10-17 08:37:48,645 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-10-17 08:37:48,653 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09573462:ctest-vn-95678808', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09573462:ctest-vn-95678808?flat'}
2025-10-17 08:37:48,654 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09573462:ctest-vn-95678808 is found in opserver
2025-10-17 08:37:48,662 - DEBUG - Do not have enough data to verify VN in agent
2025-10-17 08:37:48,666 - DEBUG - VRF ids for VN ctest-vn-95678808: {}
2025-10-17 08:37:48,719 - DEBUG - Services list from nova: [