2025-02-03 16:37:39,175 - INFO - Domain Default found not creating
2025-02-03 16:37:39,330 - INFO - Project ctest-TestBasicPolicy-14140958 not found, creating it
2025-02-03 16:37:39,810 - INFO - Created Project:ctest-TestBasicPolicy-14140958, ID : ac3b693f-c318-4188-9e98-f6c4613422fc
2025-02-03 16:37:41,287 - INFO - ================================================================================
2025-02-03 16:37:41,287 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-02-03 16:37:41,287 - 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-02-03 16:37:41,545 - DEBUG - Nothing to compare xmpp stats {'10.0.0.33': {'10.20.0.5': '0'}} with
2025-02-03 16:37:41,545 - INFO - Initial checks done. Running the testcase now
2025-02-03 16:37:41,546 - INFO -
2025-02-03 16:37:42,090 - DEBUG - Response for create_network : {'network': {'id': '5fb991ff-ef75-4789-94f0-c34813a9369f', 'name': 'ctest-vn-33510940', 'tenant_id': 'ac3b693fc31841889e98f6c4613422fc', 'project_id': 'ac3b693fc31841889e98f6c4613422fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14140958', 'ctest-vn-33510940'], 'port_security_enabled': True, 'description': ''}}
2025-02-03 16:37:42,245 - DEBUG - Response for create_subnet : {'subnet': {'id': '1f379973-627d-4be3-a326-855c38d86ccb', 'name': '', 'tenant_id': 'ac3b693fc31841889e98f6c4613422fc', 'network_id': '5fb991ff-ef75-4789-94f0-c34813a9369f', 'ip_version': 4, 'cidr': '117.64.35.64/26', 'allocation_pools': [{'start': '117.64.35.66', 'end': '117.64.35.126'}], 'gateway_ip': '117.64.35.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '117.64.35.66', 'tags': [], 'project_id': 'ac3b693fc31841889e98f6c4613422fc'}}
2025-02-03 16:37:42,262 - INFO - Created VN ctest-vn-33510940
2025-02-03 16:37:42,315 - DEBUG - VN ctest-vn-33510940 UUID is 5fb991ff-ef75-4789-94f0-c34813a9369f
2025-02-03 16:37:42,609 - DEBUG - Response for create_network : {'network': {'id': '3402eeb6-8281-4a96-a2a8-6a33dcc815bf', 'name': 'ctest-vn-01156625', 'tenant_id': 'ac3b693fc31841889e98f6c4613422fc', 'project_id': 'ac3b693fc31841889e98f6c4613422fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14140958', 'ctest-vn-01156625'], 'port_security_enabled': True, 'description': ''}}
2025-02-03 16:37:42,818 - DEBUG - Response for create_subnet : {'subnet': {'id': 'da3fc3ad-1699-4f64-968e-50069baebcbc', 'name': '', 'tenant_id': 'ac3b693fc31841889e98f6c4613422fc', 'network_id': '3402eeb6-8281-4a96-a2a8-6a33dcc815bf', 'ip_version': 4, 'cidr': '11.137.53.64/26', 'allocation_pools': [{'start': '11.137.53.66', 'end': '11.137.53.126'}], 'gateway_ip': '11.137.53.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '11.137.53.66', 'tags': [], 'project_id': 'ac3b693fc31841889e98f6c4613422fc'}}
2025-02-03 16:37:42,837 - INFO - Created VN ctest-vn-01156625
2025-02-03 16:37:42,891 - DEBUG - VN ctest-vn-01156625 UUID is 3402eeb6-8281-4a96-a2a8-6a33dcc815bf
2025-02-03 16:37:43,011 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-14140958:ctest-vn-33510940, 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-14140958:ctest-vn-01156625, 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-02-03 16:37:43,308 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5fb991ff-ef75-4789-94f0-c34813a9369f', 'name': 'ctest-vn-33510940', 'tenant_id': 'ac3b693fc31841889e98f6c4613422fc', 'project_id': 'ac3b693fc31841889e98f6c4613422fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1f379973-627d-4be3-a326-855c38d86ccb'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14140958', 'ctest-vn-33510940'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14140958', 'ctest-policy-allow-all-83194983']], 'subnet_ipam': [{'subnet_cidr': '117.64.35.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-03 16:37:43,532 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '3402eeb6-8281-4a96-a2a8-6a33dcc815bf', 'name': 'ctest-vn-01156625', 'tenant_id': 'ac3b693fc31841889e98f6c4613422fc', 'project_id': 'ac3b693fc31841889e98f6c4613422fc', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['da3fc3ad-1699-4f64-968e-50069baebcbc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-14140958', 'ctest-vn-01156625'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-14140958', 'ctest-policy-allow-all-83194983']], 'subnet_ipam': [{'subnet_cidr': '11.137.53.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-02-03 16:37:43,683 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-02-03 16:37:44,044 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-02-03 16:37:44,080 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e2e3dfc0-3821-411d-a4e1-10553941e172
2025-02-03 16:37:44,096 - DEBUG - Requesting: http://10.0.0.33:8082/project/ac3b693f-c318-4188-9e98-f6c4613422fc
2025-02-03 16:37:44,173 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5fb991ff-ef75-4789-94f0-c34813a9369f
2025-02-03 16:37:44,184 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5fb991ff-ef75-4789-94f0-c34813a9369f
2025-02-03 16:37:44,195 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/97db28bd-b2b4-4d4a-9a66-522c6630bbe8
2025-02-03 16:37:44,203 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/97db28bd-b2b4-4d4a-9a66-522c6630bbe8
2025-02-03 16:37:44,210 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b1df69ba-e5f5-44f4-a33b-2d5d8522b7e7
2025-02-03 16:37:44,218 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-03 16:37:44,218 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5fb991ff-ef75-4789-94f0-c34813a9369f
2025-02-03 16:37:44,228 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/97db28bd-b2b4-4d4a-9a66-522c6630bbe8
2025-02-03 16:37:44,243 - INFO - Verified VN network id 8 for VN 5fb991ff-ef75-4789-94f0-c34813a9369f
2025-02-03 16:37:44,243 - INFO - Verifications in API Server for VN ctest-vn-33510940 passed
2025-02-03 16:37:44,243 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5fb991ff-ef75-4789-94f0-c34813a9369f
2025-02-03 16:37:44,254 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/97db28bd-b2b4-4d4a-9a66-522c6630bbe8
2025-02-03 16:37:44,262 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/97db28bd-b2b4-4d4a-9a66-522c6630bbe8
2025-02-03 16:37:44,270 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/b1df69ba-e5f5-44f4-a33b-2d5d8522b7e7
2025-02-03 16:37:44,283 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14140958:ctest-vn-33510940', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14140958', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6897704832714753929', 'uuid-lslong': '10732292626358810271'}, 'enable': 'true', 'created': '2025-02-03T16:37:42', 'last-modified': '2025-02-03T16:37:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.999320'}
2025-02-03 16:37:44,290 - DEBUG - Route Targets: ['target:64512:8000004']
2025-02-03 16:37:44,290 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-33510940 passed
2025-02-03 16:37:44,290 - DEBUG - ====Verifying policy data for ctest-vn-33510940 in API_Server ======
2025-02-03 16:37:44,290 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-02-03 16:37:44,297 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e2e3dfc0-3821-411d-a4e1-10553941e172
2025-02-03 16:37:44,309 - DEBUG - Requesting: http://10.0.0.33:8082/project/ac3b693f-c318-4188-9e98-f6c4613422fc
2025-02-03 16:37:44,386 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/5fb991ff-ef75-4789-94f0-c34813a9369f
2025-02-03 16:37:44,398 - DEBUG - ==>Verifying data for policy with id: 7e13fd93-f1d8-480a-802a-d4023e7932bc, fqn: ['default-domain', 'ctest-TestBasicPolicy-14140958', 'ctest-policy-allow-all-83194983']
2025-02-03 16:37:44,398 - INFO - VN ctest-vn-33510940 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-03 16:37:44,398 - DEBUG - Verifying the vn in opserver
2025-02-03 16:37:44,398 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14140958:ctest-vn-33510940 virtual network link through opserver 10.0.0.33
2025-02-03 16:37:44,398 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-02-03 16:37:44,689 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-02-03 16:37:44,772 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14140958:ctest-vn-33510940', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14140958:ctest-vn-33510940?flat'}
2025-02-03 16:37:44,772 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14140958:ctest-vn-33510940 is found in opserver
2025-02-03 16:37:44,783 - DEBUG - Do not have enough data to verify VN in agent
2025-02-03 16:37:44,788 - DEBUG - VRF ids for VN ctest-vn-33510940: {}
2025-02-03 16:37:44,788 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-02-03 16:37:44,795 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e2e3dfc0-3821-411d-a4e1-10553941e172
2025-02-03 16:37:44,807 - DEBUG - Requesting: http://10.0.0.33:8082/project/ac3b693f-c318-4188-9e98-f6c4613422fc
2025-02-03 16:37:44,884 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3402eeb6-8281-4a96-a2a8-6a33dcc815bf
2025-02-03 16:37:44,899 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3402eeb6-8281-4a96-a2a8-6a33dcc815bf
2025-02-03 16:37:44,912 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ddeb7bab-8809-4411-b169-fd30b2e01355
2025-02-03 16:37:44,920 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ddeb7bab-8809-4411-b169-fd30b2e01355
2025-02-03 16:37:44,928 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5a339670-0a58-42da-a7d8-898da208fca9
2025-02-03 16:37:44,935 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-03 16:37:44,935 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3402eeb6-8281-4a96-a2a8-6a33dcc815bf
2025-02-03 16:37:44,945 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ddeb7bab-8809-4411-b169-fd30b2e01355
2025-02-03 16:37:44,961 - INFO - Verified VN network id 9 for VN 3402eeb6-8281-4a96-a2a8-6a33dcc815bf
2025-02-03 16:37:44,961 - INFO - Verifications in API Server for VN ctest-vn-01156625 passed
2025-02-03 16:37:44,961 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3402eeb6-8281-4a96-a2a8-6a33dcc815bf
2025-02-03 16:37:44,972 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ddeb7bab-8809-4411-b169-fd30b2e01355
2025-02-03 16:37:44,980 - DEBUG - Requesting: http://10.0.0.33:8082/routing-instance/ddeb7bab-8809-4411-b169-fd30b2e01355
2025-02-03 16:37:44,987 - DEBUG - Requesting: http://10.0.0.33:8082/route-target/5a339670-0a58-42da-a7d8-898da208fca9
2025-02-03 16:37:45,000 - DEBUG - Control-node 10.0.0.33 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-14140958:ctest-vn-01156625', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-14140958', 'owner-access': '7', 'group': 'member', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '3747820307566643862', 'uuid-lslong': '11720734801211692479'}, 'enable': 'true', 'created': '2025-02-03T16:37:42', 'last-modified': '2025-02-03T16:37:43', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.492170'}
2025-02-03 16:37:45,006 - DEBUG - Route Targets: ['target:64512:8000005']
2025-02-03 16:37:45,006 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-01156625 passed
2025-02-03 16:37:45,007 - DEBUG - ====Verifying policy data for ctest-vn-01156625 in API_Server ======
2025-02-03 16:37:45,007 - DEBUG - Requesting: http://10.0.0.33:8082/domains
2025-02-03 16:37:45,013 - DEBUG - Requesting: http://10.0.0.33:8082/domain/e2e3dfc0-3821-411d-a4e1-10553941e172
2025-02-03 16:37:45,024 - DEBUG - Requesting: http://10.0.0.33:8082/project/ac3b693f-c318-4188-9e98-f6c4613422fc
2025-02-03 16:37:45,104 - DEBUG - Requesting: http://10.0.0.33:8082/virtual-network/3402eeb6-8281-4a96-a2a8-6a33dcc815bf
2025-02-03 16:37:45,115 - DEBUG - ==>Verifying data for policy with id: 7e13fd93-f1d8-480a-802a-d4023e7932bc, fqn: ['default-domain', 'ctest-TestBasicPolicy-14140958', 'ctest-policy-allow-all-83194983']
2025-02-03 16:37:45,115 - INFO - VN ctest-vn-01156625 Policy verification: verify_vn_policy_in_api_server, status: True
2025-02-03 16:37:45,115 - DEBUG - Verifying the vn in opserver
2025-02-03 16:37:45,115 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-14140958:ctest-vn-01156625 virtual network link through opserver 10.0.0.33
2025-02-03 16:37:45,115 - DEBUG - Requesting: http://10.0.0.33:8081/analytics/uves/virtual-networks
2025-02-03 16:37:45,127 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-14140958:ctest-vn-01156625', 'href': 'http://10.0.0.33:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-14140958:ctest-vn-01156625?flat'}
2025-02-03 16:37:45,127 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-14140958:ctest-vn-01156625 is found in opserver
2025-02-03 16:37:45,139 - DEBUG - Do not have enough data to verify VN in agent
2025-02-03 16:37:45,144 - DEBUG - VRF ids for VN ctest-vn-01156625: {}
2025-02-03 16:37:45,203 - DEBUG - Services list from nova: [