2025-07-15 19:13:45,830 - INFO - Domain Default found not creating
2025-07-15 19:13:45,996 - INFO - Project ctest-TestBasicPolicy-74381617 not found, creating it
2025-07-15 19:13:46,481 - INFO - Created Project:ctest-TestBasicPolicy-74381617, ID : 497a5376-886c-4a40-9e98-d8b199924203
2025-07-15 19:13:48,010 - INFO - ================================================================================
2025-07-15 19:13:48,011 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-07-15 19:13:48,011 - 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-07-15 19:13:48,272 - DEBUG - Nothing to compare xmpp stats {'10.0.0.50': {'10.20.0.14': '0'}} with
2025-07-15 19:13:48,272 - INFO - Initial checks done. Running the testcase now
2025-07-15 19:13:48,272 - INFO -
2025-07-15 19:13:48,857 - DEBUG - Response for create_network : {'network': {'id': '9540c09b-65b0-4ea2-8af1-3d3b7c2de618', 'name': 'ctest-vn-20502404', 'tenant_id': '497a5376886c4a409e98d8b199924203', 'project_id': '497a5376886c4a409e98d8b199924203', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74381617', 'ctest-vn-20502404'], 'port_security_enabled': True, 'description': ''}}
2025-07-15 19:13:49,084 - DEBUG - Response for create_subnet : {'subnet': {'id': '77cd4912-9467-40a8-a5af-5bdd7362d6c6', 'name': '', 'tenant_id': '497a5376886c4a409e98d8b199924203', 'network_id': '9540c09b-65b0-4ea2-8af1-3d3b7c2de618', 'ip_version': 4, 'cidr': '204.206.255.64/26', 'allocation_pools': [{'start': '204.206.255.66', 'end': '204.206.255.126'}], 'gateway_ip': '204.206.255.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '204.206.255.66', 'tags': [], 'project_id': '497a5376886c4a409e98d8b199924203'}}
2025-07-15 19:13:49,105 - INFO - Created VN ctest-vn-20502404
2025-07-15 19:13:49,161 - DEBUG - VN ctest-vn-20502404 UUID is 9540c09b-65b0-4ea2-8af1-3d3b7c2de618
2025-07-15 19:13:49,466 - DEBUG - Response for create_network : {'network': {'id': 'f4eb57d3-d990-4936-8a5f-f79f933c108e', 'name': 'ctest-vn-50364730', 'tenant_id': '497a5376886c4a409e98d8b199924203', 'project_id': '497a5376886c4a409e98d8b199924203', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74381617', 'ctest-vn-50364730'], 'port_security_enabled': True, 'description': ''}}
2025-07-15 19:13:49,648 - DEBUG - Response for create_subnet : {'subnet': {'id': 'b0f6195e-2606-4952-83c8-ad9a4a40941c', 'name': '', 'tenant_id': '497a5376886c4a409e98d8b199924203', 'network_id': 'f4eb57d3-d990-4936-8a5f-f79f933c108e', 'ip_version': 4, 'cidr': '148.16.73.128/26', 'allocation_pools': [{'start': '148.16.73.130', 'end': '148.16.73.190'}], 'gateway_ip': '148.16.73.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '148.16.73.130', 'tags': [], 'project_id': '497a5376886c4a409e98d8b199924203'}}
2025-07-15 19:13:49,668 - INFO - Created VN ctest-vn-50364730
2025-07-15 19:13:49,725 - DEBUG - VN ctest-vn-50364730 UUID is f4eb57d3-d990-4936-8a5f-f79f933c108e
2025-07-15 19:13:49,852 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-74381617:ctest-vn-20502404, 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-74381617:ctest-vn-50364730, 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-07-15 19:13:50,188 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '9540c09b-65b0-4ea2-8af1-3d3b7c2de618', 'name': 'ctest-vn-20502404', 'tenant_id': '497a5376886c4a409e98d8b199924203', 'project_id': '497a5376886c4a409e98d8b199924203', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['77cd4912-9467-40a8-a5af-5bdd7362d6c6'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74381617', 'ctest-vn-20502404'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74381617', 'ctest-policy-allow-all-84065365']], 'subnet_ipam': [{'subnet_cidr': '204.206.255.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-15 19:13:50,483 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f4eb57d3-d990-4936-8a5f-f79f933c108e', 'name': 'ctest-vn-50364730', 'tenant_id': '497a5376886c4a409e98d8b199924203', 'project_id': '497a5376886c4a409e98d8b199924203', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['b0f6195e-2606-4952-83c8-ad9a4a40941c'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-74381617', 'ctest-vn-50364730'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-74381617', 'ctest-policy-allow-all-84065365']], 'subnet_ipam': [{'subnet_cidr': '148.16.73.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-07-15 19:13:50,642 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-15 19:13:50,942 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-15 19:13:50,974 - DEBUG - Requesting: http://10.0.0.50:8082/domain/575a3b7a-37c5-4db9-9e91-e2992561f44b
2025-07-15 19:13:50,988 - DEBUG - Requesting: http://10.0.0.50:8082/project/497a5376-886c-4a40-9e98-d8b199924203
2025-07-15 19:13:51,064 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9540c09b-65b0-4ea2-8af1-3d3b7c2de618
2025-07-15 19:13:51,076 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9540c09b-65b0-4ea2-8af1-3d3b7c2de618
2025-07-15 19:13:51,086 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12e4c30a-522f-4220-82c9-378050555b6d
2025-07-15 19:13:51,094 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12e4c30a-522f-4220-82c9-378050555b6d
2025-07-15 19:13:51,102 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/17826a7b-a59b-4603-8638-be27952656f6
2025-07-15 19:13:51,109 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-15 19:13:51,109 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9540c09b-65b0-4ea2-8af1-3d3b7c2de618
2025-07-15 19:13:51,119 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12e4c30a-522f-4220-82c9-378050555b6d
2025-07-15 19:13:51,134 - INFO - Verified VN network id 8 for VN 9540c09b-65b0-4ea2-8af1-3d3b7c2de618
2025-07-15 19:13:51,134 - INFO - Verifications in API Server for VN ctest-vn-20502404 passed
2025-07-15 19:13:51,134 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9540c09b-65b0-4ea2-8af1-3d3b7c2de618
2025-07-15 19:13:51,144 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12e4c30a-522f-4220-82c9-378050555b6d
2025-07-15 19:13:51,152 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/12e4c30a-522f-4220-82c9-378050555b6d
2025-07-15 19:13:51,159 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/17826a7b-a59b-4603-8638-be27952656f6
2025-07-15 19:13:51,172 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74381617:ctest-vn-20502404', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74381617', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10754807683819261602', 'uuid-lslong': '10011850772317070872'}, 'enable': 'true', 'created': '2025-07-15T19:13:48', 'last-modified': '2025-07-15T19:13:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.018819'}
2025-07-15 19:13:51,179 - DEBUG - Route Targets: ['target:64512:8000005']
2025-07-15 19:13:51,179 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20502404 passed
2025-07-15 19:13:51,179 - DEBUG - ====Verifying policy data for ctest-vn-20502404 in API_Server ======
2025-07-15 19:13:51,179 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-15 19:13:51,185 - DEBUG - Requesting: http://10.0.0.50:8082/domain/575a3b7a-37c5-4db9-9e91-e2992561f44b
2025-07-15 19:13:51,198 - DEBUG - Requesting: http://10.0.0.50:8082/project/497a5376-886c-4a40-9e98-d8b199924203
2025-07-15 19:13:51,270 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/9540c09b-65b0-4ea2-8af1-3d3b7c2de618
2025-07-15 19:13:51,280 - DEBUG - ==>Verifying data for policy with id: ddb41d38-99aa-4574-93f1-53b76b3d43ec, fqn: ['default-domain', 'ctest-TestBasicPolicy-74381617', 'ctest-policy-allow-all-84065365']
2025-07-15 19:13:51,281 - INFO - VN ctest-vn-20502404 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-15 19:13:51,281 - DEBUG - Verifying the vn in opserver
2025-07-15 19:13:51,281 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74381617:ctest-vn-20502404 virtual network link through opserver 10.0.0.50
2025-07-15 19:13:51,281 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-15 19:13:51,579 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-15 19:13:51,639 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74381617:ctest-vn-20502404', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74381617:ctest-vn-20502404?flat'}
2025-07-15 19:13:51,639 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74381617:ctest-vn-20502404 is found in opserver
2025-07-15 19:13:51,653 - DEBUG - Do not have enough data to verify VN in agent
2025-07-15 19:13:51,659 - DEBUG - VRF ids for VN ctest-vn-20502404: {}
2025-07-15 19:13:51,659 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-15 19:13:51,666 - DEBUG - Requesting: http://10.0.0.50:8082/domain/575a3b7a-37c5-4db9-9e91-e2992561f44b
2025-07-15 19:13:51,681 - DEBUG - Requesting: http://10.0.0.50:8082/project/497a5376-886c-4a40-9e98-d8b199924203
2025-07-15 19:13:51,771 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f4eb57d3-d990-4936-8a5f-f79f933c108e
2025-07-15 19:13:51,784 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f4eb57d3-d990-4936-8a5f-f79f933c108e
2025-07-15 19:13:51,796 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/771e8e11-9242-40ec-8ffc-1c2d7b88f3d3
2025-07-15 19:13:51,807 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/771e8e11-9242-40ec-8ffc-1c2d7b88f3d3
2025-07-15 19:13:51,816 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e4824707-f206-4600-8c51-c0078288f4bd
2025-07-15 19:13:51,825 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-15 19:13:51,825 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f4eb57d3-d990-4936-8a5f-f79f933c108e
2025-07-15 19:13:51,836 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/771e8e11-9242-40ec-8ffc-1c2d7b88f3d3
2025-07-15 19:13:51,853 - INFO - Verified VN network id 9 for VN f4eb57d3-d990-4936-8a5f-f79f933c108e
2025-07-15 19:13:51,853 - INFO - Verifications in API Server for VN ctest-vn-50364730 passed
2025-07-15 19:13:51,853 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f4eb57d3-d990-4936-8a5f-f79f933c108e
2025-07-15 19:13:51,865 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/771e8e11-9242-40ec-8ffc-1c2d7b88f3d3
2025-07-15 19:13:51,874 - DEBUG - Requesting: http://10.0.0.50:8082/routing-instance/771e8e11-9242-40ec-8ffc-1c2d7b88f3d3
2025-07-15 19:13:51,884 - DEBUG - Requesting: http://10.0.0.50:8082/route-target/e4824707-f206-4600-8c51-c0078288f4bd
2025-07-15 19:13:51,899 - DEBUG - Control-node 10.0.0.50 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-74381617:ctest-vn-50364730', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-74381617', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17648296132181248310', 'uuid-lslong': '9970960364763615374'}, 'enable': 'true', 'created': '2025-07-15T19:13:49', 'last-modified': '2025-07-15T19:13:50', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.496986'}
2025-07-15 19:13:51,907 - DEBUG - Route Targets: ['target:64512:8000006']
2025-07-15 19:13:51,907 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50364730 passed
2025-07-15 19:13:51,907 - DEBUG - ====Verifying policy data for ctest-vn-50364730 in API_Server ======
2025-07-15 19:13:51,908 - DEBUG - Requesting: http://10.0.0.50:8082/domains
2025-07-15 19:13:51,914 - DEBUG - Requesting: http://10.0.0.50:8082/domain/575a3b7a-37c5-4db9-9e91-e2992561f44b
2025-07-15 19:13:51,927 - DEBUG - Requesting: http://10.0.0.50:8082/project/497a5376-886c-4a40-9e98-d8b199924203
2025-07-15 19:13:52,001 - DEBUG - Requesting: http://10.0.0.50:8082/virtual-network/f4eb57d3-d990-4936-8a5f-f79f933c108e
2025-07-15 19:13:52,014 - DEBUG - ==>Verifying data for policy with id: ddb41d38-99aa-4574-93f1-53b76b3d43ec, fqn: ['default-domain', 'ctest-TestBasicPolicy-74381617', 'ctest-policy-allow-all-84065365']
2025-07-15 19:13:52,014 - INFO - VN ctest-vn-50364730 Policy verification: verify_vn_policy_in_api_server, status: True
2025-07-15 19:13:52,014 - DEBUG - Verifying the vn in opserver
2025-07-15 19:13:52,014 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-74381617:ctest-vn-50364730 virtual network link through opserver 10.0.0.50
2025-07-15 19:13:52,014 - DEBUG - Requesting: http://10.0.0.50:8081/analytics/uves/virtual-networks
2025-07-15 19:13:52,028 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-74381617:ctest-vn-50364730', 'href': 'http://10.0.0.50:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-74381617:ctest-vn-50364730?flat'}
2025-07-15 19:13:52,028 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-74381617:ctest-vn-50364730 is found in opserver
2025-07-15 19:13:52,040 - DEBUG - Do not have enough data to verify VN in agent
2025-07-15 19:13:52,045 - DEBUG - VRF ids for VN ctest-vn-50364730: {}
2025-07-15 19:13:52,108 - DEBUG - Services list from nova: [