2025-06-26 11:47:28,240 - INFO - Domain Default found not creating
2025-06-26 11:47:28,450 - INFO - Project ctest-TestBasicPolicy-28342486 not found, creating it
2025-06-26 11:47:28,891 - INFO - Created Project:ctest-TestBasicPolicy-28342486, ID : 83bb8e70-aa92-4457-8dd7-cd2669ea6b88
2025-06-26 11:47:30,338 - INFO - ================================================================================
2025-06-26 11:47:30,338 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-06-26 11:47:30,338 - 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-06-26 11:47:30,593 - DEBUG - Nothing to compare xmpp stats {'10.0.0.38': {'10.20.0.17': '0'}} with
2025-06-26 11:47:30,594 - INFO - Initial checks done. Running the testcase now
2025-06-26 11:47:30,594 - INFO -
2025-06-26 11:47:31,118 - DEBUG - Response for create_network : {'network': {'id': '1ff880af-8a48-4484-80ec-d47d8bb35865', 'name': 'ctest-vn-97797043', 'tenant_id': '83bb8e70aa9244578dd7cd2669ea6b88', 'project_id': '83bb8e70aa9244578dd7cd2669ea6b88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28342486', 'ctest-vn-97797043'], 'port_security_enabled': True, 'description': ''}}
2025-06-26 11:47:31,304 - DEBUG - Response for create_subnet : {'subnet': {'id': '94bfbba8-f925-4bc9-8dbc-491623afaf6a', 'name': '', 'tenant_id': '83bb8e70aa9244578dd7cd2669ea6b88', 'network_id': '1ff880af-8a48-4484-80ec-d47d8bb35865', 'ip_version': 4, 'cidr': '28.123.57.64/26', 'allocation_pools': [{'start': '28.123.57.66', 'end': '28.123.57.126'}], 'gateway_ip': '28.123.57.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '28.123.57.66', 'tags': [], 'project_id': '83bb8e70aa9244578dd7cd2669ea6b88'}}
2025-06-26 11:47:31,324 - INFO - Created VN ctest-vn-97797043
2025-06-26 11:47:31,379 - DEBUG - VN ctest-vn-97797043 UUID is 1ff880af-8a48-4484-80ec-d47d8bb35865
2025-06-26 11:47:31,696 - DEBUG - Response for create_network : {'network': {'id': '60cec0f6-8567-4903-90df-56e001848ea8', 'name': 'ctest-vn-50155251', 'tenant_id': '83bb8e70aa9244578dd7cd2669ea6b88', 'project_id': '83bb8e70aa9244578dd7cd2669ea6b88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28342486', 'ctest-vn-50155251'], 'port_security_enabled': True, 'description': ''}}
2025-06-26 11:47:31,914 - DEBUG - Response for create_subnet : {'subnet': {'id': '4f6bf7b8-dc54-4230-8580-29f7bd842579', 'name': '', 'tenant_id': '83bb8e70aa9244578dd7cd2669ea6b88', 'network_id': '60cec0f6-8567-4903-90df-56e001848ea8', 'ip_version': 4, 'cidr': '155.93.239.64/26', 'allocation_pools': [{'start': '155.93.239.66', 'end': '155.93.239.126'}], 'gateway_ip': '155.93.239.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '155.93.239.66', 'tags': [], 'project_id': '83bb8e70aa9244578dd7cd2669ea6b88'}}
2025-06-26 11:47:31,931 - INFO - Created VN ctest-vn-50155251
2025-06-26 11:47:31,983 - DEBUG - VN ctest-vn-50155251 UUID is 60cec0f6-8567-4903-90df-56e001848ea8
2025-06-26 11:47:32,127 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-28342486:ctest-vn-97797043, 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-28342486:ctest-vn-50155251, 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-06-26 11:47:32,433 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '1ff880af-8a48-4484-80ec-d47d8bb35865', 'name': 'ctest-vn-97797043', 'tenant_id': '83bb8e70aa9244578dd7cd2669ea6b88', 'project_id': '83bb8e70aa9244578dd7cd2669ea6b88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['94bfbba8-f925-4bc9-8dbc-491623afaf6a'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28342486', 'ctest-vn-97797043'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28342486', 'ctest-policy-allow-all-63297247']], 'subnet_ipam': [{'subnet_cidr': '28.123.57.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-26 11:47:32,650 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '60cec0f6-8567-4903-90df-56e001848ea8', 'name': 'ctest-vn-50155251', 'tenant_id': '83bb8e70aa9244578dd7cd2669ea6b88', 'project_id': '83bb8e70aa9244578dd7cd2669ea6b88', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['4f6bf7b8-dc54-4230-8580-29f7bd842579'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-28342486', 'ctest-vn-50155251'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-28342486', 'ctest-policy-allow-all-63297247']], 'subnet_ipam': [{'subnet_cidr': '155.93.239.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-06-26 11:47:32,823 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-26 11:47:33,112 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-26 11:47:33,140 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b896c2b0-b889-4673-a40b-213da76b9ece
2025-06-26 11:47:33,152 - DEBUG - Requesting: http://10.0.0.38:8082/project/83bb8e70-aa92-4457-8dd7-cd2669ea6b88
2025-06-26 11:47:33,226 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1ff880af-8a48-4484-80ec-d47d8bb35865
2025-06-26 11:47:33,237 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1ff880af-8a48-4484-80ec-d47d8bb35865
2025-06-26 11:47:33,247 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ac8d05e-e412-4dd0-a5c7-a51b34aa4e26
2025-06-26 11:47:33,254 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ac8d05e-e412-4dd0-a5c7-a51b34aa4e26
2025-06-26 11:47:33,260 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b0e5107e-9b97-4c76-8ad9-fbd196d60634
2025-06-26 11:47:33,267 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-26 11:47:33,267 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1ff880af-8a48-4484-80ec-d47d8bb35865
2025-06-26 11:47:33,277 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ac8d05e-e412-4dd0-a5c7-a51b34aa4e26
2025-06-26 11:47:33,291 - INFO - Verified VN network id 9 for VN 1ff880af-8a48-4484-80ec-d47d8bb35865
2025-06-26 11:47:33,292 - INFO - Verifications in API Server for VN ctest-vn-97797043 passed
2025-06-26 11:47:33,292 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1ff880af-8a48-4484-80ec-d47d8bb35865
2025-06-26 11:47:33,300 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ac8d05e-e412-4dd0-a5c7-a51b34aa4e26
2025-06-26 11:47:33,307 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/3ac8d05e-e412-4dd0-a5c7-a51b34aa4e26
2025-06-26 11:47:33,314 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/b0e5107e-9b97-4c76-8ad9-fbd196d60634
2025-06-26 11:47:33,326 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28342486:ctest-vn-97797043', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28342486', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '2303732700827632772', 'uuid-lslong': '9290033767038277733'}, 'enable': 'true', 'created': '2025-06-26T11:47:31', 'last-modified': '2025-06-26T11:47:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.921243'}
2025-06-26 11:47:33,332 - DEBUG - Route Targets: ['target:64512:8000005']
2025-06-26 11:47:33,332 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-97797043 passed
2025-06-26 11:47:33,332 - DEBUG - ====Verifying policy data for ctest-vn-97797043 in API_Server ======
2025-06-26 11:47:33,332 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-26 11:47:33,338 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b896c2b0-b889-4673-a40b-213da76b9ece
2025-06-26 11:47:33,349 - DEBUG - Requesting: http://10.0.0.38:8082/project/83bb8e70-aa92-4457-8dd7-cd2669ea6b88
2025-06-26 11:47:33,423 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/1ff880af-8a48-4484-80ec-d47d8bb35865
2025-06-26 11:47:33,432 - DEBUG - ==>Verifying data for policy with id: 5b997dc9-3001-49df-a522-31cb2e9d1c60, fqn: ['default-domain', 'ctest-TestBasicPolicy-28342486', 'ctest-policy-allow-all-63297247']
2025-06-26 11:47:33,432 - INFO - VN ctest-vn-97797043 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-26 11:47:33,432 - DEBUG - Verifying the vn in opserver
2025-06-26 11:47:33,432 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28342486:ctest-vn-97797043 virtual network link through opserver 10.0.0.38
2025-06-26 11:47:33,432 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-26 11:47:33,734 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-26 11:47:33,784 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28342486:ctest-vn-97797043', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28342486:ctest-vn-97797043?flat'}
2025-06-26 11:47:33,784 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28342486:ctest-vn-97797043 is found in opserver
2025-06-26 11:47:33,795 - DEBUG - Do not have enough data to verify VN in agent
2025-06-26 11:47:33,801 - DEBUG - VRF ids for VN ctest-vn-97797043: {}
2025-06-26 11:47:33,801 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-26 11:47:33,807 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b896c2b0-b889-4673-a40b-213da76b9ece
2025-06-26 11:47:33,825 - DEBUG - Requesting: http://10.0.0.38:8082/project/83bb8e70-aa92-4457-8dd7-cd2669ea6b88
2025-06-26 11:47:33,904 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60cec0f6-8567-4903-90df-56e001848ea8
2025-06-26 11:47:33,918 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60cec0f6-8567-4903-90df-56e001848ea8
2025-06-26 11:47:33,931 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61bfda06-ea60-44e7-a112-b1498df24b91
2025-06-26 11:47:33,938 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61bfda06-ea60-44e7-a112-b1498df24b91
2025-06-26 11:47:33,945 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6ea7d0f2-d746-4e1c-8d2d-4066d1364087
2025-06-26 11:47:33,951 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-26 11:47:33,951 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60cec0f6-8567-4903-90df-56e001848ea8
2025-06-26 11:47:33,959 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61bfda06-ea60-44e7-a112-b1498df24b91
2025-06-26 11:47:33,973 - INFO - Verified VN network id 10 for VN 60cec0f6-8567-4903-90df-56e001848ea8
2025-06-26 11:47:33,973 - INFO - Verifications in API Server for VN ctest-vn-50155251 passed
2025-06-26 11:47:33,973 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60cec0f6-8567-4903-90df-56e001848ea8
2025-06-26 11:47:33,982 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61bfda06-ea60-44e7-a112-b1498df24b91
2025-06-26 11:47:33,988 - DEBUG - Requesting: http://10.0.0.38:8082/routing-instance/61bfda06-ea60-44e7-a112-b1498df24b91
2025-06-26 11:47:33,995 - DEBUG - Requesting: http://10.0.0.38:8082/route-target/6ea7d0f2-d746-4e1c-8d2d-4066d1364087
2025-06-26 11:47:34,005 - DEBUG - Control-node 10.0.0.38 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-28342486:ctest-vn-50155251', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-28342486', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6975725037876103427', 'uuid-lslong': '10439157981366226600'}, 'enable': 'true', 'created': '2025-06-26T11:47:31', 'last-modified': '2025-06-26T11:47:32', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.376111'}
2025-06-26 11:47:34,013 - DEBUG - Route Targets: ['target:64512:8000006']
2025-06-26 11:47:34,014 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-50155251 passed
2025-06-26 11:47:34,014 - DEBUG - ====Verifying policy data for ctest-vn-50155251 in API_Server ======
2025-06-26 11:47:34,014 - DEBUG - Requesting: http://10.0.0.38:8082/domains
2025-06-26 11:47:34,020 - DEBUG - Requesting: http://10.0.0.38:8082/domain/b896c2b0-b889-4673-a40b-213da76b9ece
2025-06-26 11:47:34,032 - DEBUG - Requesting: http://10.0.0.38:8082/project/83bb8e70-aa92-4457-8dd7-cd2669ea6b88
2025-06-26 11:47:34,105 - DEBUG - Requesting: http://10.0.0.38:8082/virtual-network/60cec0f6-8567-4903-90df-56e001848ea8
2025-06-26 11:47:34,115 - DEBUG - ==>Verifying data for policy with id: 5b997dc9-3001-49df-a522-31cb2e9d1c60, fqn: ['default-domain', 'ctest-TestBasicPolicy-28342486', 'ctest-policy-allow-all-63297247']
2025-06-26 11:47:34,115 - INFO - VN ctest-vn-50155251 Policy verification: verify_vn_policy_in_api_server, status: True
2025-06-26 11:47:34,115 - DEBUG - Verifying the vn in opserver
2025-06-26 11:47:34,115 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-28342486:ctest-vn-50155251 virtual network link through opserver 10.0.0.38
2025-06-26 11:47:34,115 - DEBUG - Requesting: http://10.0.0.38:8081/analytics/uves/virtual-networks
2025-06-26 11:47:34,124 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-28342486:ctest-vn-50155251', 'href': 'http://10.0.0.38:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-28342486:ctest-vn-50155251?flat'}
2025-06-26 11:47:34,124 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-28342486:ctest-vn-50155251 is found in opserver
2025-06-26 11:47:34,134 - DEBUG - Do not have enough data to verify VN in agent
2025-06-26 11:47:34,139 - DEBUG - VRF ids for VN ctest-vn-50155251: {}
2025-06-26 11:47:34,193 - DEBUG - Services list from nova: [