2025-09-18 01:57:07,573 - INFO - Domain Default found not creating
2025-09-18 01:57:07,720 - INFO - Project ctest-TestBasicPolicy-47366384 not found, creating it
2025-09-18 01:57:08,163 - INFO - Created Project:ctest-TestBasicPolicy-47366384, ID : fd1b1d55-1468-4d9e-ace1-689a5e69e00d
2025-09-18 01:57:09,687 - INFO - ================================================================================
2025-09-18 01:57:09,687 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-18 01:57:09,687 - 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-18 01:57:09,944 - DEBUG - Nothing to compare xmpp stats {'10.0.0.49': {'10.20.0.18': '0'}} with
2025-09-18 01:57:09,944 - INFO - Initial checks done. Running the testcase now
2025-09-18 01:57:09,944 - INFO -
2025-09-18 01:57:10,538 - DEBUG - Response for create_network : {'network': {'id': '5c26d40d-7b0c-4d8c-ab51-0c5dfdd621a9', 'name': 'ctest-vn-34027513', 'tenant_id': 'fd1b1d5514684d9eace1689a5e69e00d', 'project_id': 'fd1b1d5514684d9eace1689a5e69e00d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47366384', 'ctest-vn-34027513'], 'port_security_enabled': True, 'description': ''}}
2025-09-18 01:57:10,756 - DEBUG - Response for create_subnet : {'subnet': {'id': '74dccffc-0786-4bdf-8151-11671af5a117', 'name': '', 'tenant_id': 'fd1b1d5514684d9eace1689a5e69e00d', 'network_id': '5c26d40d-7b0c-4d8c-ab51-0c5dfdd621a9', 'ip_version': 4, 'cidr': '164.127.220.128/26', 'allocation_pools': [{'start': '164.127.220.130', 'end': '164.127.220.190'}], 'gateway_ip': '164.127.220.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '164.127.220.130', 'tags': [], 'project_id': 'fd1b1d5514684d9eace1689a5e69e00d'}}
2025-09-18 01:57:10,773 - INFO - Created VN ctest-vn-34027513
2025-09-18 01:57:10,823 - DEBUG - VN ctest-vn-34027513 UUID is 5c26d40d-7b0c-4d8c-ab51-0c5dfdd621a9
2025-09-18 01:57:11,113 - DEBUG - Response for create_network : {'network': {'id': '2ecf0ac6-6b06-4ff3-9c6c-6bca1e3d4b4e', 'name': 'ctest-vn-80227714', 'tenant_id': 'fd1b1d5514684d9eace1689a5e69e00d', 'project_id': 'fd1b1d5514684d9eace1689a5e69e00d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47366384', 'ctest-vn-80227714'], 'port_security_enabled': True, 'description': ''}}
2025-09-18 01:57:11,328 - DEBUG - Response for create_subnet : {'subnet': {'id': '2e58aac9-6164-43fc-a9c6-1557eb2201af', 'name': '', 'tenant_id': 'fd1b1d5514684d9eace1689a5e69e00d', 'network_id': '2ecf0ac6-6b06-4ff3-9c6c-6bca1e3d4b4e', 'ip_version': 4, 'cidr': '175.71.109.0/26', 'allocation_pools': [{'start': '175.71.109.2', 'end': '175.71.109.62'}], 'gateway_ip': '175.71.109.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '175.71.109.2', 'tags': [], 'project_id': 'fd1b1d5514684d9eace1689a5e69e00d'}}
2025-09-18 01:57:11,345 - INFO - Created VN ctest-vn-80227714
2025-09-18 01:57:11,395 - DEBUG - VN ctest-vn-80227714 UUID is 2ecf0ac6-6b06-4ff3-9c6c-6bca1e3d4b4e
2025-09-18 01:57:11,547 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-47366384:ctest-vn-34027513, 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-47366384:ctest-vn-80227714, 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-18 01:57:11,850 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5c26d40d-7b0c-4d8c-ab51-0c5dfdd621a9', 'name': 'ctest-vn-34027513', 'tenant_id': 'fd1b1d5514684d9eace1689a5e69e00d', 'project_id': 'fd1b1d5514684d9eace1689a5e69e00d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['74dccffc-0786-4bdf-8151-11671af5a117'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47366384', 'ctest-vn-34027513'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47366384', 'ctest-policy-allow-all-59643308']], 'subnet_ipam': [{'subnet_cidr': '164.127.220.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-18 01:57:12,167 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '2ecf0ac6-6b06-4ff3-9c6c-6bca1e3d4b4e', 'name': 'ctest-vn-80227714', 'tenant_id': 'fd1b1d5514684d9eace1689a5e69e00d', 'project_id': 'fd1b1d5514684d9eace1689a5e69e00d', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['2e58aac9-6164-43fc-a9c6-1557eb2201af'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-47366384', 'ctest-vn-80227714'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-47366384', 'ctest-policy-allow-all-59643308']], 'subnet_ipam': [{'subnet_cidr': '175.71.109.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-18 01:57:12,307 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-18 01:57:12,642 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-18 01:57:12,673 - DEBUG - Requesting: http://10.0.0.49:8082/domain/5fde2650-5597-4871-87cc-c93f22711b70
2025-09-18 01:57:12,687 - DEBUG - Requesting: http://10.0.0.49:8082/project/fd1b1d55-1468-4d9e-ace1-689a5e69e00d
2025-09-18 01:57:12,761 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5c26d40d-7b0c-4d8c-ab51-0c5dfdd621a9
2025-09-18 01:57:12,773 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5c26d40d-7b0c-4d8c-ab51-0c5dfdd621a9
2025-09-18 01:57:12,783 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4e146cdc-5f08-4a78-a774-3342cd1e2d97
2025-09-18 01:57:12,789 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4e146cdc-5f08-4a78-a774-3342cd1e2d97
2025-09-18 01:57:12,796 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/5d75cb0d-87ae-4050-90d9-0511ce77fe03
2025-09-18 01:57:12,801 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-18 01:57:12,801 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5c26d40d-7b0c-4d8c-ab51-0c5dfdd621a9
2025-09-18 01:57:12,809 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4e146cdc-5f08-4a78-a774-3342cd1e2d97
2025-09-18 01:57:12,823 - INFO - Verified VN network id 11 for VN 5c26d40d-7b0c-4d8c-ab51-0c5dfdd621a9
2025-09-18 01:57:12,824 - INFO - Verifications in API Server for VN ctest-vn-34027513 passed
2025-09-18 01:57:12,824 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5c26d40d-7b0c-4d8c-ab51-0c5dfdd621a9
2025-09-18 01:57:12,833 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4e146cdc-5f08-4a78-a774-3342cd1e2d97
2025-09-18 01:57:12,839 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/4e146cdc-5f08-4a78-a774-3342cd1e2d97
2025-09-18 01:57:12,844 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/5d75cb0d-87ae-4050-90d9-0511ce77fe03
2025-09-18 01:57:12,859 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47366384:ctest-vn-34027513', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47366384', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6640227854968442252', 'uuid-lslong': '12344661651429401001'}, 'enable': 'true', 'created': '2025-09-18T01:57:10', 'last-modified': '2025-09-18T01:57:11', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.038431'}
2025-09-18 01:57:12,865 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-18 01:57:12,865 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-34027513 passed
2025-09-18 01:57:12,865 - DEBUG - ====Verifying policy data for ctest-vn-34027513 in API_Server ======
2025-09-18 01:57:12,865 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-18 01:57:12,870 - DEBUG - Requesting: http://10.0.0.49:8082/domain/5fde2650-5597-4871-87cc-c93f22711b70
2025-09-18 01:57:12,881 - DEBUG - Requesting: http://10.0.0.49:8082/project/fd1b1d55-1468-4d9e-ace1-689a5e69e00d
2025-09-18 01:57:12,948 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/5c26d40d-7b0c-4d8c-ab51-0c5dfdd621a9
2025-09-18 01:57:12,957 - DEBUG - ==>Verifying data for policy with id: 54adc757-691f-4482-aae2-1566383f3ef4, fqn: ['default-domain', 'ctest-TestBasicPolicy-47366384', 'ctest-policy-allow-all-59643308']
2025-09-18 01:57:12,957 - INFO - VN ctest-vn-34027513 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-18 01:57:12,957 - DEBUG - Verifying the vn in opserver
2025-09-18 01:57:12,957 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47366384:ctest-vn-34027513 virtual network link through opserver 10.0.0.49
2025-09-18 01:57:12,957 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-09-18 01:57:13,288 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-09-18 01:57:13,346 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47366384:ctest-vn-34027513', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47366384:ctest-vn-34027513?flat'}
2025-09-18 01:57:13,346 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47366384:ctest-vn-34027513 is found in opserver
2025-09-18 01:57:13,355 - DEBUG - Do not have enough data to verify VN in agent
2025-09-18 01:57:13,360 - DEBUG - VRF ids for VN ctest-vn-34027513: {}
2025-09-18 01:57:13,361 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-18 01:57:13,366 - DEBUG - Requesting: http://10.0.0.49:8082/domain/5fde2650-5597-4871-87cc-c93f22711b70
2025-09-18 01:57:13,376 - DEBUG - Requesting: http://10.0.0.49:8082/project/fd1b1d55-1468-4d9e-ace1-689a5e69e00d
2025-09-18 01:57:13,451 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/2ecf0ac6-6b06-4ff3-9c6c-6bca1e3d4b4e
2025-09-18 01:57:13,463 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/2ecf0ac6-6b06-4ff3-9c6c-6bca1e3d4b4e
2025-09-18 01:57:13,471 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d8f03af2-7a7c-46fa-a6b6-9cf78947450f
2025-09-18 01:57:13,477 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d8f03af2-7a7c-46fa-a6b6-9cf78947450f
2025-09-18 01:57:13,483 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/ec7d5819-285e-4009-851a-b23df55fd1ef
2025-09-18 01:57:13,489 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-18 01:57:13,489 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/2ecf0ac6-6b06-4ff3-9c6c-6bca1e3d4b4e
2025-09-18 01:57:13,498 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d8f03af2-7a7c-46fa-a6b6-9cf78947450f
2025-09-18 01:57:13,510 - INFO - Verified VN network id 12 for VN 2ecf0ac6-6b06-4ff3-9c6c-6bca1e3d4b4e
2025-09-18 01:57:13,510 - INFO - Verifications in API Server for VN ctest-vn-80227714 passed
2025-09-18 01:57:13,510 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/2ecf0ac6-6b06-4ff3-9c6c-6bca1e3d4b4e
2025-09-18 01:57:13,518 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d8f03af2-7a7c-46fa-a6b6-9cf78947450f
2025-09-18 01:57:13,524 - DEBUG - Requesting: http://10.0.0.49:8082/routing-instance/d8f03af2-7a7c-46fa-a6b6-9cf78947450f
2025-09-18 01:57:13,530 - DEBUG - Requesting: http://10.0.0.49:8082/route-target/ec7d5819-285e-4009-851a-b23df55fd1ef
2025-09-18 01:57:13,541 - DEBUG - Control-node 10.0.0.49 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-47366384:ctest-vn-80227714', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-47366384', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3372926493239169011', 'uuid-lslong': '11271502483236408142'}, 'enable': 'true', 'created': '2025-09-18T01:57:11', 'last-modified': '2025-09-18T01:57:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.480849'}
2025-09-18 01:57:13,549 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-18 01:57:13,549 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-80227714 passed
2025-09-18 01:57:13,549 - DEBUG - ====Verifying policy data for ctest-vn-80227714 in API_Server ======
2025-09-18 01:57:13,549 - DEBUG - Requesting: http://10.0.0.49:8082/domains
2025-09-18 01:57:13,555 - DEBUG - Requesting: http://10.0.0.49:8082/domain/5fde2650-5597-4871-87cc-c93f22711b70
2025-09-18 01:57:13,565 - DEBUG - Requesting: http://10.0.0.49:8082/project/fd1b1d55-1468-4d9e-ace1-689a5e69e00d
2025-09-18 01:57:13,632 - DEBUG - Requesting: http://10.0.0.49:8082/virtual-network/2ecf0ac6-6b06-4ff3-9c6c-6bca1e3d4b4e
2025-09-18 01:57:13,640 - DEBUG - ==>Verifying data for policy with id: 54adc757-691f-4482-aae2-1566383f3ef4, fqn: ['default-domain', 'ctest-TestBasicPolicy-47366384', 'ctest-policy-allow-all-59643308']
2025-09-18 01:57:13,640 - INFO - VN ctest-vn-80227714 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-18 01:57:13,640 - DEBUG - Verifying the vn in opserver
2025-09-18 01:57:13,640 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-47366384:ctest-vn-80227714 virtual network link through opserver 10.0.0.49
2025-09-18 01:57:13,640 - DEBUG - Requesting: http://10.0.0.49:8081/analytics/uves/virtual-networks
2025-09-18 01:57:13,650 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-47366384:ctest-vn-80227714', 'href': 'http://10.0.0.49:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-47366384:ctest-vn-80227714?flat'}
2025-09-18 01:57:13,650 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-47366384:ctest-vn-80227714 is found in opserver
2025-09-18 01:57:13,658 - DEBUG - Do not have enough data to verify VN in agent
2025-09-18 01:57:13,662 - DEBUG - VRF ids for VN ctest-vn-80227714: {}
2025-09-18 01:57:13,721 - DEBUG - Services list from nova: [