2025-03-26 09:34:02,099 - INFO - Domain Default found not creating
2025-03-26 09:34:02,252 - INFO - Project ctest-TestBasicPolicy-33746563 not found, creating it
2025-03-26 09:34:02,724 - INFO - Created Project:ctest-TestBasicPolicy-33746563, ID : 88fca47c-a8fd-471e-abd6-2eb4b606fa9f
2025-03-26 09:34:04,180 - INFO - ================================================================================
2025-03-26 09:34:04,180 - INFO - STARTING TEST : test_basic_policy_allow_deny
2025-03-26 09:34:04,180 - 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-26 09:34:04,437 - DEBUG - Nothing to compare xmpp stats {'10.0.0.27': {'10.20.0.17': '0'}} with
2025-03-26 09:34:04,437 - INFO - Initial checks done. Running the testcase now
2025-03-26 09:34:04,437 - INFO -
2025-03-26 09:34:04,985 - DEBUG - Response for create_network : {'network': {'id': 'ddaf88ee-947e-46ec-a80b-39db82b26b27', 'name': 'ctest-vn-61667575', 'tenant_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'project_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33746563', 'ctest-vn-61667575'], 'port_security_enabled': True, 'description': ''}}
2025-03-26 09:34:05,179 - DEBUG - Response for create_subnet : {'subnet': {'id': '6efed291-20a2-43c2-9a8c-17d3b214cb86', 'name': '', 'tenant_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'network_id': 'ddaf88ee-947e-46ec-a80b-39db82b26b27', 'ip_version': 4, 'cidr': '89.50.28.64/26', 'allocation_pools': [{'start': '89.50.28.66', 'end': '89.50.28.126'}], 'gateway_ip': '89.50.28.65', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '89.50.28.66', 'tags': [], 'project_id': '88fca47ca8fd471eabd62eb4b606fa9f'}}
2025-03-26 09:34:05,205 - INFO - Created VN ctest-vn-61667575
2025-03-26 09:34:05,262 - DEBUG - VN ctest-vn-61667575 UUID is ddaf88ee-947e-46ec-a80b-39db82b26b27
2025-03-26 09:34:05,560 - DEBUG - Response for create_network : {'network': {'id': 'a698331b-ab77-45c2-b62b-07f295fce6a0', 'name': 'ctest-vn-13540200', 'tenant_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'project_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33746563', 'ctest-vn-13540200'], 'port_security_enabled': True, 'description': ''}}
2025-03-26 09:34:05,776 - DEBUG - Response for create_subnet : {'subnet': {'id': '1d1da0d4-e846-463a-a65a-dfff396a8662', 'name': '', 'tenant_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'network_id': 'a698331b-ab77-45c2-b62b-07f295fce6a0', 'ip_version': 4, 'cidr': '53.246.245.0/26', 'allocation_pools': [{'start': '53.246.245.2', 'end': '53.246.245.62'}], 'gateway_ip': '53.246.245.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '53.246.245.2', 'tags': [], 'project_id': '88fca47ca8fd471eabd62eb4b606fa9f'}}
2025-03-26 09:34:05,796 - INFO - Created VN ctest-vn-13540200
2025-03-26 09:34:05,850 - DEBUG - VN ctest-vn-13540200 UUID is a698331b-ab77-45c2-b62b-07f295fce6a0
2025-03-26 09:34:05,965 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-61667575, 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-33746563:ctest-vn-13540200, 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-26 09:34:06,293 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'ddaf88ee-947e-46ec-a80b-39db82b26b27', 'name': 'ctest-vn-61667575', 'tenant_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'project_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['6efed291-20a2-43c2-9a8c-17d3b214cb86'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33746563', 'ctest-vn-61667575'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33746563', 'ctest-policy-allow-all-19191248']], 'subnet_ipam': [{'subnet_cidr': '89.50.28.64/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-26 09:34:06,537 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a698331b-ab77-45c2-b62b-07f295fce6a0', 'name': 'ctest-vn-13540200', 'tenant_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'project_id': '88fca47ca8fd471eabd62eb4b606fa9f', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['1d1da0d4-e846-463a-a65a-dfff396a8662'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-33746563', 'ctest-vn-13540200'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-33746563', 'ctest-policy-allow-all-19191248']], 'subnet_ipam': [{'subnet_cidr': '53.246.245.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2025-03-26 09:34:06,702 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-26 09:34:07,005 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-26 09:34:07,033 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee053aa6-1431-4dcc-b82e-0bbf64829f92
2025-03-26 09:34:07,052 - DEBUG - Requesting: http://10.0.0.27:8082/project/88fca47c-a8fd-471e-abd6-2eb4b606fa9f
2025-03-26 09:34:07,135 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ddaf88ee-947e-46ec-a80b-39db82b26b27
2025-03-26 09:34:07,153 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ddaf88ee-947e-46ec-a80b-39db82b26b27
2025-03-26 09:34:07,164 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d410140a-da16-462f-bc8c-a6ae04f9fd19
2025-03-26 09:34:07,173 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d410140a-da16-462f-bc8c-a6ae04f9fd19
2025-03-26 09:34:07,183 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ae2f93e7-30f2-44b7-b9fc-e04b54b20da7
2025-03-26 09:34:07,192 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-26 09:34:07,192 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ddaf88ee-947e-46ec-a80b-39db82b26b27
2025-03-26 09:34:07,204 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d410140a-da16-462f-bc8c-a6ae04f9fd19
2025-03-26 09:34:07,222 - INFO - Verified VN network id 7 for VN ddaf88ee-947e-46ec-a80b-39db82b26b27
2025-03-26 09:34:07,223 - INFO - Verifications in API Server for VN ctest-vn-61667575 passed
2025-03-26 09:34:07,223 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ddaf88ee-947e-46ec-a80b-39db82b26b27
2025-03-26 09:34:07,236 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d410140a-da16-462f-bc8c-a6ae04f9fd19
2025-03-26 09:34:07,246 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/d410140a-da16-462f-bc8c-a6ae04f9fd19
2025-03-26 09:34:07,254 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/ae2f93e7-30f2-44b7-b9fc-e04b54b20da7
2025-03-26 09:34:07,267 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-61667575', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33746563', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '15974136961581336300', 'uuid-lslong': '12108835638069062439'}, 'enable': 'true', 'created': '2025-03-26T09:34:04', 'last-modified': '2025-03-26T09:34:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.008507'}
2025-03-26 09:34:07,273 - DEBUG - Route Targets: ['target:64512:8000004']
2025-03-26 09:34:07,273 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-61667575 passed
2025-03-26 09:34:07,273 - DEBUG - ====Verifying policy data for ctest-vn-61667575 in API_Server ======
2025-03-26 09:34:07,273 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-26 09:34:07,279 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee053aa6-1431-4dcc-b82e-0bbf64829f92
2025-03-26 09:34:07,291 - DEBUG - Requesting: http://10.0.0.27:8082/project/88fca47c-a8fd-471e-abd6-2eb4b606fa9f
2025-03-26 09:34:07,381 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/ddaf88ee-947e-46ec-a80b-39db82b26b27
2025-03-26 09:34:07,391 - DEBUG - ==>Verifying data for policy with id: 6823398c-0c05-4167-951a-7e773cea4dd8, fqn: ['default-domain', 'ctest-TestBasicPolicy-33746563', 'ctest-policy-allow-all-19191248']
2025-03-26 09:34:07,392 - INFO - VN ctest-vn-61667575 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-26 09:34:07,392 - DEBUG - Verifying the vn in opserver
2025-03-26 09:34:07,392 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-61667575 virtual network link through opserver 10.0.0.27
2025-03-26 09:34:07,392 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-03-26 09:34:07,685 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-03-26 09:34:07,741 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-61667575', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-61667575?flat'}
2025-03-26 09:34:07,741 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-61667575 is found in opserver
2025-03-26 09:34:07,753 - DEBUG - Do not have enough data to verify VN in agent
2025-03-26 09:34:07,761 - DEBUG - VRF ids for VN ctest-vn-61667575: {}
2025-03-26 09:34:07,761 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-26 09:34:07,769 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee053aa6-1431-4dcc-b82e-0bbf64829f92
2025-03-26 09:34:07,783 - DEBUG - Requesting: http://10.0.0.27:8082/project/88fca47c-a8fd-471e-abd6-2eb4b606fa9f
2025-03-26 09:34:07,863 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a698331b-ab77-45c2-b62b-07f295fce6a0
2025-03-26 09:34:07,876 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a698331b-ab77-45c2-b62b-07f295fce6a0
2025-03-26 09:34:07,886 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aae35105-076c-48bb-9b84-4d3031121079
2025-03-26 09:34:07,894 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aae35105-076c-48bb-9b84-4d3031121079
2025-03-26 09:34:07,902 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d428985f-7ad9-4f7c-8b70-db21898d5f9c
2025-03-26 09:34:07,910 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-26 09:34:07,910 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a698331b-ab77-45c2-b62b-07f295fce6a0
2025-03-26 09:34:07,920 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aae35105-076c-48bb-9b84-4d3031121079
2025-03-26 09:34:07,935 - INFO - Verified VN network id 8 for VN a698331b-ab77-45c2-b62b-07f295fce6a0
2025-03-26 09:34:07,936 - INFO - Verifications in API Server for VN ctest-vn-13540200 passed
2025-03-26 09:34:07,936 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a698331b-ab77-45c2-b62b-07f295fce6a0
2025-03-26 09:34:07,946 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aae35105-076c-48bb-9b84-4d3031121079
2025-03-26 09:34:07,954 - DEBUG - Requesting: http://10.0.0.27:8082/routing-instance/aae35105-076c-48bb-9b84-4d3031121079
2025-03-26 09:34:07,961 - DEBUG - Requesting: http://10.0.0.27:8082/route-target/d428985f-7ad9-4f7c-8b70-db21898d5f9c
2025-03-26 09:34:07,975 - DEBUG - Control-node 10.0.0.27 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-13540200', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-33746563', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '12004401000689911234', 'uuid-lslong': '13126594277381301920'}, 'enable': 'true', 'created': '2025-03-26T09:34:05', 'last-modified': '2025-03-26T09:34:06', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.463961'}
2025-03-26 09:34:07,984 - DEBUG - Route Targets: ['target:64512:8000005']
2025-03-26 09:34:07,984 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-13540200 passed
2025-03-26 09:34:07,985 - DEBUG - ====Verifying policy data for ctest-vn-13540200 in API_Server ======
2025-03-26 09:34:07,985 - DEBUG - Requesting: http://10.0.0.27:8082/domains
2025-03-26 09:34:07,992 - DEBUG - Requesting: http://10.0.0.27:8082/domain/ee053aa6-1431-4dcc-b82e-0bbf64829f92
2025-03-26 09:34:08,009 - DEBUG - Requesting: http://10.0.0.27:8082/project/88fca47c-a8fd-471e-abd6-2eb4b606fa9f
2025-03-26 09:34:08,081 - DEBUG - Requesting: http://10.0.0.27:8082/virtual-network/a698331b-ab77-45c2-b62b-07f295fce6a0
2025-03-26 09:34:08,091 - DEBUG - ==>Verifying data for policy with id: 6823398c-0c05-4167-951a-7e773cea4dd8, fqn: ['default-domain', 'ctest-TestBasicPolicy-33746563', 'ctest-policy-allow-all-19191248']
2025-03-26 09:34:08,091 - INFO - VN ctest-vn-13540200 Policy verification: verify_vn_policy_in_api_server, status: True
2025-03-26 09:34:08,092 - DEBUG - Verifying the vn in opserver
2025-03-26 09:34:08,092 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-13540200 virtual network link through opserver 10.0.0.27
2025-03-26 09:34:08,092 - DEBUG - Requesting: http://10.0.0.27:8081/analytics/uves/virtual-networks
2025-03-26 09:34:08,105 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-13540200', 'href': 'http://10.0.0.27:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-13540200?flat'}
2025-03-26 09:34:08,105 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-33746563:ctest-vn-13540200 is found in opserver
2025-03-26 09:34:08,116 - DEBUG - Do not have enough data to verify VN in agent
2025-03-26 09:34:08,120 - DEBUG - VRF ids for VN ctest-vn-13540200: {}
2025-03-26 09:34:08,178 - DEBUG - Services list from nova: [