2024-09-06 17:52:16,690 - INFO - Domain Default found not creating
2024-09-06 17:52:16,867 - INFO - Project ctest-TestBasicPolicy-11653783 not found, creating it
2024-09-06 17:52:17,350 - INFO - Created Project:ctest-TestBasicPolicy-11653783, ID : e3f71840-4117-410b-8362-6003a2218ee0
2024-09-06 17:52:19,882 - INFO - ================================================================================
2024-09-06 17:52:19,882 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-09-06 17:52:19,882 - 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-06 17:52:20,140 - DEBUG - Nothing to compare xmpp stats {'10.0.0.35': {'10.20.0.33': '0'}} with
2024-09-06 17:52:20,141 - INFO - Initial checks done. Running the testcase now
2024-09-06 17:52:20,141 - INFO -
2024-09-06 17:52:20,691 - DEBUG - Response for create_network : {'network': {'id': 'a4be03a0-51d9-41b2-a321-8ceb18ea5a70', 'name': 'ctest-vn-47427769', 'tenant_id': 'e3f718404117410b83626003a2218ee0', 'project_id': 'e3f718404117410b83626003a2218ee0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11653783', 'ctest-vn-47427769'], 'port_security_enabled': True, 'description': ''}}
2024-09-06 17:52:20,899 - DEBUG - Response for create_subnet : {'subnet': {'id': 'bea32afc-35f7-41d1-9b6f-fdaabf053e45', 'name': '', 'tenant_id': 'e3f718404117410b83626003a2218ee0', 'network_id': 'a4be03a0-51d9-41b2-a321-8ceb18ea5a70', 'ip_version': 4, 'cidr': '83.15.119.192/26', 'allocation_pools': [{'start': '83.15.119.194', 'end': '83.15.119.254'}], 'gateway_ip': '83.15.119.193', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '83.15.119.194', 'tags': [], 'project_id': 'e3f718404117410b83626003a2218ee0'}}
2024-09-06 17:52:20,918 - INFO - Created VN ctest-vn-47427769
2024-09-06 17:52:20,970 - DEBUG - VN ctest-vn-47427769 UUID is a4be03a0-51d9-41b2-a321-8ceb18ea5a70
2024-09-06 17:52:21,297 - DEBUG - Response for create_network : {'network': {'id': '393ac711-3eb5-4bf2-8e7f-b73c98c86bd7', 'name': 'ctest-vn-05029291', 'tenant_id': 'e3f718404117410b83626003a2218ee0', 'project_id': 'e3f718404117410b83626003a2218ee0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11653783', 'ctest-vn-05029291'], 'port_security_enabled': True, 'description': ''}}
2024-09-06 17:52:21,460 - DEBUG - Response for create_subnet : {'subnet': {'id': 'ff98ffe2-644a-4eed-8b0f-d9a2d8093ffc', 'name': '', 'tenant_id': 'e3f718404117410b83626003a2218ee0', 'network_id': '393ac711-3eb5-4bf2-8e7f-b73c98c86bd7', 'ip_version': 4, 'cidr': '95.81.162.128/26', 'allocation_pools': [{'start': '95.81.162.130', 'end': '95.81.162.190'}], 'gateway_ip': '95.81.162.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '95.81.162.130', 'tags': [], 'project_id': 'e3f718404117410b83626003a2218ee0'}}
2024-09-06 17:52:21,480 - INFO - Created VN ctest-vn-05029291
2024-09-06 17:52:21,530 - DEBUG - VN ctest-vn-05029291 UUID is 393ac711-3eb5-4bf2-8e7f-b73c98c86bd7
2024-09-06 17:52:21,645 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-11653783:ctest-vn-47427769, 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-11653783:ctest-vn-05029291, 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-06 17:52:22,069 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'a4be03a0-51d9-41b2-a321-8ceb18ea5a70', 'name': 'ctest-vn-47427769', 'tenant_id': 'e3f718404117410b83626003a2218ee0', 'project_id': 'e3f718404117410b83626003a2218ee0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['bea32afc-35f7-41d1-9b6f-fdaabf053e45'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11653783', 'ctest-vn-47427769'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11653783', 'ctest-policy-allow-all-43385558']], 'subnet_ipam': [{'subnet_cidr': '83.15.119.192/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-06 17:52:22,363 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '393ac711-3eb5-4bf2-8e7f-b73c98c86bd7', 'name': 'ctest-vn-05029291', 'tenant_id': 'e3f718404117410b83626003a2218ee0', 'project_id': 'e3f718404117410b83626003a2218ee0', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['ff98ffe2-644a-4eed-8b0f-d9a2d8093ffc'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-11653783', 'ctest-vn-05029291'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-11653783', 'ctest-policy-allow-all-43385558']], 'subnet_ipam': [{'subnet_cidr': '95.81.162.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-09-06 17:52:22,510 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-09-06 17:52:22,810 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-09-06 17:52:22,840 - DEBUG - Requesting: http://10.0.0.35:8082/domain/bff7bb93-b0a7-4d31-a3eb-4a65b02b5693
2024-09-06 17:52:22,854 - DEBUG - Requesting: http://10.0.0.35:8082/project/e3f71840-4117-410b-8362-6003a2218ee0
2024-09-06 17:52:22,927 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/a4be03a0-51d9-41b2-a321-8ceb18ea5a70
2024-09-06 17:52:22,937 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/a4be03a0-51d9-41b2-a321-8ceb18ea5a70
2024-09-06 17:52:22,946 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/227d8895-6c48-404e-a2f3-60cf60dfb7cb
2024-09-06 17:52:22,953 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/227d8895-6c48-404e-a2f3-60cf60dfb7cb
2024-09-06 17:52:22,961 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/e83b140b-722c-44d5-9d52-40218f122386
2024-09-06 17:52:22,968 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-06 17:52:22,968 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/a4be03a0-51d9-41b2-a321-8ceb18ea5a70
2024-09-06 17:52:22,976 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/227d8895-6c48-404e-a2f3-60cf60dfb7cb
2024-09-06 17:52:22,989 - INFO - Verified VN network id 7 for VN a4be03a0-51d9-41b2-a321-8ceb18ea5a70
2024-09-06 17:52:22,990 - INFO - Verifications in API Server for VN ctest-vn-47427769 passed
2024-09-06 17:52:22,990 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/a4be03a0-51d9-41b2-a321-8ceb18ea5a70
2024-09-06 17:52:22,999 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/227d8895-6c48-404e-a2f3-60cf60dfb7cb
2024-09-06 17:52:23,005 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/227d8895-6c48-404e-a2f3-60cf60dfb7cb
2024-09-06 17:52:23,012 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/e83b140b-722c-44d5-9d52-40218f122386
2024-09-06 17:52:23,024 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11653783:ctest-vn-47427769', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11653783', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '11870929654898049458', 'uuid-lslong': '11754831443776920176'}, 'enable': 'true', 'created': '2024-09-06T17:52:20', 'last-modified': '2024-09-06T17:52:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:00.983844'}
2024-09-06 17:52:23,031 - DEBUG - Route Targets: ['target:64512:8000005']
2024-09-06 17:52:23,031 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-47427769 passed
2024-09-06 17:52:23,031 - DEBUG - ====Verifying policy data for ctest-vn-47427769 in API_Server ======
2024-09-06 17:52:23,031 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-09-06 17:52:23,037 - DEBUG - Requesting: http://10.0.0.35:8082/domain/bff7bb93-b0a7-4d31-a3eb-4a65b02b5693
2024-09-06 17:52:23,049 - DEBUG - Requesting: http://10.0.0.35:8082/project/e3f71840-4117-410b-8362-6003a2218ee0
2024-09-06 17:52:23,119 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/a4be03a0-51d9-41b2-a321-8ceb18ea5a70
2024-09-06 17:52:23,128 - DEBUG - ==>Verifying data for policy with id: 7916cba8-ca28-4c6c-98ea-aff8560178ae, fqn: ['default-domain', 'ctest-TestBasicPolicy-11653783', 'ctest-policy-allow-all-43385558']
2024-09-06 17:52:23,128 - INFO - VN ctest-vn-47427769 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-06 17:52:23,128 - DEBUG - Verifying the vn in opserver
2024-09-06 17:52:23,128 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11653783:ctest-vn-47427769 virtual network link through opserver 10.0.0.35
2024-09-06 17:52:23,129 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-09-06 17:52:23,422 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-09-06 17:52:23,485 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11653783:ctest-vn-47427769', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11653783:ctest-vn-47427769?flat'}
2024-09-06 17:52:23,485 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11653783:ctest-vn-47427769 is found in opserver
2024-09-06 17:52:23,497 - DEBUG - Do not have enough data to verify VN in agent
2024-09-06 17:52:23,503 - DEBUG - VRF ids for VN ctest-vn-47427769: {}
2024-09-06 17:52:23,503 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-09-06 17:52:23,509 - DEBUG - Requesting: http://10.0.0.35:8082/domain/bff7bb93-b0a7-4d31-a3eb-4a65b02b5693
2024-09-06 17:52:23,522 - DEBUG - Requesting: http://10.0.0.35:8082/project/e3f71840-4117-410b-8362-6003a2218ee0
2024-09-06 17:52:23,596 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/393ac711-3eb5-4bf2-8e7f-b73c98c86bd7
2024-09-06 17:52:23,614 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/393ac711-3eb5-4bf2-8e7f-b73c98c86bd7
2024-09-06 17:52:23,625 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/910379c5-9ced-4d06-9fa6-a860110d9134
2024-09-06 17:52:23,634 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/910379c5-9ced-4d06-9fa6-a860110d9134
2024-09-06 17:52:23,642 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/79830eda-f375-4168-90e5-631634e7b9b1
2024-09-06 17:52:23,649 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-06 17:52:23,649 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/393ac711-3eb5-4bf2-8e7f-b73c98c86bd7
2024-09-06 17:52:23,657 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/910379c5-9ced-4d06-9fa6-a860110d9134
2024-09-06 17:52:23,671 - INFO - Verified VN network id 8 for VN 393ac711-3eb5-4bf2-8e7f-b73c98c86bd7
2024-09-06 17:52:23,671 - INFO - Verifications in API Server for VN ctest-vn-05029291 passed
2024-09-06 17:52:23,671 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/393ac711-3eb5-4bf2-8e7f-b73c98c86bd7
2024-09-06 17:52:23,680 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/910379c5-9ced-4d06-9fa6-a860110d9134
2024-09-06 17:52:23,688 - DEBUG - Requesting: http://10.0.0.35:8082/routing-instance/910379c5-9ced-4d06-9fa6-a860110d9134
2024-09-06 17:52:23,695 - DEBUG - Requesting: http://10.0.0.35:8082/route-target/79830eda-f375-4168-90e5-631634e7b9b1
2024-09-06 17:52:23,708 - DEBUG - Control-node 10.0.0.35 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-11653783:ctest-vn-05029291', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-11653783', 'owner-access': '7', 'group': 'reader', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '4123827285691550706', 'uuid-lslong': '10268127146317212631'}, 'enable': 'true', 'created': '2024-09-06T17:52:21', 'last-modified': '2024-09-06T17:52:22', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.415317'}
2024-09-06 17:52:23,716 - DEBUG - Route Targets: ['target:64512:8000006']
2024-09-06 17:52:23,716 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-05029291 passed
2024-09-06 17:52:23,716 - DEBUG - ====Verifying policy data for ctest-vn-05029291 in API_Server ======
2024-09-06 17:52:23,716 - DEBUG - Requesting: http://10.0.0.35:8082/domains
2024-09-06 17:52:23,722 - DEBUG - Requesting: http://10.0.0.35:8082/domain/bff7bb93-b0a7-4d31-a3eb-4a65b02b5693
2024-09-06 17:52:23,734 - DEBUG - Requesting: http://10.0.0.35:8082/project/e3f71840-4117-410b-8362-6003a2218ee0
2024-09-06 17:52:23,803 - DEBUG - Requesting: http://10.0.0.35:8082/virtual-network/393ac711-3eb5-4bf2-8e7f-b73c98c86bd7
2024-09-06 17:52:23,812 - DEBUG - ==>Verifying data for policy with id: 7916cba8-ca28-4c6c-98ea-aff8560178ae, fqn: ['default-domain', 'ctest-TestBasicPolicy-11653783', 'ctest-policy-allow-all-43385558']
2024-09-06 17:52:23,812 - INFO - VN ctest-vn-05029291 Policy verification: verify_vn_policy_in_api_server, status: True
2024-09-06 17:52:23,812 - DEBUG - Verifying the vn in opserver
2024-09-06 17:52:23,812 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-11653783:ctest-vn-05029291 virtual network link through opserver 10.0.0.35
2024-09-06 17:52:23,812 - DEBUG - Requesting: http://10.0.0.35:8081/analytics/uves/virtual-networks
2024-09-06 17:52:23,823 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-11653783:ctest-vn-05029291', 'href': 'http://10.0.0.35:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-11653783:ctest-vn-05029291?flat'}
2024-09-06 17:52:23,823 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-11653783:ctest-vn-05029291 is found in opserver
2024-09-06 17:52:23,834 - DEBUG - Do not have enough data to verify VN in agent
2024-09-06 17:52:23,839 - DEBUG - VRF ids for VN ctest-vn-05029291: {}
2024-09-06 17:52:23,898 - DEBUG - Services list from nova: [