2024-10-23 11:08:34,863 - INFO - Domain Default found not creating
2024-10-23 11:08:35,052 - INFO - Project ctest-TestBasicPolicy-09790161 not found, creating it
2024-10-23 11:08:35,599 - INFO - Created Project:ctest-TestBasicPolicy-09790161, ID : aeeed507-67f9-4c6c-9f0c-bc8afd87f556
2024-10-23 11:08:37,374 - INFO - ================================================================================
2024-10-23 11:08:37,375 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-10-23 11:08:37,375 - 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-10-23 11:08:37,643 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.11': '0'}} with
2024-10-23 11:08:37,643 - INFO - Initial checks done. Running the testcase now
2024-10-23 11:08:37,643 - INFO -
2024-10-23 11:08:38,523 - DEBUG - Response for create_network : {'network': {'id': '5434c45a-6f35-459c-a035-b5c982355a3d', 'name': 'ctest-vn-37937317', 'tenant_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'project_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09790161', 'ctest-vn-37937317'], 'port_security_enabled': True, 'description': ''}}
2024-10-23 11:08:39,186 - DEBUG - Response for create_subnet : {'subnet': {'id': '51029d27-99db-4460-93fa-26fdbb707c28', 'name': '', 'tenant_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'network_id': '5434c45a-6f35-459c-a035-b5c982355a3d', 'ip_version': 4, 'cidr': '15.251.99.192/26', 'allocation_pools': [{'start': '15.251.99.194', 'end': '15.251.99.254'}], 'gateway_ip': '15.251.99.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '15.251.99.194', 'tags': [], 'project_id': 'aeeed50767f94c6c9f0cbc8afd87f556'}}
2024-10-23 11:08:39,222 - INFO - Created VN ctest-vn-37937317
2024-10-23 11:08:39,292 - DEBUG - VN ctest-vn-37937317 UUID is 5434c45a-6f35-459c-a035-b5c982355a3d
2024-10-23 11:08:39,673 - DEBUG - Response for create_network : {'network': {'id': '5b9efbad-4ad9-4c18-a60d-2301104d9167', 'name': 'ctest-vn-60340358', 'tenant_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'project_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09790161', 'ctest-vn-60340358'], 'port_security_enabled': True, 'description': ''}}
2024-10-23 11:08:39,900 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ca513260-0509-43a1-aaab-fb9ad1cb7301', 'name': '', 'tenant_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'network_id': '5b9efbad-4ad9-4c18-a60d-2301104d9167', 'ip_version': 4, 'cidr': '63.181.242.192/26', 'allocation_pools': [{'start': '63.181.242.194', 'end': '63.181.242.254'}], 'gateway_ip': '63.181.242.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '63.181.242.194', 'tags': [], 'project_id': 'aeeed50767f94c6c9f0cbc8afd87f556'}}
2024-10-23 11:08:39,933 - INFO - Created VN ctest-vn-60340358
2024-10-23 11:08:39,996 - DEBUG - VN ctest-vn-60340358 UUID is 5b9efbad-4ad9-4c18-a60d-2301104d9167
2024-10-23 11:08:40,138 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-37937317, 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-09790161:ctest-vn-60340358, 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-10-23 11:08:40,495 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5434c45a-6f35-459c-a035-b5c982355a3d', 'name': 'ctest-vn-37937317', 'tenant_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'project_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['51029d27-99db-4460-93fa-26fdbb707c28'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09790161', 'ctest-vn-37937317'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09790161', 'ctest-policy-allow-all-16077942']], 'subnet_ipam': [{'subnet_cidr': '15.251.99.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-23 11:08:40,802 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '5b9efbad-4ad9-4c18-a60d-2301104d9167', 'name': 'ctest-vn-60340358', 'tenant_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'project_id': 'aeeed50767f94c6c9f0cbc8afd87f556', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ca513260-0509-43a1-aaab-fb9ad1cb7301'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-09790161', 'ctest-vn-60340358'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-09790161', 'ctest-policy-allow-all-16077942']], 'subnet_ipam': [{'subnet_cidr': '63.181.242.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-10-23 11:08:40,956 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-10-23 11:08:41,295 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-10-23 11:08:41,338 - DEBUG - Requesting: http://10.0.0.35:8082/domain/150b0199-a4fe-4355-9e53-d28bec7d44ea
2024-10-23 11:08:41,358 - DEBUG - Requesting: http://10.0.0.35:8082/project/aeeed507-67f9-4c6c-9f0c-bc8afd87f556
2024-10-23 11:08:41,445 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5434c45a-6f35-459c-a035-b5c982355a3d
2024-10-23 11:08:41,465 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5434c45a-6f35-459c-a035-b5c982355a3d
2024-10-23 11:08:41,483 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/fe1659e7-505d-486a-95a3-1da8f2c04c8b
2024-10-23 11:08:41,495 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/fe1659e7-505d-486a-95a3-1da8f2c04c8b
2024-10-23 11:08:41,505 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/cf00b4b6-4d77-475e-8543-5c7c20023168
2024-10-23 11:08:41,515 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-23 11:08:41,515 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5434c45a-6f35-459c-a035-b5c982355a3d
2024-10-23 11:08:41,531 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/fe1659e7-505d-486a-95a3-1da8f2c04c8b
2024-10-23 11:08:41,555 - INFO - Verified VN network id 9 for VN 5434c45a-6f35-459c-a035-b5c982355a3d
2024-10-23 11:08:41,556 - INFO - Verifications in API Server for VN ctest-vn-37937317 passed
2024-10-23 11:08:41,556 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5434c45a-6f35-459c-a035-b5c982355a3d
2024-10-23 11:08:41,575 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/fe1659e7-505d-486a-95a3-1da8f2c04c8b
2024-10-23 11:08:41,587 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/fe1659e7-505d-486a-95a3-1da8f2c04c8b
2024-10-23 11:08:41,599 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/cf00b4b6-4d77-475e-8543-5c7c20023168
2024-10-23 11:08:41,618 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-37937317', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09790161', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6067690490666763676', 'uuid-lslong': '11544333096911723069'}, 'enable': 'true', 'created': '2024-10-23T11:08:38', 'last-modified': '2024-10-23T11:08:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.155433'}
2024-10-23 11:08:41,627 - DEBUG - Route Targets: ['target:64512:8000005']
2024-10-23 11:08:41,628 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-37937317 passed
2024-10-23 11:08:41,628 - DEBUG - ====Verifying policy data for ctest-vn-37937317 in API_Server ======
2024-10-23 11:08:41,628 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-10-23 11:08:41,637 - DEBUG - Requesting: http://10.0.0.35:8082/domain/150b0199-a4fe-4355-9e53-d28bec7d44ea
2024-10-23 11:08:41,656 - DEBUG - Requesting: http://10.0.0.35:8082/project/aeeed507-67f9-4c6c-9f0c-bc8afd87f556
2024-10-23 11:08:41,764 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5434c45a-6f35-459c-a035-b5c982355a3d
2024-10-23 11:08:41,789 - DEBUG - ==>Verifying data for policy with id: 2a9b8fad-1af8-465f-a87a-63a459e3f9be, fqn: ['default-domain', 'ctest-TestBasicPolicy-09790161', 'ctest-policy-allow-all-16077942']
2024-10-23 11:08:41,789 - INFO - VN ctest-vn-37937317 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-23 11:08:41,789 - DEBUG - Verifying the vn in opserver
2024-10-23 11:08:41,789 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-37937317 virtual network link through opserver 10.0.0.35
2024-10-23 11:08:41,789 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-10-23 11:08:42,134 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-10-23 11:08:42,207 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-37937317', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-37937317?flat'}
2024-10-23 11:08:42,207 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-37937317 is found in opserver
2024-10-23 11:08:42,220 - DEBUG - Do not have enough data to verify VN in agent
2024-10-23 11:08:42,226 - DEBUG - VRF ids for VN ctest-vn-37937317: {}
2024-10-23 11:08:42,226 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-10-23 11:08:42,234 - DEBUG - Requesting: http://10.0.0.35:8082/domain/150b0199-a4fe-4355-9e53-d28bec7d44ea
2024-10-23 11:08:42,250 - DEBUG - Requesting: http://10.0.0.35:8082/project/aeeed507-67f9-4c6c-9f0c-bc8afd87f556
2024-10-23 11:08:42,351 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5b9efbad-4ad9-4c18-a60d-2301104d9167
2024-10-23 11:08:42,373 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5b9efbad-4ad9-4c18-a60d-2301104d9167
2024-10-23 11:08:42,392 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e03c1def-dbe0-4eb4-b5c2-489c1fb40686
2024-10-23 11:08:42,403 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e03c1def-dbe0-4eb4-b5c2-489c1fb40686
2024-10-23 11:08:42,414 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/6fedc4a1-6dfd-42bc-9b54-f21f7e521297
2024-10-23 11:08:42,423 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-23 11:08:42,423 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5b9efbad-4ad9-4c18-a60d-2301104d9167
2024-10-23 11:08:42,439 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e03c1def-dbe0-4eb4-b5c2-489c1fb40686
2024-10-23 11:08:42,463 - INFO - Verified VN network id 10 for VN 5b9efbad-4ad9-4c18-a60d-2301104d9167
2024-10-23 11:08:42,463 - INFO - Verifications in API Server for VN ctest-vn-60340358 passed
2024-10-23 11:08:42,463 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5b9efbad-4ad9-4c18-a60d-2301104d9167
2024-10-23 11:08:42,480 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e03c1def-dbe0-4eb4-b5c2-489c1fb40686
2024-10-23 11:08:42,490 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/e03c1def-dbe0-4eb4-b5c2-489c1fb40686
2024-10-23 11:08:42,500 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/6fedc4a1-6dfd-42bc-9b54-f21f7e521297
2024-10-23 11:08:42,516 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-60340358', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-09790161', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '6601990825475394584', 'uuid-lslong': '11965258272468734311'}, 'enable': 'true', 'created': '2024-10-23T11:08:39', 'last-modified': '2024-10-23T11:08:40', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.780105'}
2024-10-23 11:08:42,523 - DEBUG - Route Targets: ['target:64512:8000006']
2024-10-23 11:08:42,523 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-60340358 passed
2024-10-23 11:08:42,523 - DEBUG - ====Verifying policy data for ctest-vn-60340358 in API_Server ======
2024-10-23 11:08:42,523 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-10-23 11:08:42,530 - DEBUG - Requesting: http://10.0.0.35:8082/domain/150b0199-a4fe-4355-9e53-d28bec7d44ea
2024-10-23 11:08:42,545 - DEBUG - Requesting: http://10.0.0.35:8082/project/aeeed507-67f9-4c6c-9f0c-bc8afd87f556
2024-10-23 11:08:42,631 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/5b9efbad-4ad9-4c18-a60d-2301104d9167
2024-10-23 11:08:42,647 - DEBUG - ==>Verifying data for policy with id: 2a9b8fad-1af8-465f-a87a-63a459e3f9be, fqn: ['default-domain', 'ctest-TestBasicPolicy-09790161', 'ctest-policy-allow-all-16077942']
2024-10-23 11:08:42,647 - INFO - VN ctest-vn-60340358 Policy verification: verify_vn_policy_in_api_server, status: True
2024-10-23 11:08:42,647 - DEBUG - Verifying the vn in opserver
2024-10-23 11:08:42,647 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-60340358 virtual network link through opserver 10.0.0.35
2024-10-23 11:08:42,647 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-10-23 11:08:42,661 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-60340358', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-60340358?flat'}
2024-10-23 11:08:42,661 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-09790161:ctest-vn-60340358 is found in opserver
2024-10-23 11:08:42,674 - DEBUG - Do not have enough data to verify VN in agent
2024-10-23 11:08:42,681 - DEBUG - VRF ids for VN ctest-vn-60340358: {}
2024-10-23 11:08:42,754 - DEBUG - Services list from nova: [