2025-04-25 15:06:45,524 - INFO - Domain Default found not creating
2025-04-25 15:06:45,781 - INFO - Project ctest-TestBasicPolicy-07016447 not found, creating it
2025-04-25 15:06:46,238 - INFO - Created Project:ctest-TestBasicPolicy-07016447, ID : cceee88c-f634-4b6b-9dac-2c2ea9d7bea3
2025-04-25 15:06:47,704 - INFO - ================================================================================
2025-04-25 15:06:47,704 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-04-25 15:06:47,704 - 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-04-25 15:06:47,958 - DEBUG - Nothing to compare xmpp stats {'10.0.0.23': {'10.20.0.17': '0'}} with
2025-04-25 15:06:47,958 - INFO - Initial checks done. Running the testcase now
2025-04-25 15:06:47,959 - INFO -
2025-04-25 15:06:48,491 - DEBUG - Response for create_network : {'network': {'id': '700a5468-29ff-402e-abdf-43ea4d519341', 'name': 'ctest-vn-65160896', 'tenant_id': 'cceee88cf6344b6b9dac2c2ea9d7bea3', 'project_id': 'cceee88cf6344b6b9dac2c2ea9d7bea3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07016447', 'ctest-vn-65160896'], 'port_security_enabled': True, 'description': ''}}
2025-04-25 15:06:48,657 - DEBUG - Response for create_subnet : {'subnet': {'id': '9735e500-409a-4f7d-8705-c289fd70eb50', 'name': '', 'tenant_id': 'cceee88cf6344b6b9dac2c2ea9d7bea3', 'network_id': '700a5468-29ff-402e-abdf-43ea4d519341', 'ip_version': 4, 'cidr': '115.212.179.128/26', 'allocation_pools': [{'start': '115.212.179.130', 'end': '115.212.179.190'}], 'gateway_ip': '115.212.179.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '115.212.179.130', 'tags': [], 'project_id': 'cceee88cf6344b6b9dac2c2ea9d7bea3'}}
2025-04-25 15:06:48,676 - INFO - Created VN ctest-vn-65160896
2025-04-25 15:06:48,728 - DEBUG - VN ctest-vn-65160896 UUID is 700a5468-29ff-402e-abdf-43ea4d519341
2025-04-25 15:06:49,039 - DEBUG - Response for create_network : {'network': {'id': '435b4da2-83f7-407b-8a66-54896d601a1b', 'name': 'ctest-vn-20012329', 'tenant_id': 'cceee88cf6344b6b9dac2c2ea9d7bea3', 'project_id': 'cceee88cf6344b6b9dac2c2ea9d7bea3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07016447', 'ctest-vn-20012329'], 'port_security_enabled': True, 'description': ''}}
2025-04-25 15:06:49,212 - DEBUG - Response for create_subnet : {'subnet': {'id': '041d05a6-5b88-42ef-9fc7-b2f901ca49a1', 'name': '', 'tenant_id': 'cceee88cf6344b6b9dac2c2ea9d7bea3', 'network_id': '435b4da2-83f7-407b-8a66-54896d601a1b', 'ip_version': 4, 'cidr': '52.192.65.128/26', 'allocation_pools': [{'start': '52.192.65.130', 'end': '52.192.65.190'}], 'gateway_ip': '52.192.65.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '52.192.65.130', 'tags': [], 'project_id': 'cceee88cf6344b6b9dac2c2ea9d7bea3'}}
2025-04-25 15:06:49,228 - INFO - Created VN ctest-vn-20012329
2025-04-25 15:06:49,280 - DEBUG - VN ctest-vn-20012329 UUID is 435b4da2-83f7-407b-8a66-54896d601a1b
2025-04-25 15:06:49,432 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-07016447:ctest-vn-65160896, 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-07016447:ctest-vn-20012329, 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-04-25 15:06:49,739 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '700a5468-29ff-402e-abdf-43ea4d519341', 'name': 'ctest-vn-65160896', 'tenant_id': 'cceee88cf6344b6b9dac2c2ea9d7bea3', 'project_id': 'cceee88cf6344b6b9dac2c2ea9d7bea3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9735e500-409a-4f7d-8705-c289fd70eb50'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07016447', 'ctest-vn-65160896'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07016447', 'ctest-policy-allow-all-25467915']], 'subnet_ipam': [{'subnet_cidr': '115.212.179.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-25 15:06:49,953 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '435b4da2-83f7-407b-8a66-54896d601a1b', 'name': 'ctest-vn-20012329', 'tenant_id': 'cceee88cf6344b6b9dac2c2ea9d7bea3', 'project_id': 'cceee88cf6344b6b9dac2c2ea9d7bea3', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['041d05a6-5b88-42ef-9fc7-b2f901ca49a1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-07016447', 'ctest-vn-20012329'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-07016447', 'ctest-policy-allow-all-25467915']], 'subnet_ipam': [{'subnet_cidr': '52.192.65.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-04-25 15:06:50,120 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-04-25 15:06:50,418 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-04-25 15:06:50,443 - DEBUG - Requesting: http://10.0.0.23:8082/domain/068f244f-9f15-4fed-bf71-44d375ced264
2025-04-25 15:06:50,455 - DEBUG - Requesting: http://10.0.0.23:8082/project/cceee88c-f634-4b6b-9dac-2c2ea9d7bea3
2025-04-25 15:06:50,526 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/700a5468-29ff-402e-abdf-43ea4d519341
2025-04-25 15:06:50,536 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/700a5468-29ff-402e-abdf-43ea4d519341
2025-04-25 15:06:50,547 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/cc5dde80-b654-4e93-8524-f7fb7afc4172
2025-04-25 15:06:50,555 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/cc5dde80-b654-4e93-8524-f7fb7afc4172
2025-04-25 15:06:50,563 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/92c48ae3-131c-4910-8317-abf7941990d6
2025-04-25 15:06:50,570 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-25 15:06:50,571 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/700a5468-29ff-402e-abdf-43ea4d519341
2025-04-25 15:06:50,580 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/cc5dde80-b654-4e93-8524-f7fb7afc4172
2025-04-25 15:06:50,592 - INFO - Verified VN network id 8 for VN 700a5468-29ff-402e-abdf-43ea4d519341
2025-04-25 15:06:50,592 - INFO - Verifications in API Server for VN ctest-vn-65160896 passed
2025-04-25 15:06:50,592 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/700a5468-29ff-402e-abdf-43ea4d519341
2025-04-25 15:06:50,600 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/cc5dde80-b654-4e93-8524-f7fb7afc4172
2025-04-25 15:06:50,606 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/cc5dde80-b654-4e93-8524-f7fb7afc4172
2025-04-25 15:06:50,612 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/92c48ae3-131c-4910-8317-abf7941990d6
2025-04-25 15:06:50,626 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07016447:ctest-vn-65160896', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07016447', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '8073358088372961326', 'uuid-lslong': '12384692173890753345'}, 'enable': 'true', 'created': '2025-04-25T15:06:48', 'last-modified': '2025-04-25T15:06:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.916831'}
2025-04-25 15:06:50,634 - DEBUG - Route Targets: ['target:64512:8000005']
2025-04-25 15:06:50,634 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-65160896 passed
2025-04-25 15:06:50,634 - DEBUG - ====Verifying policy data for ctest-vn-65160896 in API_Server ======
2025-04-25 15:06:50,634 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-04-25 15:06:50,641 - DEBUG - Requesting: http://10.0.0.23:8082/domain/068f244f-9f15-4fed-bf71-44d375ced264
2025-04-25 15:06:50,654 - DEBUG - Requesting: http://10.0.0.23:8082/project/cceee88c-f634-4b6b-9dac-2c2ea9d7bea3
2025-04-25 15:06:50,731 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/700a5468-29ff-402e-abdf-43ea4d519341
2025-04-25 15:06:50,743 - DEBUG - ==>Verifying data for policy with id: d7c8a282-5063-4dac-8643-28e72504d5b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-07016447', 'ctest-policy-allow-all-25467915']
2025-04-25 15:06:50,743 - INFO - VN ctest-vn-65160896 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-25 15:06:50,743 - DEBUG - Verifying the vn in opserver
2025-04-25 15:06:50,743 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07016447:ctest-vn-65160896 virtual network link through opserver 10.0.0.23
2025-04-25 15:06:50,744 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-04-25 15:06:51,035 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-04-25 15:06:51,086 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07016447:ctest-vn-65160896', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07016447:ctest-vn-65160896?flat'}
2025-04-25 15:06:51,086 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07016447:ctest-vn-65160896 is found in opserver
2025-04-25 15:06:51,097 - DEBUG - Do not have enough data to verify VN in agent
2025-04-25 15:06:51,103 - DEBUG - VRF ids for VN ctest-vn-65160896: {}
2025-04-25 15:06:51,103 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-04-25 15:06:51,107 - DEBUG - Requesting: http://10.0.0.23:8082/domain/068f244f-9f15-4fed-bf71-44d375ced264
2025-04-25 15:06:51,118 - DEBUG - Requesting: http://10.0.0.23:8082/project/cceee88c-f634-4b6b-9dac-2c2ea9d7bea3
2025-04-25 15:06:51,187 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/435b4da2-83f7-407b-8a66-54896d601a1b
2025-04-25 15:06:51,197 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/435b4da2-83f7-407b-8a66-54896d601a1b
2025-04-25 15:06:51,206 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bd13ca93-1504-45e1-8dd2-d6621980155a
2025-04-25 15:06:51,212 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bd13ca93-1504-45e1-8dd2-d6621980155a
2025-04-25 15:06:51,218 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/ebf7dd94-c377-4b00-a998-031c9d3cdb33
2025-04-25 15:06:51,223 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-25 15:06:51,223 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/435b4da2-83f7-407b-8a66-54896d601a1b
2025-04-25 15:06:51,231 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bd13ca93-1504-45e1-8dd2-d6621980155a
2025-04-25 15:06:51,243 - INFO - Verified VN network id 9 for VN 435b4da2-83f7-407b-8a66-54896d601a1b
2025-04-25 15:06:51,243 - INFO - Verifications in API Server for VN ctest-vn-20012329 passed
2025-04-25 15:06:51,243 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/435b4da2-83f7-407b-8a66-54896d601a1b
2025-04-25 15:06:51,252 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bd13ca93-1504-45e1-8dd2-d6621980155a
2025-04-25 15:06:51,258 - DEBUG - Requesting: http://10.0.0.23:8082/routing-instance/bd13ca93-1504-45e1-8dd2-d6621980155a
2025-04-25 15:06:51,264 - DEBUG - Requesting: http://10.0.0.23:8082/route-target/ebf7dd94-c377-4b00-a998-031c9d3cdb33
2025-04-25 15:06:51,275 - DEBUG - Control-node 10.0.0.23 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-07016447:ctest-vn-20012329', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-07016447', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4853558383815901307', 'uuid-lslong': '9972751374080809499'}, 'enable': 'true', 'created': '2025-04-25T15:06:49', 'last-modified': '2025-04-25T15:06:49', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.341373'}
2025-04-25 15:06:51,281 - DEBUG - Route Targets: ['target:64512:8000006']
2025-04-25 15:06:51,281 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-20012329 passed
2025-04-25 15:06:51,281 - DEBUG - ====Verifying policy data for ctest-vn-20012329 in API_Server ======
2025-04-25 15:06:51,281 - DEBUG - Requesting: http://10.0.0.23:8082/domains
2025-04-25 15:06:51,286 - DEBUG - Requesting: http://10.0.0.23:8082/domain/068f244f-9f15-4fed-bf71-44d375ced264
2025-04-25 15:06:51,296 - DEBUG - Requesting: http://10.0.0.23:8082/project/cceee88c-f634-4b6b-9dac-2c2ea9d7bea3
2025-04-25 15:06:51,367 - DEBUG - Requesting: http://10.0.0.23:8082/virtual-network/435b4da2-83f7-407b-8a66-54896d601a1b
2025-04-25 15:06:51,379 - DEBUG - ==>Verifying data for policy with id: d7c8a282-5063-4dac-8643-28e72504d5b8, fqn: ['default-domain', 'ctest-TestBasicPolicy-07016447', 'ctest-policy-allow-all-25467915']
2025-04-25 15:06:51,379 - INFO - VN ctest-vn-20012329 Policy verification: verify_vn_policy_in_api_server, status: True
2025-04-25 15:06:51,379 - DEBUG - Verifying the vn in opserver
2025-04-25 15:06:51,379 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-07016447:ctest-vn-20012329 virtual network link through opserver 10.0.0.23
2025-04-25 15:06:51,379 - DEBUG - Requesting: http://10.0.0.23:8081/analytics/uves/virtual-networks
2025-04-25 15:06:51,389 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-07016447:ctest-vn-20012329', 'href': 'http://10.0.0.23:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-07016447:ctest-vn-20012329?flat'}
2025-04-25 15:06:51,389 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-07016447:ctest-vn-20012329 is found in opserver
2025-04-25 15:06:51,399 - DEBUG - Do not have enough data to verify VN in agent
2025-04-25 15:06:51,404 - DEBUG - VRF ids for VN ctest-vn-20012329: {}
2025-04-25 15:06:51,457 - DEBUG - Services list from nova: [