2025-03-27 16:48:26,584 - INFO - Domain Default found not creating
2025-03-27 16:48:26,749 - INFO - Project ctest-TestBasicPolicy-44521466 not found, creating it
2025-03-27 16:48:27,554 - INFO - Created Project:ctest-TestBasicPolicy-44521466, ID : 5503df15-81f9-481f-992c-b7810e0ce4ab
2025-03-27 16:48:29,067 - INFO - ================================================================================
2025-03-27 16:48:29,067 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-27 16:48:29,068 - 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-03-27 16:48:29,339 - DEBUG - Nothing to compare xmpp stats {'10.0.0.37': {'10.20.0.27': '0'}} with
2025-03-27 16:48:29,339 - INFO - Initial checks done. Running the testcase now
2025-03-27 16:48:29,339 - INFO -
2025-03-27 16:48:29,917 - DEBUG - Response for create_network : {'network': {'id': 'e19791e9-4922-4134-a769-625bc83edb49', 'name': 'ctest-vn-27233548', 'tenant_id': '5503df1581f9481f992cb7810e0ce4ab', 'project_id': '5503df1581f9481f992cb7810e0ce4ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44521466', 'ctest-vn-27233548'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 16:48:30,073 - DEBUG - Response for create_subnet : {'subnet': {'id': '9edb86ad-44d5-4756-8523-75db684daeda', 'name': '', 'tenant_id': '5503df1581f9481f992cb7810e0ce4ab', 'network_id': 'e19791e9-4922-4134-a769-625bc83edb49', 'ip_version': 4, 'cidr': '97.247.172.64/26', 'allocation_pools': [{'start': '97.247.172.66', 'end': '97.247.172.126'}], 'gateway_ip': '97.247.172.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '97.247.172.66', 'tags': [], 'project_id': '5503df1581f9481f992cb7810e0ce4ab'}}
2025-03-27 16:48:30,092 - INFO - Created VN ctest-vn-27233548
2025-03-27 16:48:30,147 - DEBUG - VN ctest-vn-27233548 UUID is e19791e9-4922-4134-a769-625bc83edb49
2025-03-27 16:48:30,441 - DEBUG - Response for create_network : {'network': {'id': 'ec94702a-255a-42eb-a40a-55b51f5fb4de', 'name': 'ctest-vn-03607554', 'tenant_id': '5503df1581f9481f992cb7810e0ce4ab', 'project_id': '5503df1581f9481f992cb7810e0ce4ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44521466', 'ctest-vn-03607554'], 'port_security_enabled': True, 'description': ''}}
2025-03-27 16:48:30,659 - DEBUG - Response for create_subnet : {'subnet': {'id': '6b8ebce9-709d-4d13-a2b3-0fd7e22067ec', 'name': '', 'tenant_id': '5503df1581f9481f992cb7810e0ce4ab', 'network_id': 'ec94702a-255a-42eb-a40a-55b51f5fb4de', 'ip_version': 4, 'cidr': '24.41.168.128/26', 'allocation_pools': [{'start': '24.41.168.130', 'end': '24.41.168.190'}], 'gateway_ip': '24.41.168.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '24.41.168.130', 'tags': [], 'project_id': '5503df1581f9481f992cb7810e0ce4ab'}}
2025-03-27 16:48:30,678 - INFO - Created VN ctest-vn-03607554
2025-03-27 16:48:30,731 - DEBUG - VN ctest-vn-03607554 UUID is ec94702a-255a-42eb-a40a-55b51f5fb4de
2025-03-27 16:48:30,852 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44521466:ctest-vn-27233548, 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-44521466:ctest-vn-03607554, 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-03-27 16:48:31,184 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e19791e9-4922-4134-a769-625bc83edb49', 'name': 'ctest-vn-27233548', 'tenant_id': '5503df1581f9481f992cb7810e0ce4ab', 'project_id': '5503df1581f9481f992cb7810e0ce4ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['9edb86ad-44d5-4756-8523-75db684daeda'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44521466', 'ctest-vn-27233548'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44521466', 'ctest-policy-allow-all-02931800']], 'subnet_ipam': [{'subnet_cidr': '97.247.172.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 16:48:31,458 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ec94702a-255a-42eb-a40a-55b51f5fb4de', 'name': 'ctest-vn-03607554', 'tenant_id': '5503df1581f9481f992cb7810e0ce4ab', 'project_id': '5503df1581f9481f992cb7810e0ce4ab', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6b8ebce9-709d-4d13-a2b3-0fd7e22067ec'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44521466', 'ctest-vn-03607554'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44521466', 'ctest-policy-allow-all-02931800']], 'subnet_ipam': [{'subnet_cidr': '24.41.168.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-27 16:48:31,611 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-27 16:48:31,919 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-27 16:48:31,953 - DEBUG - Requesting: http://10.0.0.37:8082/domain/2b32e1b7-fdc9-4fcc-9ca4-ed647d29c8cb
2025-03-27 16:48:31,967 - DEBUG - Requesting: http://10.0.0.37:8082/project/5503df15-81f9-481f-992c-b7810e0ce4ab
2025-03-27 16:48:32,045 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/e19791e9-4922-4134-a769-625bc83edb49
2025-03-27 16:48:32,058 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/e19791e9-4922-4134-a769-625bc83edb49
2025-03-27 16:48:32,069 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/f41edd69-7dd8-4a35-8976-bc4c5db80e15
2025-03-27 16:48:32,079 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/f41edd69-7dd8-4a35-8976-bc4c5db80e15
2025-03-27 16:48:32,087 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/7f0f8ce7-9d93-4acd-b74c-e9d15d86c113
2025-03-27 16:48:32,096 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 16:48:32,096 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/e19791e9-4922-4134-a769-625bc83edb49
2025-03-27 16:48:32,108 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/f41edd69-7dd8-4a35-8976-bc4c5db80e15
2025-03-27 16:48:32,125 - INFO - Verified VN network id 8 for VN e19791e9-4922-4134-a769-625bc83edb49
2025-03-27 16:48:32,126 - INFO - Verifications in API Server for VN ctest-vn-27233548 passed
2025-03-27 16:48:32,126 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/e19791e9-4922-4134-a769-625bc83edb49
2025-03-27 16:48:32,137 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/f41edd69-7dd8-4a35-8976-bc4c5db80e15
2025-03-27 16:48:32,145 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/f41edd69-7dd8-4a35-8976-bc4c5db80e15
2025-03-27 16:48:32,154 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/7f0f8ce7-9d93-4acd-b74c-e9d15d86c113
2025-03-27 16:48:32,170 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44521466:ctest-vn-27233548', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44521466', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16255621811157483828', 'uuid-lslong': '12063281223229692745'}, 'enable': 'true', 'created': '2025-03-27T16:48:29', 'last-modified': '2025-03-27T16:48:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.012356'}
2025-03-27 16:48:32,176 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-27 16:48:32,176 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-27233548 passed
2025-03-27 16:48:32,177 - DEBUG - ====Verifying policy data for ctest-vn-27233548 in API_Server ======
2025-03-27 16:48:32,177 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-27 16:48:32,183 - DEBUG - Requesting: http://10.0.0.37:8082/domain/2b32e1b7-fdc9-4fcc-9ca4-ed647d29c8cb
2025-03-27 16:48:32,194 - DEBUG - Requesting: http://10.0.0.37:8082/project/5503df15-81f9-481f-992c-b7810e0ce4ab
2025-03-27 16:48:32,275 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/e19791e9-4922-4134-a769-625bc83edb49
2025-03-27 16:48:32,285 - DEBUG - ==>Verifying data for policy with id: 73053a31-5b7b-4204-a5e4-acbab3cadce8, fqn: ['default-domain', 'ctest-TestBasicPolicy-44521466', 'ctest-policy-allow-all-02931800']
2025-03-27 16:48:32,285 - INFO - VN ctest-vn-27233548 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 16:48:32,285 - DEBUG - Verifying the vn in opserver
2025-03-27 16:48:32,285 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44521466:ctest-vn-27233548 virtual network link through opserver 10.0.0.37
2025-03-27 16:48:32,286 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-03-27 16:48:32,581 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-03-27 16:48:32,648 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44521466:ctest-vn-27233548', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44521466:ctest-vn-27233548?flat'}
2025-03-27 16:48:32,648 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44521466:ctest-vn-27233548 is found in opserver
2025-03-27 16:48:32,662 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 16:48:32,669 - DEBUG - VRF ids for VN ctest-vn-27233548: {}
2025-03-27 16:48:32,669 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-27 16:48:32,677 - DEBUG - Requesting: http://10.0.0.37:8082/domain/2b32e1b7-fdc9-4fcc-9ca4-ed647d29c8cb
2025-03-27 16:48:32,690 - DEBUG - Requesting: http://10.0.0.37:8082/project/5503df15-81f9-481f-992c-b7810e0ce4ab
2025-03-27 16:48:32,762 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/ec94702a-255a-42eb-a40a-55b51f5fb4de
2025-03-27 16:48:32,775 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/ec94702a-255a-42eb-a40a-55b51f5fb4de
2025-03-27 16:48:32,785 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/76d56945-b9dd-4ed0-9130-fe3adff3c55c
2025-03-27 16:48:32,793 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/76d56945-b9dd-4ed0-9130-fe3adff3c55c
2025-03-27 16:48:32,801 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/9ec4a5ed-ac40-47d1-99ba-1f74f8b42d8c
2025-03-27 16:48:32,809 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 16:48:32,809 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/ec94702a-255a-42eb-a40a-55b51f5fb4de
2025-03-27 16:48:32,819 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/76d56945-b9dd-4ed0-9130-fe3adff3c55c
2025-03-27 16:48:32,836 - INFO - Verified VN network id 9 for VN ec94702a-255a-42eb-a40a-55b51f5fb4de
2025-03-27 16:48:32,836 - INFO - Verifications in API Server for VN ctest-vn-03607554 passed
2025-03-27 16:48:32,836 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/ec94702a-255a-42eb-a40a-55b51f5fb4de
2025-03-27 16:48:32,848 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/76d56945-b9dd-4ed0-9130-fe3adff3c55c
2025-03-27 16:48:32,858 - DEBUG - Requesting: http://10.0.0.37:8082/routing-instance/76d56945-b9dd-4ed0-9130-fe3adff3c55c
2025-03-27 16:48:32,867 - DEBUG - Requesting: http://10.0.0.37:8082/route-target/9ec4a5ed-ac40-47d1-99ba-1f74f8b42d8c
2025-03-27 16:48:32,882 - DEBUG - Control-node 10.0.0.37 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44521466:ctest-vn-03607554', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44521466', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17047373815821779691', 'uuid-lslong': '11820354408391095518'}, 'enable': 'true', 'created': '2025-03-27T16:48:30', 'last-modified': '2025-03-27T16:48:31', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.490050'}
2025-03-27 16:48:32,889 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-27 16:48:32,889 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-03607554 passed
2025-03-27 16:48:32,889 - DEBUG - ====Verifying policy data for ctest-vn-03607554 in API_Server ======
2025-03-27 16:48:32,889 - DEBUG - Requesting: http://10.0.0.37:8082/domains
2025-03-27 16:48:32,897 - DEBUG - Requesting: http://10.0.0.37:8082/domain/2b32e1b7-fdc9-4fcc-9ca4-ed647d29c8cb
2025-03-27 16:48:32,911 - DEBUG - Requesting: http://10.0.0.37:8082/project/5503df15-81f9-481f-992c-b7810e0ce4ab
2025-03-27 16:48:32,992 - DEBUG - Requesting: http://10.0.0.37:8082/virtual-network/ec94702a-255a-42eb-a40a-55b51f5fb4de
2025-03-27 16:48:33,006 - DEBUG - ==>Verifying data for policy with id: 73053a31-5b7b-4204-a5e4-acbab3cadce8, fqn: ['default-domain', 'ctest-TestBasicPolicy-44521466', 'ctest-policy-allow-all-02931800']
2025-03-27 16:48:33,006 - INFO - VN ctest-vn-03607554 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-27 16:48:33,007 - DEBUG - Verifying the vn in opserver
2025-03-27 16:48:33,007 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44521466:ctest-vn-03607554 virtual network link through opserver 10.0.0.37
2025-03-27 16:48:33,007 - DEBUG - Requesting: http://10.0.0.37:8081/analytics/uves/virtual-networks
2025-03-27 16:48:33,019 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44521466:ctest-vn-03607554', 'href': 'http://10.0.0.37:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44521466:ctest-vn-03607554?flat'}
2025-03-27 16:48:33,019 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44521466:ctest-vn-03607554 is found in opserver
2025-03-27 16:48:33,031 - DEBUG - Do not have enough data to verify VN in agent
2025-03-27 16:48:33,037 - DEBUG - VRF ids for VN ctest-vn-03607554: {}
2025-03-27 16:48:33,099 - DEBUG - Services list from nova: [