2024-12-26 02:14:57,251 - INFO - Domain Default found not creating
2024-12-26 02:14:57,410 - INFO - Project ctest-TestBasicPolicy-44829030 not found, creating it
2024-12-26 02:14:57,862 - INFO - Created Project:ctest-TestBasicPolicy-44829030, ID : 16ba1589-1802-41f9-ad80-371814a19d99
2024-12-26 02:14:59,322 - INFO - ================================================================================
2024-12-26 02:14:59,323 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-12-26 02:14:59,323 - 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
2024-12-26 02:14:59,580 - DEBUG - Nothing to compare xmpp stats {'10.0.0.22': {'10.0.0.22': '0'}} with
2024-12-26 02:14:59,580 - INFO - Initial checks done. Running the testcase now
2024-12-26 02:14:59,580 - INFO -
2024-12-26 02:15:00,132 - DEBUG - Response for create_network : {'network': {'id': '12247e6d-9833-4f8c-9471-578894116a47', 'name': 'ctest-vn-10927320', 'tenant_id': '16ba1589180241f9ad80371814a19d99', 'project_id': '16ba1589180241f9ad80371814a19d99', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44829030', 'ctest-vn-10927320'], 'port_security_enabled': True, 'description': ''}}
2024-12-26 02:15:00,358 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f63b60b9-7c9c-4ced-9cf7-5ad323c288c7', 'name': '', 'tenant_id': '16ba1589180241f9ad80371814a19d99', 'network_id': '12247e6d-9833-4f8c-9471-578894116a47', 'ip_version': 4, 'cidr': '54.3.130.0/26', 'allocation_pools': [{'start': '54.3.130.2', 'end': '54.3.130.62'}], 'gateway_ip': '54.3.130.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '54.3.130.2', 'tags': [], 'project_id': '16ba1589180241f9ad80371814a19d99'}}
2024-12-26 02:15:00,378 - INFO - Created VN ctest-vn-10927320
2024-12-26 02:15:00,430 - DEBUG - VN ctest-vn-10927320 UUID is 12247e6d-9833-4f8c-9471-578894116a47
2024-12-26 02:15:00,735 - DEBUG - Response for create_network : {'network': {'id': '186ff3e7-07a9-429c-983a-3c5585255e9a', 'name': 'ctest-vn-81832264', 'tenant_id': '16ba1589180241f9ad80371814a19d99', 'project_id': '16ba1589180241f9ad80371814a19d99', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44829030', 'ctest-vn-81832264'], 'port_security_enabled': True, 'description': ''}}
2024-12-26 02:15:00,895 - DEBUG - Response for create_subnet : {'subnet': {'id': 'd5cee1a4-dd09-456a-b921-7a0addd6953d', 'name': '', 'tenant_id': '16ba1589180241f9ad80371814a19d99', 'network_id': '186ff3e7-07a9-429c-983a-3c5585255e9a', 'ip_version': 4, 'cidr': '31.185.71.128/26', 'allocation_pools': [{'start': '31.185.71.130', 'end': '31.185.71.190'}], 'gateway_ip': '31.185.71.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '31.185.71.130', 'tags': [], 'project_id': '16ba1589180241f9ad80371814a19d99'}}
2024-12-26 02:15:00,915 - INFO - Created VN ctest-vn-81832264
2024-12-26 02:15:00,969 - DEBUG - VN ctest-vn-81832264 UUID is 186ff3e7-07a9-429c-983a-3c5585255e9a
2024-12-26 02:15:01,102 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-44829030:ctest-vn-10927320, 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-44829030:ctest-vn-81832264, 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]
2024-12-26 02:15:01,420 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '12247e6d-9833-4f8c-9471-578894116a47', 'name': 'ctest-vn-10927320', 'tenant_id': '16ba1589180241f9ad80371814a19d99', 'project_id': '16ba1589180241f9ad80371814a19d99', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f63b60b9-7c9c-4ced-9cf7-5ad323c288c7'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44829030', 'ctest-vn-10927320'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44829030', 'ctest-policy-allow-all-43558534']], 'subnet_ipam': [{'subnet_cidr': '54.3.130.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-26 02:15:01,718 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '186ff3e7-07a9-429c-983a-3c5585255e9a', 'name': 'ctest-vn-81832264', 'tenant_id': '16ba1589180241f9ad80371814a19d99', 'project_id': '16ba1589180241f9ad80371814a19d99', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['d5cee1a4-dd09-456a-b921-7a0addd6953d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-44829030', 'ctest-vn-81832264'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-44829030', 'ctest-policy-allow-all-43558534']], 'subnet_ipam': [{'subnet_cidr': '31.185.71.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-12-26 02:15:01,870 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-12-26 02:15:02,170 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-12-26 02:15:02,203 - DEBUG - Requesting: http://10.0.0.22:8082/domain/bd126eeb-8396-4a3a-a43d-81feab7422ef
2024-12-26 02:15:02,220 - DEBUG - Requesting: http://10.0.0.22:8082/project/16ba1589-1802-41f9-ad80-371814a19d99
2024-12-26 02:15:02,297 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/12247e6d-9833-4f8c-9471-578894116a47
2024-12-26 02:15:02,310 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/12247e6d-9833-4f8c-9471-578894116a47
2024-12-26 02:15:02,323 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c3dc6b5f-b667-41d1-ba4a-29d6b1fdf613
2024-12-26 02:15:02,332 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c3dc6b5f-b667-41d1-ba4a-29d6b1fdf613
2024-12-26 02:15:02,341 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/823cb0b1-514d-4cca-b40a-fc8293076c58
2024-12-26 02:15:02,349 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-26 02:15:02,349 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/12247e6d-9833-4f8c-9471-578894116a47
2024-12-26 02:15:02,360 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c3dc6b5f-b667-41d1-ba4a-29d6b1fdf613
2024-12-26 02:15:02,377 - INFO - Verified VN network id 8 for VN 12247e6d-9833-4f8c-9471-578894116a47
2024-12-26 02:15:02,377 - INFO - Verifications in API Server for VN ctest-vn-10927320 passed
2024-12-26 02:15:02,377 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/12247e6d-9833-4f8c-9471-578894116a47
2024-12-26 02:15:02,388 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c3dc6b5f-b667-41d1-ba4a-29d6b1fdf613
2024-12-26 02:15:02,397 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/c3dc6b5f-b667-41d1-ba4a-29d6b1fdf613
2024-12-26 02:15:02,406 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/823cb0b1-514d-4cca-b40a-fc8293076c58
2024-12-26 02:15:02,420 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44829030:ctest-vn-10927320', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44829030', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1307308801014321036', 'uuid-lslong': '10696426834092976711'}, 'enable': 'true', 'created': '2024-12-26T02:15:00', 'last-modified': '2024-12-26T02:15:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.027360'}
2024-12-26 02:15:02,428 - DEBUG - Route Targets: ['target:64512:8000005']
2024-12-26 02:15:02,428 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-10927320 passed
2024-12-26 02:15:02,428 - DEBUG - ====Verifying policy data for ctest-vn-10927320 in API_Server ======
2024-12-26 02:15:02,428 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-12-26 02:15:02,435 - DEBUG - Requesting: http://10.0.0.22:8082/domain/bd126eeb-8396-4a3a-a43d-81feab7422ef
2024-12-26 02:15:02,448 - DEBUG - Requesting: http://10.0.0.22:8082/project/16ba1589-1802-41f9-ad80-371814a19d99
2024-12-26 02:15:02,527 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/12247e6d-9833-4f8c-9471-578894116a47
2024-12-26 02:15:02,538 - DEBUG - ==>Verifying data for policy with id: fd5dc0d0-dba9-4fb0-bb34-ea34f8c44506, fqn: ['default-domain', 'ctest-TestBasicPolicy-44829030', 'ctest-policy-allow-all-43558534']
2024-12-26 02:15:02,539 - INFO - VN ctest-vn-10927320 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-26 02:15:02,539 - DEBUG - Verifying the vn in opserver
2024-12-26 02:15:02,539 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44829030:ctest-vn-10927320 virtual network link through opserver 10.0.0.22
2024-12-26 02:15:02,539 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-12-26 02:15:02,835 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-12-26 02:15:02,894 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44829030:ctest-vn-10927320', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44829030:ctest-vn-10927320?flat'}
2024-12-26 02:15:02,894 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44829030:ctest-vn-10927320 is found in opserver
2024-12-26 02:15:02,906 - DEBUG - Do not have enough data to verify VN in agent
2024-12-26 02:15:02,912 - DEBUG - VRF ids for VN ctest-vn-10927320: {}
2024-12-26 02:15:02,912 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-12-26 02:15:02,919 - DEBUG - Requesting: http://10.0.0.22:8082/domain/bd126eeb-8396-4a3a-a43d-81feab7422ef
2024-12-26 02:15:02,935 - DEBUG - Requesting: http://10.0.0.22:8082/project/16ba1589-1802-41f9-ad80-371814a19d99
2024-12-26 02:15:03,012 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/186ff3e7-07a9-429c-983a-3c5585255e9a
2024-12-26 02:15:03,027 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/186ff3e7-07a9-429c-983a-3c5585255e9a
2024-12-26 02:15:03,039 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0041c611-affe-401c-ac09-8b836ec7e4dd
2024-12-26 02:15:03,049 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0041c611-affe-401c-ac09-8b836ec7e4dd
2024-12-26 02:15:03,056 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/61d32aae-3c85-442b-bdaf-58ec6c4f906c
2024-12-26 02:15:03,064 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-26 02:15:03,064 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/186ff3e7-07a9-429c-983a-3c5585255e9a
2024-12-26 02:15:03,075 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0041c611-affe-401c-ac09-8b836ec7e4dd
2024-12-26 02:15:03,092 - INFO - Verified VN network id 9 for VN 186ff3e7-07a9-429c-983a-3c5585255e9a
2024-12-26 02:15:03,092 - INFO - Verifications in API Server for VN ctest-vn-81832264 passed
2024-12-26 02:15:03,092 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/186ff3e7-07a9-429c-983a-3c5585255e9a
2024-12-26 02:15:03,106 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0041c611-affe-401c-ac09-8b836ec7e4dd
2024-12-26 02:15:03,115 - DEBUG - Requesting: http://10.0.0.22:8082/routing-instance/0041c611-affe-401c-ac09-8b836ec7e4dd
2024-12-26 02:15:03,124 - DEBUG - Requesting: http://10.0.0.22:8082/route-target/61d32aae-3c85-442b-bdaf-58ec6c4f906c
2024-12-26 02:15:03,139 - DEBUG - Control-node 10.0.0.22 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-44829030:ctest-vn-81832264', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-44829030', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '1760894152916681372', 'uuid-lslong': '10969146180417969818'}, 'enable': 'true', 'created': '2024-12-26T02:15:00', 'last-modified': '2024-12-26T02:15:01', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.487707'}
2024-12-26 02:15:03,147 - DEBUG - Route Targets: ['target:64512:8000006']
2024-12-26 02:15:03,147 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-81832264 passed
2024-12-26 02:15:03,147 - DEBUG - ====Verifying policy data for ctest-vn-81832264 in API_Server ======
2024-12-26 02:15:03,147 - DEBUG - Requesting: http://10.0.0.22:8082/domains
2024-12-26 02:15:03,153 - DEBUG - Requesting: http://10.0.0.22:8082/domain/bd126eeb-8396-4a3a-a43d-81feab7422ef
2024-12-26 02:15:03,166 - DEBUG - Requesting: http://10.0.0.22:8082/project/16ba1589-1802-41f9-ad80-371814a19d99
2024-12-26 02:15:03,249 - DEBUG - Requesting: http://10.0.0.22:8082/virtual-network/186ff3e7-07a9-429c-983a-3c5585255e9a
2024-12-26 02:15:03,259 - DEBUG - ==>Verifying data for policy with id: fd5dc0d0-dba9-4fb0-bb34-ea34f8c44506, fqn: ['default-domain', 'ctest-TestBasicPolicy-44829030', 'ctest-policy-allow-all-43558534']
2024-12-26 02:15:03,259 - INFO - VN ctest-vn-81832264 Policy verification: verify_vn_policy_in_api_server, status: True
2024-12-26 02:15:03,259 - DEBUG - Verifying the vn in opserver
2024-12-26 02:15:03,259 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-44829030:ctest-vn-81832264 virtual network link through opserver 10.0.0.22
2024-12-26 02:15:03,259 - DEBUG - Requesting: http://10.0.0.22:8081/analytics/uves/virtual-networks
2024-12-26 02:15:03,271 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-44829030:ctest-vn-81832264', 'href': 'http://10.0.0.22:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-44829030:ctest-vn-81832264?flat'}
2024-12-26 02:15:03,272 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-44829030:ctest-vn-81832264 is found in opserver
2024-12-26 02:15:03,284 - DEBUG - Do not have enough data to verify VN in agent
2024-12-26 02:15:03,291 - DEBUG - VRF ids for VN ctest-vn-81832264: {}
2024-12-26 02:15:03,370 - DEBUG - Services list from nova: [