2025-03-20 17:07:02,772 - INFO - Domain Default found not creating
2025-03-20 17:07:02,933 - INFO - Project ctest-TestBasicPolicy-82104846 not found, creating it
2025-03-20 17:07:03,398 - INFO - Created Project:ctest-TestBasicPolicy-82104846, ID : 820117af-a9a0-4e25-a2e5-54e94db9ddb7
2025-03-20 17:07:05,023 - INFO - ================================================================================
2025-03-20 17:07:05,023 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-20 17:07:05,023 - 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-20 17:07:05,280 - DEBUG - Nothing to compare xmpp stats {'10.0.0.31': {'10.20.0.5': '0'}} with
2025-03-20 17:07:05,280 - INFO - Initial checks done. Running the testcase now
2025-03-20 17:07:05,280 - INFO -
2025-03-20 17:07:05,905 - DEBUG - Response for create_network : {'network': {'id': 'f48f2836-2213-480e-b209-56c979d828d8', 'name': 'ctest-vn-53117702', 'tenant_id': '820117afa9a04e25a2e554e94db9ddb7', 'project_id': '820117afa9a04e25a2e554e94db9ddb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82104846', 'ctest-vn-53117702'], 'port_security_enabled': True, 'description': ''}}
2025-03-20 17:07:06,140 - DEBUG - Response for create_subnet : {'subnet': {'id': '36eaf5da-e47d-423e-b228-42fefe28a7b1', 'name': '', 'tenant_id': '820117afa9a04e25a2e554e94db9ddb7', 'network_id': 'f48f2836-2213-480e-b209-56c979d828d8', 'ip_version': 4, 'cidr': '223.181.113.0/26', 'allocation_pools': [{'start': '223.181.113.2', 'end': '223.181.113.62'}], 'gateway_ip': '223.181.113.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '223.181.113.2', 'tags': [], 'project_id': '820117afa9a04e25a2e554e94db9ddb7'}}
2025-03-20 17:07:06,161 - INFO - Created VN ctest-vn-53117702
2025-03-20 17:07:06,213 - DEBUG - VN ctest-vn-53117702 UUID is f48f2836-2213-480e-b209-56c979d828d8
2025-03-20 17:07:06,526 - DEBUG - Response for create_network : {'network': {'id': '694184a5-aa88-4735-86a0-0bec1c7c95ad', 'name': 'ctest-vn-55680001', 'tenant_id': '820117afa9a04e25a2e554e94db9ddb7', 'project_id': '820117afa9a04e25a2e554e94db9ddb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82104846', 'ctest-vn-55680001'], 'port_security_enabled': True, 'description': ''}}
2025-03-20 17:07:06,742 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e935838e-f879-40ec-894b-e114ed378da8', 'name': '', 'tenant_id': '820117afa9a04e25a2e554e94db9ddb7', 'network_id': '694184a5-aa88-4735-86a0-0bec1c7c95ad', 'ip_version': 4, 'cidr': '195.142.88.192/26', 'allocation_pools': [{'start': '195.142.88.194', 'end': '195.142.88.254'}], 'gateway_ip': '195.142.88.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '195.142.88.194', 'tags': [], 'project_id': '820117afa9a04e25a2e554e94db9ddb7'}}
2025-03-20 17:07:06,767 - INFO - Created VN ctest-vn-55680001
2025-03-20 17:07:06,825 - DEBUG - VN ctest-vn-55680001 UUID is 694184a5-aa88-4735-86a0-0bec1c7c95ad
2025-03-20 17:07:06,946 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-53117702, 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-82104846:ctest-vn-55680001, 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-20 17:07:07,248 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'f48f2836-2213-480e-b209-56c979d828d8', 'name': 'ctest-vn-53117702', 'tenant_id': '820117afa9a04e25a2e554e94db9ddb7', 'project_id': '820117afa9a04e25a2e554e94db9ddb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['36eaf5da-e47d-423e-b228-42fefe28a7b1'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82104846', 'ctest-vn-53117702'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82104846', 'ctest-policy-allow-all-65080706']], 'subnet_ipam': [{'subnet_cidr': '223.181.113.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-20 17:07:07,496 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '694184a5-aa88-4735-86a0-0bec1c7c95ad', 'name': 'ctest-vn-55680001', 'tenant_id': '820117afa9a04e25a2e554e94db9ddb7', 'project_id': '820117afa9a04e25a2e554e94db9ddb7', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e935838e-f879-40ec-894b-e114ed378da8'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-82104846', 'ctest-vn-55680001'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-82104846', 'ctest-policy-allow-all-65080706']], 'subnet_ipam': [{'subnet_cidr': '195.142.88.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-20 17:07:07,641 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-03-20 17:07:07,991 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-03-20 17:07:08,022 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f44969ab-99bd-4d44-9177-d6623635728e
2025-03-20 17:07:08,039 - DEBUG - Requesting: http://10.0.0.31:8082/project/820117af-a9a0-4e25-a2e5-54e94db9ddb7
2025-03-20 17:07:08,116 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f48f2836-2213-480e-b209-56c979d828d8
2025-03-20 17:07:08,130 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f48f2836-2213-480e-b209-56c979d828d8
2025-03-20 17:07:08,142 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e1297856-733c-42a3-951c-3c8976f14ce3
2025-03-20 17:07:08,151 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e1297856-733c-42a3-951c-3c8976f14ce3
2025-03-20 17:07:08,160 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/25b6b42f-5344-4000-b26a-5e8958e91da3
2025-03-20 17:07:08,168 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-20 17:07:08,169 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f48f2836-2213-480e-b209-56c979d828d8
2025-03-20 17:07:08,179 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e1297856-733c-42a3-951c-3c8976f14ce3
2025-03-20 17:07:08,196 - INFO - Verified VN network id 9 for VN f48f2836-2213-480e-b209-56c979d828d8
2025-03-20 17:07:08,196 - INFO - Verifications in API Server for VN ctest-vn-53117702 passed
2025-03-20 17:07:08,197 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f48f2836-2213-480e-b209-56c979d828d8
2025-03-20 17:07:08,209 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e1297856-733c-42a3-951c-3c8976f14ce3
2025-03-20 17:07:08,219 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/e1297856-733c-42a3-951c-3c8976f14ce3
2025-03-20 17:07:08,227 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/25b6b42f-5344-4000-b26a-5e8958e91da3
2025-03-20 17:07:08,241 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-53117702', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82104846', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17622348079889074190', 'uuid-lslong': '12828880436874193112'}, 'enable': 'true', 'created': '2025-03-20T17:07:05', 'last-modified': '2025-03-20T17:07:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.017651'}
2025-03-20 17:07:08,249 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-20 17:07:08,249 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-53117702 passed
2025-03-20 17:07:08,249 - DEBUG - ====Verifying policy data for ctest-vn-53117702 in API_Server ======
2025-03-20 17:07:08,249 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-03-20 17:07:08,256 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f44969ab-99bd-4d44-9177-d6623635728e
2025-03-20 17:07:08,270 - DEBUG - Requesting: http://10.0.0.31:8082/project/820117af-a9a0-4e25-a2e5-54e94db9ddb7
2025-03-20 17:07:08,350 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/f48f2836-2213-480e-b209-56c979d828d8
2025-03-20 17:07:08,361 - DEBUG - ==>Verifying data for policy with id: 5eea212a-2f33-4f2f-bee1-fccf70a625d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-82104846', 'ctest-policy-allow-all-65080706']
2025-03-20 17:07:08,362 - INFO - VN ctest-vn-53117702 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-20 17:07:08,362 - DEBUG - Verifying the vn in opserver
2025-03-20 17:07:08,362 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-53117702 virtual network link through opserver 10.0.0.31
2025-03-20 17:07:08,362 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-03-20 17:07:08,700 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-03-20 17:07:08,761 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-53117702', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-53117702?flat'}
2025-03-20 17:07:08,762 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-53117702 is found in opserver
2025-03-20 17:07:08,774 - DEBUG - Do not have enough data to verify VN in agent
2025-03-20 17:07:08,780 - DEBUG - VRF ids for VN ctest-vn-53117702: {}
2025-03-20 17:07:08,780 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-03-20 17:07:08,786 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f44969ab-99bd-4d44-9177-d6623635728e
2025-03-20 17:07:08,803 - DEBUG - Requesting: http://10.0.0.31:8082/project/820117af-a9a0-4e25-a2e5-54e94db9ddb7
2025-03-20 17:07:08,883 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/694184a5-aa88-4735-86a0-0bec1c7c95ad
2025-03-20 17:07:08,898 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/694184a5-aa88-4735-86a0-0bec1c7c95ad
2025-03-20 17:07:08,909 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c5794bc8-d429-48cf-8e35-9b33976845ad
2025-03-20 17:07:08,918 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c5794bc8-d429-48cf-8e35-9b33976845ad
2025-03-20 17:07:08,926 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/e7d79474-5a88-4d8f-85f6-ff1af6d88305
2025-03-20 17:07:08,934 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-20 17:07:08,934 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/694184a5-aa88-4735-86a0-0bec1c7c95ad
2025-03-20 17:07:08,946 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c5794bc8-d429-48cf-8e35-9b33976845ad
2025-03-20 17:07:08,964 - INFO - Verified VN network id 10 for VN 694184a5-aa88-4735-86a0-0bec1c7c95ad
2025-03-20 17:07:08,964 - INFO - Verifications in API Server for VN ctest-vn-55680001 passed
2025-03-20 17:07:08,964 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/694184a5-aa88-4735-86a0-0bec1c7c95ad
2025-03-20 17:07:08,976 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c5794bc8-d429-48cf-8e35-9b33976845ad
2025-03-20 17:07:08,985 - DEBUG - Requesting: http://10.0.0.31:8082/routing-instance/c5794bc8-d429-48cf-8e35-9b33976845ad
2025-03-20 17:07:08,993 - DEBUG - Requesting: http://10.0.0.31:8082/route-target/e7d79474-5a88-4d8f-85f6-ff1af6d88305
2025-03-20 17:07:09,008 - DEBUG - Control-node 10.0.0.31 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-55680001', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-82104846', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '7584489094534154037', 'uuid-lslong': '9700766706074162605'}, 'enable': 'true', 'created': '2025-03-20T17:07:06', 'last-modified': '2025-03-20T17:07:07', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.536317'}
2025-03-20 17:07:09,015 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-20 17:07:09,015 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-55680001 passed
2025-03-20 17:07:09,015 - DEBUG - ====Verifying policy data for ctest-vn-55680001 in API_Server ======
2025-03-20 17:07:09,015 - DEBUG - Requesting: http://10.0.0.31:8082/domains
2025-03-20 17:07:09,022 - DEBUG - Requesting: http://10.0.0.31:8082/domain/f44969ab-99bd-4d44-9177-d6623635728e
2025-03-20 17:07:09,036 - DEBUG - Requesting: http://10.0.0.31:8082/project/820117af-a9a0-4e25-a2e5-54e94db9ddb7
2025-03-20 17:07:09,112 - DEBUG - Requesting: http://10.0.0.31:8082/virtual-network/694184a5-aa88-4735-86a0-0bec1c7c95ad
2025-03-20 17:07:09,124 - DEBUG - ==>Verifying data for policy with id: 5eea212a-2f33-4f2f-bee1-fccf70a625d0, fqn: ['default-domain', 'ctest-TestBasicPolicy-82104846', 'ctest-policy-allow-all-65080706']
2025-03-20 17:07:09,124 - INFO - VN ctest-vn-55680001 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-20 17:07:09,125 - DEBUG - Verifying the vn in opserver
2025-03-20 17:07:09,125 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-55680001 virtual network link through opserver 10.0.0.31
2025-03-20 17:07:09,125 - DEBUG - Requesting: http://10.0.0.31:8081/analytics/uves/virtual-networks
2025-03-20 17:07:09,137 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-55680001', 'href': 'http://10.0.0.31:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-55680001?flat'}
2025-03-20 17:07:09,137 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-82104846:ctest-vn-55680001 is found in opserver
2025-03-20 17:07:09,154 - DEBUG - Do not have enough data to verify VN in agent
2025-03-20 17:07:09,162 - DEBUG - VRF ids for VN ctest-vn-55680001: {}
2025-03-20 17:07:09,223 - DEBUG - Services list from nova: [