2024-09-11 16:17:11,213 - INFO - Domain Default found not creating
2024-09-11 16:17:11,454 - INFO - Project ctest-TestBasicPolicy-06151134 not found, creating it
2024-09-11 16:17:12,043 - INFO - Created Project:ctest-TestBasicPolicy-06151134, ID : c689d98f-1e59-48da-a530-987307c5b595
2024-09-11 16:17:14,021 - INFO - ================================================================================
2024-09-11 16:17:14,021 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-11 16:17:14,021 - 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-09-11 16:17:14,299 - DEBUG - Nothing to compare xmpp stats {'10.0.0.28': {'10.20.0.17': '0'}} with
2024-09-11 16:17:14,299 - INFO - Initial checks done. Running the testcase now
2024-09-11 16:17:14,301 - INFO -
2024-09-11 16:17:15,009 - DEBUG - Response for create_network : {'network': {'id': 'e3870dfc-b8ee-4091-85fd-24badc5192a7', 'name': 'ctest-vn-71786209', 'tenant_id': 'c689d98f1e5948daa530987307c5b595', 'project_id': 'c689d98f1e5948daa530987307c5b595', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06151134', 'ctest-vn-71786209'], 'port_security_enabled': True, 'description': ''}}
2024-09-11 16:17:15,178 - DEBUG - Response for create_subnet : {'subnet': {'id': 'c3cd64f8-abd1-4d80-a0b2-fe5b99dd05b9', 'name': '', 'tenant_id': 'c689d98f1e5948daa530987307c5b595', 'network_id': 'e3870dfc-b8ee-4091-85fd-24badc5192a7', 'ip_version': 4, 'cidr': '134.111.89.128/26', 'allocation_pools': [{'start': '134.111.89.130', 'end': '134.111.89.190'}], 'gateway_ip': '134.111.89.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '134.111.89.130', 'tags': [], 'project_id': 'c689d98f1e5948daa530987307c5b595'}}
2024-09-11 16:17:15,204 - INFO - Created VN ctest-vn-71786209
2024-09-11 16:17:15,259 - DEBUG - VN ctest-vn-71786209 UUID is e3870dfc-b8ee-4091-85fd-24badc5192a7
2024-09-11 16:17:15,645 - DEBUG - Response for create_network : {'network': {'id': 'b5a95ee9-79b1-4da1-8e63-b4db2109cbd9', 'name': 'ctest-vn-77105183', 'tenant_id': 'c689d98f1e5948daa530987307c5b595', 'project_id': 'c689d98f1e5948daa530987307c5b595', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06151134', 'ctest-vn-77105183'], 'port_security_enabled': True, 'description': ''}}
2024-09-11 16:17:15,900 - DEBUG - Response for create_subnet : {'subnet': {'id': '42835b22-04d7-4aa9-9bc4-11cb7462202d', 'name': '', 'tenant_id': 'c689d98f1e5948daa530987307c5b595', 'network_id': 'b5a95ee9-79b1-4da1-8e63-b4db2109cbd9', 'ip_version': 4, 'cidr': '212.222.241.128/26', 'allocation_pools': [{'start': '212.222.241.130', 'end': '212.222.241.190'}], 'gateway_ip': '212.222.241.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '212.222.241.130', 'tags': [], 'project_id': 'c689d98f1e5948daa530987307c5b595'}}
2024-09-11 16:17:15,931 - INFO - Created VN ctest-vn-77105183
2024-09-11 16:17:15,987 - DEBUG - VN ctest-vn-77105183 UUID is b5a95ee9-79b1-4da1-8e63-b4db2109cbd9
2024-09-11 16:17:16,135 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-06151134:ctest-vn-71786209, 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-06151134:ctest-vn-77105183, 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-09-11 16:17:16,481 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'e3870dfc-b8ee-4091-85fd-24badc5192a7', 'name': 'ctest-vn-71786209', 'tenant_id': 'c689d98f1e5948daa530987307c5b595', 'project_id': 'c689d98f1e5948daa530987307c5b595', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['c3cd64f8-abd1-4d80-a0b2-fe5b99dd05b9'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06151134', 'ctest-vn-71786209'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06151134', 'ctest-policy-allow-all-89140748']], 'subnet_ipam': [{'subnet_cidr': '134.111.89.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-11 16:17:16,755 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'b5a95ee9-79b1-4da1-8e63-b4db2109cbd9', 'name': 'ctest-vn-77105183', 'tenant_id': 'c689d98f1e5948daa530987307c5b595', 'project_id': 'c689d98f1e5948daa530987307c5b595', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['42835b22-04d7-4aa9-9bc4-11cb7462202d'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-06151134', 'ctest-vn-77105183'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-06151134', 'ctest-policy-allow-all-89140748']], 'subnet_ipam': [{'subnet_cidr': '212.222.241.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-11 16:17:16,947 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-11 16:17:17,356 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-11 16:17:17,416 - DEBUG - Requesting: http://10.0.0.28:8082/domain/3a43b8f9-1859-4bc9-8231-2acdca3f8e9c
2024-09-11 16:17:17,438 - DEBUG - Requesting: http://10.0.0.28:8082/project/c689d98f-1e59-48da-a530-987307c5b595
2024-09-11 16:17:17,539 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e3870dfc-b8ee-4091-85fd-24badc5192a7
2024-09-11 16:17:17,555 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e3870dfc-b8ee-4091-85fd-24badc5192a7
2024-09-11 16:17:17,570 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/c9bd3c59-d252-42fb-81a1-1d30b311d9e9
2024-09-11 16:17:17,580 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/c9bd3c59-d252-42fb-81a1-1d30b311d9e9
2024-09-11 16:17:17,590 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/6a879aaf-3801-46b3-8f10-604f158a9ee0
2024-09-11 16:17:17,601 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-11 16:17:17,601 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e3870dfc-b8ee-4091-85fd-24badc5192a7
2024-09-11 16:17:17,614 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/c9bd3c59-d252-42fb-81a1-1d30b311d9e9
2024-09-11 16:17:17,634 - INFO - Verified VN network id 8 for VN e3870dfc-b8ee-4091-85fd-24badc5192a7
2024-09-11 16:17:17,635 - INFO - Verifications in API Server for VN ctest-vn-71786209 passed
2024-09-11 16:17:17,635 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e3870dfc-b8ee-4091-85fd-24badc5192a7
2024-09-11 16:17:17,647 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/c9bd3c59-d252-42fb-81a1-1d30b311d9e9
2024-09-11 16:17:17,657 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/c9bd3c59-d252-42fb-81a1-1d30b311d9e9
2024-09-11 16:17:17,666 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/6a879aaf-3801-46b3-8f10-604f158a9ee0
2024-09-11 16:17:17,684 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06151134:ctest-vn-71786209', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06151134', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '16395088347551121553', 'uuid-lslong': '9654913561131061927'}, 'enable': 'true', 'created': '2024-09-11T16:17:14', 'last-modified': '2024-09-11T16:17:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.239259'}
2024-09-11 16:17:17,693 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-11 16:17:17,693 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-71786209 passed
2024-09-11 16:17:17,693 - DEBUG - ====Verifying policy data for ctest-vn-71786209 in API_Server ======
2024-09-11 16:17:17,693 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-11 16:17:17,701 - DEBUG - Requesting: http://10.0.0.28:8082/domain/3a43b8f9-1859-4bc9-8231-2acdca3f8e9c
2024-09-11 16:17:17,716 - DEBUG - Requesting: http://10.0.0.28:8082/project/c689d98f-1e59-48da-a530-987307c5b595
2024-09-11 16:17:17,799 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/e3870dfc-b8ee-4091-85fd-24badc5192a7
2024-09-11 16:17:17,812 - DEBUG - ==>Verifying data for policy with id: 14b5dee7-5d6e-4981-8a8c-d7838ba7c740, fqn: ['default-domain', 'ctest-TestBasicPolicy-06151134', 'ctest-policy-allow-all-89140748']
2024-09-11 16:17:17,812 - INFO - VN ctest-vn-71786209 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-11 16:17:17,812 - DEBUG - Verifying the vn in opserver
2024-09-11 16:17:17,812 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06151134:ctest-vn-71786209 virtual network link through opserver 10.0.0.28
2024-09-11 16:17:17,813 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-11 16:17:18,181 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-11 16:17:18,262 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06151134:ctest-vn-71786209', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06151134:ctest-vn-71786209?flat'}
2024-09-11 16:17:18,263 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06151134:ctest-vn-71786209 is found in opserver
2024-09-11 16:17:18,277 - DEBUG - Do not have enough data to verify VN in agent
2024-09-11 16:17:18,283 - DEBUG - VRF ids for VN ctest-vn-71786209: {}
2024-09-11 16:17:18,283 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-11 16:17:18,291 - DEBUG - Requesting: http://10.0.0.28:8082/domain/3a43b8f9-1859-4bc9-8231-2acdca3f8e9c
2024-09-11 16:17:18,307 - DEBUG - Requesting: http://10.0.0.28:8082/project/c689d98f-1e59-48da-a530-987307c5b595
2024-09-11 16:17:18,386 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/b5a95ee9-79b1-4da1-8e63-b4db2109cbd9
2024-09-11 16:17:18,400 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/b5a95ee9-79b1-4da1-8e63-b4db2109cbd9
2024-09-11 16:17:18,411 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/ad79a14f-c183-456f-9983-e962fd49b3ff
2024-09-11 16:17:18,423 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/ad79a14f-c183-456f-9983-e962fd49b3ff
2024-09-11 16:17:18,433 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/f0fba048-0549-4045-9c73-838b9d428ba2
2024-09-11 16:17:18,442 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-11 16:17:18,442 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/b5a95ee9-79b1-4da1-8e63-b4db2109cbd9
2024-09-11 16:17:18,455 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/ad79a14f-c183-456f-9983-e962fd49b3ff
2024-09-11 16:17:18,480 - INFO - Verified VN network id 9 for VN b5a95ee9-79b1-4da1-8e63-b4db2109cbd9
2024-09-11 16:17:18,480 - INFO - Verifications in API Server for VN ctest-vn-77105183 passed
2024-09-11 16:17:18,480 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/b5a95ee9-79b1-4da1-8e63-b4db2109cbd9
2024-09-11 16:17:18,496 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/ad79a14f-c183-456f-9983-e962fd49b3ff
2024-09-11 16:17:18,508 - DEBUG - Requesting: http://10.0.0.28:8082/routing-instance/ad79a14f-c183-456f-9983-e962fd49b3ff
2024-09-11 16:17:18,521 - DEBUG - Requesting: http://10.0.0.28:8082/route-target/f0fba048-0549-4045-9c73-838b9d428ba2
2024-09-11 16:17:18,542 - DEBUG - Control-node 10.0.0.28 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-06151134:ctest-vn-77105183', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-06151134', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '13090098148791111073', 'uuid-lslong': '10260243229325249497'}, 'enable': 'true', 'created': '2024-09-11T16:17:15', 'last-modified': '2024-09-11T16:17:16', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.815286'}
2024-09-11 16:17:18,552 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-11 16:17:18,553 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-77105183 passed
2024-09-11 16:17:18,553 - DEBUG - ====Verifying policy data for ctest-vn-77105183 in API_Server ======
2024-09-11 16:17:18,553 - DEBUG - Requesting: http://10.0.0.28:8082/domains
2024-09-11 16:17:18,562 - DEBUG - Requesting: http://10.0.0.28:8082/domain/3a43b8f9-1859-4bc9-8231-2acdca3f8e9c
2024-09-11 16:17:18,579 - DEBUG - Requesting: http://10.0.0.28:8082/project/c689d98f-1e59-48da-a530-987307c5b595
2024-09-11 16:17:18,664 - DEBUG - Requesting: http://10.0.0.28:8082/virtual-network/b5a95ee9-79b1-4da1-8e63-b4db2109cbd9
2024-09-11 16:17:18,675 - DEBUG - ==>Verifying data for policy with id: 14b5dee7-5d6e-4981-8a8c-d7838ba7c740, fqn: ['default-domain', 'ctest-TestBasicPolicy-06151134', 'ctest-policy-allow-all-89140748']
2024-09-11 16:17:18,676 - INFO - VN ctest-vn-77105183 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-11 16:17:18,676 - DEBUG - Verifying the vn in opserver
2024-09-11 16:17:18,676 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-06151134:ctest-vn-77105183 virtual network link through opserver 10.0.0.28
2024-09-11 16:17:18,676 - DEBUG - Requesting: http://10.0.0.28:8081/analytics/uves/virtual-networks
2024-09-11 16:17:18,690 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-06151134:ctest-vn-77105183', 'href': 'http://10.0.0.28:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-06151134:ctest-vn-77105183?flat'}
2024-09-11 16:17:18,690 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-06151134:ctest-vn-77105183 is found in opserver
2024-09-11 16:17:18,705 - DEBUG - Do not have enough data to verify VN in agent
2024-09-11 16:17:18,711 - DEBUG - VRF ids for VN ctest-vn-77105183: {}
2024-09-11 16:17:18,785 - DEBUG - Services list from nova: [