2024-11-03 19:57:23,675 - INFO - Domain Default found not creating
2024-11-03 19:57:23,829 - INFO - Project ctest-TestBasicPolicy-61561760 not found, creating it
2024-11-03 19:57:24,310 - INFO - Created Project:ctest-TestBasicPolicy-61561760, ID : 66582e8a-83cb-406e-a85d-32bf40354ad5
2024-11-03 19:57:25,803 - INFO - ================================================================================
2024-11-03 19:57:25,803 - INFO - STARTING TEST : test_basic_policy_allow_deny
2024-11-03 19:57:25,803 - 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-11-03 19:57:26,058 - DEBUG - Nothing to compare xmpp stats {'10.0.0.48': {'10.20.0.11': '0'}} with
2024-11-03 19:57:26,058 - INFO - Initial checks done. Running the testcase now
2024-11-03 19:57:26,058 - INFO -
2024-11-03 19:57:26,641 - DEBUG - Response for create_network : {'network': {'id': '8e8ce211-19d0-4fea-b52c-ae44f71b49af', 'name': 'ctest-vn-98409876', 'tenant_id': '66582e8a83cb406ea85d32bf40354ad5', 'project_id': '66582e8a83cb406ea85d32bf40354ad5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61561760', 'ctest-vn-98409876'], 'port_security_enabled': True, 'description': ''}}
2024-11-03 19:57:26,876 - DEBUG - Response for create_subnet : {'subnet': {'id': 'f8eeea06-5982-4eea-8e57-1c0fd8e6151e', 'name': '', 'tenant_id': '66582e8a83cb406ea85d32bf40354ad5', 'network_id': '8e8ce211-19d0-4fea-b52c-ae44f71b49af', 'ip_version': 4, 'cidr': '27.239.129.128/26', 'allocation_pools': [{'start': '27.239.129.130', 'end': '27.239.129.190'}], 'gateway_ip': '27.239.129.129', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '27.239.129.130', 'tags': [], 'project_id': '66582e8a83cb406ea85d32bf40354ad5'}}
2024-11-03 19:57:26,895 - INFO - Created VN ctest-vn-98409876
2024-11-03 19:57:26,952 - DEBUG - VN ctest-vn-98409876 UUID is 8e8ce211-19d0-4fea-b52c-ae44f71b49af
2024-11-03 19:57:27,264 - DEBUG - Response for create_network : {'network': {'id': 'efca095a-91b5-49c1-a2da-35f688a84dc6', 'name': 'ctest-vn-70711056', 'tenant_id': '66582e8a83cb406ea85d32bf40354ad5', 'project_id': '66582e8a83cb406ea85d32bf40354ad5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': [], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61561760', 'ctest-vn-70711056'], 'port_security_enabled': True, 'description': ''}}
2024-11-03 19:57:27,502 - DEBUG - Response for create_subnet : {'subnet': {'id': 'e41d1984-7135-49f9-9d8e-75d717de5aff', 'name': '', 'tenant_id': '66582e8a83cb406ea85d32bf40354ad5', 'network_id': 'efca095a-91b5-49c1-a2da-35f688a84dc6', 'ip_version': 4, 'cidr': '147.168.191.0/26', 'allocation_pools': [{'start': '147.168.191.2', 'end': '147.168.191.62'}], 'gateway_ip': '147.168.191.1', 'enable_dhcp': True, 'ipv6_ra_mode': None, 'ipv6_address_mode': None, 'dns_nameservers': [], 'host_routes': [], 'dns_server_address': '147.168.191.2', 'tags': [], 'project_id': '66582e8a83cb406ea85d32bf40354ad5'}}
2024-11-03 19:57:27,520 - INFO - Created VN ctest-vn-70711056
2024-11-03 19:57:27,580 - DEBUG - VN ctest-vn-70711056 UUID is efca095a-91b5-49c1-a2da-35f688a84dc6
2024-11-03 19:57:27,698 - DEBUG - Policy np_rules : [rule_sequence = None, rule_uuid = None, direction = <>, protocol = icmp, src_addresses = [subnet = None, virtual_network = default-domain:ctest-TestBasicPolicy-61561760:ctest-vn-98409876, 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-61561760:ctest-vn-70711056, 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-11-03 19:57:28,017 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': '8e8ce211-19d0-4fea-b52c-ae44f71b49af', 'name': 'ctest-vn-98409876', 'tenant_id': '66582e8a83cb406ea85d32bf40354ad5', 'project_id': '66582e8a83cb406ea85d32bf40354ad5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['f8eeea06-5982-4eea-8e57-1c0fd8e6151e'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61561760', 'ctest-vn-98409876'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61561760', 'ctest-policy-allow-all-56571915']], 'subnet_ipam': [{'subnet_cidr': '27.239.129.128/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-03 19:57:28,297 - DEBUG - Response for mapping policy(s) with vn {'network': {'id': 'efca095a-91b5-49c1-a2da-35f688a84dc6', 'name': 'ctest-vn-70711056', 'tenant_id': '66582e8a83cb406ea85d32bf40354ad5', 'project_id': '66582e8a83cb406ea85d32bf40354ad5', 'admin_state_up': True, 'shared': False, 'status': 'ACTIVE', 'router:external': False, 'mtu': 0, 'subnets': ['e41d1984-7135-49f9-9d8e-75d717de5aff'], 'fq_name': ['default-domain', 'ctest-TestBasicPolicy-61561760', 'ctest-vn-70711056'], 'policys': [['default-domain', 'ctest-TestBasicPolicy-61561760', 'ctest-policy-allow-all-56571915']], 'subnet_ipam': [{'subnet_cidr': '147.168.191.0/26', 'ipam_fq_name': ['default-domain', 'default-project', 'default-network-ipam']}], 'port_security_enabled': True, 'description': ''}}
2024-11-03 19:57:28,444 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-11-03 19:57:28,738 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-11-03 19:57:28,769 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f6f42ffd-944b-4f84-b2c5-39888fb76772
2024-11-03 19:57:28,785 - DEBUG - Requesting: http://10.0.0.48:8082/project/66582e8a-83cb-406e-a85d-32bf40354ad5
2024-11-03 19:57:28,866 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8e8ce211-19d0-4fea-b52c-ae44f71b49af
2024-11-03 19:57:28,881 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8e8ce211-19d0-4fea-b52c-ae44f71b49af
2024-11-03 19:57:28,894 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f0c8c7de-35ff-4351-8e59-b39a22b4d9da
2024-11-03 19:57:28,902 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f0c8c7de-35ff-4351-8e59-b39a22b4d9da
2024-11-03 19:57:28,910 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/393e5201-72da-4cdd-83f8-4953b05b5f20
2024-11-03 19:57:28,917 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-03 19:57:28,917 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8e8ce211-19d0-4fea-b52c-ae44f71b49af
2024-11-03 19:57:28,930 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f0c8c7de-35ff-4351-8e59-b39a22b4d9da
2024-11-03 19:57:28,949 - INFO - Verified VN network id 9 for VN 8e8ce211-19d0-4fea-b52c-ae44f71b49af
2024-11-03 19:57:28,949 - INFO - Verifications in API Server for VN ctest-vn-98409876 passed
2024-11-03 19:57:28,949 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8e8ce211-19d0-4fea-b52c-ae44f71b49af
2024-11-03 19:57:28,962 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f0c8c7de-35ff-4351-8e59-b39a22b4d9da
2024-11-03 19:57:28,971 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/f0c8c7de-35ff-4351-8e59-b39a22b4d9da
2024-11-03 19:57:28,978 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/393e5201-72da-4cdd-83f8-4953b05b5f20
2024-11-03 19:57:28,991 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61561760:ctest-vn-98409876', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61561760', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '10271833413200662506', 'uuid-lslong': '13055001031066995119'}, 'enable': 'true', 'created': '2024-11-03T19:57:26', 'last-modified': '2024-11-03T19:57:27', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.001714'}
2024-11-03 19:57:28,997 - DEBUG - Route Targets: ['target:64512:8000005']
2024-11-03 19:57:28,997 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-98409876 passed
2024-11-03 19:57:28,997 - DEBUG - ====Verifying policy data for ctest-vn-98409876 in API_Server ======
2024-11-03 19:57:28,997 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-11-03 19:57:29,003 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f6f42ffd-944b-4f84-b2c5-39888fb76772
2024-11-03 19:57:29,015 - DEBUG - Requesting: http://10.0.0.48:8082/project/66582e8a-83cb-406e-a85d-32bf40354ad5
2024-11-03 19:57:29,096 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/8e8ce211-19d0-4fea-b52c-ae44f71b49af
2024-11-03 19:57:29,109 - DEBUG - ==>Verifying data for policy with id: 78a54f4a-2623-4cb2-a523-398413ee0787, fqn: ['default-domain', 'ctest-TestBasicPolicy-61561760', 'ctest-policy-allow-all-56571915']
2024-11-03 19:57:29,109 - INFO - VN ctest-vn-98409876 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-03 19:57:29,109 - DEBUG - Verifying the vn in opserver
2024-11-03 19:57:29,109 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61561760:ctest-vn-98409876 virtual network link through opserver 10.0.0.48
2024-11-03 19:57:29,110 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2024-11-03 19:57:29,405 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2024-11-03 19:57:29,463 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61561760:ctest-vn-98409876', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61561760:ctest-vn-98409876?flat'}
2024-11-03 19:57:29,463 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61561760:ctest-vn-98409876 is found in opserver
2024-11-03 19:57:29,473 - DEBUG - Do not have enough data to verify VN in agent
2024-11-03 19:57:29,478 - DEBUG - VRF ids for VN ctest-vn-98409876: {}
2024-11-03 19:57:29,478 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-11-03 19:57:29,484 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f6f42ffd-944b-4f84-b2c5-39888fb76772
2024-11-03 19:57:29,496 - DEBUG - Requesting: http://10.0.0.48:8082/project/66582e8a-83cb-406e-a85d-32bf40354ad5
2024-11-03 19:57:29,572 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/efca095a-91b5-49c1-a2da-35f688a84dc6
2024-11-03 19:57:29,587 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/efca095a-91b5-49c1-a2da-35f688a84dc6
2024-11-03 19:57:29,600 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/230f6619-cafb-482a-80d1-24d98cfc5ff2
2024-11-03 19:57:29,609 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/230f6619-cafb-482a-80d1-24d98cfc5ff2
2024-11-03 19:57:29,617 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/fe00c9a4-51d5-4699-8539-c2a9584e6d72
2024-11-03 19:57:29,624 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-03 19:57:29,624 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/efca095a-91b5-49c1-a2da-35f688a84dc6
2024-11-03 19:57:29,637 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/230f6619-cafb-482a-80d1-24d98cfc5ff2
2024-11-03 19:57:29,660 - INFO - Verified VN network id 10 for VN efca095a-91b5-49c1-a2da-35f688a84dc6
2024-11-03 19:57:29,660 - INFO - Verifications in API Server for VN ctest-vn-70711056 passed
2024-11-03 19:57:29,660 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/efca095a-91b5-49c1-a2da-35f688a84dc6
2024-11-03 19:57:29,674 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/230f6619-cafb-482a-80d1-24d98cfc5ff2
2024-11-03 19:57:29,682 - DEBUG - Requesting: http://10.0.0.48:8082/routing-instance/230f6619-cafb-482a-80d1-24d98cfc5ff2
2024-11-03 19:57:29,689 - DEBUG - Requesting: http://10.0.0.48:8082/route-target/fe00c9a4-51d5-4699-8539-c2a9584e6d72
2024-11-03 19:57:29,702 - DEBUG - Control-node 10.0.0.48 : VN object is : {'node_name': 'virtual-network:default-domain:ctest-TestBasicPolicy-61561760:ctest-vn-70711056', 'interests': '-', 'advertised': '-', 'dbentryflags': None, 'obj_info': {'sequence_number': '0', 'origin': 'Cassandra', 'data': {'id-perms': {'permissions': {'owner': 'ctest-TestBasicPolicy-61561760', 'owner-access': '7', 'group': 'admin', 'group-access': '7', 'other-access': '7'}, 'uuid': {'uuid-mslong': '17278633204956613057', 'uuid-lslong': '11734751112038206918'}, 'enable': 'true', 'created': '2024-11-03T19:57:27', 'last-modified': '2024-11-03T19:57:28', 'description': None, 'user-visible': 'true', 'creator': None}}}, 'neighbors': None, 'last_modified': '00:00:01.470105'}
2024-11-03 19:57:29,707 - DEBUG - Route Targets: ['target:64512:8000006']
2024-11-03 19:57:29,708 - INFO - On all control nodes, Config, RI and RT verification for VN ctest-vn-70711056 passed
2024-11-03 19:57:29,708 - DEBUG - ====Verifying policy data for ctest-vn-70711056 in API_Server ======
2024-11-03 19:57:29,708 - DEBUG - Requesting: http://10.0.0.48:8082/domains
2024-11-03 19:57:29,714 - DEBUG - Requesting: http://10.0.0.48:8082/domain/f6f42ffd-944b-4f84-b2c5-39888fb76772
2024-11-03 19:57:29,726 - DEBUG - Requesting: http://10.0.0.48:8082/project/66582e8a-83cb-406e-a85d-32bf40354ad5
2024-11-03 19:57:29,803 - DEBUG - Requesting: http://10.0.0.48:8082/virtual-network/efca095a-91b5-49c1-a2da-35f688a84dc6
2024-11-03 19:57:29,817 - DEBUG - ==>Verifying data for policy with id: 78a54f4a-2623-4cb2-a523-398413ee0787, fqn: ['default-domain', 'ctest-TestBasicPolicy-61561760', 'ctest-policy-allow-all-56571915']
2024-11-03 19:57:29,817 - INFO - VN ctest-vn-70711056 Policy verification: verify_vn_policy_in_api_server, status: True
2024-11-03 19:57:29,817 - DEBUG - Verifying the vn in opserver
2024-11-03 19:57:29,817 - DEBUG - Verifying the default-domain:ctest-TestBasicPolicy-61561760:ctest-vn-70711056 virtual network link through opserver 10.0.0.48
2024-11-03 19:57:29,817 - DEBUG - Requesting: http://10.0.0.48:8081/analytics/uves/virtual-networks
2024-11-03 19:57:29,828 - DEBUG - vn link and name as {'name': 'default-domain:ctest-TestBasicPolicy-61561760:ctest-vn-70711056', 'href': 'http://10.0.0.48:8081/analytics/uves/virtual-network/default-domain:ctest-TestBasicPolicy-61561760:ctest-vn-70711056?flat'}
2024-11-03 19:57:29,828 - INFO - Validated that VN default-domain:ctest-TestBasicPolicy-61561760:ctest-vn-70711056 is found in opserver
2024-11-03 19:57:29,839 - DEBUG - Do not have enough data to verify VN in agent
2024-11-03 19:57:29,844 - DEBUG - VRF ids for VN ctest-vn-70711056: {}
2024-11-03 19:57:29,920 - DEBUG - Services list from nova: [