2025-09-05 12:45:08,157 - INFO - Domain Default found not creating
2025-09-05 12:45:08,311 - INFO - Project ctest-TestBasicPolicy-19793980 not found, creating it
2025-09-05 12:45:08,761 - INFO - Created Project:ctest-TestBasicPolicy-19793980, ID : d8a165db-536b-4613-8dd4-f6c4c4ebc0b5
2025-09-05 12:45:10,318 - INFO - ================================================================================
2025-09-05 12:45:10,319 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-09-05 12:45:10,319 - 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-05 12:45:10,579 - DEBUG - Nothing to compare xmpp stats {'10.0.0.254': {'10.20.0.17': '0'}} with
2025-09-05 12:45:10,579 - INFO - Initial checks done. Running the testcase now
2025-09-05 12:45:10,579 - INFO -
2025-09-05 12:45:11,168 - DEBUG - Response for create_network : {'network': {'id': 'ae6a5d58-8aba-400e-815a-87bdbe2649f7', 'name': 'ctest-vn-82456151', 'tenant_id': 'd8a165db536b46138dd4f6c4c4ebc0b5', 'project_id': 'd8a165db536b46138dd4f6c4c4ebc0b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19793980', 'ctest-vn-82456151'], 'port_security_enabled': True, 'description': ''}}
2025-09-05 12:45:11,368 - DEBUG - Response for create_subnet : {'subnet': {'id': '3665b02d-d411-4b7c-a6b2-287b9af0d6f5', 'name': '', 'tenant_id': 'd8a165db536b46138dd4f6c4c4ebc0b5', 'network_id': 'ae6a5d58-8aba-400e-815a-87bdbe2649f7', 'ip_version': 4, 'cidr': '58.172.105.64/26', 'allocation_pools': [{'start': '58.172.105.66', 'end': '58.172.105.126'}], 'gateway_ip': '58.172.105.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '58.172.105.66', 'tags': [], 'project_id': 'd8a165db536b46138dd4f6c4c4ebc0b5'}}
2025-09-05 12:45:11,386 - INFO - Created VN ctest-vn-82456151
2025-09-05 12:45:11,437 - DEBUG - VN ctest-vn-82456151 UUID is ae6a5d58-8aba-400e-815a-87bdbe2649f7
2025-09-05 12:45:11,758 - DEBUG - Response for create_network : {'network': {'id': '0daebdc2-7e1f-45df-88cb-fb663127e88f', 'name': 'ctest-vn-32714029', 'tenant_id': 'd8a165db536b46138dd4f6c4c4ebc0b5', 'project_id': 'd8a165db536b46138dd4f6c4c4ebc0b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19793980', 'ctest-vn-32714029'], 'port_security_enabled': True, 'description': ''}}
2025-09-05 12:45:11,916 - DEBUG - Response for create_subnet : {'subnet': {'id': '8bb4c434-b2f9-45ac-a211-edb8150e01ff', 'name': '', 'tenant_id': 'd8a165db536b46138dd4f6c4c4ebc0b5', 'network_id': '0daebdc2-7e1f-45df-88cb-fb663127e88f', 'ip_version': 4, 'cidr': '19.64.39.128/26', 'allocation_pools': [{'start': '19.64.39.130', 'end': '19.64.39.190'}], 'gateway_ip': '19.64.39.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '19.64.39.130', 'tags': [], 'project_id': 'd8a165db536b46138dd4f6c4c4ebc0b5'}}
2025-09-05 12:45:11,936 - INFO - Created VN ctest-vn-32714029
2025-09-05 12:45:11,989 - DEBUG - VN ctest-vn-32714029 UUID is 0daebdc2-7e1f-45df-88cb-fb663127e88f
2025-09-05 12:45:12,141 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-19793980:ctest-vn-82456151, 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-19793980:ctest-vn-32714029, 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-05 12:45:12,433 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ae6a5d58-8aba-400e-815a-87bdbe2649f7', 'name': 'ctest-vn-82456151', 'tenant_id': 'd8a165db536b46138dd4f6c4c4ebc0b5', 'project_id': 'd8a165db536b46138dd4f6c4c4ebc0b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['3665b02d-d411-4b7c-a6b2-287b9af0d6f5'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19793980', 'ctest-vn-82456151'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19793980', 'ctest-policy-allow-all-16492987']], 'subnet_ipam': [{'subnet_cidr': '58.172.105.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-05 12:45:12,667 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '0daebdc2-7e1f-45df-88cb-fb663127e88f', 'name': 'ctest-vn-32714029', 'tenant_id': 'd8a165db536b46138dd4f6c4c4ebc0b5', 'project_id': 'd8a165db536b46138dd4f6c4c4ebc0b5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['8bb4c434-b2f9-45ac-a211-edb8150e01ff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-19793980', 'ctest-vn-32714029'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-19793980', 'ctest-policy-allow-all-16492987']], 'subnet_ipam': [{'subnet_cidr': '19.64.39.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-09-05 12:45:12,833 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-05 12:45:13,174 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-05 12:45:13,203 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8ba1e9cd-aad8-4b47-b9ca-29524b86436a
2025-09-05 12:45:13,217 - DEBUG - Requesting: http://10.0.0.254:8082/project/d8a165db-536b-4613-8dd4-f6c4c4ebc0b5
2025-09-05 12:45:13,294 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ae6a5d58-8aba-400e-815a-87bdbe2649f7
2025-09-05 12:45:13,305 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ae6a5d58-8aba-400e-815a-87bdbe2649f7
2025-09-05 12:45:13,315 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/334434a5-6b63-4aaa-944c-90e648d67994
2025-09-05 12:45:13,323 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/334434a5-6b63-4aaa-944c-90e648d67994
2025-09-05 12:45:13,330 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/88145d8a-802b-4fae-90f5-915912596ac4
2025-09-05 12:45:13,337 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-05 12:45:13,337 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ae6a5d58-8aba-400e-815a-87bdbe2649f7
2025-09-05 12:45:13,346 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/334434a5-6b63-4aaa-944c-90e648d67994
2025-09-05 12:45:13,359 - INFO - Verified VN network id 12 for VN ae6a5d58-8aba-400e-815a-87bdbe2649f7
2025-09-05 12:45:13,359 - INFO - Verifications in API Server for VN ctest-vn-82456151 passed
2025-09-05 12:45:13,359 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ae6a5d58-8aba-400e-815a-87bdbe2649f7
2025-09-05 12:45:13,369 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/334434a5-6b63-4aaa-944c-90e648d67994
2025-09-05 12:45:13,376 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/334434a5-6b63-4aaa-944c-90e648d67994
2025-09-05 12:45:13,382 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/88145d8a-802b-4fae-90f5-915912596ac4
2025-09-05 12:45:13,394 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19793980:ctest-vn-82456151', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19793980', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12567960344996757518', 'uuid-lslong': '9320911627805411831'}, 'enable': 'true', 'created': '2025-09-05T12:45:11', 'last-modified': '2025-09-05T12:45:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.980507'}
2025-09-05 12:45:13,400 - DEBUG - Route Targets: ['target:64512:8000004']
2025-09-05 12:45:13,400 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-82456151 passed
2025-09-05 12:45:13,400 - DEBUG - ====Verifying policy data for ctest-vn-82456151 in API_Server ======
2025-09-05 12:45:13,401 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-05 12:45:13,407 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8ba1e9cd-aad8-4b47-b9ca-29524b86436a
2025-09-05 12:45:13,417 - DEBUG - Requesting: http://10.0.0.254:8082/project/d8a165db-536b-4613-8dd4-f6c4c4ebc0b5
2025-09-05 12:45:13,487 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/ae6a5d58-8aba-400e-815a-87bdbe2649f7
2025-09-05 12:45:13,509 - DEBUG - ==>Verifying data for policy with id: 2f21dc7b-d5f5-410e-bc8c-5c84222280f7, fqn: ['default-domain', 'ctest-TestBasicPolicy-19793980', 'ctest-policy-allow-all-16492987']
2025-09-05 12:45:13,509 - INFO - VN ctest-vn-82456151 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-05 12:45:13,509 - DEBUG - Verifying the vn in opserver
2025-09-05 12:45:13,509 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19793980:ctest-vn-82456151 virtual network link through opserver 10.0.0.254
2025-09-05 12:45:13,509 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-05 12:45:13,846 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-05 12:45:13,899 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19793980:ctest-vn-82456151', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19793980:ctest-vn-82456151?flat'}
2025-09-05 12:45:13,899 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19793980:ctest-vn-82456151 is found in opserver
2025-09-05 12:45:13,908 - DEBUG - Do not have enough data to verify VN in agent
2025-09-05 12:45:13,914 - DEBUG - VRF ids for VN ctest-vn-82456151: {}
2025-09-05 12:45:13,914 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-05 12:45:13,919 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8ba1e9cd-aad8-4b47-b9ca-29524b86436a
2025-09-05 12:45:13,930 - DEBUG - Requesting: http://10.0.0.254:8082/project/d8a165db-536b-4613-8dd4-f6c4c4ebc0b5
2025-09-05 12:45:13,998 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0daebdc2-7e1f-45df-88cb-fb663127e88f
2025-09-05 12:45:14,009 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0daebdc2-7e1f-45df-88cb-fb663127e88f
2025-09-05 12:45:14,018 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3756d7e9-694c-47f6-bbf5-6285a6ba4a4d
2025-09-05 12:45:14,024 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3756d7e9-694c-47f6-bbf5-6285a6ba4a4d
2025-09-05 12:45:14,031 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/374e2dd8-49fd-4c91-9921-7e696766931d
2025-09-05 12:45:14,037 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-05 12:45:14,037 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0daebdc2-7e1f-45df-88cb-fb663127e88f
2025-09-05 12:45:14,045 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3756d7e9-694c-47f6-bbf5-6285a6ba4a4d
2025-09-05 12:45:14,057 - INFO - Verified VN network id 13 for VN 0daebdc2-7e1f-45df-88cb-fb663127e88f
2025-09-05 12:45:14,057 - INFO - Verifications in API Server for VN ctest-vn-32714029 passed
2025-09-05 12:45:14,057 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0daebdc2-7e1f-45df-88cb-fb663127e88f
2025-09-05 12:45:14,065 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3756d7e9-694c-47f6-bbf5-6285a6ba4a4d
2025-09-05 12:45:14,073 - DEBUG - Requesting: http://10.0.0.254:8082/routing-instance/3756d7e9-694c-47f6-bbf5-6285a6ba4a4d
2025-09-05 12:45:14,080 - DEBUG - Requesting: http://10.0.0.254:8082/route-target/374e2dd8-49fd-4c91-9921-7e696766931d
2025-09-05 12:45:14,091 - DEBUG - Control-node 10.0.0.254 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-19793980:ctest-vn-32714029', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-19793980', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '985934011478001119', 'uuid-lslong': '9857248625760397455'}, 'enable': 'true', 'created': '2025-09-05T12:45:11', 'last-modified': '2025-09-05T12:45:12', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.450586'}
2025-09-05 12:45:14,096 - DEBUG - Route Targets: ['target:64512:8000005']
2025-09-05 12:45:14,096 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-32714029 passed
2025-09-05 12:45:14,096 - DEBUG - ====Verifying policy data for ctest-vn-32714029 in API_Server ======
2025-09-05 12:45:14,096 - DEBUG - Requesting: http://10.0.0.254:8082/domains
2025-09-05 12:45:14,102 - DEBUG - Requesting: http://10.0.0.254:8082/domain/8ba1e9cd-aad8-4b47-b9ca-29524b86436a
2025-09-05 12:45:14,114 - DEBUG - Requesting: http://10.0.0.254:8082/project/d8a165db-536b-4613-8dd4-f6c4c4ebc0b5
2025-09-05 12:45:14,225 - DEBUG - Requesting: http://10.0.0.254:8082/virtual-network/0daebdc2-7e1f-45df-88cb-fb663127e88f
2025-09-05 12:45:14,270 - DEBUG - ==>Verifying data for policy with id: 2f21dc7b-d5f5-410e-bc8c-5c84222280f7, fqn: ['default-domain', 'ctest-TestBasicPolicy-19793980', 'ctest-policy-allow-all-16492987']
2025-09-05 12:45:14,270 - INFO - VN ctest-vn-32714029 Policy verification: verify_vn_policy_in_api_server, status: True
2025-09-05 12:45:14,270 - DEBUG - Verifying the vn in opserver
2025-09-05 12:45:14,270 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-19793980:ctest-vn-32714029 virtual network link through opserver 10.0.0.254
2025-09-05 12:45:14,270 - DEBUG - Requesting: http://10.0.0.254:8081/analytics/uves/virtual-networks
2025-09-05 12:45:14,285 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-19793980:ctest-vn-32714029', 'href': 'http://10.0.0.254:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-19793980:ctest-vn-32714029?flat'}
2025-09-05 12:45:14,285 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-19793980:ctest-vn-32714029 is found in opserver
2025-09-05 12:45:14,295 - DEBUG - Do not have enough data to verify VN in agent
2025-09-05 12:45:14,300 - DEBUG - VRF ids for VN ctest-vn-32714029: {}
2025-09-05 12:45:14,376 - DEBUG - Services list from nova: [